[Scons-users] Errors in parallel builds after updating from SCons 2.3.0 -> 2.3.5
William Blevins
wblevins001 at gmail.com
Fri Sep 25 07:40:19 EDT 2015
My initial assumption here is that your dependency graph isn't complete, so
there may be a race condition in the build order; thus, some nodes are
being used before they exist, but it's hard to say without more information.
1. Can you provide a sample SConstruct/SConscript set that contains this
problem?
2. SCons 2.4.0 is available, so could you give the latest version a try? I
don't think this will solve the issue though.
V/R,
William
On Fri, Sep 25, 2015 at 11:26 AM, <mg at ncp-e.com> wrote:
> Hello,
>
> recently I've updated from SCons version 2.3.0 to version 2.3.5 and
> since then I'm getting this type of errors when doing parallel builds
> with a large number of jobs like '-j 8':
>
> ------------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib64/python2.7/site-packages/SCons/Action.py", line 1063, in
> execute
> result = self.execfunction(target=target, source=rsources, env=env)
> File "/home/mg/ncp/src/trunk/tools/python/ncp/scons/helper.py", line
> 1264, in instThirdParty
> env['tpi'].install(env, env['tpi_instdir'])
> File "/home/mg/ncp/src/trunk/tools/python/ncp/scons/types.py", line
> 1009, in install
> inst_node = env.Install(instdir, lib.str())[0]
> File "/usr/lib64/python2.7/site-packages/SCons/Environment.py", line
> 224, in __call__
> return self.method(*nargs, **kwargs)
> File "/usr/lib64/python2.7/site-packages/SCons/Tool/__init__.py", line
> 680, in Install
> return self._InternalInstall(*args, **kw)
> File "/usr/lib64/python2.7/site-packages/SCons/Environment.py", line
> 260, in __call__
> return MethodWrapper.__call__(self, target, source, *args, **kw)
> File "/usr/lib64/python2.7/site-packages/SCons/Environment.py", line
> 224, in __call__
> return self.method(*nargs, **kwargs)
> File "/usr/lib64/python2.7/site-packages/SCons/Tool/install.py", line
> 381, in InstallBuilderWrapper
> tgt.extend(BaseInstallBuilder(env, target, src, **kw))
> File "/usr/lib64/python2.7/site-packages/SCons/Builder.py", line 631, in
> __call__
> return self._execute(env, target, source, OverrideWarner(kw), ekw)
> File "/usr/lib64/python2.7/site-packages/SCons/Builder.py", line 555, in
> _execute
> _node_errors(self, env, tlist, slist)
> File "/usr/lib64/python2.7/site-packages/SCons/Builder.py", line 309, in
> _node_errors
> if t.get_executor().get_all_targets() != tlist:
> AttributeError: 'NoneType' object has no attribute 'get_all_targets'
> ------------------------------------------------------------------------
>
> I was looking into this but couldn't find any obvious error in my parts
> of the code. And it worked fine before the update. So might this be a
> new issue within SCons?
>
> The error seems almost always reproducible and is always in the same
> spot depending on which target I'm trying to build. The build is running
> on Linux if this is of any relevance.
>
> I'm glad for any help.
>
> Best Regards
>
> Matthias
>
> --
> Matthias Gerstner, Dipl.-Wirtsch.-Inf. (FH)
> Entwicklung
>
> NCP engineering GmbH
> Dombühler Straße 2, D-90449, Nürnberg
> Geschäftsführer Peter Söll, HRB-Nr: 77 86 Nürnberg
>
> Telefon: +49 911 9968-153, Fax: +49 911 9968-229
> E-Mail: Matthias.Gerstner at ncp-e.com
> Internet: http://www.ncp-e.com
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150925/42b25fee/attachment.html>
More information about the Scons-users
mailing list