Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ryo_hamamoto
Beginner
429 Views

How to fix the error in Intel SGX for Linux

Jump to solution

Currently, I'm executing the Intel SGX sample codes in the intel SGX SDK, but I cannot execute the app in the ubuntu 14.04.

My execution environment is as follows:
PC: DELL Latitude E7270
CPU: Intel Core-i7 6600-U
OS: Ubuntu 14.04
Intel SGX Driver, PSW, SDK version: 1.6

The sample code is compiled by Makefile(command line).
The compile option is "SGX_MODE=HW SGX_PRERELEASE=1"
When I execute the app. the error message is appered at the terminal as follows.

---

nec-user@necuser-Latitude-E7270:~/SGX/DRIVERS/SampleCode/SampleEnclave$ make SGX_MODE=HW SGX_PRERELEASE=1
GEN  =>  App/Enclave_u.c
CC   <=  App/Enclave_u.c
CXX  <=  App/App.cpp
CXX  <=  App/Edger8rSyntax/Arrays.cpp
CXX  <=  App/Edger8rSyntax/Functions.cpp
CXX  <=  App/Edger8rSyntax/Pointers.cpp
CXX  <=  App/Edger8rSyntax/Types.cpp
CXX  <=  App/TrustedLibrary/Libc.cpp
CXX  <=  App/TrustedLibrary/Libcxx.cpp
CXX  <=  App/TrustedLibrary/Thread.cpp
LINK =>  app
GEN  =>  Enclave/Enclave_t.c
CC   <=  Enclave/Enclave_t.c
CXX  <=  Enclave/Enclave.cpp
CXX  <=  Enclave/Edger8rSyntax/Arrays.cpp
CXX  <=  Enclave/Edger8rSyntax/Functions.cpp
CXX  <=  Enclave/Edger8rSyntax/Pointers.cpp
CXX  <=  Enclave/Edger8rSyntax/Types.cpp
CXX  <=  Enclave/TrustedLibrary/Libc.cpp
CXX  <=  Enclave/TrustedLibrary/Libcxx.cpp
CXX  <=  Enclave/TrustedLibrary/Thread.cpp
LINK =>  enclave.so
<EnclaveConfiguration>
    <ProdID>0</ProdID>
    <ISVSVN>0</ISVSVN>
    <StackMaxSize>0x40000</StackMaxSize>
    <HeapMaxSize>0x100000</HeapMaxSize>
    <TCSNum>10</TCSNum>
    <TCSPolicy>1</TCSPolicy>
    <DisableDebug>0</DisableDebug>
    <MiscSelect>0</MiscSelect>
    <MiscMask>0xFFFFFFFF</MiscMask>
</EnclaveConfiguration>
Succeed.
SIGN =>  enclave.signed.so

nec-user@necuser-Latitude-E7270:~/SGX/DRIVERS/SampleCode/SampleEnclave$ ./app
Please use the correct uRTS library from PSW package.
Error: Unexpected error occurred.
Enter a character before exit ...
---

Please explain how to execute the sample program using HW mode? (wrong something?)
I configured aesmd.conf in order to use the proxy.
Moreover, I can execute the sample code when the simulation mode is used.

Best regards,

 

 

 

 

0 Kudos
1 Solution
Rodolfo_S_
New Contributor III
429 Views

Hi, Ryo.

I believe your problem is similar to the one addressed here. You could refer to it, and see if this solves your problem.

Best regards,

Rodolfo

View solution in original post

2 Replies
Rodolfo_S_
New Contributor III
430 Views

Hi, Ryo.

I believe your problem is similar to the one addressed here. You could refer to it, and see if this solves your problem.

Best regards,

Rodolfo

View solution in original post

ryo_hamamoto
Beginner
429 Views

Dear Rodolfo

Thank you for your kind reply.
I can execute Intel SGX Sample codes with HW mode.

Your advice is very useful.

Best regards,

Ryo

Reply