<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Redhat10 fails to compile  intel / linux-sgx project due to high gcc and glibc version in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Redhat10-fails-to-compile-intel-linux-sgx-project-due-to-high/m-p/1666165#M6315</link>
    <description>&lt;P&gt;We tried to test linux-sgx on redhat 10. When compile linux sgx&amp;nbsp;"&lt;A href="https://github.com/intel/linux-sgx" target="_blank"&gt;https://github.com/intel/linux-sgx&lt;/A&gt;"&amp;nbsp;on redhat10(gcc14), we meet many compile error due to gcc14 add more&amp;nbsp;code inspection rules, after solving these compile error by adding CFLAGS and CXXFLAGS，such as:&lt;/P&gt;&lt;P&gt;CFLAGS &amp;nbsp; += -std=c99 -Wno-error=implicit-int -Wno-error=declaration-missing-parameter-type CXXFLAGS += $(ENCLAVE_CXXFLAGS) -fno-exceptions -fno-rtti -Wno-error=implicit-int -Wno-error=declaration-missing-parameter-type&lt;/P&gt;&lt;P&gt;But there are other compile errors occur when go ahead.&amp;nbsp;Can someone help take a look at this issue?&lt;/P&gt;&lt;P&gt;parallel-tests: installing 'config/test-driver'&lt;BR /&gt;&lt;SPAN&gt;autoreconf: Leaving directory '.'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking build system type... x86_64-pc-linux-gnu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking host system type... x86_64-pc-linux-gnu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking target system type... x86_64-pc-linux-gnu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking for a BSD-compatible install... /usr/bin/install -c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking whether build environment is sane... yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking for a race-free mkdir -p... /usr/bin/mkdir -p&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking for gawk... gawk&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking whether make sets $(MAKE)... yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking whether make supports nested variables... yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking whether to enable maintainer-specific portions of Makefiles... no&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking for gcc... gcc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking whether the C compiler works... no&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;configure: error: in `/home/linux-sgx/sdk/cpprt/linux/libunwind':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;configure: error: C compiler cannot create executables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See `config.log' for more details&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sed: can't read include/config.h: No such file or directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make&lt;/SPAN&gt;&lt;SPAN class=""&gt;[3]&lt;/SPAN&gt;&lt;SPAN&gt;: ***&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;[Makefile:84: libunwind]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Error 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make&lt;/SPAN&gt;&lt;SPAN class=""&gt;[3]&lt;/SPAN&gt;&lt;SPAN&gt;: Leaving directory '/home/linux-sgx/sdk/cpprt'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make&lt;/SPAN&gt;&lt;SPAN class=""&gt;[2]&lt;/SPAN&gt;&lt;SPAN&gt;: ***&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;[Makefile.source:162: cpprt]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Error 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make&lt;/SPAN&gt;&lt;SPAN class=""&gt;[2]&lt;/SPAN&gt;&lt;SPAN&gt;: Leaving directory '/home/linux-sgx/sdk'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make&lt;/SPAN&gt;&lt;SPAN class=""&gt;[1]&lt;/SPAN&gt;&lt;SPAN&gt;: ***&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;[Makefile:50: all]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Error 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make&lt;/SPAN&gt;&lt;SPAN class=""&gt;[1]&lt;/SPAN&gt;&lt;SPAN&gt;: Leaving directory '/home/linux-sgx/sdk'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make: ***&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;[Makefile:80: sdk]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Error 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;^C&lt;/SPAN&gt;&lt;SPAN class=""&gt;[1]&lt;/SPAN&gt;&lt;SPAN&gt;+ &amp;nbsp;Exit 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nohup make sdk&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i checked the config.log and it shows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thread model: posix,&lt;BR /&gt;Supported LTO compression algorithms: zlib zstd&lt;BR /&gt;gcc version 14.2.1 20250110 (Red Hat 14.2.1-7) (GCC)&lt;BR /&gt;... rest of stderr output deleted ...&lt;BR /&gt;configure:4618: $? = 0&lt;BR /&gt;configure:4607: gcc -V &amp;gt;&amp;amp;5&lt;BR /&gt;gcc: error: unrecognized command-line option '-V'&lt;BR /&gt;gcc: fatal error: no input files&lt;BR /&gt;compilation terminated.&lt;BR /&gt;configure:4618: $? = 1&lt;BR /&gt;configure:4607: gcc -qversion &amp;gt;&amp;amp;5&lt;BR /&gt;gcc: error: unrecognized command-line option '&lt;DEL&gt;qversion'; did you mean '&lt;/DEL&gt;-version'?&lt;BR /&gt;gcc: fatal error: no input files&lt;BR /&gt;compilation terminated.&lt;BR /&gt;configure:4618: $? = 1&lt;BR /&gt;configure:4607: gcc -version &amp;gt;&amp;amp;5&lt;BR /&gt;gcc: error: unrecognized command-line option '-version'&lt;BR /&gt;gcc: fatal error: no input files&lt;BR /&gt;compilation terminated.&lt;BR /&gt;configure:4618: $? = 1&lt;BR /&gt;configure:4643: checking whether the C compiler works&lt;BR /&gt;configure:4665: gcc &amp;nbsp; &amp;nbsp;conftest.c &amp;nbsp;&amp;gt;&amp;amp;5&lt;BR /&gt;/usr/local/bin/ld: /lib64/libc.so.6: unknown type&amp;nbsp;&lt;SPAN class=""&gt;[0x13]&lt;/SPAN&gt;&amp;nbsp;section `.relr.dyn'&lt;BR /&gt;/usr/local/bin/ld: skipping incompatible /lib64/libc.so.6 when searching for /lib64/libc.so.6&lt;BR /&gt;/usr/local/bin/ld: cannot find /lib64/libc.so.6&lt;BR /&gt;/usr/local/bin/ld: /lib64/libc.so.6: unknown type&amp;nbsp;&lt;SPAN class=""&gt;[0x13]&lt;/SPAN&gt;&amp;nbsp;section `.relr.dyn'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/usr/local/bin/ld: skipping incompatible /lib64/libc.so.6 when searching for /lib64/libc.so.6&lt;BR /&gt;/usr/local/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type&amp;nbsp;&lt;SPAN class=""&gt;[0x13]&lt;/SPAN&gt;&amp;nbsp;section `.relr.dyn'&lt;BR /&gt;/usr/local/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2&lt;BR /&gt;/usr/local/bin/ld: cannot find /lib64/ld-linux-x86-64.so.2&lt;BR /&gt;/usr/local/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type&amp;nbsp;&lt;SPAN class=""&gt;[0x13]&lt;/SPAN&gt;&amp;nbsp;section `.relr.dyn'&lt;BR /&gt;/usr/local/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2&lt;BR /&gt;collect2: error: ld returned 1 exit status&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i uploade the config.log and configure file on attachment.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2025 07:40:11 GMT</pubDate>
    <dc:creator>Dong_wang</dc:creator>
    <dc:date>2025-02-14T07:40:11Z</dc:date>
    <item>
      <title>Redhat10 fails to compile  intel / linux-sgx project due to high gcc and glibc version</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Redhat10-fails-to-compile-intel-linux-sgx-project-due-to-high/m-p/1666165#M6315</link>
      <description>&lt;P&gt;We tried to test linux-sgx on redhat 10. When compile linux sgx&amp;nbsp;"&lt;A href="https://github.com/intel/linux-sgx" target="_blank"&gt;https://github.com/intel/linux-sgx&lt;/A&gt;"&amp;nbsp;on redhat10(gcc14), we meet many compile error due to gcc14 add more&amp;nbsp;code inspection rules, after solving these compile error by adding CFLAGS and CXXFLAGS，such as:&lt;/P&gt;&lt;P&gt;CFLAGS &amp;nbsp; += -std=c99 -Wno-error=implicit-int -Wno-error=declaration-missing-parameter-type CXXFLAGS += $(ENCLAVE_CXXFLAGS) -fno-exceptions -fno-rtti -Wno-error=implicit-int -Wno-error=declaration-missing-parameter-type&lt;/P&gt;&lt;P&gt;But there are other compile errors occur when go ahead.&amp;nbsp;Can someone help take a look at this issue?&lt;/P&gt;&lt;P&gt;parallel-tests: installing 'config/test-driver'&lt;BR /&gt;&lt;SPAN&gt;autoreconf: Leaving directory '.'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking build system type... x86_64-pc-linux-gnu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking host system type... x86_64-pc-linux-gnu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking target system type... x86_64-pc-linux-gnu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking for a BSD-compatible install... /usr/bin/install -c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking whether build environment is sane... yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking for a race-free mkdir -p... /usr/bin/mkdir -p&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking for gawk... gawk&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking whether make sets $(MAKE)... yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking whether make supports nested variables... yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking whether to enable maintainer-specific portions of Makefiles... no&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking for gcc... gcc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checking whether the C compiler works... no&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;configure: error: in `/home/linux-sgx/sdk/cpprt/linux/libunwind':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;configure: error: C compiler cannot create executables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See `config.log' for more details&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sed: can't read include/config.h: No such file or directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make&lt;/SPAN&gt;&lt;SPAN class=""&gt;[3]&lt;/SPAN&gt;&lt;SPAN&gt;: ***&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;[Makefile:84: libunwind]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Error 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make&lt;/SPAN&gt;&lt;SPAN class=""&gt;[3]&lt;/SPAN&gt;&lt;SPAN&gt;: Leaving directory '/home/linux-sgx/sdk/cpprt'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make&lt;/SPAN&gt;&lt;SPAN class=""&gt;[2]&lt;/SPAN&gt;&lt;SPAN&gt;: ***&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;[Makefile.source:162: cpprt]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Error 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make&lt;/SPAN&gt;&lt;SPAN class=""&gt;[2]&lt;/SPAN&gt;&lt;SPAN&gt;: Leaving directory '/home/linux-sgx/sdk'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make&lt;/SPAN&gt;&lt;SPAN class=""&gt;[1]&lt;/SPAN&gt;&lt;SPAN&gt;: ***&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;[Makefile:50: all]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Error 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make&lt;/SPAN&gt;&lt;SPAN class=""&gt;[1]&lt;/SPAN&gt;&lt;SPAN&gt;: Leaving directory '/home/linux-sgx/sdk'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make: ***&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;[Makefile:80: sdk]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Error 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;^C&lt;/SPAN&gt;&lt;SPAN class=""&gt;[1]&lt;/SPAN&gt;&lt;SPAN&gt;+ &amp;nbsp;Exit 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nohup make sdk&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i checked the config.log and it shows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thread model: posix,&lt;BR /&gt;Supported LTO compression algorithms: zlib zstd&lt;BR /&gt;gcc version 14.2.1 20250110 (Red Hat 14.2.1-7) (GCC)&lt;BR /&gt;... rest of stderr output deleted ...&lt;BR /&gt;configure:4618: $? = 0&lt;BR /&gt;configure:4607: gcc -V &amp;gt;&amp;amp;5&lt;BR /&gt;gcc: error: unrecognized command-line option '-V'&lt;BR /&gt;gcc: fatal error: no input files&lt;BR /&gt;compilation terminated.&lt;BR /&gt;configure:4618: $? = 1&lt;BR /&gt;configure:4607: gcc -qversion &amp;gt;&amp;amp;5&lt;BR /&gt;gcc: error: unrecognized command-line option '&lt;DEL&gt;qversion'; did you mean '&lt;/DEL&gt;-version'?&lt;BR /&gt;gcc: fatal error: no input files&lt;BR /&gt;compilation terminated.&lt;BR /&gt;configure:4618: $? = 1&lt;BR /&gt;configure:4607: gcc -version &amp;gt;&amp;amp;5&lt;BR /&gt;gcc: error: unrecognized command-line option '-version'&lt;BR /&gt;gcc: fatal error: no input files&lt;BR /&gt;compilation terminated.&lt;BR /&gt;configure:4618: $? = 1&lt;BR /&gt;configure:4643: checking whether the C compiler works&lt;BR /&gt;configure:4665: gcc &amp;nbsp; &amp;nbsp;conftest.c &amp;nbsp;&amp;gt;&amp;amp;5&lt;BR /&gt;/usr/local/bin/ld: /lib64/libc.so.6: unknown type&amp;nbsp;&lt;SPAN class=""&gt;[0x13]&lt;/SPAN&gt;&amp;nbsp;section `.relr.dyn'&lt;BR /&gt;/usr/local/bin/ld: skipping incompatible /lib64/libc.so.6 when searching for /lib64/libc.so.6&lt;BR /&gt;/usr/local/bin/ld: cannot find /lib64/libc.so.6&lt;BR /&gt;/usr/local/bin/ld: /lib64/libc.so.6: unknown type&amp;nbsp;&lt;SPAN class=""&gt;[0x13]&lt;/SPAN&gt;&amp;nbsp;section `.relr.dyn'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/usr/local/bin/ld: skipping incompatible /lib64/libc.so.6 when searching for /lib64/libc.so.6&lt;BR /&gt;/usr/local/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type&amp;nbsp;&lt;SPAN class=""&gt;[0x13]&lt;/SPAN&gt;&amp;nbsp;section `.relr.dyn'&lt;BR /&gt;/usr/local/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2&lt;BR /&gt;/usr/local/bin/ld: cannot find /lib64/ld-linux-x86-64.so.2&lt;BR /&gt;/usr/local/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type&amp;nbsp;&lt;SPAN class=""&gt;[0x13]&lt;/SPAN&gt;&amp;nbsp;section `.relr.dyn'&lt;BR /&gt;/usr/local/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2&lt;BR /&gt;collect2: error: ld returned 1 exit status&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i uploade the config.log and configure file on attachment.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 07:40:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Redhat10-fails-to-compile-intel-linux-sgx-project-due-to-high/m-p/1666165#M6315</guid>
      <dc:creator>Dong_wang</dc:creator>
      <dc:date>2025-02-14T07:40:11Z</dc:date>
    </item>
  </channel>
</rss>

