-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: 5.0.26
-
Component/s: None
-
Build
-
ALL
Using Gentoo Linux, When building mongodb from source using clang 17, it seems an infinite loop encountered, build won't finish.
- clang -v
clang version 17.0.6
- emerge -av mongodb
- ps -H -elf | grep clang++
0 S portage 233579 233569 0 80 0 - 110375 do_wai 15:05 pts/4 00:01:41 /usr/bin/python3.11 ./buildscripts/scons.py AR=x86_64-pc-linux-gnu-ar CC=clang CXX=clang++ CCFLAGS=-O2 -pipe -g VERBOSE=1 VARIANT_DIR=gentoo MONGO_VERSION=5.0.26 MONGO_GIT_HASH=0b4f1ea980b5380a66425a90b414106a191365f4 --disable-warnings-as-errors --force-jobs --jobs=1 --use-system-boost --use-system-pcre --use-system-snappy --use-system-stemmer --use-system-yaml --use-system-zlib --use-system-zstd --experimental-optimization=-sandybridge --use-sasl-client --ssl=on --runtime-hardening=off --linker=bfd install-core
0 R portage 173840 233579 99 80 0 - 163483 - 17:30 pts/4 05:00:34 clang++ -o build/gentoo/mongo/s/client/shard_registry.o -c -Woverloaded-virtual -pipe -g -Wpessimizing-move -Wno-undefined-var-template -Wno-instantiation-after-specialization -fsized-deallocation -Wno-defaulted-function-deleted -Wunused-exception-parameter -std=c++17 -O2 -pipe -g -include mongo/platform/basic.h -ffp-contract=off -fasynchronous-unwind-tables -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -fno-omit-frame-pointer -fno-strict-aliasing -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-tautological-constant-compare -Wno-tautological-unsigned-zero-compare -Wno-tautological-unsigned-enum-zero-compare -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -Wno-unused-lambda-capture -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DBOOST_LOG_DYN_LINK -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/variant-1.4.0/include -Isrc/third_party/SafeInt -Isrc/third_party/immer/dist -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/gentoo -Isrc src/mongo/s/client/shard_registry.cpp
the second one is clang++ compiler command which have been running over 5 hours.
This might be clang's problem. Did anyone trying using clang to build mongodb with success?