Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-87333

visibility_test2 is failing to run when setup with the installer linking in dynamic mode

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • 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.

            Assignee:
            zack.winter@mongodb.com Zack Winter
            Reporter:
            zack.winter@mongodb.com Zack Winter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: