I followed the official tutorial to install EGo (version 1.8.0) on Ubuntu 22.04. However, when I run the helloworld sample, I encounter the following error:
root@U2204: ~/ego/samples/helloworld $ ego run helloworld
2025/12/19 03:33:28 INFO EGo version=1.8.0 git_commit=43c480809d3d183d54ebfd09c596e834a81f0095
[erthost] loading enclave ...
ERROR: enclave_create with ENCLAVE_TYPE_SGX1 type failed (err=0x1001) (oe_result_t=OE_PLATFORM_ERROR) [openenclave-src/host/sgx/sgxload.c:oe_sgx_create_enclave:454]
ERROR: oe_create_enclave failed. (Set OE_SIMULATION=1 for simulation mode.) [src/tools/erthost/erthost.cpp:main:265]
Environment:
- OS: Ubuntu 22.04
- EGo version: 1.8.0 (commit 43c4808)
- SGX support confirmed by cpuid:
root@U2204: ~$ cpuid -1 -l 0x7 | grep SGX
SGX: Software Guard Extensions supported = true
SGX_LC: SGX launch config supported = true
Intel SGX SDK sample programs run successfully on this machine:
root@U2204:/opt/intel/sgxsdk/SampleCode/SampleEnclave$ sudo ./app
Checksum(0x0x7ffcf54a0860, 100) = 0xfffd4143
Info: executing thread synchronization, please wait...
Info: SampleEnclave successfully returned.
Enter a character before exit ...
What I have tried:
- Verified SGX driver is installed and /dev/isgx exists
- Confirmed BIOS SGX is enabled
- Tested Intel SGX SDK samples successfully
Request:
Could you please help me understand why ego run helloworld fails with OE_PLATFORM_ERROR despite the environment supporting SGX and Intel SDK samples working correctly? Any guidance on troubleshooting or configuration adjustments would be appreciated.
Thank you!
I followed the official tutorial to install EGo (version 1.8.0) on Ubuntu 22.04. However, when I run the helloworld sample, I encounter the following error:
Environment:
Intel SGX SDK sample programs run successfully on this machine:
What I have tried:
Request:
Could you please help me understand why ego run helloworld fails with OE_PLATFORM_ERROR despite the environment supporting SGX and Intel SDK samples working correctly? Any guidance on troubleshooting or configuration adjustments would be appreciated.
Thank you!