<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:04:58 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-2121] Compilation error with libc++ and C++ 17</title>
                <link>https://jira.mongodb.org/browse/CXX-2121</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;I get this:&lt;/p&gt;

&lt;p&gt;In file included from /home/gho/code/pc3-mongo-cxx-driver/src/mongocxx/options/auto_encryption.cpp:15:&lt;br/&gt;
In file included from /home/gho/code/pc3-mongo-cxx-driver/src/mongocxx/options/auto_encryption.hpp:17:&lt;br/&gt;
In file included from /home/gho/code/pc3-mongo-cxx-driver/src/bsoncxx/document/view_or_value.hpp:17:&lt;br/&gt;
In file included from /home/gho/code/pc3-mongo-cxx-driver/src/bsoncxx/document/value.hpp:18:&lt;br/&gt;
In file included from /usr/lib/llvm-10/bin/../include/c++/v1/memory:657:&lt;br/&gt;
/usr/lib/llvm-10/bin/../include/c++/v1/utility:305:9: error: implicit instantiation of undefined template &apos;std::_&lt;em&gt;1::basic_string&amp;lt;char, std::&lt;/em&gt;&lt;em&gt;1::char_traits&amp;lt;char&amp;gt;, std::&lt;/em&gt;_1::allocator&amp;lt;char&amp;gt; &amp;gt;&apos;&lt;br/&gt;
 _T1 first;&lt;br/&gt;
 ^&lt;br/&gt;
/usr/lib/llvm-10/bin/../include/c++/v1/type_traits:3035:38: note: in instantiation of template class &apos;std::_&lt;em&gt;1::pair&amp;lt;std::&lt;/em&gt;&lt;em&gt;1::basic_string&amp;lt;char, std::&lt;/em&gt;&lt;em&gt;1::char_traits&amp;lt;char&amp;gt;, std::&lt;/em&gt;&lt;em&gt;1::allocator&amp;lt;char&amp;gt; &amp;gt;, std::&lt;/em&gt;&lt;em&gt;1::basic_string&amp;lt;char, std::&lt;/em&gt;&lt;em&gt;1::char_traits&amp;lt;char&amp;gt;, std::&lt;/em&gt;_1::allocator&amp;lt;char&amp;gt; &amp;gt; &amp;gt;&apos; requested here&lt;br/&gt;
 : public integral_constant&amp;lt;bool, __is_trivially_destructible(_Tp)&amp;gt; {};&lt;br/&gt;
 ^&lt;br/&gt;
/usr/lib/llvm-10/bin/../include/c++/v1/optional:538:5: note: in instantiation of template class &apos;std::_&lt;em&gt;1::is_trivially_destructible&amp;lt;std::&lt;/em&gt;&lt;em&gt;1::pair&amp;lt;std::&lt;/em&gt;&lt;em&gt;1::basic_string&amp;lt;char, std::&lt;/em&gt;&lt;em&gt;1::char_traits&amp;lt;char&amp;gt;, std::&lt;/em&gt;&lt;em&gt;1::allocator&amp;lt;char&amp;gt; &amp;gt;, std::&lt;/em&gt;&lt;em&gt;1::basic_string&amp;lt;char, std::&lt;/em&gt;&lt;em&gt;1::char_traits&amp;lt;char&amp;gt;, std::&lt;/em&gt;_1::allocator&amp;lt;char&amp;gt; &amp;gt; &amp;gt; &amp;gt;&apos; requested here&lt;br/&gt;
 is_trivially_destructible&amp;lt;_Tp&amp;gt;::value &amp;amp;&amp;amp;&lt;br/&gt;
 ^&lt;br/&gt;
/usr/lib/llvm-10/bin/../include/c++/v1/optional:585:15: note: in instantiation of default argument for &apos;_&lt;em&gt;optional_move_assign_base&amp;lt;std::&lt;/em&gt;&lt;em&gt;1::pair&amp;lt;std::&lt;/em&gt;&lt;em&gt;1::basic_string&amp;lt;char, std::&lt;/em&gt;&lt;em&gt;1::char_traits&amp;lt;char&amp;gt;, std::&lt;/em&gt;&lt;em&gt;1::allocator&amp;lt;char&amp;gt; &amp;gt;, std::&lt;/em&gt;&lt;em&gt;1::basic_string&amp;lt;char, std::&lt;/em&gt;&lt;em&gt;1::char_traits&amp;lt;char&amp;gt;, std::&lt;/em&gt;_1::allocator&amp;lt;char&amp;gt; &amp;gt; &amp;gt; &amp;gt;&apos; required here&lt;br/&gt;
 : private __optional_move_assign_base&amp;lt;_Tp&amp;gt;&lt;br/&gt;
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br/&gt;
/home/gho/code/pc3-mongo-cxx-driver/src/mongocxx/options/auto_encryption.hpp:254:29: note: in instantiation of template class &apos;std::_&lt;em&gt;1::optional&amp;lt;std::&lt;/em&gt;&lt;em&gt;1::pair&amp;lt;std::&lt;/em&gt;&lt;em&gt;1::basic_string&amp;lt;char, std::&lt;/em&gt;&lt;em&gt;1::char_traits&amp;lt;char&amp;gt;, std::&lt;/em&gt;&lt;em&gt;1::allocator&amp;lt;char&amp;gt; &amp;gt;, std::&lt;/em&gt;&lt;em&gt;1::basic_string&amp;lt;char, std::&lt;/em&gt;&lt;em&gt;1::char_traits&amp;lt;char&amp;gt;, std::&lt;/em&gt;_1::allocator&amp;lt;char&amp;gt; &amp;gt; &amp;gt; &amp;gt;&apos; requested here&lt;br/&gt;
 stdx::optional&amp;lt;ns_pair&amp;gt; _key_vault_namespace;&lt;br/&gt;
 ^&lt;br/&gt;
/usr/lib/llvm-10/bin/../include/c++/v1/iosfwd:209:32: note: template is declared here&lt;br/&gt;
 class _LIBCPP_TEMPLATE_VIS basic_string;&lt;br/&gt;
 ^&lt;/p&gt;</description>
                <environment>Using clang 10 on Debian and pass in -DCMAKE_CXX_STANDARD=17 and -DCMAKE_CXX_FLAGS=&amp;quot;-stdlib=libc++&amp;quot;</environment>
        <key id="1520771">CXX-2121</key>
            <summary>Compilation error with libc++ and C++ 17</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="13201">Fixed</resolution>
                                        <assignee username="roberto.sanchez@mongodb.com">Roberto Sanchez</assignee>
                                    <reporter username="magnus.l.hakansson@gmail.com">Magnus H&#229;kansson</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Oct 2020 14:17:05 +0000</created>
                <updated>Sat, 28 Oct 2023 11:26:58 +0000</updated>
                            <resolved>Sun, 25 Oct 2020 19:54:06 +0000</resolved>
                                    <version>3.6.0</version>
                                    <fixVersion>3.6.1</fixVersion>
                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3463172" author="kevin.albertson" created="Mon, 26 Oct 2020 15:13:22 +0000"  >&lt;p&gt;As an update, we&apos;ll apply that fix on a 3.6.1 release. &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/94715d8cf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;94715d8cf&lt;/a&gt; has been applied to the 3.6 branch and will be included in the upcoming 3.6.1 release.&lt;/p&gt;</comment>
                            <comment id="3462822" author="JIRAUSER1257354" created="Mon, 26 Oct 2020 11:46:22 +0000"  >&lt;p&gt;Great. Thanks. I will check more carefully on master next time.&lt;/p&gt;</comment>
                            <comment id="3462561" author="roberto.sanchez" created="Sun, 25 Oct 2020 19:54:06 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=magnus.l.hakansson%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;magnus.l.hakansson@gmail.com&quot;&gt;magnus.l.hakansson@gmail.com&lt;/a&gt;, the &lt;tt&gt;r3.6.0&lt;/tt&gt; tag and the &lt;tt&gt;#include &amp;lt;string&amp;gt;&lt;/tt&gt; workaround were the information I needed.  This particular issue was recently fixed in commit &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/94715d8cf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;94715d8cf&lt;/a&gt;.  At this moment, the next release that will include this fix will be 3.7.0.&lt;/p&gt;</comment>
                            <comment id="3460922" author="JIRAUSER1257354" created="Fri, 23 Oct 2020 10:50:53 +0000"  >&lt;p&gt;My colleague found that if we add #include &amp;lt;string&amp;gt; to auto_encryption.hpp and client_encryption.hpp it works.&lt;/p&gt;</comment>
                            <comment id="3460806" author="JIRAUSER1257354" created="Fri, 23 Oct 2020 07:33:06 +0000"  >&lt;p&gt;I&apos;m sorry for the missing pieces in the description.&lt;/p&gt;

&lt;p&gt;I checked out the tag &quot;r.3.6.0&quot;&lt;/p&gt;

&lt;p&gt;Run cmake with:&lt;/p&gt;

&lt;p&gt;cmake -DCMAKE_PREFIX_PATH=&quot;/home/gho/code/pc3-mongo-cxx-driver/packages/mongo-c-driver/Debug&quot; -DCMAKE_INSTALL_PREFIX=install -DBUILD_SHARED_LIBS=OFF -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_FLAGS=&quot;-stdlib=libc++&quot; -DCMAKE_VERBOSE_MAKEFILE=ON ..&lt;/p&gt;

&lt;p&gt;The once that make a difference for me between success/fail is&#160;&quot;-stdlib=libc++&quot;&lt;/p&gt;

&lt;p&gt;build with&lt;/p&gt;

&lt;p&gt;make -j 10 mongocxx_static&lt;/p&gt;

&lt;p&gt;Clang version:&lt;/p&gt;

&lt;p&gt;clang version 10.0.0-++20200412072704+50d7e5d5e7d-1~exp1~20200412053303.133&lt;/p&gt;

&lt;p&gt;The output I have attached in the ticket.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="3459322" author="roberto.sanchez" created="Thu, 22 Oct 2020 15:28:45 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=magnus.l.hakansson%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;magnus.l.hakansson@gmail.com&quot;&gt;magnus.l.hakansson@gmail.com&lt;/a&gt; I tried to reproduce this on Debian sid, but the full build succeeds for me.  Could you provide the complete &lt;tt&gt;cmake&lt;/tt&gt; command you are using, its full output, the complete build command, and its full output as well.  You can attach the output to this ticket or email it to me.  Additionally, please make sure that your CMake command includes the option &lt;tt&gt;-DCMAKE_VERBOSE_MAKEFILE=ON&lt;/tt&gt;.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="284210" name="cmake-output.txt" size="1766" author="magnus.l.hakansson@gmail.com" created="Fri, 23 Oct 2020 07:33:37 +0000"/>
                            <attachment id="284211" name="make-output.txt" size="88891" author="magnus.l.hakansson@gmail.com" created="Fri, 23 Oct 2020 07:33:37 +0000"/>
                    </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|hxzzdz:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>