I have a Workstation where Intel SGX is enabled in hardware. On it I once installed Ubuntu 16.04 with kernel 4.10.0-103. Then I installed SGX 1.9, tested the RemoteAttestation sample codes (by executing the "app" file generated by the Makefile in sgxsdk/SampleCode/RemoteAttestation) and received the following error message:
What is the make flag you use to build the demo? HW or SIM, The remote attestation only runs in Simulation mode. And the Demo need no network link. Because the demo attestation didn't really connect to IAS for attestation. The data in the demo are fake data.
The first 4 lines of the Makefile are
SGX_SDK ?= /opt/intel/sgxsdk
SGX_MODE ?= HW
SGX_ARCH ?= x64
SGX_DEBUG ?= 1
So it should be HW.
If I change SGX_MODE ?= HW to SGX_MODE ?= SIM, I get the error message
./app: error while loading shared libraries: libsgx_urts_sim.so: cannot open shared object file: No such file or directory
source /opt/Intel/sgxsdk/environmentas instructed in the SDK installation process. Regards, Rodolfo