[Scons-users] Problems with SCons parallel build

Brady Johnson bradyallenjohnson at gmail.com
Fri Mar 21 16:02:49 EDT 2014


Hello all,

There seem to be some serious/fundamental problems compiling in parallel
with SCons. By parallel, I mean I am using the "-j" flag.

Here is the problematic output when it fails:

...
Building target:
software/Code/Common/build/BbscModel/src/main/c/Dbs/ApplicationFilterType.o...
Building target:
software/Code/Common/build/BbscModel/src/main/c/Dbs/ConsistencyCheckDbsIf.o...
Building target:
software/Code/Common/build/BbscModel/src/main/c/Dbs/ConsistencyCheckType.o...
x86_64-dx-linux-gnu-g++:
software/Code/Common/BbscModel/src/main/c/Dbs/ApplicationFilterType.cc: No
such file or directory
x86_64-dx-linux-gnu-g++: no input files
scons: ***
[software/Code/Common/build/BbscModel/src/main/c/Dbs/ApplicationFilterType.o]
Error 1
x86_64-dx-linux-gnu-g++:
software/Code/Common/BbscModel/src/main/c/Dbs/ConsistencyCheckDbsIf.cc: No
such file or directory
x86_64-dx-linux-gnu-g++: no input files
scons: ***
[software/Code/Common/build/BbscModel/src/main/c/Dbs/ConsistencyCheckDbsIf.o]
Error 1
x86_64-dx-linux-gnu-g++:
software/Code/Common/BbscModel/src/main/c/Dbs/ConsistencyCheckType.cc: No
such file or directory
x86_64-dx-linux-gnu-g++: no input files
scons: ***
[software/Code/Common/build/BbscModel/src/main/c/Dbs/ConsistencyCheckType.o]
Error 1
scons: building terminated because of errors.

But the files being reported as not existing, clearly exist, as can be seen
here

$ ll software/Code/Common/BbscModel/src/main/c/Dbs/ApplicationFilterType.cc
-rw-rw-r-- 1 ebrjohn ESMDCC01 2924 2014-03-18 07:27
software/Code/Common/BbscModel/src/main/c/Dbs/ApplicationFilterType.cc


Additionally, when I remove the "-j" flag everything compiles correctly
(albeit slower).
The above output is with verbosity turned off, when I turn it on, I get the
same error but for a different file, that also exists.

Is anyone else using parallel SCons builds successfully?

Here's the version info, etc:
(I got the same error with v2.3.0)

$ scons --version
SCons by Steven Knight et al.:
script: v2.3.1, 2014/03/02 14:18:15, by garyo on lubuntu
engine: v2.3.1, 2014/03/02 14:18:15, by garyo on lubuntu
engine path:
['/tmp/ebrjohn/pythonbrew/pythons/Python-2.7.2/lib/scons-2.3.1/SCons']
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2011, 2012, 2013, 2014 The SCons Foundation


$ lscpu
Architecture: x86_64
CPU(s): 24
Thread(s) per core: 1
Core(s) per socket: 2
CPU socket(s): 12
NUMA node(s): 12
Vendor ID: GenuineIntel
CPU family: 6
Model: 45
Stepping: 7
CPU MHz: 2500.000
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 15360K


Regards,

Brady
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140321/d7dadd8f/attachment.htm


More information about the Scons-users mailing list