<?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 Build the architecture enclaves from source code in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Build-the-architecture-enclaves-from-source-code/m-p/1155792#M2736</link>
    <description>&lt;P&gt;I tried two ways to build the pre-built binaries by myself. I am working on the 1.9 version with gcc-5.4.0 on Ubuntu 16.04.4.&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;Use &lt;CODE&gt;make USE_OPT_LIBS=0&lt;/CODE&gt; to use the non-optimized source code version implementation, as stated in the README.md. Then &lt;CODE&gt;make sdk_install_pkg&lt;/CODE&gt; USE_OPT_LIBS=0 succeeds, &lt;CODE&gt;make psw_install_pkg &lt;/CODE&gt;USE_OPT_LIBS=0 fails. It still looks for the pre-built binaries in the folder &lt;CODE&gt;psw/ae/data/prebuilt&lt;/CODE&gt;.&lt;/LI&gt;
	&lt;LI&gt;Build each Architecture Enclave by using the &lt;CODE&gt;make&lt;/CODE&gt; command from the corresponding folder, e.g. in the &lt;CODE&gt;psw/ae/qe&lt;/CODE&gt; folder. There turns out to be some compiling errors or link errors.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;I am trying to understand how the quoting enclave works. Is the pre-built &lt;CODE&gt;libsgx_qe.signed.so&lt;/CODE&gt; compiled from the provided sources? Is it all right to refer to the implementation in the &lt;CODE&gt;qe&lt;/CODE&gt; folder?&lt;/P&gt;

&lt;P&gt;Any help is appreciated. Thanks&lt;/P&gt;

&lt;P&gt;Wenhao&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2017 21:13:11 GMT</pubDate>
    <dc:creator>yunfeng7854</dc:creator>
    <dc:date>2017-07-27T21:13:11Z</dc:date>
    <item>
      <title>Build the architecture enclaves from source code</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Build-the-architecture-enclaves-from-source-code/m-p/1155792#M2736</link>
      <description>&lt;P&gt;I tried two ways to build the pre-built binaries by myself. I am working on the 1.9 version with gcc-5.4.0 on Ubuntu 16.04.4.&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;Use &lt;CODE&gt;make USE_OPT_LIBS=0&lt;/CODE&gt; to use the non-optimized source code version implementation, as stated in the README.md. Then &lt;CODE&gt;make sdk_install_pkg&lt;/CODE&gt; USE_OPT_LIBS=0 succeeds, &lt;CODE&gt;make psw_install_pkg &lt;/CODE&gt;USE_OPT_LIBS=0 fails. It still looks for the pre-built binaries in the folder &lt;CODE&gt;psw/ae/data/prebuilt&lt;/CODE&gt;.&lt;/LI&gt;
	&lt;LI&gt;Build each Architecture Enclave by using the &lt;CODE&gt;make&lt;/CODE&gt; command from the corresponding folder, e.g. in the &lt;CODE&gt;psw/ae/qe&lt;/CODE&gt; folder. There turns out to be some compiling errors or link errors.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;I am trying to understand how the quoting enclave works. Is the pre-built &lt;CODE&gt;libsgx_qe.signed.so&lt;/CODE&gt; compiled from the provided sources? Is it all right to refer to the implementation in the &lt;CODE&gt;qe&lt;/CODE&gt; folder?&lt;/P&gt;

&lt;P&gt;Any help is appreciated. Thanks&lt;/P&gt;

&lt;P&gt;Wenhao&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 21:13:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Build-the-architecture-enclaves-from-source-code/m-p/1155792#M2736</guid>
      <dc:creator>yunfeng7854</dc:creator>
      <dc:date>2017-07-27T21:13:11Z</dc:date>
    </item>
    <item>
      <title>All prebuilt AE's are built</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Build-the-architecture-enclaves-from-source-code/m-p/1155793#M2737</link>
      <description>&lt;P&gt;All prebuilt AE's are built with optimized libraries.&lt;/P&gt;

&lt;P&gt;The build command&amp;nbsp;&lt;SPAN style="color: rgb(96, 96, 96); font-size: 13.008px;"&gt;USE_OPT_LIBS=0 make psw_install_pkg &amp;nbsp;succeeds .&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Can you check if &amp;nbsp;your default build configuration work fine ?&lt;/P&gt;

&lt;P&gt;-Regards&lt;/P&gt;

&lt;P&gt;Shivananda&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 10:57:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Build-the-architecture-enclaves-from-source-code/m-p/1155793#M2737</guid>
      <dc:creator>Shivananda_H_Intel</dc:creator>
      <dc:date>2017-07-28T10:57:34Z</dc:date>
    </item>
    <item>
      <title>The default compiling option</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Build-the-architecture-enclaves-from-source-code/m-p/1155794#M2738</link>
      <description>&lt;P&gt;The default compiling option `make psw_install_pkg` works fine. I'd like to understand the design of the prebuilt libsgx_qe.signed.so. Can I look into the source code of `psw/ae/qe/`? I assume the source code and the prebuilt binaries are following the same routine to generate the quote. Thanks.&lt;/P&gt;

&lt;P&gt;Wenhao&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 12:41:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Build-the-architecture-enclaves-from-source-code/m-p/1155794#M2738</guid>
      <dc:creator>yunfeng7854</dc:creator>
      <dc:date>2017-07-28T12:41:00Z</dc:date>
    </item>
    <item>
      <title>What I am trying to do is</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Build-the-architecture-enclaves-from-source-code/m-p/1155795#M2739</link>
      <description>&lt;P&gt;What I am trying to do is something similar but for PSE (Platform Service Enclave). I have made changes to the pse code under (/psw/ae/pse/pse_op) and it is being compiled. I used the option USE_OPT_LIBS=0 to compile the source, and after solving various errors, I am able to successfully compile sdk and psw code (also the code which I have changed in pse_op eventually generating "pse_op.so" file), and then install the binaries in the proper folders. I have verified that the proper folders have my compiled "pse_op.so" instead of intel provided "libsgx_pse_op.signed.so" prebuilt files.&lt;/P&gt;

&lt;P&gt;Now when I try running a simple "sgx_create_pse_session()" from an enclave, it fails with the error code "0x4001" which corresponds to "SGX_ERROR_SERVICE_UNAVAILABLE" and the comments say "Indicates aesm didn't respond or the requested service is not supported" according to the "sgx_error.h" file. Since creating a PSE session with the PSE enclave is supported, I feel like the problem is that aesm service is not responding. What I believe is that the pse_op enclave source code which I built into an enclave file (pse_op.so) is not signed by Intel keys, the aesm service is rejecting it. Kindly, correct me if my analysis is incorrect. Also, is there a way through which I can disable the feature in aesm which looks for the Intel signed enclave? Or I can sign the enclave with a new key and make aesm accept that?&lt;/P&gt;

&lt;P&gt;I really need an answer to it because I need to implement a new service in PSE for my own development and testing purpose. Would appreciate help from Intel folks.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 23:46:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Build-the-architecture-enclaves-from-source-code/m-p/1155795#M2739</guid>
      <dc:creator>Fatima_A_</dc:creator>
      <dc:date>2017-12-14T23:46:23Z</dc:date>
    </item>
  </channel>
</rss>

