pombreda / llvm-py

Automatically exported from code.google.com/p/llvm-py
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

SVN r101 doesn't work with LLVM 2.8 #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The ABCD pass was removed in LLVM 2.8 but llvm/_core.c still refers to it:

melis@juggle2:~/c/llvm-py-svn/llvm> grep ABCD *
_core.c:_wrap_pass( ABCD )

This leads to an undefined symbol when trying to load llvm.core:

melis@juggle2:~/c/llvm-py-svn/test> l 
/home/melis/llvm28/lib/python2.6/site-packages/llvm/_core.so
-rwxr-xr-x 1 melis melis 13497179 Oct 22 13:52 
/home/melis/llvm28/lib/python2.6/site-packages/llvm/_core.so
13:55|melis@juggle2:~/c/llvm-py-svn/test> py issue10.py 
Traceback (most recent call last):
  File "issue10.py", line 3, in <module>
    from llvm.core import *
  File "/home/melis/llvm28/lib/python2.6/site-packages/llvm/core.py", line 38, in <module>
    import llvm._core as _core  # C wrappers
ImportError: /home/melis/llvm28/lib/python2.6/site-packages/llvm/_core.so: 
undefined symbol: LLVMAddABCDPass
melis@juggle2:~/c/llvm-py-svn/test> grep LLVMAddABCDPass  
/home/melis/llvm28/lib/python2.6/site-packages/llvm/_core.so
Binary file /home/melis/llvm28/lib/python2.6/site-packages/llvm/_core.so matches
melis@juggle2:~/c/llvm-py-svn/test> nm -D 
/home/melis/llvm28/lib/python2.6/site-packages/llvm/_core.so |grep 
LLVMAddABCDPass
         U LLVMAddABCDPass

Original issue reported on code.google.com by paul.me...@gmail.com on 22 Oct 2010 at 12:05

GoogleCodeExporter commented 9 years ago
Fixed in r104.

Original comment by mdevan.f...@gmail.com on 24 Oct 2010 at 8:55