Attached is some python code which demonstrates the bug. To reproduce, please 
follow the following steps:
1) Ensure that gcc-4.3 is installed:

[EMAIL PROTECTED]:/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

[EMAIL PROTECTED]:~$ rm -rf /home/smorar/.python25_compiled/

3) Run code

[EMAIL PROTECTED]:~$ 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

[EMAIL PROTECTED]:/usr/bin# rm g++
[EMAIL PROTECTED]:/usr/bin# ln -s g++-4.2 g++

2) Remove pre-compiled python snippets

[EMAIL PROTECTED]:~$ rm -rf /home/smorar/.python25_compiled/

3) Run code

[EMAIL PROTECTED]:~$ python weave_test.py
The compilation will succeed (with many compiler warnings), and the python / c 
code produces the expected output.


** Attachment added: "Example python code which demonstrates the bug"
   http://launchpadlibrarian.net/19978957/weave_test.py

-- 
scipy.weave.inline compilation fails with gcc 4.3
https://bugs.launchpad.net/bugs/302649
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to