-
Type: Question
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Build
OS : Ubuntu 20.04
Python 3.10
g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
I am trying to build mongodb but the following build command fails :
ninja -f opt.ninja -j 200 install-devcore
/bin/sh: 1: /opt/mongodbtoolchain/v4/bin/gdb: not found
I cannot find /opt/mongodbtoolchain, I don't know if there is a step I have skipped, I follow the quick start build tutorial https://github.com/mongodb/mongo/blob/master/docs/building.md#quick-restart, but the last command fails.
full output build error:
[3/6] Linked build/opt/mongo/db/query/query_tester/libmongotest_core.so FAILED: build/opt/mongo/db/query/query_tester/libmongotest_core.so rm -f build/opt/mongo/db/query/query_tester/libmongotest_core.so; export CCACHE_NOCPP2='1';export CCACHE_PREFIX='/home/sofiane/Desktop/repos/mongo/build/scons/icecream/opt/run-icecc.sh';export ICECC_CLANG_REMOTE_CPP='1';export PATH='bazel-mongo/external/mongo_toolchain/v4/bin:/opt/mongodbtoolchain/v4/bin:/usr/local/bin:/opt/bin:/bin:/usr/bin';/bin/icerun /home/sofiane/Desktop/repos/mongo/bazel-mongo/external/mongo_toolchain/v4/bin/clang++ @build/opt/mongo/db/query/query_tester/libmongotest_core.so.rsp && touch build/opt/mongo/db/query/query_tester/libmongotest_core.so.gdb-index && /opt/mongodbtoolchain/v4/bin/gdb --batch-silent --quiet --nx --eval-command "save gdb-index build/opt/mongo/db/query/query_tester" build/opt/mongo/db/query/query_tester/libmongotest_core.so && /home/sofiane/.cache/bazel/_bazel_sofiane/e55ef05cfb23541b61bcce90d29e73ae/external/mongo_toolchain/stow/llvm-v4/bin/llvm-objcopy --add-section .gdb_index=build/opt/mongo/db/query/query_tester/libmongotest_core.so.gdb-index --set-section-flags .gdb_index=readonly build/opt/mongo/db/query/query_tester/libmongotest_core.so build/opt/mongo/db/query/query_tester/libmongotest_core.so && rm -f build/opt/mongo/db/query/query_tester/libmongotest_core.so.gdb-index /bin/sh: 1: /opt/mongodbtoolchain/v4/bin/gdb: not found ninja: build stopped: subcommand failed.