Closed GoogleCodeExporter closed 9 years ago
Correction:
Using
CXX=gcc-4.3.1 python setup.py build
does not work. It compiles cleanly, but the test cases don't work.
Traceback (most recent call last):
File "testall.py", line 10, in <module>
from llvm.core import *
File "/home/fn6/exoself/3rdparty/pylibs/llvm/core.py", line 38, in <module>
import llvm._core as _core # C wrappers
ImportError:
/home/fn6/exoself/3rdparty/llvm-py/build/lib.linux-i686-2.5/llvm/_core.so:
undefined
symbol: __cxa_pure_virtual
Original comment by fnoed...@googlemail.com
on 1 Dec 2008 at 11:05
[deleted comment]
Could you try with both CXX=gcc-4.3.1 and the following change:
In setup.py, locate:
std_libs = [ 'pthread', 'm' ]
and change it to:
std_libs = [ 'pthread', 'm', 'stdc++' ]
and then try a clean build (remove the directory 'build' and recompile, or use
'setup.py build -f').
This issue is same as Issue #7. Since I don't have access to a gentoo system,
any
help in fixing this would be much appreciated.
Original comment by mdevan.f...@gmail.com
on 2 Dec 2008 at 4:27
Both gcc-4.3.1 and gcc-4.2.4 work with your change.
Original comment by fnoed...@googlemail.com
on 2 Dec 2008 at 7:48
r57 should fix this, please check. Now llvm-py should build with either gcc or
g++.
Original comment by mdevan.f...@gmail.com
on 22 Dec 2008 at 5:48
Original issue reported on code.google.com by
fnoed...@googlemail.com
on 1 Dec 2008 at 10:57