[SERVER-13829] Build failure: scons - argument list too long Created: 05/May/14  Updated: 10/Dec/14  Resolved: 06/May/14

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

Type: Bug Priority: Major - P3
Reporter: Johan Bergström Assignee: Unassigned
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Without pasting full build log here (its long), I run into issues while linking mongod since arguments passed to scons are super long.

Here's how I build: `scons -j5 --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --use-system-tcmalloc --use-system-pcre --use-system-snappy --use-system-boost --usev8 --ssl all`

Full log is available for 30 more days at: https://paste.lugons.org/raw/5612/



 Comments   
Comment by Eric Milkie [ 06/May/14 ]

This ticket will probably serve as sufficient documentation, so I'll resolve it here.
Another way you can shorten the variant directory is to use --cache (and optionally --cache-dir).

Comment by Johan Bergström [ 05/May/14 ]

Good catch, thanks. Not sure if this should be documented or otherwise acted upon - but feel free to close/act as you see fit. If you want a patch for docs/similar, let me know.

Comment by Eric Milkie [ 05/May/14 ]

Try adding this build parameter to your scons invocation:

--variant-dir=build

It will shorten the path to all the build products, which should significantly shorten the argument list to the linker.

Generated at Thu Feb 08 03:33:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.