Skip to content

[rust-sgx-sdk] error: failed to get sgx_tstd as a dependency of package ... #6

@sbellem

Description

@sbellem

Happening in "pure" mode, which more closely resembles nix-build conditions.

To reproduce:

bash-4.4# nix-shell --pure rust-sgx-sdk.nix 

[nix-shell:/usr/src]# unpackPhase 
unpacking source archive /nix/store/bqb9zhdb1mas9f7glph5kx38nyl3vxpk-source
source root is source

[nix-shell:/usr/src]# cd source/

[nix-shell:/usr/src/source]# buildPhase 
build flags: SHELL=/bin/bash bin/enclave.signed.so
make -C ./enclave/
make[1]: Entering directory '/usr/src/source/samplecode/helloworld/enclave'
cargo build --release
    Updating git repository `https://github.com/apache/teaclave-sgx-sdk.git`
error: failed to get `sgx_tstd` as a dependency of package `Helloworldsampleenclave v1.0.0 (/usr/src/source/samplecode/helloworld/enclave)`

Caused by:
  failed to load source for dependency `sgx_tstd`

Caused by:
  Unable to update https://github.com/apache/teaclave-sgx-sdk.git

Caused by:
  failed to fetch into: /root/.cargo/git/db/teaclave-sgx-sdk-be25c2ad2f03718d

Caused by:
  network failure seems to have happened
  if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  the SSL certificate is invalid; class=Ssl (16); code=Certificate (-17)
make[1]: *** [Makefile:36: libenclave.a] Error 101
make[1]: Leaving directory '/usr/src/source/samplecode/helloworld/enclave'
make: *** [Makefile:165: enclave] Error 2

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