-
Notifications
You must be signed in to change notification settings - Fork 98
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
How to use (Linux) #49
Comments
With nightly-2019-01-08 or newer, you no longer need a patched compiler-builtins or xargo. Updated instructions above. |
Use nightly-2019-01-08 (not newer) for now |
53: runner script r=jethrogb a=akash-fortanix This script encapsulates the three steps listed [here](#49) under `Running`. To trigger this script on `cargo run`, add .cargo/config file within crate with content: > [target.x86_64-fortanix-unknown-sgx] > runner = "ftxsgx-runner-cargo" And to set custom values for arguments to `ftxsgx-elf2sgxs` script, add `package.metadata` section in Cargo.toml > [package.metadata] > threads=15 Co-authored-by: akashfortanix <[email protected]>
Xargo is no longer needed. To stop using it:
The instructions above have been updated as well. |
Also, you no longer need to manually build |
Closing this in favor of the installation guide. |
This issue documents the current best way to build for
x86_64-fortanix-unknown-sgx
and run the enclaves on Linux. Subscribe to this issue to be notified of changes.Installing build dependencies
Install Rust nightly
You will need Rust nightly installed, the easiest way is with rustup:
Building
Run Cargo
Build your crate for the
x86_64-fortanix-unknown-sgx
target, for example:or
Installing runtime dependencies
Install SGX driver & software
Install SGX pre-requisites. In order to test execution, you'll need to have a CPU with Intel SGX support. SGX support needs to be enabled in the BIOS. You'll also need to install the SGX driver and Platform Software (PSW) from Intel.
Install enclave conversion utilities & runtime
Running
To run any binary
$BINARY
(you can find these intarget/x86_64-fortanix-unknown-sgx/debug
after building), do:Depending on your application, you might want to increase the stack or heap size or the number of threads.
The text was updated successfully, but these errors were encountered: