<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:00:36 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-865] Could not build with clang 3.8</title>
                <link>https://jira.mongodb.org/browse/CXX-865</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Hello, folks!&lt;/p&gt;

&lt;p&gt;I&apos;m trying to build C++ 11 mongo client library but could not do it:&lt;br/&gt;
mongocxx/test/pool.cpp:146:5: error: no type named &apos;max_align_t&apos; in namespace &apos;std&apos;; did you mean simply &apos;max_align_t&apos;?&lt;br/&gt;
    std::max_align_t dummy_address;&lt;br/&gt;
    ^~~~~~~~~~~~~~~~&lt;br/&gt;
    max_align_t&lt;br/&gt;
/opt/dps/libraries/clang_3_8_0/bin/../lib/clang/3.8.0/include/__stddef_max_align_t.h:40:3: note: &apos;max_align_t&apos; declared here&lt;br/&gt;
} max_align_t;&lt;br/&gt;
  ^&lt;br/&gt;
1 error generated.&lt;/p&gt;

&lt;p&gt;Could you fix it?&lt;/p&gt;</description>
                <environment></environment>
        <key id="272273">CXX-865</key>
            <summary>Could not build with clang 3.8</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="9">Done</resolution>
                                        <assignee username="andrew.morrow@mongodb.com">Andrew Morrow</assignee>
                                    <reporter username="pavel.odintsov">Pavel Odintsov</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 Mar 2016 15:31:27 +0000</created>
                <updated>Wed, 30 Mar 2016 18:47:02 +0000</updated>
                            <resolved>Tue, 22 Mar 2016 18:31:02 +0000</resolved>
                                                    <fixVersion>3.0.1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1211629" author="xgen-internal-githook" created="Tue, 22 Mar 2016 18:30:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;acmorrow&apos;, u&apos;name&apos;: u&apos;Andrew Morrow&apos;, u&apos;email&apos;: u&apos;acm@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-865&quot; title=&quot;Could not build with clang 3.8&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-865&quot;&gt;&lt;del&gt;CXX-865&lt;/del&gt;&lt;/a&gt; Enable building with clang with libstdc++ from GCC 4.8&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/105e83ea7d91003b7fa815df9a75c3f4c96e2e27&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/105e83ea7d91003b7fa815df9a75c3f4c96e2e27&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1211614" author="acm" created="Tue, 22 Mar 2016 18:25:11 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=pavel.odintsov&quot; class=&quot;user-hover&quot; rel=&quot;pavel.odintsov&quot;&gt;pavel.odintsov&lt;/a&gt; - Could you try out the PR in &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/pull/468&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/pull/468&lt;/a&gt; and see if allows you to build with clang against your GCC 4.8 libstdc++? That is not a configuration that I have handy to test.&lt;/p&gt;</comment>
                            <comment id="1210197" author="acm" created="Mon, 21 Mar 2016 20:42:54 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/pull/468&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/pull/468&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1205160" author="acm" created="Wed, 16 Mar 2016 12:56:40 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=pavel.odintsov&quot; class=&quot;user-hover&quot; rel=&quot;pavel.odintsov&quot;&gt;pavel.odintsov&lt;/a&gt; - Were you able to get the driver building with clang and libc++?&lt;/p&gt;</comment>
                            <comment id="1202565" author="acm" created="Mon, 14 Mar 2016 16:39:55 +0000"  >&lt;p&gt;You would need to do something with CMAKE_CXX_FLAGS. Maybe:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS=-stdlib=libc++ ...&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;I&apos;d start with that, or something close to it. Basically, you need to use the CMake mechanisms for passing compiler flags through.&lt;/p&gt;</comment>
                            <comment id="1202537" author="pavel.odintsov" created="Mon, 14 Mar 2016 16:19:43 +0000"  >&lt;p&gt;libc++ is works for me &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; How I could build Mongo C++ 1 1driver with clang and libc++?&lt;/p&gt;</comment>
                            <comment id="1202532" author="acm" created="Mon, 14 Mar 2016 16:17:11 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=pavel.odintsov&quot; class=&quot;user-hover&quot; rel=&quot;pavel.odintsov&quot;&gt;pavel.odintsov&lt;/a&gt; - As a potential workaround, I think you could either try libstdc++ 4.9 or newer, or try libc++.&lt;/p&gt;</comment>
                            <comment id="1202522" author="acm" created="Mon, 14 Mar 2016 16:14:10 +0000"  >&lt;p&gt;I think the logic in pool.cpp to decide whether max_align_t is in the std:: or global namespace isn&apos;t quite right. It won&apos;t work, for instance, when using clang to build against a pre GCC-4.9 libstdc++. I think we need to do this as a configure check.&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|hsjl9z:</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="941">Platforms 12 (04/01/16)</customfieldvalue>

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