<?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 Re:What configuration can cause error when resolving libcxx dependencies? in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/What-configuration-can-cause-error-when-resolving-libcxx/m-p/1261582#M4354</link>
    <description>&lt;P&gt;Hello l_r,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Do you still need help with this issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You should follow Cxx11SGXDemo as closely as possible.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To help us troubleshoot, send your full Makefile.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jesus G.&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 05 Mar 2021 00:01:08 GMT</pubDate>
    <dc:creator>JesusG_Intel</dc:creator>
    <dc:date>2021-03-05T00:01:08Z</dc:date>
    <item>
      <title>What configuration can cause error when resolving libcxx dependencies?</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/What-configuration-can-cause-error-when-resolving-libcxx/m-p/1259827#M4346</link>
      <description>&lt;P&gt;I have started to work on an already existing SGX Application, with an already existing Makefile, that is for 90% the same as the one in the CXX11SGXDemo, but of course has some modifications (Important ones below).&lt;/P&gt;
&lt;P&gt;I wanted to use some standard c++ classes (like vector), and I can compile the small snippets that I wrote when I include them in the CXX11SGX Demo, but In this project, the linker gives the error&lt;/P&gt;
&lt;P&gt;/usr/bin/ld: Udfs/extended-data-types.o: in function `std::__1::vector&amp;lt;row_t, std::__1::allocator&amp;lt;row_t&amp;gt; &amp;gt;::allocate(unsigned long)':&lt;BR /&gt;/home/leonhard/sgx/sdk/sgxsdk/include/libcxx/vector:930: undefined reference to `std::__1::__vector_base_common&amp;lt;true&amp;gt;::__throw_length_error() const'&lt;BR /&gt;/usr/bin/ld: Udfs/extended-data-types.o: in function `std::__1::allocator&amp;lt;row_t&amp;gt;::allocate(unsigned long, void const*)':&lt;BR /&gt;/home/leonhard/sgx/sdk/sgxsdk/include/libcxx/memory:1740: undefined reference to `std::bad_alloc::bad_alloc()'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which is what I get when I try to include the line&lt;/P&gt;
&lt;PRE style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'JetBrains Mono',monospace; font-size: 9.8pt;"&gt;&lt;SPAN style="color: #cc7832;"&gt;auto&lt;/SPAN&gt;* rows = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;std::vector&amp;lt;row_t&amp;gt;(underlying-&amp;gt;tuples&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;underlying-&amp;gt;tuples + underlying-&amp;gt;num_tuples * &lt;SPAN style="color: #cc7832;"&gt;sizeof&lt;/SPAN&gt;(row_t))&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Other small snippets in the similar spirit cause similar errors, all in relation to exceptions from &amp;lt;new&amp;gt; or &amp;lt;stdexcept&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The biggest difference in the makefile are (probably) the link flags:&lt;/P&gt;
&lt;PRE style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'JetBrains Mono',monospace; font-size: 9.8pt;"&gt;Enclave_Link_Flags := &lt;SPAN style="color: #cc7832;"&gt;$&lt;/SPAN&gt;(Enclave_Security_Link_Flags) &lt;SPAN style="color: #cc7832;"&gt;\&lt;BR /&gt;&lt;/SPAN&gt;    -Wl,--no-undefined -nostdlib -nodefaultlibs -nostartfiles -L&lt;SPAN style="color: #cc7832;"&gt;$&lt;/SPAN&gt;(SGX_TRUSTED_LIBRARY_PATH) &lt;SPAN style="color: #cc7832;"&gt;\&lt;BR /&gt;&lt;/SPAN&gt;   -Wl,--whole-archive -l&lt;SPAN style="color: #cc7832;"&gt;$&lt;/SPAN&gt;(Trts_Library_Name) -Wl,--no-whole-archive &lt;SPAN style="color: #cc7832;"&gt;\&lt;BR /&gt;&lt;/SPAN&gt;   -Wl,--whole-archive -lsgx_tcmalloc -Wl,--no-whole-archive &lt;SPAN style="color: #cc7832;"&gt;\&lt;BR /&gt;&lt;/SPAN&gt;   -Wl,--start-group  -lsgx_tstdc -lsgx_tcxx -lsgx_omp -lsgx_pthread -lsgx_tkey_exchange -l&lt;SPAN style="color: #cc7832;"&gt;$&lt;/SPAN&gt;(Crypto_Library_Name) &lt;SPAN style="color: #cc7832;"&gt;\&lt;BR /&gt;&lt;/SPAN&gt;                  -l&lt;SPAN style="color: #cc7832;"&gt;$&lt;/SPAN&gt;(Service_Library_Name) -Wl,--end-group &lt;SPAN style="color: #cc7832;"&gt;\&lt;BR /&gt;&lt;/SPAN&gt;   -Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined &lt;SPAN style="color: #cc7832;"&gt;\&lt;BR /&gt;&lt;/SPAN&gt;   -Wl,-pie,-eenclave_entry -Wl,--export-dynamic  &lt;SPAN style="color: #cc7832;"&gt;\&lt;BR /&gt;&lt;/SPAN&gt;   -Wl,--defsym,__ImageBase=0 -Wl,--gc-sections   &lt;SPAN style="color: #cc7832;"&gt;\&lt;BR /&gt;&lt;/SPAN&gt;   -Wl,--version-script=Enclave/Enclave.lds&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Is there anything that has to be configured differently? &lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 20:38:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/What-configuration-can-cause-error-when-resolving-libcxx/m-p/1259827#M4346</guid>
      <dc:creator>l_r</dc:creator>
      <dc:date>2021-02-26T20:38:30Z</dc:date>
    </item>
    <item>
      <title>Re:What configuration can cause error when resolving libcxx dependencies?</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/What-configuration-can-cause-error-when-resolving-libcxx/m-p/1259842#M4347</link>
      <description>&lt;P&gt;Hello l_r,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;How closely are you following the Cxx11SGXDemo?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To help us troubleshoot, send your full Makefile.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Did you remember to source the sgxsdk/environment file?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jesus G.&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Feb 2021 21:44:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/What-configuration-can-cause-error-when-resolving-libcxx/m-p/1259842#M4347</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-02-26T21:44:10Z</dc:date>
    </item>
    <item>
      <title>Re:What configuration can cause error when resolving libcxx dependencies?</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/What-configuration-can-cause-error-when-resolving-libcxx/m-p/1261582#M4354</link>
      <description>&lt;P&gt;Hello l_r,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Do you still need help with this issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You should follow Cxx11SGXDemo as closely as possible.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To help us troubleshoot, send your full Makefile.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jesus G.&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Mar 2021 00:01:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/What-configuration-can-cause-error-when-resolving-libcxx/m-p/1261582#M4354</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-03-05T00:01:08Z</dc:date>
    </item>
    <item>
      <title>Re:What configuration can cause error when resolving libcxx dependencies?</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/What-configuration-can-cause-error-when-resolving-libcxx/m-p/1262476#M4357</link>
      <description>&lt;P&gt;Hello l_r,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard from you in several days so we will no longer monitor this thread. We hope you were able to resolve your issue. Please start a new thread if you need further help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Intel is no longer monitoring this thread. If you want a response from Intel in a follow-up question, please open a new thread.&lt;/B&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Mar 2021 21:56:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/What-configuration-can-cause-error-when-resolving-libcxx/m-p/1262476#M4357</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-03-08T21:56:46Z</dc:date>
    </item>
  </channel>
</rss>

