Closed CurtisLeeBolin closed 2 years ago
Did you get the tree without git ?
yes
I was expecting it to clone whatever repositories it needed in a build stage.
@moneromooo-monero, since you asked, I tried cloning the repository before building from the Dockerfile. It still failed to build.
make[3]: Leaving directory '/src/build/release'
[ 63%] Built target obj_lmdb_lib
[ 63%] Building CXX object src/cryptonote_core/CMakeFiles/obj_cryptonote_core.dir/tx_pool.cpp.o
[ 63%] Building CXX object src/net/CMakeFiles/obj_net.dir/error.cpp.o
[ 64%] Building CXX object src/net/CMakeFiles/obj_net.dir/i2p_address.cpp.o
/src/src/cryptonote_core/tx_pool.cpp: In lambda function:
/src/src/cryptonote_core/tx_pool.cpp:619:27: error: 'relay_method' is not a class, namespace, or enumeration
if (relay_method != relay_method::block && relay_method != relay_method::fluff)
^
/src/src/cryptonote_core/tx_pool.cpp:619:66: error: 'relay_method' is not a class, namespace, or enumeration
if (relay_method != relay_method::block && relay_method != relay_method::fluff)
^
make[3]: Entering directory '/src/build/release'
Scanning dependencies of target obj_mnemonics
make[3]: Leaving directory '/src/build/release'
make[3]: Entering directory '/src/build/release'
[ 64%] Building CXX object src/mnemonics/CMakeFiles/obj_mnemonics.dir/electrum-words.cpp.o
make[3]: *** [src/cryptonote_core/CMakeFiles/obj_cryptonote_core.dir/tx_pool.cpp.o] Error 1
src/cryptonote_core/CMakeFiles/obj_cryptonote_core.dir/build.make:88: recipe for target 'src/cryptonote_core/CMakeFiles/obj_cryptonote_core.dir/tx_pool.cpp.o' failed
make[3]: Leaving directory '/src/build/release'
make[2]: *** [src/cryptonote_core/CMakeFiles/obj_cryptonote_core.dir/all] Error 2
CMakeFiles/Makefile2:1524: recipe for target 'src/cryptonote_core/CMakeFiles/obj_cryptonote_core.dir/all' failed
make[2]: *** Waiting for unfinished jobs....
[ 64%] Building CXX object src/net/CMakeFiles/obj_net.dir/parse.cpp.o
[ 64%] Building CXX object src/net/CMakeFiles/obj_net.dir/socks.cpp.o
make[3]: Leaving directory '/src/build/release'
[ 64%] Built target obj_mnemonics
[ 64%] Building CXX object src/net/CMakeFiles/obj_net.dir/socks_connect.cpp.o
[ 65%] Building CXX object src/net/CMakeFiles/obj_net.dir/tor_address.cpp.o
[ 65%] Building CXX object src/net/CMakeFiles/obj_net.dir/zmq.cpp.o
make[3]: Leaving directory '/src/build/release'
[ 65%] Built target obj_cryptonote_basic
make[3]: Leaving directory '/src/build/release'
[ 65%] Built target obj_net
make[2]: Leaving directory '/src/build/release'
make[1]: *** [all] Error 2
Makefile:140: recipe for target 'all' failed
make[1]: Leaving directory '/src/build/release'
make: *** [release-static] Error 2
Makefile:106: recipe for target 'release-static' failed
ERROR: Service 'monero' failed to build: The command '/bin/sh -c set -ex && git submodule init && git submodule update && rm -rf build && if [ -z "$NPROC" ] ; then make -j$(nproc) release-static ; else make -j$NPROC release-static ; fi' returned a non-zero code: 2
I think the docker image uses an outdated GCC compiler version. Updating from 16.04 to 18.04 should solve the issue.
Does this one work? https://hub.docker.com/r/xmrto/monero/
Yes, looks like it's confusing two symbols in two different contexts. Admittedly something that's confusing. Thanks for the note.
I think the docker image uses an outdated GCC compiler version. Updating from 16.04 to 18.04 should solve the issue.
Does this one work? https://hub.docker.com/r/xmrto/monero/
I am using my own Alpine Linux docker container until this is fixed.
Think that may help
Dockerfile has been updated a while ago.