<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:30:52 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-32649] got &quot;used vector type where scalar is required&quot; when using GCC 7 </title>
                <link>https://jira.mongodb.org/browse/SERVER-32649</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When compiling Mongo core components on a Power9 with GCC 7 (Advance Toolchain 11.02)&lt;br/&gt;
Got following error,&lt;br/&gt;
opt/at11.0/bin/gcc -o build/opt/third_party/wiredtiger/src/block/block_compact.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DPCRE_STATIC -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_DONT_PROVIDE_INTERRUPTIONS -DBOOST_THREAD_HAS_NO_EINTR_BUG -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -DHAVE_X86INTRIN_H -D_GNU_SOURCE -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Isrc/third_party/snappy-1.1.3 -Isrc/third_party/zlib-1.2.8 -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/opt/third_party/wiredtiger/build_linux -Isrc/third_party/wiredtiger/build_linux src/third_party/wiredtiger/src/block/block_compact.c&lt;br/&gt;
In file included from src/third_party/wiredtiger/src/include/wt_internal.h:384:0,&lt;br/&gt;
                 from src/third_party/wiredtiger/src/async/async_api.c:9:&lt;br/&gt;
src/third_party/wiredtiger/src/include/cursor.i: In function &apos;__cursor_func_init&apos;:&lt;br/&gt;
src/third_party/wiredtiger/src/include/cursor.i:234:6: error: used vector type where scalar is required&lt;br/&gt;
  if (reenter) {&lt;br/&gt;
      ^~~~~~~&lt;br/&gt;
In file included from src/third_party/wiredtiger/src/include/btree_cmp.i:11:0,&lt;br/&gt;
                 from src/third_party/wiredtiger/src/include/wt_internal.h:382,&lt;br/&gt;
                 from src/third_party/wiredtiger/src/async/async_op.c:9:&lt;/p&gt;

&lt;p&gt;The reason of this is that gcc used -DHAVE_X86INTRIN_H which was generated by &lt;br/&gt;
====================================================================================&lt;br/&gt;
./src/third_party/wiredtiger/SConscript&lt;/p&gt;

&lt;p&gt;if conf.CheckCHeader(&apos;x86intrin.h&apos;):&lt;br/&gt;
    conf.env.Append(CPPDEFINES=[&lt;br/&gt;
        &quot;HAVE_X86INTRIN_H&quot;&lt;br/&gt;
    ])&lt;/p&gt;

&lt;p&gt;=====================================================================================&lt;br/&gt;
I was told  GCC 7 and later version will have the file, x86intrin.h, included,  is there a way we could avoid it if the target platform is not x86?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;
</description>
                <environment></environment>
        <key id="481340">SERVER-32649</key>
            <summary>got &quot;used vector type where scalar is required&quot; when using GCC 7 </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="mark.benvenuto@mongodb.com">Mark Benvenuto</assignee>
                                    <reporter username="calvins@us.ibm.com">Calvin Sze</reporter>
                        <labels>
                    </labels>
                <created>Wed, 10 Jan 2018 22:37:23 +0000</created>
                <updated>Mon, 30 Oct 2023 23:09:23 +0000</updated>
                            <resolved>Tue, 16 Jan 2018 19:15:40 +0000</resolved>
                                                    <fixVersion>3.6.3</fixVersion>
                    <fixVersion>3.7.2</fixVersion>
                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1778317" author="xgen-internal-githook" created="Thu, 18 Jan 2018 21:08:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Mark Benvenuto&apos;, &apos;email&apos;: &apos;mark.benvenuto@mongodb.com&apos;, &apos;username&apos;: &apos;markbenvenuto&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32649&quot; title=&quot;got &amp;quot;used vector type where scalar is required&amp;quot; when using GCC 7 &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32649&quot;&gt;&lt;del&gt;SERVER-32649&lt;/del&gt;&lt;/a&gt; WiredTiger fails on non-x64 builds of new GCC&lt;/p&gt;

&lt;p&gt;(cherry picked from commit f971dee540b9c9f7d6a92e278900e8bb00014f92)&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/75a2492cdf0dd73e294bb1df1cfb9b4c5a38ee79&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/75a2492cdf0dd73e294bb1df1cfb9b4c5a38ee79&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1775495" author="mark.benvenuto" created="Tue, 16 Jan 2018 19:15:24 +0000"  >&lt;p&gt;I was always going to fix the issue. I just wanted to understand how it was hit, and which versions of the product to backport it to. We make the fixes in master typically, and then backport to older releases as needed. I will backport this fix to 3.6.&lt;/p&gt;

&lt;p&gt;Our process is similar to how GCC works. I tracked down how &lt;tt&gt;x86intrin.h&lt;/tt&gt; was introduced, and noticed that &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=wschmidt&quot; class=&quot;user-hover&quot; rel=&quot;wschmidt&quot;&gt;wschmidt&lt;/a&gt; backported the change to the gcc 7 branch used in the IBM Advance Toolchain.&lt;/p&gt;

&lt;p&gt;GCC Master:&lt;br/&gt;
&lt;a href=&quot;https://gcc.gnu.org/viewcvs/gcc?view=revision&amp;amp;revision=247988&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gcc.gnu.org/viewcvs/gcc?view=revision&amp;amp;revision=247988&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;IBM GCC 7 Branch:&lt;br/&gt;
&lt;a href=&quot;https://gcc.gnu.org/viewcvs/gcc?view=revision&amp;amp;revision=254527&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gcc.gnu.org/viewcvs/gcc?view=revision&amp;amp;revision=254527&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1775484" author="xgen-internal-githook" created="Tue, 16 Jan 2018 19:11:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;mark.benvenuto@mongodb.com&apos;, &apos;name&apos;: &apos;Mark Benvenuto&apos;, &apos;username&apos;: &apos;markbenvenuto&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32649&quot; title=&quot;got &amp;quot;used vector type where scalar is required&amp;quot; when using GCC 7 &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32649&quot;&gt;&lt;del&gt;SERVER-32649&lt;/del&gt;&lt;/a&gt; WiredTiger fails on non-x64 builds of new GCC&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f971dee540b9c9f7d6a92e278900e8bb00014f92&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f971dee540b9c9f7d6a92e278900e8bb00014f92&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1773466" author="bergner" created="Fri, 12 Jan 2018 22:56:49 +0000"  >&lt;p&gt;So applying the &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32161&quot; title=&quot;MongoDB 3.2+ fails to compile on PPC64LE with glibc 2.26+&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32161&quot;&gt;&lt;del&gt;SERVER-32161&lt;/del&gt;&lt;/a&gt; fix to the 3.6 release git checkout fixes the ucontext issue I ran into, so if that fix could be backported, then that takes care of that issue.  Note, I have not tried building anything older than v3.6.&lt;/p&gt;

&lt;p&gt;With that fix manually applied, then building again, without the --disable-warnins-as-errors, I see the following warning which causes an error:&lt;/p&gt;

&lt;p&gt;src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_conf.h:75:27: note: the ABI of passing aggregates with 16-byte alignment has changed in GCC 5&lt;br/&gt;
 #define bid128_sin        __bid128_sin^M&lt;br/&gt;
                           ^&lt;br/&gt;
src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_conf.h:1751:6: note: in definition of macro &apos;BID128_FUNCTION_ARG1&apos;&lt;br/&gt;
      fn_name (BID_UINT128 bid_##arg_name _RND_MODE_PARAM _EXC_FLAGS_PARAM  &amp;#94;M&lt;br/&gt;
      ^~~~~~~&lt;br/&gt;
src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sin.c:12430:23: note: in expansion of macro &apos;bid128_sin&apos;&lt;br/&gt;
 BID128_FUNCTION_ARG1 (bid128_sin, x)^M&lt;br/&gt;
                       ^~~~~~~~~~&lt;br/&gt;
scons: building terminated because of errors.&lt;/p&gt;

&lt;p&gt;This I cannot work around, so next, I built using the --disable-warnings-as-errors and I see this failure:&lt;/p&gt;

&lt;p&gt;/opt/at11.0/lib/gcc/powerpc64le-linux-gnu/7.2.1/include/mmintrin.h:52:2: warning: #warning &quot;Please read comment above.  Use -DNO_WARN_X86_INTRINSICS to disable this warning.&quot; &lt;span class=&quot;error&quot;&gt;&amp;#91;-Wcpp&amp;#93;&lt;/span&gt;&lt;br/&gt;
 #warning &quot;Please read comment above.  Use -DNO_WARN_X86_INTRINSICS to disable this warning.&quot;&lt;br/&gt;
  ^~~~~~~&lt;br/&gt;
In file included from src/third_party/wiredtiger/src/include/wt_internal.h:388:0,&lt;br/&gt;
                 from src/third_party/wiredtiger/src/block/block_open.c:9:&lt;br/&gt;
src/third_party/wiredtiger/src/include/cursor.i: In function &apos;__cursor_func_init&apos;:&lt;br/&gt;
src/third_party/wiredtiger/src/include/cursor.i:324:6: error: used vector type where scalar is required&lt;br/&gt;
  if (reenter) {&lt;br/&gt;
      ^~~~~~~&lt;br/&gt;
This is due to some hairy interaction between altivec.h and the X86 intrinsic compat headers.  Since we shouldn&apos;t be using the x86 intrinsic compat support at all, I think my patch above to SConscript should be applied.  Using the SConscript patch does allow me to build mongodb to completion.&lt;/p&gt;</comment>
                            <comment id="1772399" author="bergner" created="Fri, 12 Jan 2018 03:54:30 +0000"  >&lt;p&gt;Mark Benvenuto wrote:&lt;br/&gt;
&amp;gt; Are you compiling with &quot;--disable-warnings-as-errors&quot;?&lt;/p&gt;

&lt;p&gt;Yes, I inherited that from Calvin.&lt;/p&gt;

&lt;p&gt;&amp;gt; The other issue is a known issue: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32161&quot; title=&quot;MongoDB 3.2+ fails to compile on PPC64LE with glibc 2.26+&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32161&quot;&gt;&lt;del&gt;SERVER-32161&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Looking at my source, I don&apos;t seem to have that.  I&apos;ll try updating my source, and I suspect I won&apos;t need my ucontext change given the fix for the above.  Thanks for pointing me to it!&lt;/p&gt;</comment>
                            <comment id="1772158" author="calvins@us.ibm.com" created="Thu, 11 Jan 2018 22:07:47 +0000"  >&lt;p&gt;Yes,  I compiled with --disable-warnings-as-errors, since I encountered the same issue as, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-30711&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-30711&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1772120" author="mark.benvenuto" created="Thu, 11 Jan 2018 21:45:02 +0000"  >&lt;p&gt;Are you compiling with &lt;tt&gt;&quot;--disable-warnings-as-errors&quot;&lt;/tt&gt;?&lt;/p&gt;

&lt;p&gt;The other issue is a known issue: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32161&quot; title=&quot;MongoDB 3.2+ fails to compile on PPC64LE with glibc 2.26+&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32161&quot;&gt;&lt;del&gt;SERVER-32161&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When I tried this locally, we did not pick up &lt;tt&gt;&quot;x86intrin.h&quot;&lt;/tt&gt; because of the warning:&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;   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;/opt/at11.0/bin/gcc -o build/scons/opt/sconf_temp/conftest_67.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DPCRE_STATIC -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -DHAVE_FALLOCATE -DHAVE_SYNC_FILE_RANGE -Isrc/third_party/snappy-1.1.3 -Isrc/third_party/zlib-1.2.8 -Ibuild/opt/third_party/wiredtiger -Isrc/third_party/wiredtiger -I/data2/mark/opt/at11.0/lib/gcc/powerpc64le-linux-gnu/7.2.1/include -Ibuild/opt/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include build/scons/opt/sconf_temp/conftest_67.c&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;In file included from build/scons/opt/sconf_temp/conftest_67.c:2:0:&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;/data2/mark/opt/at11.0/lib/gcc/powerpc64le-linux-gnu/7.2.1/include/x86intrin.h:32:2: error: #warning &quot;Please read comment above.  Use -DNO_WARN_X86_INTRINSICS to disable this warning.&quot; [-Werror=cpp]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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; #warning &quot;Please read comment above.  Use -DNO_WARN_X86_INTRINSICS to disable this warning.&quot;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;  ^~~~~~~&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;In file included from /data2/mark/opt/at11.0/lib/gcc/powerpc64le-linux-gnu/7.2.1/include/x86intrin.h:39:0,&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;                 from build/scons/opt/sconf_temp/conftest_67.c:2:&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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-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;/data2/mark/opt/at11.0/lib/gcc/powerpc64le-linux-gnu/7.2.1/include/mmintrin.h:52:2: error: #warning &quot;Please read comment above.  Use -DNO_WARN_X86_INTRINSICS to disable this warning.&quot; [-Werror=cpp]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="1771755" author="bergner" created="Thu, 11 Jan 2018 17:42:56 +0000"  >&lt;p&gt;Ok, I have verified the fix above does allow both the AT10 and AT11 builds to succeed.&lt;/p&gt;</comment>
                            <comment id="1771723" author="bergner" created="Thu, 11 Jan 2018 17:15:59 +0000"  >&lt;p&gt;Ok, using AT11 to build mongodb git sources, I need an additional patch to fix a problem wrt ucontext usage in mongodb caused by a recent glibc change.  That glibc change is described here:&lt;/p&gt;

&lt;p&gt;    &lt;a href=&quot;https://sourceware.org/glibc/wiki/Release/2.26#Removal_of_.27struct_ucontext.27&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://sourceware.org/glibc/wiki/Release/2.26#Removal_of_.27struct_ucontext.27&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With the following patch, I get a successful build.  I do want to rerun the AT10 build to make sure the ucontext change doesn&apos;t affect that build.&lt;/p&gt;

&lt;p&gt;diff --git a/src/third_party/gperftools-2.5/src/stacktrace_powerpc-linux-inl.h b/src/third_party/gperftools-2.5/src/stacktrace_powerpc-linux-inl.h&lt;br/&gt;
index 5d16fa1..7654c53 100644&lt;br/&gt;
&amp;#8212; a/src/third_party/gperftools-2.5/src/stacktrace_powerpc-linux-inl.h&lt;br/&gt;
+++ b/src/third_party/gperftools-2.5/src/stacktrace_powerpc-linux-inl.h&lt;br/&gt;
@@ -51,8 +51,9 @@&lt;br/&gt;
 #include &amp;lt;sys/ucontext.h&amp;gt;&lt;br/&gt;
 #elif defined(HAVE_UCONTEXT_H)&lt;br/&gt;
 #include &amp;lt;ucontext.h&amp;gt;  // for ucontext_t&lt;br/&gt;
-#endif&lt;br/&gt;
+#else&lt;br/&gt;
 typedef ucontext ucontext_t;&lt;br/&gt;
+#endif&lt;/p&gt;

&lt;p&gt; // PowerPC64 Little Endian follows BE wrt. backchain, condition register,&lt;br/&gt;
 // and LR save area, so no need to adjust the reading struct.&lt;br/&gt;
diff --git a/src/third_party/wiredtiger/SConscript b/src/third_party/wiredtiger/SConscript&lt;br/&gt;
index 1e07852..9f8df66 100644&lt;br/&gt;
&amp;#8212; a/src/third_party/wiredtiger/SConscript&lt;br/&gt;
+++ b/src/third_party/wiredtiger/SConscript&lt;br/&gt;
@@ -36,7 +36,7 @@ if conf.CheckFunc(&quot;sync_file_range&quot;):&lt;br/&gt;
         &quot;HAVE_SYNC_FILE_RANGE&quot;&lt;br/&gt;
     ])&lt;/p&gt;

&lt;p&gt;-if conf.CheckCHeader(&apos;x86intrin.h&apos;):&lt;br/&gt;
+if (env&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;TARGET_ARCH&amp;#39;&amp;#93;&lt;/span&gt; == &apos;x86_64&apos; and conf.CheckCHeader(&apos;x86intrin.h&apos;)):&lt;br/&gt;
     conf.env.Append(CPPDEFINES=[&lt;br/&gt;
         &quot;HAVE_X86INTRIN_H&quot;&lt;br/&gt;
     ])&lt;/p&gt;

</comment>
                            <comment id="1771670" author="calvins@us.ibm.com" created="Thu, 11 Jan 2018 16:42:34 +0000"  >&lt;p&gt;Hi Mark,&lt;/p&gt;

&lt;p&gt;I tried both 3.4.4 and 3.6.1 Mongodb,  both have this issue.&lt;br/&gt;
The AT version I used is 11.0.2,  You are right, the 11.0 does not have the x86intrin.h file&lt;/p&gt;</comment>
                            <comment id="1771640" author="mark.benvenuto" created="Thu, 11 Jan 2018 16:29:56 +0000"  >&lt;p&gt;What version of MongoDB are you building? After I make the fix, I want to make sure I backport it the right release.&lt;/p&gt;</comment>
                            <comment id="1771544" author="bergner" created="Thu, 11 Jan 2018 15:41:24 +0000"  >&lt;p&gt;Slight typo (missing &apos;)&apos;) on the patch which I&apos;m testing now.&lt;/p&gt;

&lt;p&gt;diff --git a/src/third_party/wiredtiger/SConscript b/src/third_party/wiredtiger/SConscript&lt;br/&gt;
index 5d36706..529bd9f 100644&lt;br/&gt;
&amp;#8212; a/src/third_party/wiredtiger/SConscript&lt;br/&gt;
+++ b/src/third_party/wiredtiger/SConscript&lt;br/&gt;
@@ -41,7 +41,7 @@ if conf.CheckFunc(&quot;sync_file_range&quot;):&lt;br/&gt;
         &quot;HAVE_SYNC_FILE_RANGE&quot;&lt;br/&gt;
     ])&lt;/p&gt;

&lt;p&gt;-if conf.CheckCHeader(&apos;x86intrin.h&apos;):&lt;br/&gt;
+if (env&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;TARGET_ARCH&amp;#39;&amp;#93;&lt;/span&gt; == &apos;x86_64&apos; and conf.CheckCHeader(&apos;x86intrin.h&apos;)):&lt;br/&gt;
     conf.env.Append(CPPDEFINES=[&lt;br/&gt;
         &quot;HAVE_X86INTRIN_H&quot;&lt;br/&gt;
     ])&lt;/p&gt;</comment>
                            <comment id="1771042" author="bergner" created="Thu, 11 Jan 2018 01:48:56 +0000"  >&lt;p&gt;Please note that this is NOT an AT 11 issue.  Current GCC trunk (soon to be GCC 8) will also have the x86intrin.h file added as Bill mentions, so future distro compilers will also hit this issue.  This is noticed in AT 11, because the x86 intrinsic compat support was back ported to AT 11.&lt;/p&gt;

&lt;p&gt;That said, I had a look at SConscript, and maybe we can solve this problem with the following patch?&lt;/p&gt;

&lt;p&gt;&amp;#8212; src/third_party/wiredtiger/SConscript.orig	2018-01-10 19:35:50.532058937 -0600&lt;br/&gt;
+++ src/third_party/wiredtiger/SConscript	2018-01-10 19:37:23.992631076 -0600&lt;br/&gt;
@@ -41,7 +41,7 @@&lt;br/&gt;
         &quot;HAVE_SYNC_FILE_RANGE&quot;&lt;br/&gt;
     ])&lt;/p&gt;

&lt;p&gt;-if conf.CheckCHeader(&apos;x86intrin.h&apos;):&lt;br/&gt;
+if (env&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;TARGET_ARCH&amp;#39;&amp;#93;&lt;/span&gt; == &apos;x86_64&apos; and conf.CheckCHeader(&apos;x86intrin.h&apos;):&lt;br/&gt;
     conf.env.Append(CPPDEFINES=[&lt;br/&gt;
         &quot;HAVE_X86INTRIN_H&quot;&lt;br/&gt;
     ])&lt;/p&gt;

</comment>
                            <comment id="1770950" author="wschmidt" created="Wed, 10 Jan 2018 23:08:43 +0000"  >&lt;p&gt;The most recent version of AT 11.0 added this file as an aid to help people port x86 vector intrinsics to Power VSX intrinsics.  It should only be used when building an application if neither generic code nor Power-specific code is available.  It contains a #warning (soon to be changed to an #error) that including the file should only be done under control of a specific -D define.  Using an #error would have caught this problem sooner.  Usual configury practice is to test whether a function provided by an include file succeeds.  Would this be possible?&lt;/p&gt;</comment>
                            <comment id="1770907" author="mark.benvenuto" created="Wed, 10 Jan 2018 22:47:55 +0000"  >&lt;p&gt;What version of MongoDB are you compiling? Are you cross-compiling?&lt;/p&gt;

&lt;p&gt;The header file should only exist on x86 and so scons should not have defined that flag. I cannot find it in AT 11.0 for instance on my RHEL 7 PPC64LE box.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>15.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="15141"><![CDATA[v3.6]]></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>Wed, 10 Jan 2018 22:47:55 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 3 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, 3 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="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>wschmidt</customfieldvalue>
            <customfieldvalue>calvins@us.ibm.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>mark.benvenuto@mongodb.com</customfieldvalue>
            <customfieldvalue>bergner</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htnr3b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htf9db:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="2093">Platforms 2018-01-29</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|htnd7r:</customfieldvalue>

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