Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enarxnuc@enarxnuc:~/Repos/enarx/mbedtls-library/mbedtls-src/testcrate$ cargo test --target=x86_64-fortanix-unknown-sgx
- Compiling bitflags v1.2.0
- Compiling cc v1.0.45
- Compiling sgx-isa v0.2.0
- Compiling mbedtls-src v0.0.0+3.0.0p1 (/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src)
- Compiling testcrate v0.1.0 (/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/testcrate)
- error: linking with `cc` failed: exit code: 1
- |
- = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-fuse-ld=gold" "-nostdlib" "-shared" "-Wl,-e,sgx_entry" "-Wl,-Bstatic" "-Wl,--gc-sections" "-Wl,-z,text" "-Wl,-z,norelro" "-Wl,--rosegment" "-Wl,--no-undefined" "-Wl,--error-unresolved-symbols" "-Wl,--no-undefined-version" "-Wl,-Bsymbolic" "-Wl,--export-dynamic" "-Wl,-u,__rust_abort" "-Wl,-u,__rust_c_alloc" "-Wl,-u,__rust_c_dealloc" "-Wl,-u,__rust_print_err" "-Wl,-u,__rust_rwlock_rdlock" "-Wl,-u,__rust_rwlock_unlock" "-Wl,-u,__rust_rwlock_wrlock" "-L" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.13vxcu9c753isqrd.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.143fzez0648s9ksn.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.1pap1xqtvaoutgyk.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.1xxec8x29b8gcnh.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.20lxnsbn6bojbgli.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.26cr4dv3q1uaddwm.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.2gx2ys08wgzxr41f.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.2hgfuj80ssoyo5y8.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.2n7d0ypdm1effprl.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.3jtax2ti5q32vm8u.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.3pgdbtib8bhfdpjh.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.3upuczfqtsxgcio4.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.43q21evyzxcy0piq.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.44e241l39ph2xvcu.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.4y2n3ysmn6tcq2cu.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.5105hukuqk60bn57.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.57nse3kas13n1lyr.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.58j9qg3ah1twonke.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.aazgwo12vckvaoo.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.fqmj5q7hmv4cwyv.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.h0856dvfcvrf1yc.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.np6pdifkdlw4v30.rcgu.o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.rowf8w4acqa7z2u.rcgu.o" "-o" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps/testcrate-cbe2422b9237927a.44762hqj7czc88hm.rcgu.o" "-Wl,--gc-sections" "-pie" "-nodefaultlibs" "-L" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/deps" "-L" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/debug/deps" "-L" "/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/target/x86_64-fortanix-unknown-sgx/debug/build/testcrate-bde0a8a9220f5e70/out/mbedtls-build/install/lib" "-L" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "-lmbedtls" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-lmbedx509" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-lmbedcrypto" "-Wl,--no-whole-archive" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/libtest-3a87b0ce1e2dc49a.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/libterm-0643cf4b58729aea.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/libgetopts-623389b01fa874d8.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/libunicode_width-e2e262bc41e33c6b.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/librustc_std_workspace_std-72ed0dbc4dc037af.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/libstd-4eb927bf92347f33.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/libpanic_unwind-265d99df2ee63cc2.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/libdlmalloc-a3fc94442f73f07e.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/libfortanix_sgx_abi-8291e3f10af3ada4.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/libhashbrown-02531599a420621a.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/librustc_std_workspace_alloc-c98699c59fdc882a.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/libbacktrace-e8e5643200c287ce.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/librustc_demangle-9e995c56c40e89af.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/libunwind-6bb65e4d84b040e0.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/libcfg_if-91ec39963e719149.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/liblibc-cc700b37698fe443.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/liballoc-d9e7aaa85ba1e5f5.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/librustc_std_workspace_core-0fa6cc259dc346f8.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/libcore-bb6de2b2abb73702.rlib" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/libcompiler_builtins-e0fb334c6d6b0903.rlib" "-Wl,-Bdynamic" "/home/enarxnuc/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/libunwind.a"
- = note: /usr/include/x86_64-linux-gnu/bits/stdio2.h:64: error: undefined reference to '__snprintf_chk'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:64: error: undefined reference to '__snprintf_chk'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:64: error: undefined reference to '__snprintf_chk'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:77: error: undefined reference to '__vsnprintf_chk'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:64: error: undefined reference to '__snprintf_chk'
- /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34: error: undefined reference to '__memcpy_chk'
- net_sockets.c:130: error: undefined reference to '__sysv_signal'
- net_sockets.c:162: error: undefined reference to 'getaddrinfo'
- net_sockets.c:177: error: undefined reference to 'connect'
- net_sockets.c:183: error: undefined reference to 'close'
- net_sockets.c:169: error: undefined reference to 'socket'
- net_sockets.c:187: error: undefined reference to 'freeaddrinfo'
- net_sockets.c:130: error: undefined reference to '__sysv_signal'
- net_sockets.c:211: error: undefined reference to 'getaddrinfo'
- net_sockets.c:218: error: undefined reference to 'socket'
- net_sockets.c:227: error: undefined reference to 'setsockopt'
- net_sockets.c:235: error: undefined reference to 'bind'
- net_sockets.c:245: error: undefined reference to 'listen'
- net_sockets.c:258: error: undefined reference to 'freeaddrinfo'
- net_sockets.c:230: error: undefined reference to 'close'
- net_sockets.c:237: error: undefined reference to 'close'
- net_sockets.c:247: error: undefined reference to 'close'
- net_sockets.c:331: error: undefined reference to 'getsockopt'
- /usr/include/x86_64-linux-gnu/bits/socket2.h:76: error: undefined reference to 'recvfrom'
- net_sockets.c:377: error: undefined reference to 'connect'
- net_sockets.c:341: error: undefined reference to 'accept'
- net_sockets.c:284: error: undefined reference to '__errno_location'
- net_sockets.c:289: error: undefined reference to 'fcntl'
- net_sockets.c:384: error: undefined reference to 'getsockname'
- net_sockets.c:386: error: undefined reference to 'socket'
- net_sockets.c:388: error: undefined reference to 'setsockopt'
- net_sockets.c:394: error: undefined reference to 'bind'
- net_sockets.c:437: error: undefined reference to 'fcntl'
- net_sockets.c:437: error: undefined reference to 'fcntl'
- net_sockets.c:448: error: undefined reference to 'fcntl'
- net_sockets.c:483: error: undefined reference to '__fdelt_chk'
- net_sockets.c:501: error: undefined reference to 'select'
- net_sockets.c:510: error: undefined reference to '__fdelt_chk'
- net_sockets.c:512: error: undefined reference to '__fdelt_chk'
- net_sockets.c:490: error: undefined reference to '__fdelt_chk'
- net_sockets.c:534: error: undefined reference to 'select'
- /usr/include/x86_64-linux-gnu/bits/unistd.h:44: error: undefined reference to 'read'
- net_sockets.c:284: error: undefined reference to '__errno_location'
- net_sockets.c:594: error: undefined reference to 'select'
- net_sockets.c:607: error: undefined reference to '__errno_location'
- net_sockets.c:629: error: undefined reference to 'write'
- net_sockets.c:284: error: undefined reference to '__errno_location'
- net_sockets.c:662: error: undefined reference to 'shutdown'
- ssl_cache.c:63: error: undefined reference to 'time'
- ssl_cache.c:114: error: undefined reference to 'calloc'
- ssl_cache.c:125: error: undefined reference to 'free'
- ssl_cache.c:150: error: undefined reference to 'time'
- ssl_cache.c:258: error: undefined reference to 'free'
- ssl_cache.c:281: error: undefined reference to 'calloc'
- ssl_cache.c:294: error: undefined reference to 'free'
- ssl_cache.c:233: error: undefined reference to 'calloc'
- ssl_cache.c:233: error: undefined reference to 'calloc'
- ssl_cache.c:341: error: undefined reference to 'free'
- ssl_cli.c:1867: error: undefined reference to 'time'
- ssl_cli.c:787: error: undefined reference to 'time'
- /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34: error: undefined reference to '__memcpy_chk'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to '__printf_chk'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to 'puts'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to '__printf_chk'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to 'puts'
- x509_create.c:119: error: undefined reference to 'strncmp'
- x509_crt.c:1404: error: undefined reference to 'strstr'
- x509_crt.c:1586: error: undefined reference to 'opendir'
- x509_crt.c:1599: error: undefined reference to 'readdir64'
- /usr/include/x86_64-linux-gnu/sys/stat.h:451: error: undefined reference to '__xstat64'
- x509_crt.c:1599: error: undefined reference to 'readdir64'
- x509_crt.c:1628: error: undefined reference to 'closedir'
- /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106: error: undefined reference to 'strncpy'
- /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106: error: undefined reference to 'strncpy'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to '__printf_chk'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to 'puts'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to 'puts'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to '__printf_chk'
- /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34: error: undefined reference to '__memcpy_chk'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to 'putchar'
- /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34: error: undefined reference to '__memcpy_chk'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to 'putchar'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to 'putchar'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to 'putchar'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:262: error: undefined reference to 'fgets'
- bignum.c:835: error: undefined reference to 'fwrite'
- bignum.c:836: error: undefined reference to 'fwrite'
- ctr_drbg.c:573: error: undefined reference to 'fopen64'
- ctr_drbg.c:593: error: undefined reference to 'fclose'
- ctr_drbg.c:580: error: undefined reference to 'fwrite'
- ctr_drbg.c:606: error: undefined reference to 'fopen64'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:294: error: undefined reference to 'fread'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:294: error: undefined reference to 'fread'
- ctr_drbg.c:628: error: undefined reference to 'fclose'
- ctr_drbg.c:615: error: undefined reference to 'ferror'
- ctr_drbg.c:620: error: undefined reference to 'fclose'
- dhm.c:585: error: undefined reference to 'fopen64'
- dhm.c:588: error: undefined reference to 'fseek'
- dhm.c:589: error: undefined reference to 'ftell'
- dhm.c:594: error: undefined reference to 'fseek'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:294: error: undefined reference to 'fread'
- dhm.c:615: error: undefined reference to 'fclose'
- dhm.c:619: error: undefined reference to 'strstr'
- /usr/include/x86_64-linux-gnu/bits/string_fortified.h:71: error: undefined reference to '__memset_chk'
- entropy.c:470: error: undefined reference to 'fopen64'
- entropy.c:476: error: undefined reference to 'fwrite'
- entropy.c:501: error: undefined reference to 'fseek'
- entropy.c:502: error: undefined reference to 'ftell'
- entropy.c:503: error: undefined reference to 'fseek'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:289: error: undefined reference to '__fread_chk'
- /usr/include/x86_64-linux-gnu/bits/stdio2.h:294: error: undefined reference to 'fread'
- entropy_poll.c:112: error: undefined reference to 'syscall'
- hmac_drbg.c:434: error: undefined reference to 'ferror'
- md.c:305: error: undefined reference to 'ferror'
- pem.c:251: error: undefined reference to 'strstr'
- pem.c:256: error: undefined reference to 'strstr'
- pkparse.c:91: error: undefined reference to 'ftell'
- platform_util.c:112: error: undefined reference to 'gmtime_r'
- /usr/include/x86_64-linux-gnu/bits/string_fortified.h:71: error: undefined reference to '__memset_chk'
- rsa.c:2573: error: undefined reference to 'rand'
- timing.c:320: error: undefined reference to 'signal'
- timing.c:310: error: undefined reference to 'gettimeofday'
- timing.c:303: error: undefined reference to 'gettimeofday'
- timing.c:326: error: undefined reference to 'signal'
- timing.c:327: error: undefined reference to 'alarm'
- collect2: error: ld returned 1 exit status
- error: aborting due to previous error
- error: Could not compile `testcrate`.
- To learn more, run the command again with --verbose.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement