Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker install fail #237

Open
hanson-wen opened this issue Jan 8, 2024 · 6 comments
Open

docker install fail #237

hanson-wen opened this issue Jan 8, 2024 · 6 comments

Comments

@hanson-wen
Copy link

hanson-wen commented Jan 8, 2024

Issue description

my machine is 5.15, Release: 22.04
I run follow commands:
DOCKER_BUILDKIT=1 docker build --target export -o. - < Dockerfile.focal

but get:

#7 799.1 -- Detecting CXX compile features - done
#7 799.1 CMake Warning at CMakeLists.txt:172 (message):
#7 799.1   The `Release` build type has been deprecated.  Build problems may occur.
#7 799.1   Consider using `RelWithDebInfo` instead.
#7 799.1 
#7 799.1 
#7 799.1 -- Build type: Release
#7 799.1 -- Not using CCache
#7 799.1 -- Performing Test SPECTRE_MITIGATION_C_FLAGS_SUPPORTED
#7 799.1 -- Performing Test SPECTRE_MITIGATION_C_FLAGS_SUPPORTED - Success
#7 799.1 -- Performing Test SPECTRE_MITIGATION_CXX_FLAGS_SUPPORTED
#7 799.1 -- Performing Test SPECTRE_MITIGATION_CXX_FLAGS_SUPPORTED - Success
#7 799.1 -- Spectre 1 mitigation supported
#7 799.1 -- Valgrind not found
#7 799.1 CMake Error at host/CMakeLists.txt:270 (file):
#7 799.1   file DOWNLOAD HASH mismatch
#7 799.1 
#7 799.1     for file: [/ertbuild/3rdparty/openenclave/openenclave/host/sgx.h]
#7 799.1       expected hash: [4764b8ce858579d99f1b66bb1e5f04ba149a38aea15649fff19f65f8d9113fd0]
#7 799.1         actual hash: [e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855]
#7 799.1              status: [7;"Couldn't connect to server"]
#7 799.1 
#7 799.1 
#7 799.1 
#7 799.1 -- Looking for crypto library - found
#7 799.1 -- Looking for dl library - found
#7 799.1 -- Looking for pthread.h
#7 799.1 -- Looking for pthread.h - found
#7 799.1 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
#7 799.1 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
#7 799.1 -- Looking for pthread_create in pthreads
#7 799.1 -- Looking for pthread_create in pthreads - not found
#7 799.1 -- Looking for pthread_create in pthread
#7 799.1 -- Looking for pthread_create in pthread - found
#7 799.1 -- Found Threads: TRUE  
#7 799.1 -- Looking for getopt_long
#7 799.1 -- Looking for getopt_long - found
#7 799.1 -- Configuring incomplete, errors occurred!
#7 799.1 See also "/ertbuild/3rdparty/openenclave/openenclave/CMakeFiles/CMakeOutput.log".
#7 799.1 See also "/ertbuild/3rdparty/openenclave/openenclave/CMakeFiles/CMakeError.log".
#7 799.1 ninja: build stopped: subcommand failed.

executor failed running [/bin/sh -c cd edgelessrt && export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) && cd /ertbuild   && cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF /edgelessrt   && ninja install]: exit code: 1

and, in the beginning, git clone often times out, fail.

=> => # Failed to clone '3rdparty/mystikos/mystikos'. Retry scheduled                                                                                                                                          
 => => # Cloning into '/edgelessrt/3rdparty/ttls'...                                                                                                                                                            
 => => # fatal: unable to access 'https://github.com/edgelesssys/ttls/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.                                                              
 => => # fatal: clone of 'https://github.com/edgelesssys/ttls' into submodule path '/edgelessrt/3rdparty/ttls' failed                                                                                           
 => => # Failed to clone '3rdparty/ttls'. Retry scheduled                                                                                                                                                       
 => => # Cloning into '/edgelessrt/3rdparty/go'...
@thomasten
Copy link
Member

Hi,

It seems that your machine can't access https://raw.githubusercontent.com/torvalds/linux/v5.13/arch/x86/include/uapi/asm/sgx.h

I guess you and/or your machine are located in China? Direct connections from China to Github often don't work well. You may be able to improve the connection using a VPN or use a remote machine.

@hanson-wen
Copy link
Author

hanson-wen commented Jan 9, 2024

Hi,

It seems that your machine can't access https://raw.githubusercontent.com/torvalds/linux/v5.13/arch/x86/include/uapi/asm/sgx.h

I guess you and/or your machine are located in China? Direct connections from China to Github often don't work well. You may be able to improve the connection using a VPN or use a remote machine.

yeah, the second is the network problem, but when it works, it occur the error which I paste at the beginning of the issue.

@thomasten
Copy link
Member

I assume that most of Github is only filtered, but raw.githubusercontent.com is probably fully blocked.

@hanson-wen
Copy link
Author

but how to do for this error:

#7 799.1 CMake Error at host/CMakeLists.txt:270 (file):
#7 799.1   file DOWNLOAD HASH mismatch
#7 799.1 
#7 799.1     for file: [/ertbuild/3rdparty/openenclave/openenclave/host/sgx.h]
#7 799.1       expected hash: [4764b8ce858579d99f1b66bb1e5f04ba149a38aea15649fff19f65f8d9113fd0]
#7 799.1         actual hash: [e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855]
#7 799.1              status: [7;"Couldn't connect to server"]

@hanson-wen
Copy link
Author

hanson-wen commented Jan 10, 2024

when run dev target, fail by this:

#9 397.4 FAILED: compiler-rt-sources-populate-prefix/src/compiler-rt-sources-populate-stamp/compiler-rt-sources-populate-download /ertbuild/3rdparty/openenclave/openenclave/_deps/compiler-rt-sources-subbuild/compiler-rt-sources-populate-prefix/src/compiler-rt-sources-populate-stamp/compiler-rt-sources-populate-download 
#9 397.4 cd /ertbuild/3rdparty/openenclave/openenclave-src/3rdparty/compiler-rt && /usr/bin/cmake -P /ertbuild/3rdparty/openenclave/openenclave/_deps/compiler-rt-sources-subbuild/compiler-rt-sources-populate-prefix/src/compiler-rt-sources-populate-stamp/download-compiler-rt-sources-populate.cmake && /usr/bin/cmake -P /ertbuild/3rdparty/openenclave/openenclave/_deps/compiler-rt-sources-subbuild/compiler-rt-sources-populate-prefix/src/compiler-rt-sources-populate-stamp/verify-compiler-rt-sources-populate.cmake && /usr/bin/cmake -P /ertbuild/3rdparty/openenclave/openenclave/_deps/compiler-rt-sources-subbuild/compiler-rt-sources-populate-prefix/src/compiler-rt-sources-populate-stamp/extract-compiler-rt-sources-populate.cmake && /usr/bin/cmake -E touch /ertbuild/3rdparty/openenclave/openenclave/_deps/compiler-rt-sources-subbuild/compiler-rt-sources-populate-prefix/src/compiler-rt-sources-populate-stamp/compiler-rt-sources-populate-download
#9 397.4 ninja: build stopped: subcommand failed.
#9 397.4 
#9 397.4 CMake Error at /usr/share/cmake-3.22/Modules/FetchContent.cmake:1087 (message):
#9 397.4   Build step for compiler-rt-sources failed: 1
#9 397.4 Call Stack (most recent call first):
#9 397.4   /usr/share/cmake-3.22/Modules/FetchContent.cmake:1216:EVAL:2 (__FetchContent_directPopulate)
#9 397.4   /usr/share/cmake-3.22/Modules/FetchContent.cmake:1216 (cmake_language)
#9 397.4   3rdparty/compiler-rt/CMakeLists.txt:14 (FetchContent_Populate)
#9 397.4 
#9 397.4 
#9 397.4 -- Configuring incomplete, errors occurred!
#9 397.4 See also "/ertbuild/3rdparty/openenclave/openenclave/CMakeFiles/CMakeOutput.log".
#9 397.4 See also "/ertbuild/3rdparty/openenclave/openenclave/CMakeFiles/CMakeError.log".
#9 397.4 ninja: build stopped: subcommand failed.
------
executor failed running [/bin/sh -c cd edgelessrt && export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) && cd /ertbuild   && cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF /edgelessrt   && ninja install]: exit code: 1

@thomasten
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants