Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.24 KB | None | 0 0
  1. enarxnuc@enarxnuc:~/Repos/enarx/mbedtls-library/mbedtls-src/testcrate$ cargo test --target=x86_64-fortanix-unknown-sgx
  2. Compiling bitflags v1.2.0
  3. Compiling cc v1.0.45
  4. Compiling sgx-isa v0.2.0
  5. Compiling mbedtls-src v0.0.0+3.0.0p1 (/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src)
  6. Compiling testcrate v0.1.0 (/home/enarxnuc/Repos/enarx/mbedtls-library/mbedtls-src/testcrate)
  7. error: linking with `cc` failed: exit code: 1
  8. |
  9. = 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"
  10. = note: /usr/include/x86_64-linux-gnu/bits/stdio2.h:64: error: undefined reference to '__snprintf_chk'
  11. /usr/include/x86_64-linux-gnu/bits/stdio2.h:64: error: undefined reference to '__snprintf_chk'
  12. /usr/include/x86_64-linux-gnu/bits/stdio2.h:64: error: undefined reference to '__snprintf_chk'
  13. /usr/include/x86_64-linux-gnu/bits/stdio2.h:77: error: undefined reference to '__vsnprintf_chk'
  14. /usr/include/x86_64-linux-gnu/bits/stdio2.h:64: error: undefined reference to '__snprintf_chk'
  15. /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34: error: undefined reference to '__memcpy_chk'
  16. net_sockets.c:130: error: undefined reference to '__sysv_signal'
  17. net_sockets.c:162: error: undefined reference to 'getaddrinfo'
  18. net_sockets.c:177: error: undefined reference to 'connect'
  19. net_sockets.c:183: error: undefined reference to 'close'
  20. net_sockets.c:169: error: undefined reference to 'socket'
  21. net_sockets.c:187: error: undefined reference to 'freeaddrinfo'
  22. net_sockets.c:130: error: undefined reference to '__sysv_signal'
  23. net_sockets.c:211: error: undefined reference to 'getaddrinfo'
  24. net_sockets.c:218: error: undefined reference to 'socket'
  25. net_sockets.c:227: error: undefined reference to 'setsockopt'
  26. net_sockets.c:235: error: undefined reference to 'bind'
  27. net_sockets.c:245: error: undefined reference to 'listen'
  28. net_sockets.c:258: error: undefined reference to 'freeaddrinfo'
  29. net_sockets.c:230: error: undefined reference to 'close'
  30. net_sockets.c:237: error: undefined reference to 'close'
  31. net_sockets.c:247: error: undefined reference to 'close'
  32. net_sockets.c:331: error: undefined reference to 'getsockopt'
  33. /usr/include/x86_64-linux-gnu/bits/socket2.h:76: error: undefined reference to 'recvfrom'
  34. net_sockets.c:377: error: undefined reference to 'connect'
  35. net_sockets.c:341: error: undefined reference to 'accept'
  36. net_sockets.c:284: error: undefined reference to '__errno_location'
  37. net_sockets.c:289: error: undefined reference to 'fcntl'
  38. net_sockets.c:384: error: undefined reference to 'getsockname'
  39. net_sockets.c:386: error: undefined reference to 'socket'
  40. net_sockets.c:388: error: undefined reference to 'setsockopt'
  41. net_sockets.c:394: error: undefined reference to 'bind'
  42. net_sockets.c:437: error: undefined reference to 'fcntl'
  43. net_sockets.c:437: error: undefined reference to 'fcntl'
  44. net_sockets.c:448: error: undefined reference to 'fcntl'
  45. net_sockets.c:483: error: undefined reference to '__fdelt_chk'
  46. net_sockets.c:501: error: undefined reference to 'select'
  47. net_sockets.c:510: error: undefined reference to '__fdelt_chk'
  48. net_sockets.c:512: error: undefined reference to '__fdelt_chk'
  49. net_sockets.c:490: error: undefined reference to '__fdelt_chk'
  50. net_sockets.c:534: error: undefined reference to 'select'
  51. /usr/include/x86_64-linux-gnu/bits/unistd.h:44: error: undefined reference to 'read'
  52. net_sockets.c:284: error: undefined reference to '__errno_location'
  53. net_sockets.c:594: error: undefined reference to 'select'
  54. net_sockets.c:607: error: undefined reference to '__errno_location'
  55. net_sockets.c:629: error: undefined reference to 'write'
  56. net_sockets.c:284: error: undefined reference to '__errno_location'
  57. net_sockets.c:662: error: undefined reference to 'shutdown'
  58. ssl_cache.c:63: error: undefined reference to 'time'
  59. ssl_cache.c:114: error: undefined reference to 'calloc'
  60. ssl_cache.c:125: error: undefined reference to 'free'
  61. ssl_cache.c:150: error: undefined reference to 'time'
  62. ssl_cache.c:258: error: undefined reference to 'free'
  63. ssl_cache.c:281: error: undefined reference to 'calloc'
  64. ssl_cache.c:294: error: undefined reference to 'free'
  65. ssl_cache.c:233: error: undefined reference to 'calloc'
  66. ssl_cache.c:233: error: undefined reference to 'calloc'
  67. ssl_cache.c:341: error: undefined reference to 'free'
  68. ssl_cli.c:1867: error: undefined reference to 'time'
  69. ssl_cli.c:787: error: undefined reference to 'time'
  70. /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34: error: undefined reference to '__memcpy_chk'
  71. /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to '__printf_chk'
  72. /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to 'puts'
  73. /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to '__printf_chk'
  74. /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to 'puts'
  75. x509_create.c:119: error: undefined reference to 'strncmp'
  76. x509_crt.c:1404: error: undefined reference to 'strstr'
  77. x509_crt.c:1586: error: undefined reference to 'opendir'
  78. x509_crt.c:1599: error: undefined reference to 'readdir64'
  79. /usr/include/x86_64-linux-gnu/sys/stat.h:451: error: undefined reference to '__xstat64'
  80. x509_crt.c:1599: error: undefined reference to 'readdir64'
  81. x509_crt.c:1628: error: undefined reference to 'closedir'
  82. /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106: error: undefined reference to 'strncpy'
  83. /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106: error: undefined reference to 'strncpy'
  84. /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to '__printf_chk'
  85. /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to 'puts'
  86. /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to 'puts'
  87. /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to '__printf_chk'
  88. /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34: error: undefined reference to '__memcpy_chk'
  89. /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to 'putchar'
  90. /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34: error: undefined reference to '__memcpy_chk'
  91. /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to 'putchar'
  92. /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to 'putchar'
  93. /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: error: undefined reference to 'putchar'
  94. /usr/include/x86_64-linux-gnu/bits/stdio2.h:262: error: undefined reference to 'fgets'
  95. bignum.c:835: error: undefined reference to 'fwrite'
  96. bignum.c:836: error: undefined reference to 'fwrite'
  97. ctr_drbg.c:573: error: undefined reference to 'fopen64'
  98. ctr_drbg.c:593: error: undefined reference to 'fclose'
  99. ctr_drbg.c:580: error: undefined reference to 'fwrite'
  100. ctr_drbg.c:606: error: undefined reference to 'fopen64'
  101. /usr/include/x86_64-linux-gnu/bits/stdio2.h:294: error: undefined reference to 'fread'
  102. /usr/include/x86_64-linux-gnu/bits/stdio2.h:294: error: undefined reference to 'fread'
  103. ctr_drbg.c:628: error: undefined reference to 'fclose'
  104. ctr_drbg.c:615: error: undefined reference to 'ferror'
  105. ctr_drbg.c:620: error: undefined reference to 'fclose'
  106. dhm.c:585: error: undefined reference to 'fopen64'
  107. dhm.c:588: error: undefined reference to 'fseek'
  108. dhm.c:589: error: undefined reference to 'ftell'
  109. dhm.c:594: error: undefined reference to 'fseek'
  110. /usr/include/x86_64-linux-gnu/bits/stdio2.h:294: error: undefined reference to 'fread'
  111. dhm.c:615: error: undefined reference to 'fclose'
  112. dhm.c:619: error: undefined reference to 'strstr'
  113. /usr/include/x86_64-linux-gnu/bits/string_fortified.h:71: error: undefined reference to '__memset_chk'
  114. entropy.c:470: error: undefined reference to 'fopen64'
  115. entropy.c:476: error: undefined reference to 'fwrite'
  116. entropy.c:501: error: undefined reference to 'fseek'
  117. entropy.c:502: error: undefined reference to 'ftell'
  118. entropy.c:503: error: undefined reference to 'fseek'
  119. /usr/include/x86_64-linux-gnu/bits/stdio2.h:289: error: undefined reference to '__fread_chk'
  120. /usr/include/x86_64-linux-gnu/bits/stdio2.h:294: error: undefined reference to 'fread'
  121. entropy_poll.c:112: error: undefined reference to 'syscall'
  122. hmac_drbg.c:434: error: undefined reference to 'ferror'
  123. md.c:305: error: undefined reference to 'ferror'
  124. pem.c:251: error: undefined reference to 'strstr'
  125. pem.c:256: error: undefined reference to 'strstr'
  126. pkparse.c:91: error: undefined reference to 'ftell'
  127. platform_util.c:112: error: undefined reference to 'gmtime_r'
  128. /usr/include/x86_64-linux-gnu/bits/string_fortified.h:71: error: undefined reference to '__memset_chk'
  129. rsa.c:2573: error: undefined reference to 'rand'
  130. timing.c:320: error: undefined reference to 'signal'
  131. timing.c:310: error: undefined reference to 'gettimeofday'
  132. timing.c:303: error: undefined reference to 'gettimeofday'
  133. timing.c:326: error: undefined reference to 'signal'
  134. timing.c:327: error: undefined reference to 'alarm'
  135. collect2: error: ld returned 1 exit status
  136.  
  137.  
  138. error: aborting due to previous error
  139.  
  140. error: Could not compile `testcrate`.
  141.  
  142. To learn more, run the command again with --verbose.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement