<?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 Failed to compile SampleCode/SealedData on ubuntu 16.04 in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Failed-to-compile-SampleCode-SealedData-on-ubuntu-16-04/m-p/1128088#M1834</link>
    <description>&lt;P&gt;OS: ubuntu 16.04&lt;/P&gt;&lt;P&gt;GCC/G++: 5.5 and 7.4&lt;/P&gt;&lt;P&gt;SGX SDK:&amp;nbsp;2.6.100.51363&lt;/P&gt;&lt;P&gt;When compile the sample code(path/to/sgx-sdk/installation/directory/SampleCode/SealedData) on ubuntu 16.04, run below command:&lt;/P&gt;&lt;P&gt;make SGX_MODE=SIM&lt;/P&gt;&lt;P&gt;I met some errors like below:&lt;/P&gt;&lt;P&gt;make[1]: Entering directory '/usr/local/intel-sgx-sdk/sgxsdk/SampleCode/SealedData'&lt;BR /&gt;GEN &amp;nbsp;=&amp;gt; &amp;nbsp;DRM_app/DRM_enclave_u.h&lt;BR /&gt;CC &amp;nbsp; &amp;lt;= &amp;nbsp;DRM_app/DRM_enclave_u.c&lt;BR /&gt;In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/gthr.h:148:0,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from /usr/include/c++/5/ext/atomicity.h:35,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from /usr/include/c++/5/bits/ios_base.h:39,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from /usr/include/c++/5/ios:42,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from /usr/include/c++/5/ostream:38,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from /usr/include/c++/5/iostream:39,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from DRM_app/TimeBasedDRM.cpp:38:&lt;BR /&gt;/usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h:101:1: error: ‘pthread_once’ was not declared in this scope&lt;BR /&gt;&amp;nbsp;__gthrw(pthread_once)&lt;BR /&gt;&amp;nbsp;^&lt;BR /&gt;/usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h:102:1: error: ‘pthread_getspecific’ was not declared in this scope&lt;BR /&gt;&amp;nbsp;__gthrw(pthread_getspecific)&lt;BR /&gt;&amp;nbsp;^&lt;BR /&gt;/usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h:103:1: error: ‘pthread_setspecific’ was not declared in this scope&lt;BR /&gt;&amp;nbsp;__gthrw(pthread_setspecific)&lt;BR /&gt;&amp;nbsp;^&lt;BR /&gt;/usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h:105:1: error: ‘pthread_create’ was not declared in this scope&lt;BR /&gt;&amp;nbsp;__gthrw(pthread_create)&lt;BR /&gt;&amp;nbsp;^&lt;/P&gt;&lt;P&gt;........................&lt;/P&gt;&lt;P&gt;/usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h: In function ‘int __gthread_create(__gthread_t*, void* (*)(void*), void*)’:&lt;BR /&gt;/usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h:662:68: error: ‘__gthrw_pthread_create’ cannot be used as a function&lt;BR /&gt;&amp;nbsp; &amp;nbsp;return __gthrw_(pthread_create) (__threadid, NULL, __func, __args);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^&lt;BR /&gt;/usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h: In function ‘int __gthread_join(__gthread_t, void**)’:&lt;BR /&gt;/usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h:668:57: error: ‘__gthrw_pthread_join’ cannot be used as a function&lt;BR /&gt;&amp;nbsp; &amp;nbsp;return __gthrw_(pthread_join) (__threadid, __value_ptr);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;........................&lt;/P&gt;&lt;P&gt;Makefile:234: recipe for target 'DRM_app/TimeBasedDRM.o' failed&lt;BR /&gt;make[1]: *** [DRM_app/TimeBasedDRM.o] Error 1&lt;BR /&gt;make[1]: Leaving directory '/usr/local/intel-sgx-sdk/sgxsdk/SampleCode/SealedData'&lt;BR /&gt;Makefile:186: recipe for target 'all' failed&lt;BR /&gt;make: *** [all] Error 2&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to upgrade gcc and g++ version to 7.4 and recompile, but same errors still met.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2019 09:41:18 GMT</pubDate>
    <dc:creator>ycc__ccy</dc:creator>
    <dc:date>2019-07-15T09:41:18Z</dc:date>
    <item>
      <title>Failed to compile SampleCode/SealedData on ubuntu 16.04</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Failed-to-compile-SampleCode-SealedData-on-ubuntu-16-04/m-p/1128088#M1834</link>
      <description>&lt;P&gt;OS: ubuntu 16.04&lt;/P&gt;&lt;P&gt;GCC/G++: 5.5 and 7.4&lt;/P&gt;&lt;P&gt;SGX SDK:&amp;nbsp;2.6.100.51363&lt;/P&gt;&lt;P&gt;When compile the sample code(path/to/sgx-sdk/installation/directory/SampleCode/SealedData) on ubuntu 16.04, run below command:&lt;/P&gt;&lt;P&gt;make SGX_MODE=SIM&lt;/P&gt;&lt;P&gt;I met some errors like below:&lt;/P&gt;&lt;P&gt;make[1]: Entering directory '/usr/local/intel-sgx-sdk/sgxsdk/SampleCode/SealedData'&lt;BR /&gt;GEN &amp;nbsp;=&amp;gt; &amp;nbsp;DRM_app/DRM_enclave_u.h&lt;BR /&gt;CC &amp;nbsp; &amp;lt;= &amp;nbsp;DRM_app/DRM_enclave_u.c&lt;BR /&gt;In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/gthr.h:148:0,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from /usr/include/c++/5/ext/atomicity.h:35,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from /usr/include/c++/5/bits/ios_base.h:39,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from /usr/include/c++/5/ios:42,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from /usr/include/c++/5/ostream:38,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from /usr/include/c++/5/iostream:39,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from DRM_app/TimeBasedDRM.cpp:38:&lt;BR /&gt;/usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h:101:1: error: ‘pthread_once’ was not declared in this scope&lt;BR /&gt;&amp;nbsp;__gthrw(pthread_once)&lt;BR /&gt;&amp;nbsp;^&lt;BR /&gt;/usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h:102:1: error: ‘pthread_getspecific’ was not declared in this scope&lt;BR /&gt;&amp;nbsp;__gthrw(pthread_getspecific)&lt;BR /&gt;&amp;nbsp;^&lt;BR /&gt;/usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h:103:1: error: ‘pthread_setspecific’ was not declared in this scope&lt;BR /&gt;&amp;nbsp;__gthrw(pthread_setspecific)&lt;BR /&gt;&amp;nbsp;^&lt;BR /&gt;/usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h:105:1: error: ‘pthread_create’ was not declared in this scope&lt;BR /&gt;&amp;nbsp;__gthrw(pthread_create)&lt;BR /&gt;&amp;nbsp;^&lt;/P&gt;&lt;P&gt;........................&lt;/P&gt;&lt;P&gt;/usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h: In function ‘int __gthread_create(__gthread_t*, void* (*)(void*), void*)’:&lt;BR /&gt;/usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h:662:68: error: ‘__gthrw_pthread_create’ cannot be used as a function&lt;BR /&gt;&amp;nbsp; &amp;nbsp;return __gthrw_(pthread_create) (__threadid, NULL, __func, __args);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^&lt;BR /&gt;/usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h: In function ‘int __gthread_join(__gthread_t, void**)’:&lt;BR /&gt;/usr/include/x86_64-linux-gnu/c++/5/bits/gthr-default.h:668:57: error: ‘__gthrw_pthread_join’ cannot be used as a function&lt;BR /&gt;&amp;nbsp; &amp;nbsp;return __gthrw_(pthread_join) (__threadid, __value_ptr);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;........................&lt;/P&gt;&lt;P&gt;Makefile:234: recipe for target 'DRM_app/TimeBasedDRM.o' failed&lt;BR /&gt;make[1]: *** [DRM_app/TimeBasedDRM.o] Error 1&lt;BR /&gt;make[1]: Leaving directory '/usr/local/intel-sgx-sdk/sgxsdk/SampleCode/SealedData'&lt;BR /&gt;Makefile:186: recipe for target 'all' failed&lt;BR /&gt;make: *** [all] Error 2&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to upgrade gcc and g++ version to 7.4 and recompile, but same errors still met.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 09:41:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Failed-to-compile-SampleCode-SealedData-on-ubuntu-16-04/m-p/1128088#M1834</guid>
      <dc:creator>ycc__ccy</dc:creator>
      <dc:date>2019-07-15T09:41:18Z</dc:date>
    </item>
    <item>
      <title>After I deleted the file "</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Failed-to-compile-SampleCode-SealedData-on-ubuntu-16-04/m-p/1128089#M1835</link>
      <description>&lt;P&gt;After I deleted the file "/path/to/sgx-sdk/install/dir/include/pthread.h", compile successfully.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 07:50:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Failed-to-compile-SampleCode-SealedData-on-ubuntu-16-04/m-p/1128089#M1835</guid>
      <dc:creator>ycc__ccy</dc:creator>
      <dc:date>2019-07-17T07:50:28Z</dc:date>
    </item>
  </channel>
</rss>

