Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to compile sample code on the v2.0.0-preview branch fails #387

Closed
reuvenpo opened this issue May 31, 2022 · 2 comments
Closed

Trying to compile sample code on the v2.0.0-preview branch fails #387

reuvenpo opened this issue May 31, 2022 · 2 comments

Comments

@reuvenpo
Copy link

When switching to the v2.0.0-preview branch and trying to compile the helloworld or httpreq examples with make clean all fails with:

SDK version is not correct. The same SDK should be used for enclave building and signing.
The SDK version for building enclave could be obtained by below command:

           $ strings {Enclave.so} | grep SGX_TSTDC_VERSION 

Error happened while signing the enclave.

I haven't tried the others yet, but this happens with any of the BUILD_STD settings, either no, cargo, or xargo.

I have the latest packages installed as per the guide here (I believe). Is there a specific version, dependency, or similar that I need in addition to it? Compiling on v1.1.4 does work without issue.

@volcano0dr
Copy link
Contributor

Thank you for using version v2.0.0-preview. Please install intel sgx sdk 2.16 and use sgx_sign to re-sign enclave.

@reuvenpo
Copy link
Author

reuvenpo commented Jun 1, 2022

@volcano0dr Thanks, that worked!
I installed the SDK from here:
https://download.01.org/intel-sgx/sgx-linux/2.16/distro/ubuntu18.04-server/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants