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

--link-model=static fails with uninformative error message

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Build
    • None
    • ALL
    • Dev Tools 2019-09-23

    Description

      Running a command like the following on Ubuntu 18:

      python buildscripts/scons.py  --variables-files=etc/scons/mongodbtoolchain_v3_gcc.vars --link-model=static --allocator=system MONGO_VERSION='0.0.0' MONGO_GIT_HASH='unknown' --ssl --dbg --enable-free-mon=off VARIANT_DIR=ninja --icecream ~/mongo.linux/build.ninja mongod
      

      Yields this unhelpful error:

      scons: *** [build/ninja/mongo/util/libclock_sources.so] AttributeError `'str' object has no attribute 'append'' trying to evaluate `${TE
      MPFILE('$SHLINK -o $TARGET $SHLINKFLAGS $__SHLIBVERSIONFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS $_LIBFLAGS', 'SHLINKCOMSTR')}'
       
      Failed on node: build/ninja/mongo/util/boost_assert_shim.os
      

      Switching to --link-model=dynamic or --link-model=object fixes the issue. I haven't investigated further, I'm using "object" for now.

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: