i tried to compile libcpu (latest version) with llvm-2.7 on ubuntu
10.04 (on x86), and got below error.
anybody please tell me how to fix that?
thanks,
J
.....
[ 31%] Building CXX object
upcl/CMakeFiles/upcc.dir/sema/simple_expr_evaluator.cpp.o
/home/junkoi/projects/libcpu/trunk/libcpu/frontend.cpp: In function
‘llvm::Value* arch_bswap(cpu_t*, size_t, llvm::Value*,
llvm::BasicBlock*)’:
/home/junkoi/projects/libcpu/trunk/libcpu/frontend.cpp:276: error: no
matching function for call to ‘llvm::CallInst::Create(llvm::Function*,
llvm::Value*&, const char [1], llvm::BasicBlock*&)’
/usr/include/llvm/Instructions.h:896: note: candidates are: static
llvm::CallInst* llvm::CallInst::Create(llvm::Value*, llvm::Value*,
const llvm::Twine&, llvm::Instruction*)
/usr/include/llvm/Instructions.h:901: note: static
llvm::CallInst* llvm::CallInst::Create(llvm::Value*, llvm::Value*,
const llvm::Twine&, llvm::BasicBlock*)
/usr/include/llvm/Instructions.h:905: note: static
llvm::CallInst* llvm::CallInst::Create(llvm::Value*, const
llvm::Twine&, llvm::Instruction*)
/usr/include/llvm/Instructions.h:909: note: static
llvm::CallInst* llvm::CallInst::Create(llvm::Value*, const
llvm::Twine&, llvm::BasicBlock*)
/home/junkoi/projects/libcpu/trunk/libcpu/frontend.cpp: In function
‘llvm::Value* arch_ctlz(cpu_t*, size_t, llvm::Value*,
llvm::BasicBlock*)’:
/home/junkoi/projects/libcpu/trunk/libcpu/frontend.cpp:282: error: no
matching function for call to ‘llvm::CallInst::Create(llvm::Function*,
llvm::Value*&, const char [1], llvm::BasicBlock*&)’
/usr/include/llvm/Instructions.h:896: note: candidates are: static
llvm::CallInst* llvm::CallInst::Create(llvm::Value*, llvm::Value*,
const llvm::Twine&, llvm::Instruction*)
/usr/include/llvm/Instructions.h:901: note: static
llvm::CallInst* llvm::CallInst::Create(llvm::Value*, llvm::Value*,
const llvm::Twine&, llvm::BasicBlock*)
/usr/include/llvm/Instructions.h:905: note: static
llvm::CallInst* llvm::CallInst::Create(llvm::Value*, const
llvm::Twine&, llvm::Instruction*)
/usr/include/llvm/Instructions.h:909: note: static
llvm::CallInst* llvm::CallInst::Create(llvm::Value*, const
llvm::Twine&, llvm::BasicBlock*)
/home/junkoi/projects/libcpu/trunk/libcpu/frontend.cpp: In function
‘llvm::Value* arch_cttz(cpu_t*, size_t, llvm::Value*,
llvm::BasicBlock*)’:
/home/junkoi/projects/libcpu/trunk/libcpu/frontend.cpp:288: error: no
matching function for call to ‘llvm::CallInst::Create(llvm::Function*,
llvm::Value*&, const char [1], llvm::BasicBlock*&)’
/usr/include/llvm/Instructions.h:896: note: candidates are: static
llvm::CallInst* llvm::CallInst::Create(llvm::Value*, llvm::Value*,
const llvm::Twine&, llvm::Instruction*)
/usr/include/llvm/Instructions.h:901: note: static
llvm::CallInst* llvm::CallInst::Create(llvm::Value*, llvm::Value*,
const llvm::Twine&, llvm::BasicBlock*)
/usr/include/llvm/Instructions.h:905: note: static
llvm::CallInst* llvm::CallInst::Create(llvm::Value*, const
llvm::Twine&, llvm::Instruction*)
/usr/include/llvm/Instructions.h:909: note: static
llvm::CallInst* llvm::CallInst::Create(llvm::Value*, const
llvm::Twine&, llvm::BasicBlock*)
/home/junkoi/projects/libcpu/trunk/libcpu/frontend.cpp: In function
‘llvm::Value* arch_sqrt(cpu_t*, size_t, llvm::Value*,
llvm::BasicBlock*)’:
/home/junkoi/projects/libcpu/trunk/libcpu/frontend.cpp:428: error: no
matching function for call to ‘llvm::CallInst::Create(llvm::Function*,
llvm::Value*&, const char [1], llvm::BasicBlock*&)’
/usr/include/llvm/Instructions.h:896: note: candidates are: static
llvm::CallInst* llvm::CallInst::Create(llvm::Value*, llvm::Value*,
const llvm::Twine&, llvm::Instruction*)
/usr/include/llvm/Instructions.h:901: note: static
llvm::CallInst* llvm::CallInst::Create(llvm::Value*, llvm::Value*,
const llvm::Twine&, llvm::BasicBlock*)
/usr/include/llvm/Instructions.h:905: note: static
llvm::CallInst* llvm::CallInst::Create(llvm::Value*, const
llvm::Twine&, llvm::Instruction*)
/usr/include/llvm/Instructions.h:909: note: static
llvm::CallInst* llvm::CallInst::Create(llvm::Value*, const
llvm::Twine&, llvm::BasicBlock*)
make[3]: *** [libcpu/CMakeFiles/cpu.dir/frontend.cpp.o] Error 1
make[3]: Leaving directory `/home/junkoi/projects/libcpu/trunk/build'
make[2]: *** [libcpu/CMakeFiles/cpu.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
.....
On Jun 3, 2010, at 2:50 PM, Jun Koi wrote:
> hi,
>
> i tried to compile libcpu (latest version) with llvm-2.7 on ubuntu
> 10.04 (on x86), and got below error.
> anybody please tell me how to fix that?
Libcpu has still not being ported to LLVM 2.7. You can compile it with 2.6, or better help us by porting it to 2.7.
Gianluca