You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@teaclave.apache.org by GitBox <gi...@apache.org> on 2020/06/03 08:47:10 UTC
[GitHub] [incubator-teaclave] 60ke opened a new issue #334: docker 无法启动
60ke opened a new issue #334:
URL: https://github.com/apache/incubator-teaclave/issues/334
本地环境搭建好了,intel dcap的sample也跑通了。docker build失败:
```bash
error: aborting due to previous error
error: could not compile `teaclave_dcap_ref_as`.
```
后来从docker hub pull了一个镜像 启动失败:
```bash
docker pull teaclave/teaclave-build-ubuntu-1804-sgx-dcap-1.6
# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
teaclave/teaclave-build-ubuntu-1804-sgx-dcap-1.6 latest 2df43a07ce77 5 weeks ago 2.94GB
teaclave/teaclave-build-ubuntu-1804-sgx-2.9.1 latest 064ec33c02d5 5 weeks ago
# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
98f1daa71a3d 2df43a07ce77 "/bin/bash" 27 seconds ago Exited (0) 26 seconds ago
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org
[GitHub] [incubator-teaclave] 60ke closed issue #334: docker 无法启动
Posted by GitBox <gi...@apache.org>.
60ke closed issue #334:
URL: https://github.com/apache/incubator-teaclave/issues/334
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org
[GitHub] [incubator-teaclave] 60ke commented on issue #334: docker 无法启动
Posted by GitBox <gi...@apache.org>.
60ke commented on issue #334:
URL: https://github.com/apache/incubator-teaclave/issues/334#issuecomment-638746776
> 1. 能不能把编译 `teaclave_dcap_ref_as` 错误的 log 发一下?
> 2. 我用 `docker run --rm -it teaclave/teaclave-build-ubuntu-1804-sgx-dcap-1.6 /bin/bash` 是可以启动 docker 的,没办法重现你所说的问题。
```bash
Compiling teaclave_dcap_ref_as v0.1.0 (/teaclave/build/cmake_tomls/unix_app/dcap)
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/root/.rustup/toolchains/nightly-2020-04-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.teaclave_dcap_ref_as.c4khteit-cgu.0.rcgu.o" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.teaclave_dcap_ref_as.c4khteit-cgu.1.rcgu.o" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.teaclave_dcap_ref_as.c4khteit-cgu.10.rcgu.o" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.teaclave_dcap_ref_as.c4khteit-cgu.11.rcgu.o" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.teaclave_dcap_ref_as.c4khteit-cgu.12.rcgu.o" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.teaclave_dcap_ref_as.c4khteit-cgu.13.rcgu.o" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.teaclave_dcap_ref_as.c4khteit-cgu.14.rcgu.o" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.teaclave_dcap_ref_as.c4khteit-cgu.15.rcgu.o" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.teaclave_dcap_ref_as.c4khteit-cgu.2.rcgu.o" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.teaclave_dcap_ref_as.c4khteit-cgu.3.rcgu.o" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.teaclave_dcap_ref_as.c4khteit-cgu.4.rcgu.o" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.teaclave_dcap_ref_as.c4khteit-cgu.5.rcgu.o" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.teaclave_dcap_ref_as.c4khteit-cgu.6.rcgu.o" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.teaclave_dcap_ref_as.c4khteit-cgu.7.rcgu.o" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.teaclave_dcap_ref_as.c4khteit-cgu.8.rcgu.o" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.teaclave_dcap_ref_as.c4khteit-cgu.9.rcgu.o" "-o" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3" "/teaclave/build/target/unix/debug/deps/teaclave_dcap_ref_as-792cd81302667cb3.4z4ntxwdifp3hdds.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/teaclave/build/target/unix/debug/deps" "-L" "/teaclave/build/target/unix/debug/build/ring-4e751fe7ef204568/out" "-L" "/opt/sgxsdk/lib64" "-L" "/root/.rustup/toolchains/nightly-2020-04-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lsgx_dcap_quoteverify" "-lsgx_dcap_ql" "-lsgx_urts" "-Wl,-Bstatic" "/teaclave/build/target/unix/debug/deps/libpem-52d42fd85d16988b.rlib" "/teaclave/build/target/unix/debug/deps/libregex-a204aeb32b8c1c31.rlib" "/teaclave/build/target/unix/debug/deps/libthread_local-a3521d504bd8f290.rlib" "/teaclave/build/target/unix/debug/deps/libregex_syntax-c7619cf4b9a0342f.rlib" "/teaclave/build/target/unix/debug/deps/libaho_corasick-78d93fa2c5b4aabe.rlib" "/teaclave/build/target/unix/debug/deps/libuuid-fe26132252106821.rlib" "/teaclave/build/target/unix/debug/deps/libsgx_ucrypto-5e220750f783dba2.rlib" "/teaclave/build/target/unix/debug/deps/librand_core-1865baf9c743dc12.rlib" "/teaclave/build/target/unix/debug/deps/librdrand-1a0e3d9b16e069d9.rlib" "/teaclave/build/target/unix/debug/deps/librand_core-3a698b15f161056b.rlib" "/teaclave/build/target/unix/debug/deps/libsgx_types-c2bea4f440874554.rlib" "/teaclave/build/target/unix/debug/deps/libserde_json-a0669b6cfa2493ff.rlib" "/teaclave/build/target/unix/debug/deps/libryu-950af5789f29c7b1.rlib" "/teaclave/build/target/unix/debug/deps/libitoa-a4afa66527930f8d.rlib" "/teaclave/build/target/unix/debug/deps/librand-9c4d368f850132eb.rlib" "/teaclave/build/target/unix/debug/deps/librand_chacha-69020c91628d83c7.rlib" "/teaclave/build/target/unix/debug/deps/libppv_lite86-4b4a308a2124b254.rlib" "/teaclave/build/target/unix/debug/deps/librand_core-b4b8ab8e89f9d949.rlib" "/teaclave/build/target/unix/debug/deps/libgetrandom-662bdd3ccabcc320.rlib" "/teaclave/build/target/unix/debug/deps/libchrono-e7f5909436170d69.rlib" "/teaclave/build/target/unix/debug/deps/libnum_integer-4762b4d7f1c2e2ae.rlib" "/teaclave/build/target/unix/debug/deps/libnum_traits-99aa88b5243f6508.rlib" "/teaclave/build/target/unix/debug/deps/librocket-8eab8889060651c4.rlib" "/teaclave/build/target/unix/debug/deps/libbinascii-47f7f37cbc16c843.rlib" "/teaclave/build/target/unix/debug/deps/libatty-9cc3c3a21baa893f.rlib" "/teaclave/build/target/unix/debug/deps/librocket_http-6cac5e35d2ce2e91.rlib" "/teaclave/build/target/unix/debug/deps/libindexmap-381d974e8f2d28b6.rlib" "/teaclave/build/target/unix/debug/deps/libcookie-97111450eeb34ab0.rlib" "/teaclave/build/target/unix/debug/deps/libbase64-13bb3a3053ecf0d8.rlib" "/teaclave/build/target/unix/debug/deps/libpercent_encoding-0de3b805f7ac4134.rlib" "/teaclave/build/target/unix/debug/deps/libunicode_xid-8102a7debacf0baa.rlib" "/teaclave/build/target/unix/debug/deps/libhyper_sync_rustls-4e6e5c3880b3c073.rlib" "/teaclave/build/target/unix/debug/deps/libwebpki_roots-9ea98cbc1b8e97dd.rlib" "/teaclave/build/target/unix/debug/deps/librustls-469c7677e28cbc73.rlib" "/teaclave/build/target/unix/debug/deps/libbase64-5df6bdb3393b29c4.rlib" "/teaclave/build/target/unix/debug/deps/libsct-854bfc85acec67de.rlib" "/teaclave/build/target/unix/debug/deps/libwebpki-56443d955a848264.rlib" "/teaclave/build/target/unix/debug/deps/libring-bb17445cf7aaba04.rlib" "/teaclave/build/target/unix/debug/deps/libspin-5a76732e4f249b56.rlib" "/teaclave/build/target/unix/debug/deps/liblazy_static-e8d0fcd846fd43e8.rlib" "/teaclave/build/target/unix/debug/deps/libuntrusted-4c638cd2061bb65f.rlib" "/teaclave/build/target/unix/debug/deps/libhyper-decc97d345993f5a.rlib" "/teaclave/build/target/unix/debug/deps/libmime-4656296def0fa722.rlib" "/teaclave/build/target/unix/debug/deps/liblog-8ca5275367362654.rlib" "/teaclave/build/target/unix/debug/deps/liblanguage_tags-7a2cfe85a7235d72.rlib" "/teaclave/build/target/unix/debug/deps/libtypeable-5d4315e2c57ad47b.rlib" "/teaclave/build/target/unix/debug/deps/libtraitobject-343a8cba90793a1e.rlib" "/teaclave/build/target/unix/debug/deps/libnum_cpus-e385143875d0ef85.rlib" "/teaclave/build/target/unix/debug/deps/libhttparse-e85e13ac4d67401d.rlib" "/teaclave/build/target/unix/debug/deps/libunicase-ec0ff9f1041dfac7.rlib" "/teaclave/build/target/unix/debug/deps/liburl-0c8949274a75bdb0.rlib" "/teaclave/build/target/unix/debug/deps/libpercent_encoding-7093e1ee51655e97.rlib" "/teaclave/build/target/unix/debug/deps/libidna-a9ebfe114da3ecd2.rlib" "/teaclave/build/target/unix/debug/deps/libunicode_normalization-1a2417a9e98c92b4.rlib" "/teaclave/build/target/unix/debug/deps/libsmallvec-3112d90514e4748a.rlib" "/teaclave/build/target/unix/debug/deps/libunicode_bidi-46ddd28428b2ff37.rlib" "/teaclave/build/target/unix/debug/deps/libmatches-a1c5d8ff7097d2c4.rlib" "/teaclave/build/target/unix/debug/deps/libtime-01a3a116efa55fb5.rlib" "/teaclave/build/target/unix/debug/deps/libbase64-47124ec074459fd9.rlib" "/teaclave/build/target/unix/debug/deps/libsafemem-ef7103d20bc9f02a.rlib" "/teaclave/build/target/unix/debug/deps/libbyteorder-a0ae8b7982465d10.rlib" "/teaclave/build/target/unix/debug/deps/libtoml-2f6ae19a5c8de9d2.rlib" "/teaclave/build/target/unix/debug/deps/libserde-8afb67d581f59408.rlib" "/teaclave/build/target/unix/debug/deps/libtime-7814df5cfeb48478.rlib" "/teaclave/build/target/unix/debug/deps/liblibc-e36123c1fe9e120f.rlib" "/teaclave/build/target/unix/debug/deps/libstandback-11ce9142d662cf5d.rlib" "/teaclave/build/target/unix/debug/deps/libtime_macros-21a29e200b5b1884.rlib" "/teaclave/build/target/unix/debug/deps/libmemchr-3daf40e1f337e844.rlib" "/teaclave/build/target/unix/debug/deps/libstate-52d524c0e3fe646b.rlib" "/teaclave/build/target/unix/debug/deps/libyansi-a24016f2a456044c.rlib" "/teaclave/build/target/unix/debug/deps/libpear-94e3c0e7fb366d99.rlib" "/teaclave/build/target/unix/debug/deps/liblog-607655ac55ab7686.rlib" "/teaclave/build/target/unix/debug/deps/libcfg_if-b119cae66d6c7553.rlib" "-Wl,--start-group" "/root/.rustup/toolchains/nightly-2020-04-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-5880c0f0bfd74f3b.rlib" "/root/.rustup/toolchains/nightly-2020-04-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-80318e9a073232dc.rlib" "/root/.rustup/toolchains/nightly-2020-04-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-32bb59042e6ce4f7.rlib" "/root/.rustup/toolchains/nightly-2020-04-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-9b38c0948c2d27e2.rlib" "/root/.rustup/toolchains/nightly-2020-04-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-7a3d82bf6cf61acc.rlib" "/root/.rustup/toolchains/nightly-2020-04-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-a66835881023c910.rlib" "/root/.rustup/toolchains/nightly-2020-04-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-21e51998beafe269.rlib" "/root/.rustup/toolchains/nightly-2020-04-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-ff91d811cb2cc06b.rlib" "/root/.rustup/toolchains/nightly-2020-04-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-1a3ebd51865a27a7.rlib" "/root/.rustup/toolchains/nightly-2020-04-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-42821e074cc8ca7e.rlib" "/root/.rustup/toolchains/nightly-2020-04-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-3820a32f8f6914a6.rlib" "/root/.rustup/toolchains/nightly-2020-04-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-f50813bc0da88bf6.rlib" "/root/.rustup/toolchains/nightly-2020-04-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-a2554e6c88c3fd7a.rlib" "-Wl,--end-group" "/root/.rustup/toolchains/nightly-2020-04-07-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-cc0b971ba3542be2.rlib" "-Wl,-Bdynamic" "-lutil" "-ldl" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
= note: /usr/bin/ld: cannot find -lsgx_dcap_quoteverify
/usr/bin/ld: cannot find -lsgx_dcap_ql
collect2: error: ld returned 1 exit status
error: aborting due to previous error
error: could not compile `teaclave_dcap_ref_as`.
To learn more, run the command again with --verbose.
cp: cannot stat '/teaclave/build/target/unix/debug/teaclave_dcap_ref_as': No such file or directory
CMakeFiles/unixapp-teaclave_dcap_ref_as.dir/build.make:57: recipe for target 'CMakeFiles/unixapp-teaclave_dcap_ref_as' failed
make[2]: *** [CMakeFiles/unixapp-teaclave_dcap_ref_as] Error 1
CMakeFiles/Makefile2:1331: recipe for target 'CMakeFiles/unixapp-teaclave_dcap_ref_as.dir/all' failed
make[1]: *** [CMakeFiles/unixapp-teaclave_dcap_ref_as.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org
[GitHub] [incubator-teaclave] mssun commented on issue #334: docker 无法启动
Posted by GitBox <gi...@apache.org>.
mssun commented on issue #334:
URL: https://github.com/apache/incubator-teaclave/issues/334#issuecomment-638347309
1. 能不能把编译 `teaclave_dcap_ref_as` 错误的 log 发一下?
2. 我用 `docker run --rm -it teaclave/teaclave-build-ubuntu-1804-sgx-dcap-1.6 /bin/bash` 是可以启动 docker 的,没办法重现你所说的问题。
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org
[GitHub] [incubator-teaclave] 60ke commented on issue #334: docker 无法启动
Posted by GitBox <gi...@apache.org>.
60ke commented on issue #334:
URL: https://github.com/apache/incubator-teaclave/issues/334#issuecomment-639252861
> You need to install dcap quote library, more dependencies you can find them in the docker file for dcap: https://github.com/apache/incubator-teaclave/blob/master/docker/build.ubuntu-1804.sgx-dcap-1.6.Dockerfile#L44.
>
> Also, please refer to the official document for installation instruction: https://download.01.org/intel-sgx/sgx-dcap/1.6/linux/docs/Intel_SGX_DCAP_Linux_SW_Installation_Guide.pdf
dcap装好了,之前报错的原因找到了,
docker build 的时候只在cmake添加了`-DDCAP=ON` 未替换`teaclave/teaclave-build-ubuntu-1804-sgx-2.9.1:latest` 为`teaclave/teaclave-build-ubuntu-1804-sgx-dcap-1.6`
之前是看到了这个https://github.com/apache/incubator-teaclave-sgx-sdk/issues/135#issuecomment-631630380,过来看看实现 感谢!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org
[GitHub] [incubator-teaclave] mssun commented on issue #334: docker 无法启动
Posted by GitBox <gi...@apache.org>.
mssun commented on issue #334:
URL: https://github.com/apache/incubator-teaclave/issues/334#issuecomment-639103522
You need to install dcap quote library, more dependencies you can find them in the docker file for dcap: https://github.com/apache/incubator-teaclave/blob/master/docker/build.ubuntu-1804.sgx-dcap-1.6.Dockerfile#L44.
Also, please refer to the official document for installation instruction: https://download.01.org/intel-sgx/sgx-dcap/1.6/linux/docs/Intel_SGX_DCAP_Linux_SW_Installation_Guide.pdf
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org