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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Build
    • None
    • ALL
    • Dev Tools 2019-09-23
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Andrew Morrow (Inactive)
            Reporter:
            A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: