Hi! We needed to use a compiler > 1.50 for adding new dependencies that rely on const generics. Since `std::raw` has been removed in current nightly versions (and it's not entirely clear to me where it's used in the SGX SDK) this compiler upgrade should be safe to make. All the sample code compiles and I could manually run several of them inside the 18.04 container.
For anyone also using 3rd party ports of libraries to this SGX SDK (because they won't build with the new compiler version out of the box), use this in your `Cargo.toml` (upgrade later to this - official - repo): ~~~toml [patch.'https://github.com/apache/teaclave-sgx-sdk.git'] sgx_align_struct_attribute = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_alloc = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_backtrace = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_backtrace_sys = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_build_helper = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_cov = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_crypto_helper = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_demangle = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_libc = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_no_tstd = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_rand = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_rand_derive = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_serialize = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_serialize_derive = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_serialize_derive_internals = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_tcrypto = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_tcrypto_helper = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_tdh = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_tkey_exchange = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_tprotected_fs = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_trts = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_tse = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_tseal = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_tstd = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_tunittest = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_types = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_ucrypto = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_unwind = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } sgx_urts = { git = "https://github.com/celaus/incubator-teaclave-sgx-sdk" } ~~~ Don't forget to `cargo update` Somewhat fixes #315 You can view, comment on, or merge this pull request online at: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/349 -- Commit Summary -- * nightly-july-2021 -- File Changes -- M rust-toolchain (2) M sgx_tstd/src/lib.rs (1) M sgx_tunittest/src/lib.rs (1) -- Patch Links -- https://github.com/apache/incubator-teaclave-sgx-sdk/pull/349.patch https://github.com/apache/incubator-teaclave-sgx-sdk/pull/349.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/349
