8000 Error when running make to build safetrace/enclave · Issue #88 · scrtlabs/SafeTrace · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Error when running make to build safetrace/enclave #88
Open
@sbellem

Description

@sbellem

When following the instructions under https://github.com/enigmampc/SafeTrace/tree/master/enclave#installation, I get the following error for step 4 (running make):

   Compiling remove_dir_all v0.5.3
     Running `rustc --crate-name remove_dir_all /home/sylvain/.cargo/registry/src/github.com-1ecc6299db9ec823/remove_dir_all-0.5.3/src/lib.rs --color always --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=be87529a05a53033 -C extra-filename=-be87529a05a53033 --out-dir /home/sylvain/code/enigmampc/SafeTrace/enclave/safetrace/enclave/target/release/deps -L dependency=/home/sylvain/code/enigmampc/SafeTrace/enclave/safetrace/enclave/target/release/deps --cap-lints allow`
error[E0658]: `cfg(doctest)` is experimental and subject to change
  --> /home/sylvain/.cargo/registry/src/github.com-1ecc6299db9ec823/remove_dir_all-0.5.3/src/lib.rs:12:7
   |
12 | #[cfg(doctest)]
   |       ^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/62210
   = help: add `#![feature(cfg_doctest)]` to the crate attributes to enable

error[E0658]: `cfg(doctest)` is experimental and subject to change
  --> /home/sylvain/.cargo/registry/src/github.com-1ecc6299db9ec823/remove_dir_all-0.5.3/src/lib.rs:16:7
   |
16 | #[cfg(doctest)]
   |       ^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/62210
   = help: add `#![feature(cfg_doctest)]` to the crate attributes to enable

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `remove_dir_all`.

Caused by:
  process didn't exit successfully: `rustc --crate-name remove_dir_all /home/sylvain/.cargo/registry/src/github.com-1ecc6299db9ec823/remove_dir_all-0.5.3/src/lib.rs --color always --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=be87529a05a53033 -C extra-filename=-be87529a05a53033 --out-dir /home/sylvain/code/enigmampc/SafeTrace/enclave/safetrace/enclave/target/release/deps -L dependency=/home/sylvain/code/enigmampc/SafeTrace/enclave/safetrace/enclave/target/release/deps --cap-lints allow` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: build failed
Makefile:33: recipe for target 'bindgen' failed
make[1]: *** [bindgen] Error 101
make[1]: Leaving directory '/home/sylvain/code/enigmampc/SafeTrace/enclave/safetrace/enclave'
Makefile:179: recipe for target 'enclave' failed
make: *** [enclave] Error 2

I've tried using a different nightly build, but then ran into other issues. So for now, in order to proceed forward, I followed the help message in the above error:

help: add `#![feature(cfg_doctest)]` to the crate attributes to enable

which means that I added the line #![feature(cfg_doctest)] at the top of the root crate of remove_dir_all. I doubt quite strongly that this is "the" fix, and wonder if someone has a better suggestion.

I doubt it is relevant, but just in case that helps, here's the output I get from sgx-detect:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0