<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:00:50 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-42572] MongoDB failed to build due to error C2059: syntax error: &apos;volatile&apos; with MSVC on windows</title>
                <link>https://jira.mongodb.org/browse/SERVER-42572</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;MongoDB failed to build due to error C2059: syntax error: &apos;volatile&apos; with MSVC on windows. It can be reproduced on master branch latest revision. Could you please help to take a look at this issue? Thanks in advance!&lt;/p&gt;</description>
                <environment>VS 2017 + Windows Server 2016 + MongoDB master branch latest revision </environment>
        <key id="881879">SERVER-42572</key>
            <summary>MongoDB failed to build due to error C2059: syntax error: &apos;volatile&apos; with MSVC on windows</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="13202">Works as Designed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="spacelg">LinGao</reporter>
                        <labels>
                    </labels>
                <created>Thu, 1 Aug 2019 08:12:34 +0000</created>
                <updated>Fri, 27 Oct 2023 13:53:08 +0000</updated>
                            <resolved>Thu, 1 Aug 2019 12:27:25 +0000</resolved>
                                                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2358735" author="acm" created="Tue, 6 Aug 2019 01:14:12 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=spacelg&quot; class=&quot;user-hover&quot; rel=&quot;spacelg&quot;&gt;spacelg&lt;/a&gt; - Yes, we know. We are working on a fix in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42515&quot; title=&quot; Limit &amp;quot;thin&amp;quot; stack traces to non-embedded Linux&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42515&quot;&gt;&lt;del&gt;SERVER-42515&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="2357389" author="spacelg" created="Mon, 5 Aug 2019 10:41:41 +0000"  >&lt;p&gt;Hi Andrew,&lt;/p&gt;

&lt;p&gt;Thanks for your reply! Our main job is to test the VS compiler with open source projects. And we asked the MSVC team about this issue, they said that the code uses GCC extension which is not supported by MSVC. So the error is by design. as below:&lt;/p&gt;

&lt;p&gt;void f()&lt;/p&gt;

{

asm volatile(&quot;&quot;);

}

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;It still can be reproduced on master branch latest revision. Could you please provide a work around to us? Thanks a lot!&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Lin&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="2354008" author="acm" created="Thu, 1 Aug 2019 12:27:25 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=spacelg&quot; class=&quot;user-hover&quot; rel=&quot;spacelg&quot;&gt;spacelg&lt;/a&gt; - We try hard not to break master but it is where active development happens and sometimes things get checked in that shouldn&apos;t have. They usually get reverted fairly quickly when the issue is detected by our CI system. But accidents happen and sometimes master will be broken on certain commits or for certain windows of time.&lt;/p&gt;

&lt;p&gt;Since this doesn&apos;t represent a bug in a stable version of MongoDB, I&apos;m going to close this ticket.&lt;/p&gt;

&lt;p&gt;Please note that builds made from the master branch shouldn&apos;t be used for any production purpose.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="225863" name="log_x64_build.log" size="5999309" author="spacelg" created="Thu, 1 Aug 2019 08:12:15 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 1 Aug 2019 12:27:25 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 27 weeks, 2 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>
                            4 years, 27 weeks, 2 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>spacelg</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hvikxb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hv7jnj:</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;Reproduce steps:&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 2017 x64 command prompt and browse to D:\MongoDB\src&lt;br/&gt;
 3. pip.exe install --user -r .\etc\pip\dev-requirements.txt&lt;br/&gt;
 4. python.exe buildscripts/scons.py all -j4&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Acutal result:&lt;/p&gt;

&lt;p&gt;cl /Fobuild\opt\mongo\util\diagnostic_info_test.obj /c src\mongo\util\diagnostic_info_test.cpp /TP /nologo /EHsc /W3 /wd4068 /wd4244 /wd4267 /wd4290 /wd4351 /wd4355 /wd4373 /wd4800 /wd5041 /wd4291 /we4013 /we4099 /we4930 /WX /errorReport:none /MD /O2 /Oy- /bigobj /utf-8 /permissive- /Zc:externC- /Zc:__cplusplus /Zc:sizedDealloc /volatile:iso /diagnostics:caret /std:c++17 /Gw /Gy /Zc:inline /DSAFEINT_USE_INTRINSICS=0 /DPCRE_STATIC /DNDEBUG /DBOOST_ALL_NO_LIB /D_UNICODE /DUNICODE /D_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING /D_SILENCE_CXX17_OLD_ALLOCATOR_MEMBERS_DEPRECATION_WARNING /D_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING /D_CONSOLE /D_CRT_SECURE_NO_WARNINGS /D_SCL_SECURE_NO_WARNINGS /D_WIN32_WINNT=0x0601 /DBOOST_USE_WINAPI_VERSION=0x0601 /DNTDDI_VERSION=0x06010000 /DBOOST_THREAD_VERSION=5 /DBOOST_THREAD_USES_DATETIME /DBOOST_SYSTEM_NO_DEPRECATED /DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS /DBOOST_ENABLE_ASSERT_DEBUG_HANDLER /DBOOST_LOG_NO_SHORTHAND_NAMES /DABSL_FORCE_ALIGNED_ACCESS /DUCONFIG_NO_BREAK_ITERATION=1 /DUCONFIG_NO_FORMATTING=1 /DUCONFIG_NO_TRANSLITERATION=1 /DUCONFIG_NO_REGULAR_EXPRESSIONS=1 /DU_CHARSET_IS_UTF8=1 /DU_DISABLE_RENAMING=1 /DU_STATIC_IMPLEMENTATION=1 /DU_USING_ICU_NAMESPACE=0 /Isrc\third_party\icu4c-57.1\source\common /Isrc\third_party\icu4c-57.1\source\i18n /Isrc\third_party\asio-master\asio\include /Isrc\third_party\SafeInt /Isrc\third_party\pcre-8.42 /Isrc\third_party\fmt\dist\include /Isrc\third_party\boost-1.70.0 /Isrc\third_party\abseil-cpp-master\abseil-cpp /Ibuild\opt /Isrc /Z7&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;src\mongo\util\diagnostic_info_test.cpp(143,9): error C2059: syntax error: &apos;volatile&apos;&lt;br/&gt;
 asm volatile(&quot;&quot;); // NOLINT&lt;br/&gt;
 ^&lt;br/&gt;
scons: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;build\opt\mongo\util\diagnostic_info_test.obj&amp;#93;&lt;/span&gt; Error 2&lt;br/&gt;
scons: building terminated because of errors.&lt;br/&gt;
build\opt\mongo\util\diagnostic_info_test.obj failed: Error 2&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;command took 8324 seconds&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&#160;&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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hvi76n:</customfieldvalue>

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