Open Cashmaney opened 3 years ago
hey @Cashmaney , thanks for the report!
the reason is that extend_one
was changed to be under extend_one
feature in https://github.com/rust-lang/rust/issues/72631 , and i guess you're using new compiler (something between 2020-04-07 and 2020-10-25) on v1.1.2 sdk, which requires the old libcore.
my recommendation is switching back to 2020-04-07, or tell me your exact rust toolchain status and i can create a branch for you. thanks!
That's the thing - I'm using 2020-04-07, trying to compile with the v1.1.2 sdk, running the exact same compile script inside a docker container that was working a couple of days ago. I suspect hashbrown 0.9.0 doesn't compile with 2020-04-07, and it was added as a dependency when you bumped a few package versions?
you're right. hashbrown 0.9.0 does not compile on 2020-04-07 and sgx_tstd v1.1.3 does depends on 0.9.0. and v1.1.3 does requires nightly-2020-10-25 or later not only because the change of Extend
trait, also the changes in core::alloc
traits/error types.
i just updated the readme. could you please try the new docker images? such as 1804-1.1.3
etc. thanks!
We switched to 1.1.3
, and after updating Xargo it's working again, thanks.
But it's still important to note that when you upgrade, it breaks a lot of the packages that depend on previous versions, since there are some dependencies in packages that are unversioned. For example, https://github.com/mesalock-linux/num-integer-sgx
has an unversioned dep of https://github.com/mesalock-linux/num-integer-sgx/blob/404c50e5378ca635261688b080dee328ff42b6bd/Cargo.toml#L19-20 which as you can see points to 1.1.3. So effectively, even the sgx_1.1.2
branch depends on 1.1.3. Hope I was clear:)
Hey guys, trying to compile the same code that depended on 1.1.2 now fails
I assume it is because some packages have internal dependencies on 1.1.3, which is compiled with a newer version of rust? After replacing everything I can (without forking packages) to
sgx_1.1.2
my cargo tree now looks like:Just wanted to bring it to your attention, in case you are trying to maintain the 1.1.2 tags as well.
Thanks