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

Can't build r41 against LLVM 2.3 #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
djc@enrai llvm-py-hg $ python setup.py build
--llvm-config=/home/djc/src/llvm-2.3/Release/bin/llvm-config
(...)
<command line>:1:1: warning: "__STDC_LIMIT_MACROS" redefined
<command line>:1:1: warning: this is the location of the previous definition
llvm/_core.c: In function ‘PyObject* _wLLVMConstICmp(PyObject*, PyObject*)’:
llvm/_core.c:348: error: invalid conversion from ‘unsigned int’ to
‘LLVMIntPredicate’
llvm/_core.c:348: error:   initializing argument 1 of ‘LLVMOpaqueValue*
LLVMConstICmp(LLVMIntPredicate, LLVMOpaqueValue*, LLVMOpaqueValue*)’
llvm/_core.c: In function ‘PyObject* _wLLVMConstFCmp(PyObject*, PyObject*)’:
llvm/_core.c:349: error: invalid conversion from ‘unsigned int’ to
‘LLVMRealPredicate’
llvm/_core.c:349: error:   initializing argument 1 of ‘LLVMOpaqueValue*
LLVMConstFCmp(LLVMRealPredicate, LLVMOpaqueValue*, LLVMOpaqueValue*)’
llvm/_core.c: In function ‘PyObject* _wLLVMSetLinkage(PyObject*, 
PyObject*)’:
llvm/_core.c:386: error: invalid conversion from ‘int’ to ‘LLVMLinkage’
llvm/_core.c:386: error:   initializing argument 2 of ‘void
LLVMSetLinkage(LLVMOpaqueValue*, LLVMLinkage)’
llvm/_core.c: In function ‘PyObject* _wLLVMSetVisibility(PyObject*,
PyObject*)’:
llvm/_core.c:390: error: invalid conversion from ‘int’ to 
‘LLVMVisibility’
llvm/_core.c:390: error:   initializing argument 2 of ‘void
LLVMSetVisibility(LLVMOpaqueValue*, LLVMVisibility)’
llvm/_core.c: In function ‘PyObject* _wLLVMAddParamAttr(PyObject*, 
PyObject*)’:
llvm/_core.c:444: error: invalid conversion from ‘int’ to 
‘LLVMParamAttr’
llvm/_core.c:444: error:   initializing argument 2 of ‘void
LLVMAddParamAttr(LLVMOpaqueValue*, LLVMParamAttr)’
llvm/_core.c: In function ‘PyObject* _wLLVMRemoveParamAttr(PyObject*,
PyObject*)’:
llvm/_core.c:445: error: invalid conversion from ‘int’ to 
‘LLVMParamAttr’
llvm/_core.c:445: error:   initializing argument 2 of ‘void
LLVMRemoveParamAttr(LLVMOpaqueValue*, LLVMParamAttr)’
llvm/_core.c: In function ‘PyObject* _wLLVMAddInstrParamAttr(PyObject*,
PyObject*)’:
llvm/_core.c:470: error: invalid conversion from ‘int’ to 
‘LLVMParamAttr’
llvm/_core.c:470: error:   initializing argument 3 of ‘void
LLVMAddInstrParamAttr(LLVMOpaqueValue*, unsigned int, LLVMParamAttr)’
llvm/_core.c: In function ‘PyObject* _wLLVMRemoveInstrParamAttr(PyObject*,
PyObject*)’:
llvm/_core.c:471: error: invalid conversion from ‘int’ to 
‘LLVMParamAttr’
llvm/_core.c:471: error:   initializing argument 3 of ‘void
LLVMRemoveInstrParamAttr(LLVMOpaqueValue*, unsigned int, LLVMParamAttr)’
llvm/_core.c: In function ‘PyObject* _wLLVMBuildICmp(PyObject*, PyObject*)’:
llvm/_core.c:589: error: invalid conversion from ‘int’ to 
‘LLVMIntPredicate’
llvm/_core.c:589: error:   initializing argument 2 of ‘LLVMOpaqueValue*
LLVMBuildICmp(LLVMOpaqueBuilder*, LLVMIntPredicate, LLVMOpaqueValue*,
LLVMOpaqueValue*, const char*)’
llvm/_core.c: In function ‘PyObject* _wLLVMBuildFCmp(PyObject*, PyObject*)’:
llvm/_core.c:590: error: invalid conversion from ‘int’ to 
‘LLVMRealPredicate’
llvm/_core.c:590: error:   initializing argument 2 of ‘LLVMOpaqueValue*
LLVMBuildFCmp(LLVMOpaqueBuilder*, LLVMRealPredicate, LLVMOpaqueValue*,
LLVMOpaqueValue*, const char*)’
error: command 'i686-pc-linux-gnu-g++' failed with exit status 1

Am I doing something stupid?

Original issue reported on code.google.com by djc.ochtman on 15 Sep 2008 at 3:16

GoogleCodeExporter commented 9 years ago
Should've mentioned -- this is with Python 2.5, on an x86 box.

Original comment by djc.ochtman on 15 Sep 2008 at 3:17

GoogleCodeExporter commented 9 years ago
Odd. r41 works for me (Linux/x86/llvm2.3/python2.5 & 
Linux/amd64/llvm2.3/python2.5).

Looks like llvm/_core.c is being compiled as C++ source (which will not work).

Original comment by mdevan.f...@gmail.com on 15 Sep 2008 at 4:14

GoogleCodeExporter commented 9 years ago
Can we talk in IRC somewhere? I'd like to figure out what the problem is. :)

Original comment by djc.ochtman on 15 Sep 2008 at 4:18

GoogleCodeExporter commented 9 years ago
Sure. I'm mdevan on #llvm.

Original comment by mdevan.f...@gmail.com on 15 Sep 2008 at 4:36

GoogleCodeExporter commented 9 years ago
r57 should fix this, please check.

Original comment by mdevan.f...@gmail.com on 22 Dec 2008 at 5:49

GoogleCodeExporter commented 9 years ago
I've successfully installed r58 against LLVM 2.4. Thanks!

Original comment by djc.ochtman on 8 Jan 2009 at 9:29