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

Unable to run unittests with + when building with --link=model=dynamic and hygienic

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc4, 4.7.0
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • v4.4
    • Dev Platform 2020-05-04

      When building and running a unittest with the + operator, tests fail to link if SCons was invoked with link-mode dynamic, install-mode hygienic.

      SCons invocation:

      python buildscripts/scons.py --link-model=dynamic VARIANT_DIR=ninja MONGO_VERSION="0.0.0" MONGO_GIT_HASH="unknown" CCACHE=ccache --disable-warnings-as-errors --ninja --install-mode=hygienic build.ninja
      

      Error:

      ninja +authenticate_test
      
      ...
      
      [2422/2423] Building +authenticate_test
                 
      build/ninja/mongo/client/client_test: error while loading shared libraries: libunittest_main.so: cannot open shared object file: No such file or directory
      FAILED: +authenticate_test 
      PATH=/usr/local/bin:/opt/bin:/bin:/usr/bin build/ninja/mongo/client/client_test -fileNameFilter authenticate_test
      

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: