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

ERROR: failed to solve: process "bash install.sh" did not complete successfully: exit code: 2 #43

Open
ALIEN-orBoT opened this issue Mar 4, 2024 · 2 comments

Comments

@ALIEN-orBoT
Copy link

Hi,
When I Create Docker image, run "docker build -t motion ."in the /MOTION/docker directory, the error occured.
My version:
gcc version 11.4.0
boost 1.74
OpenSSL 3.0.2

 => ERROR [7/7] RUN ["bash", "install.sh"]                                          161.6s
------                                                                                     
 > [7/7] RUN ["bash", "install.sh"]:                                                       
0.173 Cloning into 'MOTION'...                                                             
7.445 Submodule 'extern/benchmark' (https://github.com/google/benchmark.git) registered for path 'extern/benchmark'                                                                   
7.446 Submodule 'extern/flatbuffers' (https://github.com/google/flatbuffers.git) registered for path 'extern/flatbuffers'
7.446 Submodule 'extern/fmt' (https://github.com/fmtlib/fmt.git) registered for path 'extern/fmt'
7.446 Submodule 'extern/googletest' (https://github.com/google/googletest.git) registered for path 'extern/googletest'
7.450 Cloning into '/root/MOTION/extern/benchmark'...
12.73 Cloning into '/root/MOTION/extern/flatbuffers'...
27.74 Cloning into '/root/MOTION/extern/fmt'...
43.20 Cloning into '/root/MOTION/extern/googletest'...
134.2 Submodule path 'extern/benchmark': checked out '361e8d1cfe0c6c36d30b39f1b61302ece5507320'
134.3 Submodule path 'extern/flatbuffers': checked out 'a9a295fecf3fbd5a4f571f53b01f63202a3e2113'
134.3 Submodule path 'extern/fmt': checked out 'c4ee726532178e556d923372f29163bd206d7732'
134.4 Submodule path 'extern/googletest': checked out '15460959cbbfa20e66ef0b5ab497367e47fc0a04'
134.4 -- The CXX compiler identification is GNU 10.5.0
134.4 -- Detecting CXX compiler ABI info
134.5 -- Detecting CXX compiler ABI info - done
134.5 -- Check for working CXX compiler: /usr/bin/c++ - skipped
134.5 -- Detecting CXX compile features
134.5 -- Detecting CXX compile features - done
134.5 -- Looking for C++ include pthread.h
134.5 -- Looking for C++ include pthread.h - found
134.5 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
134.6 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
134.6 -- Looking for pthread_create in pthreads
134.6 -- Looking for pthread_create in pthreads - not found
134.6 -- Looking for pthread_create in pthread
134.6 -- Looking for pthread_create in pthread - found
134.6 -- Found Threads: TRUE  
134.6 -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1f")  
134.7 -- Found OpenMP_CXX: -fopenmp (found version "4.5") 
134.7 -- Found OpenMP: TRUE (found version "4.5")  
134.8 BUILD TYPE: Release
134.8 fmt was not found: add fmt subdirectory
134.8 flatbuffers was not found: add flatbuffers subdirectory
134.8 -- The C compiler identification is GNU 9.4.0
134.8 -- Detecting C compiler ABI info
134.8 -- Detecting C compiler ABI info - done
134.8 -- Check for working C compiler: /usr/bin/cc - skipped
134.8 -- Detecting C compile features
134.8 -- Detecting C compile features - done
134.8 -- Looking for strtof_l
134.9 -- Looking for strtof_l - found
134.9 -- Looking for strtoull_l
134.9 -- Looking for strtoull_l - found
134.9 -- CMAKE_CXX_FLAGS:  -std=c++0x -Wall -pedantic -Werror -Wextra -Werror=shadow -faligned-new -Werror=implicit-fallthrough=2 -Wunused-result -Werror=unused-result -Wunused-parameter -Werror=unused-parameter -fsigned-char
134.9 -- Proceeding with version: 1.12.0.371
135.0 -- Found Python: /usr/bin/python3.8 (found version "3.8.10") found components: Interpreter 
135.0 -- Found Boost: /usr/local/lib/cmake/Boost-1.76.0/BoostConfig.cmake (found version "1.76.0") found components: program_options 
135.1 -- Configuring done
135.1 -- Generating done
135.1 -- Build files have been written to: /root/MOTION/build
135.1 Scanning dependencies of target motion_config
135.1 Scanning dependencies of target motion_version
135.1 [  0%] gather information about git repository and generating version.cpp
135.1 [  0%] Built target motion_config
135.1 Scanning dependencies of target gtest
135.2 [  1%] Building CXX object extern/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
135.2 Scanning dependencies of target flatc
135.2 [  3%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_parser.cpp.o
135.2 [  3%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_text.cpp.o
135.5 [  3%] Built target motion_version
135.5 [  3%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/reflection.cpp.o
136.9 [  4%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/util.cpp.o
137.1 [  4%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_cpp.cpp.o
137.4 [  5%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_csharp.cpp.o
141.1 [  5%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_dart.cpp.o
142.4 [  6%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_kotlin.cpp.o
142.6 [  7%] Linking CXX static library ../../../lib/libgtest.a
142.6 [  7%] Built target gtest
142.6 [  8%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_go.cpp.o
143.2 [  8%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_java.cpp.o
143.7 [  9%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_ts.cpp.o
144.7 [  9%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_php.cpp.o
145.2 [ 10%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_python.cpp.o
145.3 [ 10%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_lobster.cpp.o
146.6 Scanning dependencies of target gtest_main
146.6 [ 10%] Building CXX object extern/googletest/googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
146.7 [ 11%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_lua.cpp.o
147.2 [ 12%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_rust.cpp.o
147.2 [ 13%] Linking CXX static library ../../../lib/libgtest_main.a
147.2 [ 13%] Built target gtest_main
147.2 [ 13%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_fbs.cpp.o
148.2 [ 14%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_grpc.cpp.o
148.3 [ 14%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_json_schema.cpp.o
148.5 [ 15%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_swift.cpp.o
149.7 [ 15%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/flatc.cpp.o
149.9 [ 16%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/flatc_main.cpp.o
150.6 [ 17%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/src/code_generators.cpp.o
151.5 [ 17%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/grpc/src/compiler/cpp_generator.cc.o
151.8 [ 18%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/grpc/src/compiler/go_generator.cc.o
151.8 [ 18%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/grpc/src/compiler/java_generator.cc.o
151.9 [ 19%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/grpc/src/compiler/python_generator.cc.o
152.5 [ 19%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/grpc/src/compiler/swift_generator.cc.o
153.1 [ 20%] Building CXX object flatbuffers-build/CMakeFiles/flatc.dir/grpc/src/compiler/ts_generator.cc.o
154.5 [ 20%] Linking CXX executable ../bin/flatc
154.6 [ 20%] Built target flatc
154.6 Scanning dependencies of target fbs-generation
154.6 [ 20%] Generating ../../src/motioncore/communication/fbs_headers/garbled_circuit_message_generated.h
154.6 [ 21%] Generating ../../src/motioncore/communication/fbs_headers/hello_message_generated.h
154.6 [ 21%] Generating ../../src/motioncore/communication/fbs_headers/message_generated.h
154.6 [ 21%] Built target fbs-generation
154.6 Scanning dependencies of target motion
154.7 [ 21%] Building CXX object src/motioncore/CMakeFiles/motion.dir/algorithm/boolean_algorithms.cpp.o
154.7 [ 22%] Building CXX object src/motioncore/CMakeFiles/motion.dir/algorithm/algorithm_description.cpp.o
154.7 [ 22%] Building CXX object src/motioncore/CMakeFiles/motion.dir/base/configuration.cpp.o
154.7 [ 23%] Building CXX object src/motioncore/CMakeFiles/motion.dir/base/backend.cpp.o
155.6 [ 24%] Building CXX object src/motioncore/CMakeFiles/motion.dir/base/motion_base_provider.cpp.o
155.7 [ 25%] Building CXX object src/motioncore/CMakeFiles/motion.dir/base/party.cpp.o
157.6 In file included from /root/MOTION/src/motioncore/utility/bit_vector.h:38,
157.6                  from /root/MOTION/src/motioncore/oblivious_transfer/ot_flavors.h:30,
157.6                  from /root/MOTION/src/motioncore/multiplication_triple/mt_provider.h:29,
157.6                  from /root/MOTION/src/motioncore/protocols/arithmetic_gmw/arithmetic_gmw_gate.h:34,
157.6                  from /root/MOTION/src/motioncore/base/backend.h:32,
157.6                  from /root/MOTION/src/motioncore/base/backend.cpp:27:
157.6 /root/MOTION/src/motioncore/utility/helpers.h: In function 'auto encrypto::motion::ToTwosComplement(T)':
157.6 /root/MOTION/src/motioncore/utility/helpers.h:516:15: error: 'bit_cast' is not a member of 'std'; did you mean 'bad_cast'?
157.6   516 |   return std::bit_cast<U>(input);
157.6       |               ^~~~~~~~
157.6       |               bad_cast
157.6 /root/MOTION/src/motioncore/utility/helpers.h:516:25: error: expected primary-expression before '>' token
157.6   516 |   return std::bit_cast<U>(input);
157.6       |                         ^
157.6 /root/MOTION/src/motioncore/utility/helpers.h: In function 'auto encrypto::motion::FromTwosComplement(T)':
157.6 /root/MOTION/src/motioncore/utility/helpers.h:531:15: error: 'bit_cast' is not a member of 'std'; did you mean 'bad_cast'?
157.6   531 |   return std::bit_cast<S>(input);
157.6       |               ^~~~~~~~
157.6       |               bad_cast
157.6 /root/MOTION/src/motioncore/utility/helpers.h:531:25: error: expected primary-expression before '>' token
157.6   531 |   return std::bit_cast<S>(input);
157.6       |                         ^
158.2 In file included from /root/MOTION/src/motioncore/primitives/pseudo_random_generator.h:35,
158.2                  from /root/MOTION/src/motioncore/primitives/sharing_randomness_generator.h:44,
158.2                  from /root/MOTION/src/motioncore/base/motion_base_provider.cpp:30:
158.2 /root/MOTION/src/motioncore/utility/helpers.h: In function 'auto encrypto::motion::ToTwosComplement(T)':
158.2 /root/MOTION/src/motioncore/utility/helpers.h:516:15: error: 'bit_cast' is not a member of 'std'; did you mean 'bad_cast'?
158.2   516 |   return std::bit_cast<U>(input);
158.2       |               ^~~~~~~~
158.2       |               bad_cast
158.2 /root/MOTION/src/motioncore/utility/helpers.h:516:25: error: expected primary-expression before '>' token
158.2   516 |   return std::bit_cast<U>(input);
158.2       |                         ^
158.2 /root/MOTION/src/motioncore/utility/helpers.h: In function 'auto encrypto::motion::FromTwosComplement(T)':
158.2 /root/MOTION/src/motioncore/utility/helpers.h:531:15: error: 'bit_cast' is not a member of 'std'; did you mean 'bad_cast'?
158.2   531 |   return std::bit_cast<S>(input);
158.2       |               ^~~~~~~~
158.2       |               bad_cast
158.2 /root/MOTION/src/motioncore/utility/helpers.h:531:25: error: expected primary-expression before '>' token
158.2   531 |   return std::bit_cast<S>(input);
158.2       |                         ^
158.4 In file included from /root/MOTION/src/motioncore/utility/bit_vector.h:38,
158.4                  from /root/MOTION/src/motioncore/oblivious_transfer/ot_flavors.h:30,
158.4                  from /root/MOTION/src/motioncore/multiplication_triple/mt_provider.h:29,
158.4                  from /root/MOTION/src/motioncore/protocols/arithmetic_gmw/arithmetic_gmw_gate.h:34,
158.4                  from /root/MOTION/src/motioncore/base/backend.h:32,
158.4                  from /root/MOTION/src/motioncore/base/party.h:32,
158.4                  from /root/MOTION/src/motioncore/base/party.cpp:25:
158.4 /root/MOTION/src/motioncore/utility/helpers.h: In function 'auto encrypto::motion::ToTwosComplement(T)':
158.4 /root/MOTION/src/motioncore/utility/helpers.h:516:15: error: 'bit_cast' is not a member of 'std'; did you mean 'bad_cast'?
158.4   516 |   return std::bit_cast<U>(input);
158.4       |               ^~~~~~~~
158.4       |               bad_cast
158.4 /root/MOTION/src/motioncore/utility/helpers.h:516:25: error: expected primary-expression before '>' token
158.4   516 |   return std::bit_cast<U>(input);
158.4       |                         ^
158.4 /root/MOTION/src/motioncore/utility/helpers.h: In function 'auto encrypto::motion::FromTwosComplement(T)':
158.4 /root/MOTION/src/motioncore/utility/helpers.h:531:15: error: 'bit_cast' is not a member of 'std'; did you mean 'bad_cast'?
158.4   531 |   return std::bit_cast<S>(input);
158.4       |               ^~~~~~~~
158.4       |               bad_cast
158.4 /root/MOTION/src/motioncore/utility/helpers.h:531:25: error: expected primary-expression before '>' token
158.4   531 |   return std::bit_cast<S>(input);
158.4       |                         ^
159.8 make[2]: *** [src/motioncore/CMakeFiles/motion.dir/build.make:134: src/motioncore/CMakeFiles/motion.dir/base/motion_base_provider.cpp.o] Error 1
159.8 make[2]: *** Waiting for unfinished jobs....
160.3 make[2]: *** [src/motioncore/CMakeFiles/motion.dir/build.make:147: src/motioncore/CMakeFiles/motion.dir/base/party.cpp.o] Error 1
161.0 make[2]: *** [src/motioncore/CMakeFiles/motion.dir/build.make:108: src/motioncore/CMakeFiles/motion.dir/base/backend.cpp.o] Error 1
161.5 make[1]: *** [CMakeFiles/Makefile2:504: src/motioncore/CMakeFiles/motion.dir/all] Error 2
161.5 make: *** [Makefile:149: all] Error 2
------
Dockerfile:19
--------------------
  17 |     
  18 |     ADD install.sh .
  19 | >>> RUN ["bash", "install.sh"]
  20 |     CMD ["/bin/bash"]
  21 |     
--------------------
ERROR: failed to solve: process "bash install.sh" did not complete successfully: exit code: 2

Thanks

@ALIEN-orBoT ALIEN-orBoT closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2024
@ALIEN-orBoT ALIEN-orBoT reopened this Mar 4, 2024
@robinhundt
Copy link
Contributor

It seems that the Docker build file is outdated. You could try adapting the docker/install_dpendencies.sh to use a more recent compiler, the newest available should hopefully work.

Alternatively, you can try building it locally with a more recent compiler.

@ALIEN-orBoT
Copy link
Author

ALIEN-orBoT commented Mar 5, 2024

Sorry to bother,
I adapt the docker/install_dpendencies.sh , but when I make again, the error happened:

In file included from /home/alien/motion/MOTION/src/motioncore/utility/bit_vector.h:38,
                 from /home/alien/motion/MOTION/src/motioncore/oblivious_transfer/ot_flavors.h:30,
                 from /home/alien/motion/MOTION/src/motioncore/multiplication_triple/mt_provider.h:29,
                 from /home/alien/motion/MOTION/src/motioncore/protocols/arithmetic_gmw/arithmetic_gmw_gate.h:34,
                 from /home/alien/motion/MOTION/src/motioncore/base/backend.h:32,
                 from /home/alien/motion/MOTION/src/motioncore/base/backend.cpp:27:
/home/alien/motion/MOTION/src/motioncore/utility/helpers.h: In function ‘auto encrypto::motion::ToTwosComplement(T)’:
/home/alien/motion/MOTION/src/motioncore/utility/helpers.h:516:15: error: ‘bit_cast’ is not a member of ‘std’; did you mean ‘bad_cast’?
  516 |   return std::bit_cast<U>(input);
      |               ^~~~~~~~
      |               bad_cast
/home/alien/motion/MOTION/src/motioncore/utility/helpers.h:516:25: error: expected primary-expression before ‘>’ token
  516 |   return std::bit_cast<U>(input);
      |                         ^
/home/alien/motion/MOTION/src/motioncore/utility/helpers.h: In function ‘auto encrypto::motion::FromTwosComplement(T)’:
/home/alien/motion/MOTION/src/motioncore/utility/helpers.h:531:15: error: ‘bit_cast’ is not a member of ‘std’; did you mean ‘bad_cast’?
  531 |   return std::bit_cast<S>(input);
      |               ^~~~~~~~
      |               bad_cast
/home/alien/motion/MOTION/src/motioncore/utility/helpers.h:531:25: error: expected primary-expression before ‘>’ token
  531 |   return std::bit_cast<S>(input);
      |                         ^
make[2]: *** [src/motioncore/CMakeFiles/motion.dir/build.make:108: src/motioncore/CMakeFiles/motion.dir/base/backend.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:166: src/motioncore/CMakeFiles/motion.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

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