scipy.weave.inline compilation fails with gcc 4.3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SciPy |
New
|
Unknown
|
|||
blitz++ (Debian) |
Fix Released
|
Unknown
|
|||
python-scipy (Debian) |
Fix Released
|
Unknown
|
|||
python-scipy (Ubuntu) |
Fix Released
|
Medium
|
Sameer Morar | ||
Lucid |
Fix Released
|
Low
|
Sameer Morar |
Bug Description
Binary package hint: python-scipy
The compiler fails with the following error:
<weave: compiling>
In file included from /usr/lib/
/usr/lib/
/usr/lib/
In file included from /usr/lib/
/usr/lib/
/usr/lib/
/usr/include/
/usr/include/
/usr/include/
/usr/lib/
/usr/lib/
This problem can be worked around by changing /usr/bin/g++ from g++-4.3 to point to g++-4.2
I am using Intrepid
root@spider:
ii python-scipy 0.6.0-11 scientific tools for Python
description: | updated |
Changed in scipy: | |
status: | Unknown → Fix Released |
Changed in python-scipy: | |
status: | Unknown → Fix Released |
Changed in scipy: | |
status: | Fix Released → New |
Changed in python-scipy (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in python-scipy (Ubuntu): | |
assignee: | nobody → Stefano Rivera (stefanor) |
Changed in python-scipy (Ubuntu Lucid): | |
assignee: | nobody → Sameer Morar (smorar) |
affects: | python-scipy (Debian) → blitz++ (Debian) |
tags: | added: patch |
Changed in python-scipy (Debian): | |
status: | Unknown → Fix Committed |
Changed in python-scipy (Debian): | |
status: | Fix Committed → Fix Released |
Attached is some python code which demonstrates the bug. To reproduce, please follow the following steps:
1) Ensure that gcc-4.3 is installed:
root@spider: /usr/bin# ls -la g++
lrwxrwxrwx 1 root root 7 2008-11-27 02:37 g++ -> g++-4.3
2) Remove pre-compiled python snippets
smorar@spider:~$ rm -rf /home/smorar/ .python25_ compiled/
3) Run code
smorar@spider:~$ python weave_test.py
The compilation will fail with the above error.
To demonstrate that this is related to the latest gcc:
1) Ensure that gcc-4.2 is installed
root@spider: /usr/bin# rm g++ /usr/bin# ln -s g++-4.2 g++
root@spider:
2) Remove pre-compiled python snippets
smorar@spider:~$ rm -rf /home/smorar/ .python25_ compiled/
3) Run code
smorar@spider:~$ python weave_test.py
The compilation will succeed (with many compiler warnings), and the python / c code produces the expected output.