You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by Claus M <no...@github.com.INVALID> on 2021/08/04 12:26:35 UTC

[apache/incubator-teaclave-sgx-sdk] Upgrade to 1.55 nightly (#349)

Hi! We needed to use a compiler &gt; 1.50 for adding new dependencies that rely on const generics. Since `std::raw` has been removed in current nightly versions (and it&#39;s not entirely clear to me where it&#39;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&#39;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.&#39;https://github.com/apache/teaclave-sgx-sdk.git&#39;]
sgx_align_struct_attribute = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_alloc = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_backtrace = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_backtrace_sys = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_build_helper = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_cov = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_crypto_helper = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_demangle = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_libc = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_no_tstd = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_rand = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_rand_derive = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_serialize = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_serialize_derive = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_serialize_derive_internals = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_tcrypto = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_tcrypto_helper = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_tdh = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_tkey_exchange = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_tprotected_fs = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_trts = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_tse = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_tseal = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_tstd = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_tunittest = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_types = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_ucrypto = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_unwind = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
sgx_urts = { git = &quot;https://github.com/celaus/incubator-teaclave-sgx-sdk&quot; }
~~~

Don&#39;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

Re: [apache/incubator-teaclave-sgx-sdk] Upgrade to 1.55 nightly (#349)

Posted by Cheng XU <no...@github.com.INVALID>.
Hi, sorry to ping again. But any chance to move this forward?

Noted that Rust 2021 edition is about to be stabilize in Rust 1.56, which will be in beta in a week. We should really upgrade the support rust version of this SDK. Otherwise, it is likely that many crates will stop compiling if they are upgrading to 2021 edition.

-- 
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#issuecomment-912293973

Re: [apache/incubator-teaclave-sgx-sdk] Upgrade to 1.55 nightly (#349)

Posted by Mingshen Sun <no...@github.com.INVALID>.
I think this should be properly resolved as soon as possible.

@volcano0dr any timeline for the new version?

-- 
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#issuecomment-918551997

Re: [apache/incubator-teaclave-sgx-sdk] Upgrade to 1.55 nightly (#349)

Posted by Cheng XU <no...@github.com.INVALID>.
@volcano0dr @dingelish Any chance to merge this?

-- 
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#issuecomment-898795599

Re: [apache/incubator-teaclave-sgx-sdk] Upgrade to 1.55 nightly (#349)

Posted by volcano <no...@github.com.INVALID>.
Closed #349.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/pull/349#event-7683266944
You are receiving this because you are subscribed to this thread.

Message ID: <ap...@github.com>

Re: [apache/incubator-teaclave-sgx-sdk] Upgrade to 1.55 nightly (#349)

Posted by volcano <no...@github.com.INVALID>.
@celaus @xu-cheng 
I plan to upgrade the rust toolchain on the `v1.1.4-testing` branch soon.


-- 
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#issuecomment-898876324

Re: [apache/incubator-teaclave-sgx-sdk] Upgrade to 1.55 nightly (#349)

Posted by Pi Delport <no...@github.com.INVALID>.
The `v1.1.4-testing` branch was merged, with toolchain `nightly-2021-09-13` (rustc 1.57.0-nightly).

- See: #360

-- 
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#issuecomment-979845677