<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:59:54 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CXX-659] max_align_t not a part of std namespace in GCC 4.8.3, thus master build is failing</title>
                <link>https://jira.mongodb.org/browse/CXX-659</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Not sure what the policy is for reporting issues on the in-progress (master) branch, but...&lt;/p&gt;

&lt;p&gt;According to gnu, max_align_t wasn&apos;t added to std namespace until gcc 4.9.x. (Reference: &lt;a href=&quot;https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56019&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56019&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Removing std namespace on max_align_t allows it to compile again in my Centos7 VM.&lt;/p&gt;

&lt;p&gt;Note, this doesn&apos;t seem to be an issue for Mac OS X 10.10.4 with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn).&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;

&lt;p&gt;Reference:&lt;br/&gt;
[ 91%] Building CXX object src/mongocxx/test/CMakeFiles/test_driver.dir/pool.cpp.o&lt;br/&gt;
/home/ocruz/mongodb/mongo-cxx-driver/src/mongocxx/test/pool.cpp: In function &#8216;void ____C_A_T_C_H____T_E_S_T____127()&#8217;:&lt;br/&gt;
/home/ocruz/mongodb/mongo-cxx-driver/src/mongocxx/test/pool.cpp:130:5: error: &#8216;max_align_t&#8217; is not a member of &#8216;std&#8217;&lt;br/&gt;
     std::max_align_t dummy_address;&lt;br/&gt;
     ^&lt;br/&gt;
/home/ocruz/mongodb/mongo-cxx-driver/src/mongocxx/test/pool.cpp:130:5: note: suggested alternative:&lt;br/&gt;
In file included from /usr/include/c++/4.8.2/cstddef:42:0,&lt;br/&gt;
                 from /home/ocruz/mongodb/mongo-cxx-driver/src/third_party/catch/include/catch.hpp:785,&lt;br/&gt;
                 from /home/ocruz/mongodb/mongo-cxx-driver/src/mongocxx/test/pool.cpp:15:&lt;br/&gt;
/usr/lib/gcc/x86_64-redhat-linux/4.8.3/include/stddef.h:425:3: note:   &#8216;max_align_t&#8217;&lt;br/&gt;
 } max_align_t;&lt;br/&gt;
   ^&lt;br/&gt;
/home/ocruz/mongodb/mongo-cxx-driver/src/mongocxx/test/pool.cpp:130:22: error: expected &#8216;;&#8217; before &#8216;dummy_address&#8217;&lt;br/&gt;
     std::max_align_t dummy_address;&lt;br/&gt;
                      ^&lt;br/&gt;
/home/ocruz/mongodb/mongo-cxx-driver/src/mongocxx/test/pool.cpp:133:65: error: &#8216;dummy_address&#8217; was not declared in this scope&lt;br/&gt;
     mongoc_client_t* fake = reinterpret_cast&amp;lt;mongoc_client_t*&amp;gt;(&amp;amp;dummy_address);&lt;br/&gt;
                                                                 ^&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;src/mongocxx/test/CMakeFiles/test_driver.dir/pool.cpp.o&amp;#93;&lt;/span&gt; Error 1&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;src/mongocxx/test/CMakeFiles/test_driver.dir/all&amp;#93;&lt;/span&gt; Error 2&lt;br/&gt;
make: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;all&amp;#93;&lt;/span&gt; Error 2&lt;/p&gt;</description>
                <environment></environment>
        <key id="227865">CXX-659</key>
            <summary>max_align_t not a part of std namespace in GCC 4.8.3, thus master build is failing</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="andrew.morrow@mongodb.com">Andrew Morrow</assignee>
                                    <reporter username="ocruz">Otto Cruz</reporter>
                        <labels>
                    </labels>
                <created>Mon, 31 Aug 2015 23:10:44 +0000</created>
                <updated>Wed, 2 Sep 2015 15:44:08 +0000</updated>
                            <resolved>Wed, 2 Sep 2015 15:44:08 +0000</resolved>
                                                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1020708" author="acm" created="Wed, 2 Sep 2015 15:44:00 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ocruz&quot; class=&quot;user-hover&quot; rel=&quot;ocruz&quot;&gt;ocruz&lt;/a&gt; - Thanks for pointing that out on the wiki. I&apos;ve updated it.&lt;/p&gt;

&lt;p&gt;Also, I believe that the use of std::max_align_t is confined to the tests. So you might be able to get away with GCC 4.8 as long as you only build the install target? I realize you probably want to run the tests though. Another option might be to #ifdef out that part of the test on GCC &amp;lt; 4.9? I&apos;m less averse to some tweaks like that, but what I&apos;d like to avoid is having to start doing the &apos;stdx&apos; trick for max_align_t globally. If you find a compromise solution that seems reasonable feel free to send us a PR and we will give it a look.&lt;/p&gt;

&lt;p&gt;I&apos;m going to close this ticket for now, but feel free to re-open it if you have a suggestion for a fix and want us to evaluate.&lt;/p&gt;

&lt;p&gt;Thanks for trying out the new driver!&lt;/p&gt;</comment>
                            <comment id="1020696" author="ocruz" created="Wed, 2 Sep 2015 15:37:40 +0000"  >&lt;p&gt;Makes total sense, Andrew.  I&apos;ll deal with this on my side.&lt;/p&gt;

&lt;p&gt;Though if someone could update the quick-start guide for the c&amp;#43;&amp;#43;11 driver on github to reflect g&amp;#43;&amp;#43; 4.9&amp;#43; instead of 4.8&amp;#43;, to hopefully help others.&lt;/p&gt;

&lt;p&gt;Thanks for the input!&lt;/p&gt;</comment>
                            <comment id="1020659" author="acm" created="Wed, 2 Sep 2015 15:14:58 +0000"  >&lt;p&gt;Hi Otto -&lt;/p&gt;

&lt;p&gt;Thanks for the bug report. One of the design goals of the new C&amp;#43;&amp;#43;11 driver was to write to the C&amp;#43;&amp;#43;11 standard and not add compatibility hacks to accommodate compilers that have not yet reached conformance. This means that GCC 4.9 is most likely the minimum acceptable GCC version for building the C&amp;#43;&amp;#43;11 driver. I&apos;d recommend either building with clang, or using a newer GCC.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Andrew&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hscubz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="673">Platform 9 (09/18/15)</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>