[Scons-users] FW: Scons 2.3.1 on Python 2.4.3 won't build

Stijn De Ruyck Stijn.DeRuyck at onsemi.com
Wed Jun 4 12:02:54 EDT 2014


This is the stacktrace:

> ls
hello.c  SConstruct

> scons --debug=stacktrace
scons: Reading SConscript files ...
scons: done reading SConscript files.

scons: warning: Support for pre-2.7.0 Python version (2.4.3) is deprecated.
    If this will cause hardship, contact dev at scons.tigris.org.
File "/usr/bin/scons", line 192, in ?
scons: Building targets ...
scons: *** [.] AttributeError : type object 'itertools.chain' has no attribute 'from_iterable'
scons: internal stack trace:
  File "/usr/lib/scons-2.3.1/SCons/Job.py", line 199, in start
    task.prepare()
  File "/usr/lib/scons-2.3.1/SCons/Script/Main.py", line 173, in prepare
    return SCons.Taskmaster.OutOfDateTask.prepare(self)
  File "/usr/lib/scons-2.3.1/SCons/Taskmaster.py", line 172, in prepare
    self.exception_raise()
  File "/usr/lib/scons-2.3.1/SCons/Taskmaster.py", line 951, in next_task
    task.make_ready()
  File "/usr/lib/scons-2.3.1/SCons/Script/Main.py", line 307, in make_ready
    SCons.Taskmaster.OutOfDateTask.make_ready(self)
  File "/usr/lib/scons-2.3.1/SCons/Taskmaster.py", line 403, in make_ready_current
    is_up_to_date = not t.has_builder() or \
  File "/usr/lib/scons-2.3.1/SCons/Node/FS.py", line 1781, in is_up_to_date
    for kid in self.children():
  File "/usr/lib/scons-2.3.1/SCons/Node/__init__.py", line 1011, in children
    return self._children_get()
  File "/usr/lib/scons-2.3.1/SCons/Node/__init__.py", line 977, in _children_get
    children = self.all_children(scan=0)
  File "/usr/lib/scons-2.3.1/SCons/Node/__init__.py", line 1004, in all_children
    return list(chain.from_iterable(filter(None, [self.sources, self.depends, self.implicit])))
scons: building terminated because of errors.




From: Gary Oberbrunner [mailto:garyo at oberbrunner.com]
Sent: Wednesday, June 04, 2014 5:02 PM
To: SCons users mailing list
Cc: Stijn De Ruyck
Subject: Re: [Scons-users] FW: Scons 2.3.1 on Python 2.4.3 won't build


You may have to use an older SCons; we may have broken 2.4 compatibility unknowingly.

Please run with --debug=stacktrace so we can see which line in SCons caused the error.

--
Gary Oberbrunner
(sent from my Android)
On Jun 4, 2014 8:18 AM, "Stijn De Ruyck" <Stijn.DeRuyck at onsemi.com<mailto:Stijn.DeRuyck at onsemi.com>> wrote:
Resend; msg not received on scons-users?


From: Stijn De Ruyck
Sent: Wednesday, June 04, 2014 1:59 PM
To: 'scons-users at scons.org<mailto:scons-users at scons.org>'
Subject: Scons 2.3.1 on Python 2.4.3 won't build

Hi,

I’m trying to use Scons 2.3.1 on Python 2.4.3.
I just followed the simple c++ hello-world testcase from http://www.scons.org/doc/production/HTML/scons-user.html but the build fails:

> scons
scons: Reading SConscript files ...
scons: done reading SConscript files.

scons: warning: Support for pre-2.7.0 Python version (2.4.3) is deprecated.
    If this will cause hardship, contact dev at scons.tigris.org<mailto:dev at scons.tigris.org>.
File "/usr/bin/scons", line 192, in ?
scons: Building targets ...
scons: *** [.] AttributeError : type object 'itertools.chain' has no attribute 'from_iterable'
scons: building terminated because of errors

I know support for Python pre-2.7 is now deprecated, but that shouldn’t mean “unsupported”, or is it?

On Python 2.7.6, it works fine, but I can’t upgrade all our workstations to this version yet...
> python2.7 `which scons`
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o hello.o -c hello.c
hello.c: In function 'main':
hello.c:4: warning: incompatible implicit declaration of built-in function 'printf'
gcc -o hello hello.o
scons: done building targets.



_______________________________________________
Scons-users mailing list
Scons-users at scons.org<mailto: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/20140604/76159824/attachment-0001.html>


More information about the Scons-users mailing list