[SERVER-43343] --link-model=static fails with uninformative error message Created: 16/Sep/19  Updated: 16/Sep/19  Resolved: 16/Sep/19

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Andrew Morrow (Inactive)
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Sprint: Dev Tools 2019-09-23
Participants:

 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.



 Comments   
Comment by A. Jesse Jiryu Davis [ 16/Sep/19 ]

Sorry for the noise. I also cannot reproduce this on a fresh checkout, and clearing all my caches etc. has made the problem disappear in the directory where I first observed it, too.

Generated at Thu Feb 08 05:02:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.