<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:21:05 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>[SERVER-29511] MongoDB failed to build due to error C2512: &apos;boost::unordered::unordered_set&lt;mongo::LogicalSessionId,mongo::LogicalSessionId::Hash,std::equal_to&lt;T&gt;,std::allocator&lt;T&gt;&gt;&apos;: no appropriate default constructor available</title>
                <link>https://jira.mongodb.org/browse/SERVER-29511</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;MongoDB failed to buid due to error C2512: &apos;boost::unordered::unordered_set&amp;lt;mongo::LogicalSessionId,mongo::LogicalSessionId::Hash,std::equal_to&amp;lt;T&amp;gt;,std::allocator&amp;lt;T&amp;gt;&amp;gt;&apos;: no appropriate default constructor available. &lt;b&gt;This issue is caused by revision 4c3337a&lt;/b&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4c3337abe512a37c8e4cb22e16eafcd04bc5bd3a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4c3337abe512a37c8e4cb22e16eafcd04bc5bd3a&lt;/a&gt; Could you pleaes help to take a look at this? Thanks in advance!&lt;/p&gt;

&lt;p&gt;Some investigate on my side:&lt;br/&gt;
The related code in logical_seesion_cache_test.cpp&lt;br/&gt;
   &lt;b&gt;stdx::promise&amp;lt;int&amp;gt; hitRefresh;&lt;/b&gt;&lt;br/&gt;
    auto refreshFuture = hitRefresh.get_future();&lt;/p&gt;

&lt;p&gt;    // Advance time to first refresh point, check that refresh happens, and&lt;br/&gt;
    // that it includes both our records&lt;br/&gt;
    sessions()-&amp;gt;setRefreshHook(&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;amp;hitRefresh&amp;#93;&lt;/span&gt;(LogicalSessionIdSet sessions) -&amp;gt; LogicalSessionIdSet {&lt;br/&gt;
        hitRefresh.set_value(sessions.size());&lt;br/&gt;
        return {};&lt;br/&gt;
    });&lt;/p&gt;

&lt;p&gt;If we change the code as below. There is no error reported.&lt;br/&gt;
stdx::promise&amp;lt;&lt;b&gt;int&lt;/b&gt;&amp;gt; hitRefresh;*&lt;br/&gt;
to&lt;br/&gt;
stdx::promise&amp;lt;&lt;b&gt;LogicalSessionId&lt;/b&gt;&amp;gt; hitRefresh;*&lt;/p&gt;</description>
                <environment></environment>
        <key id="391564">SERVER-29511</key>
            <summary>MongoDB failed to build due to error C2512: &apos;boost::unordered::unordered_set&lt;mongo::LogicalSessionId,mongo::LogicalSessionId::Hash,std::equal_to&lt;T&gt;,std::allocator&lt;T&gt;&gt;&apos;: no appropriate default constructor available</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="-1">Unassigned</assignee>
                                    <reporter username="KarenHuang2017">KarenHuang [X]</reporter>
                        <labels>
                    </labels>
                <created>Thu, 8 Jun 2017 07:46:55 +0000</created>
                <updated>Mon, 30 Oct 2023 23:16:15 +0000</updated>
                            <resolved>Mon, 12 Jun 2017 17:44:08 +0000</resolved>
                                                    <fixVersion>3.5.9</fixVersion>
                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1590937" author="mark.benvenuto" created="Thu, 8 Jun 2017 14:02:20 +0000"  >&lt;p&gt;Actually, this was caught by are internal continuous integration system with VS 2015. The &quot;unknown compiler version&quot; messages were unrelated.&lt;/p&gt;

&lt;p&gt;The commit as been reverted:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/commit/12e54a966bde02389224b78db6500978ca68a54e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/12e54a966bde02389224b78db6500978ca68a54e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1590896" author="acm" created="Thu, 8 Jun 2017 13:41:12 +0000"  >&lt;p&gt;Also, is there a reason that you are building the master branch of MongoDB? It is under active development, so it will be found to be broken at times, and the resulting binaries should definitely not be used for production work. If you want to run MongoDB, it would be much better to download one of the pre-built packages from &lt;a href=&quot;https://www.mongodb.com/download-center&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.mongodb.com/download-center&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="1590889" author="mark.benvenuto" created="Thu, 8 Jun 2017 13:38:00 +0000"  >&lt;p&gt;I can only reproduce this error if I try compiling MongoDB with VS 2017 (which required several patches). It does not reproduce with VS 2015 Update 3.&lt;/p&gt;

&lt;p&gt;Try running &quot;&lt;tt&gt;python buildscripts\scons.py&lt;/tt&gt;&quot; instead of the install scons. The scons included in our source tree will never try to use VS 2017 at this time.&lt;/p&gt;</comment>
                            <comment id="1590864" author="milkie" created="Thu, 8 Jun 2017 12:57:23 +0000"  >&lt;p&gt;From these messages in the log, they suggest you are not actually using VS 2015&apos;s compiler:&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;Unknown compiler version - please run the configure tests and report the results&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;This message is output by Boost headers when you are running a Visual Studio compiler that is newer than the ones it can detect &amp;#8211; for example, this message appears when you are compiling with Visual Studio 2017.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="158063" name="mongodb_x64_build.log" size="4238052" author="KarenHuang2017" created="Thu, 8 Jun 2017 07:45:02 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 8 Jun 2017 12:57:23 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 35 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 35 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>andrew.morrow@mongodb.com</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>KarenHuang2017</customfieldvalue>
            <customfieldvalue>mark.benvenuto@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht8sef:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht0tw7:</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_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;*Environment: *&lt;br/&gt;
Windows Sever 2012 R2 + VS2015 Update 3 + &lt;b&gt;MongoDB master branch latest revision&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Reproduce steps:&lt;/b&gt;&lt;br/&gt;
 1. git clone -c core.autocrlf=true &lt;a href=&quot;https://github.com/mongodb/mongo&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo&lt;/a&gt; D:\MongoDB\src &lt;br/&gt;
 2. Open a VS 2015 x64 command prompt and browse to D:\MongoDB\src&lt;br/&gt;
 3. pip.exe install -r .\buildscripts\requirements.txt&lt;br/&gt;
 4. scons all -j4&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Acutal result:&lt;/b&gt;&lt;br/&gt;
src\mongo\db\logical_session_cache_test.cpp(247): error C2512: &apos;boost::unordered::unordered_set&amp;lt;mongo::LogicalSessionId,mongo::LogicalSessionId::Hash,std::equal_to&amp;lt;T&amp;gt;,std::allocator&amp;lt;T&amp;gt;&amp;gt;&apos;: no appropriate default constructor available&lt;br/&gt;
        with&lt;br/&gt;
        [&lt;br/&gt;
            T=mongo::LogicalSessionId&lt;br/&gt;
        ]&lt;br/&gt;
src\mongo\db\logical_session_cache_test.cpp(247): note: Constructor for class &apos;boost::unordered::unordered_set&amp;lt;mongo::LogicalSessionId,mongo::LogicalSessionId::Hash,std::equal_to&amp;lt;T&amp;gt;,std::allocator&amp;lt;T&amp;gt;&amp;gt;&apos; is declared &apos;explicit&apos;&lt;br/&gt;
        with&lt;br/&gt;
        [&lt;br/&gt;
            T=mongo::LogicalSessionId&lt;br/&gt;
        ]&lt;br/&gt;
scons: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;build\opt\mongo\db\logical_session_cache_test.obj&amp;#93;&lt;/span&gt; Error 2&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht8egv:</customfieldvalue>

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