You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@teaclave.apache.org by GitBox <gi...@apache.org> on 2020/04/30 08:53:31 UTC

[GitHub] [incubator-teaclave-sgx-sdk] banxian001 commented on issue #231: rustc_private error when compiling crates.io dependencies with Xargo configuration

banxian001 commented on issue #231:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/231#issuecomment-621703960


   > When an enclave crate is configured to compile with Xargo, instead of manually importing the `sgx_tstd` standard library, you randomly get the following error from some dependencies:
   > 
   > ```
   > error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
   > ```
   > 
   > A lot of crates compile with no issue at all, correctly linking to the tstd, but random expressions used in some crates trigger this error.
   > 
   > This is probably due to some miss-configuration of the tstd.
   > Which version of rust's std is the tstd based on? Are updates from stable Rust pulled into the tstd?
   
   Which crate will trigger this error? Can you provide a specific crate name?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org