I'm following the document to try to setup a teeclave environment but failed 
with build errors, any suggestions? Thanks.
---------------------------------------------------------
docker run --rm -v $(pwd):/teaclave -w /teaclave \
>   -it teaclave/teaclave-build-ubuntu-1804-sgx-2.9.1:latest \
>    bash -c ". /root/.cargo/env && \
>      . /opt/sgxsdk/environment && \
>      mkdir -p build && cd build && \
>      cmake -DTEST_MODE=ON -DSGX_SIM_MODE=ON .. && \
>      make"
-- Submodule update
SGX_SDK=/opt/sgxsdk
SGX_MODE=SW
RUSTUP_TOOLCHAIN=nightly-2020-04-07
DCAP=OFF
BUILD_TYPE=debug
TEACLAVE_SYMLINKS=/tmp/teaclave_symlinks.viZpdRsKWSuz
-- ====== /teaclave/build/environment GENERATED ======
-- Configuring done
-- Generating done
-- Build files have been written to: /teaclave/build
[  0%] Built target prep
[ 12%] Built target pycomponent
[ 16%] Building sgxlib-teaclave_unit_tests, enclave info to 
/teaclave/build/intermediate/teaclave_unit_tests_enclave_info.toml
   Compiling sgx_build_helper v0.1.3 
(https://github.com/apache/teaclave-sgx-sdk?rev=v1.1.2#31b32336)
   Compiling sgx_types v1.1.2 
(https://github.com/apache/teaclave-sgx-sdk?rev=v1.1.2#31b32336)
   Compiling cc v1.0.52
   Compiling autocfg v1.0.0
   Compiling sgx_tstd v1.1.2 
(https://github.com/apache/teaclave-sgx-sdk?rev=v1.1.2#31b32336)
   Compiling sgx_alloc v1.1.2 
(https://github.com/apache/teaclave-sgx-sdk?rev=v1.1.2#31b32336)
   Compiling sgx_demangle v1.1.2 
(https://github.com/apache/teaclave-sgx-sdk?rev=v1.1.2#31b32336)
   Compiling proc-macro2 v1.0.10
   Compiling unicode-xid v0.2.0
   Compiling syn v1.0.18
   Compiling autocfg v0.1.7
   Compiling cfg-if v0.1.10
   Compiling spin v0.5.2
   Compiling serde v1.0.105 
(https://github.com/mesalock-linux/serde-sgx#3e1fcf4c)
   Compiling typenum v1.12.0
   Compiling byteorder v1.3.2 
(https://github.com/mesalock-linux/byteorder-sgx#8ad66bc3)
   Compiling getrandom v0.1.14 
(https://github.com/mesalock-linux/getrandom-sgx#66a998d6)
   Compiling ppv-lite86 v0.2.6 
(https://github.com/mesalock-linux/cryptocorrosion-sgx#b31e8668)
   Compiling untrusted v0.7.0
   Compiling ryu v1.0.4
   Compiling log v0.4.8 (https://github.com/mesalock-linux/log-sgx#3503e4d9)
   Compiling inventory v0.1.6
   Compiling libc v0.2.69
   Compiling rand_core v0.4.2
   Compiling matches v0.1.8 
(https://github.com/mesalock-linux/rust-std-candidates-sgx#5747bcf3)
   Compiling percent-encoding v2.1.0 
(https://github.com/mesalock-linux/rust-url-sgx#ba94521f)
   Compiling either v1.5.3
   Compiling teaclave_config v0.1.0 
(/teaclave/build/cmake_tomls/sgx_trusted_lib/config)
   Compiling httparse v1.3.4
   Compiling proc-macro2 v0.4.30
   Compiling hashbrown v0.3.1
   Compiling bit-vec v0.6.1
   Compiling unicode-xid v0.1.0
   Compiling quick-error v1.2.2 
(https://github.com/mesalock-linux/quick-error-sgx#c77b8867)
   Compiling syn v0.15.44
   Compiling num-iter v0.1.39 
(https://github.com/mesalock-linux/num-iter-sgx#08168b9a)
   Compiling anyhow v1.0.26 
(https://github.com/mesalock-linux/anyhow-sgx#b4164eed)
   Compiling teaclave_binder v0.1.0 
(/teaclave/build/cmake_tomls/sgx_trusted_lib/binder)
   Compiling teaclave_proto v0.1.0 
(/teaclave/build/cmake_tomls/sgx_trusted_lib/services/proto)
   Compiling rawpointer v0.2.1
   Compiling crc v2.0.0
error: could not compile `crc`.

Caused by:
  process didn't exit successfully: `/teaclave/cmake/scripts/rustc_wrapper.sh 
--crate-name crc --edition=2018 
/teaclave/build/cmake_tomls/sgx_trusted_lib/third_party/crates-sgx/vendor/crc/src/lib.rs
 --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib 
--emit=dep-info,metadata,link -C debuginfo=2 -C metadata=00442ba3caacd126 -C 
extra-filename=-00442ba3caacd126 --out-dir 
/teaclave/build/target/trusted/debug/deps -L 
dependency=/teaclave/build/target/trusted/debug/deps --cap-lints allow --cfg 
test_mode --cfg sgx_sim --cfg test_mode` (signal: 9, SIGKILL: kill)
/usr/bin/ld: cannot find -lteaclave_unit_tests_enclave
collect2: error: ld returned 1 exit status
CMakeFiles/sgxlib-teaclave_unit_tests.dir/build.make:57: recipe for target 
'CMakeFiles/sgxlib-teaclave_unit_tests' failed
make[2]: *** [CMakeFiles/sgxlib-teaclave_unit_tests] Error 1
CMakeFiles/Makefile2:68: recipe for target 
'CMakeFiles/sgxlib-teaclave_unit_tests.dir/all' failed
make[1]: *** [CMakeFiles/sgxlib-teaclave_unit_tests.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/360

Reply via email to