Closed 60ke closed 9 months ago
你需要更新rust版本到nightly-2019-11-25
你需要更新rust版本到nightly-2019-11-25 嗯 可以了谢谢 。之前的版本是rustc 1.41.0-nightly (76a252ea9 2019-12-09),切换到nightly-2019-11-25就行了。sgx项目写的有toolchain之前没注意到。sgx主项目的samecode中的http_req,make会失败,因为少了lib和bin文件夹。
Got this issue also: error[E0658]: The ! type is experimental
rustup default -> nightly-2019-11-25-x86_64-unknown-linux-gnu (default) rustc 1.41.0-nightly (412f43ac5 2019-11-24)
sgx更新到1.1.0编译不通过,如http_req-sgx这个,即使用v1.0.9-backup也不能编译通过,因为还有依赖包使用了sgx master的依赖(依赖指向1.1.0) 还有就是make_pub.diff路径错误需要将所有的
/src
去掉,才能make通过。下面是报错信息: error[E0432]: unresolved import
alloc_crate::collections::TryReserveError
--> /root/.cargo/git/checkouts/teaclave-sgx-sdk-be25c2ad2f03718d/4508450/sgx_tstd/src/collections/mod.rs:35:9 | 35 | pub use alloc_crate::collections::TryReserveError; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ noTryReserveError
incollections
!
type is experimental --> /root/.cargo/git/checkouts/teaclave-sgx-sdk-be25c2ad2f03718d/4508450/sgx_tstd/src/error.rs:185:16= note: for more information, see https://github.com/rust-lang/rust/issues/44109 = help: add
#![feature(non_exhaustive)]
to the crate attributes to enablecore::panic::Location
, found referencelocation
core::panic::Location
, found referencelocation
error: aborting due to 7 previous errors
Some errors have detailed explanations: E0308, E0432, E0658. For more information about an error, try
rustc --explain E0308
. error: Could not compilesgx_tstd
. warning: build failed, waiting for other jobs to finish... error: build failed Makefile:42: recipe for target 'libenclave.a' failed make[1]: [libenclave.a] Error 101 make[1]: Leaving directory '/root/sgx_test/http_req-sgx-1.0.9-backup/sgx/http_req-sgx-test/enclave' Makefile:161: recipe for target 'enclave' failed make: [enclave] Error 2