Docker image does not build anymore
The docker image, which I've used almost every day for weeks now, no longer builds.
I'd include debug but it's a waste of time, just docker build . -t sometag
It seems to fail compiling the WASM interface around step 1256/1335
[1256/1335] Building CXX object libraries/chain/CMakeFiles/eosio_chain.dir/wasm_interface.cpp.o
FAILED: libraries/chain/CMakeFiles/eosio_chain.dir/wasm_interface.cpp.o
/usr/bin/clang++ -I/eos/libraries/chain/include -Ilibraries/chain/include -I/eos/libraries/chain/../wasm-jit/Include -I/eos/libraries/chain/../../externals/binaryen/src -I/eos/libraries/utilities/include -I/eos/libraries/utilities/../wasm-jit/Include -I/eos/libraries/fc/include -I/usr/local/include -I/usr/include/openssl/include -I/eos/libraries/fc/vendor/websocketpp -I/eos/libraries/chainbase/include -I/eos/libraries/wasm-jit/Source/Runtime/../../../chain/include -I/eos/libraries/softfloat/source/include -I/eos/libraries/softfloat/source/8086-SSE -I/eos/libraries/softfloat/build/Linux-x86_64-GCC -I/eos/libraries/builtins -I/eos/libraries/builtins../softfloat/source/include -Wall -Wno-invalid-partial-specialization -fcolor-diagnostics -O3 -DNDEBUG -std=gnu++14 -MD -MT libraries/chain/CMakeFiles/eosio_chain.dir/wasm_interface.cpp.o -MF libraries/chain/CMakeFiles/eosio_chain.dir/wasm_interface.cpp.o.d -o libraries/chain/CMakeFiles/eosio_chain.dir/wasm_interface.cpp.o -c /eos/libraries/chain/wasm_interface.cpp
clang: error: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 4.0.1-10 (tags/RELEASE_401/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/wasm_interface-ee6aa3.cpp
clang: note: diagnostic msg: /tmp/wasm_interface-ee6aa3.sh
clang: note: diagnostic msg:
********************
[1257/1335] Building CXX object plugins/net_plugin/CMakeFiles/net_plugin.dir/net_plugin.cpp.o
[1258/1335] Building CXX object plugins/bnet_plugin/CMakeFiles/bnet_plugin.dir/bnet_plugin.cpp.o
ninja: build stopped: subcommand failed.
The command '/bin/sh -c git clone https://github.com/EOSIO/eos.git --recursive && cd eos && git checkout d9df25ac1ad50ad4fd4880e70841863db31d9172 && git submodule update --init --recursive && echo "$(git rev-parse HEAD)" > /etc/eosio-version && echo "START CMAKE 1st STEP" && cmake -H. -B"/tmp/build" -GNinja -DCORE_SYMBOL_NAME=EOS -DCMAKE_BUILD_TYPE=Release -DWASM_ROOT=/opt/wasm -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_INSTALL_PREFIX=/tmp/build -DSecp256k1_ROOT_DIR=/usr/local -DBUILD_MONGO_DB_PLUGIN=true && echo "START CMAKE 2nd STEP build" && cmake --build /tmp/build --target install && echo "DONE"' returned a non-zero code: 1
I've tried this against these commits d9df25ac1ad50ad4fd4880e70841863db31d9172 and 6208abd2e75f5241ae00724d5e4a3d2eb25de8d2
I have not been able to reproduce this. The nightly docker images successfully built, and I just built a copy locally as well. This type of issue often occurs if Docker does not have 8GB of memory allocated to it. Another possibility is that the pulled down version of the eosio/builder image is out of date. You can try to do: docker pull eosio/builder and see if it downloads a newer version of that image.