[Scons-users] Problems with SCons parallel build

Brady Johnson bradyallenjohnson at gmail.com
Fri Mar 21 16:44:54 EDT 2014


I use "duplicate=0", I just tested it with "duplicate=1" and get the
following error immediately (that is it doesnt build anything)

Executing scons command: "scons -u -j 4 SccfAllPackages " scons: Reading
SConscript files ... Unexpected SCCF build exception: [Errno 2] No such
file or directory: 'Thrift/idl/src/main/thrift/MMAS_CL_API.thrift' IOError:
[Errno 2] No such file or directory:
'Thrift/idl/src/main/thrift/MMAS_CL_API.thrift': File
"/tmp/ebrjohn/sccf/SConstruct", line 270: duplicate=1) File
"/tmp/ebrjohn/pythonbrew/pythons/Python-2.7.2/lib/scons-2.3.1/SCons/Script/SConscript.py",
line 546: return _SConscript(self.fs, *files, **subst_kw) File
"/tmp/ebrjohn/pythonbrew/pythons/Python-2.7.2/lib/scons-2.3.1/SCons/Script/SConscript.py",
line 260: exec _file_ in call_stack[-1].globals File
"/tmp/ebrjohn/sccf/software/Code/Common/build/SConscript", line 189:
thriftGenCppTargets =
env.ThriftCpp(source=Glob('Thrift/idl/src/main/thrift/*.thrift')) File
"/tmp/ebrjohn/pythonbrew/pythons/Python-2.7.2/lib/scons-2.3.1/SCons/Environment.py",
line 260: return MethodWrapper.__call__(self, target, source, *args, **kw)
File
"/tmp/ebrjohn/pythonbrew/pythons/Python-2.7.2/lib/scons-2.3.1/SCons/Environment.py",
line 224: return self.method(*nargs, **kwargs) File
"/tmp/ebrjohn/pythonbrew/pythons/Python-2.7.2/lib/scons-2.3.1/SCons/Builder.py",
line 633: return self._execute(env, target, source, OverrideWarner(kw),
ekw) File
"/tmp/ebrjohn/pythonbrew/pythons/Python-2.7.2/lib/scons-2.3.1/SCons/Builder.py",
line 554: tlist, slist = self._create_nodes(env, target, source) File
"/tmp/ebrjohn/pythonbrew/pythons/Python-2.7.2/lib/scons-2.3.1/SCons/Builder.py",
line 518: target, source = self.emitter(target=tlist, source=slist,
env=env) File "/tmp/ebrjohn/sccf/env/sccf_scons_scripts.py", line 562: with
open(str(source_node), 'r') as searchfile:
Im not sure what that's about, as the thrift files are used for code gen,
but it seems not to like this at all. Should I try with a smaller project?
It would take me some time to set it up, and Id probably have to do it
tomorrow, my kids are pulling me away from the computer :)

Regards,

Brady





On Fri, Mar 21, 2014 at 9:34 PM, Dirk Bächle <tshortik at gmx.de> wrote:


> On 21.03.2014 21:23, Brady Johnson wrote:

>

> [...]

>

> Dirk,

>

> Im using a Hierarchical build and setting the variant_dir='software/Code/Common/build/'

> in the call to SConscript(). In the directory "software/Code/Common" we

> have several common libraries, one per sub-directory, and the build places

> the built output in sub-directories under "software/Code/Common/build".

> Im not sure I follow your question, but does that help answer it?

>

> Yes, it does...thanks a lot. Here's the next question: Do you use

> "duplicate=0"? And if yes, does the parallel build work with "duplicate=1"?

>

> Dirk

>

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

>

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


More information about the Scons-users mailing list