llvmpy / llvmpy

Originally a github fork of the llvm-py repository from http://www.mdevan.org/llvm-py/index.html updated to work with LLVM 3.x. Since then it has changed significantly with multiple sub-projects.

Home Page:www.llvmpy.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'undefined reference to'

refi64 opened this issue · comments

I am trying to build llvmpy and are getting lots of 'undefined reference to' errors. Example:

build\temp.win32-2.7\Release\llvmpy\api.o:api.cpp:(.text+0xb539): undefined reference to `llvm::Linker::releaseModule()'

Here is the full errors list:

http://www.ipaste.eu/view?id=4861

It seems that there is a llvm-tblgen executable from llvm 3.2 in your LLVM 3.3 installation. Can you check the output of llvm-tblgen --version?

I have both LLVM 3.2 and 3.4 SVN installed. The 3.2 is the only one in my path. I can't see why llvmpy would use the wrong one...

For windows, the setup script uses a dummy llvm-config and relies on llvm-tblgen. You can try modify the dummy llvm-config (https://github.com/llvmpy/llvmpy/blob/master/llvm-config-win32.py).

Already tried that. Still doesn't work. Here's my config script: http://pastebin.com/Yn9HDZqe.

Alternatively, you can get LLVM from Anaconda for free: https://store.continuum.io/cshop/anaconda/

I think I'll do that...I can't believe I was looking for it pre-built and missed that.