Comment 1 for bug 302649

Revision history for this message
Sameer Morar (smorar) wrote :

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++
root@spider:/usr/bin# ln -s g++-4.2 g++

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.