-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Build
-
Fully Compatible
-
ALL
Invoking install-all through SCons with Bazel enabled is triggering an issue in visibility_test2 that fails the installation command.
The simplest command to repro this issue is:
buildscripts/scons.py --variables-files=etc/scons/mongodbtoolchain_stable_clang.vars --link-model=dynamic --opt=on --modules= --ninja=disabled ICECC=icecc +visibility_test2
Result:
Linking build/opt/mongo/platform/visibility_test2 ld.lld: error: build/opt/mongo/platform/libvisibility_test_lib2.so: undefined reference to mongo::visibility_test_libcommon::validate(double) [--no-allow-shlib-undefined] clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
This seems likely related to the rpath setup in Bazel since converting visibility_test2 to Bazel and running it fixes the issue.