Closed
Description
Hi, I can't build either the beta or the nightly (currently 1.6), with Debian's LLVM 3.7 (maintained by @sylvestre) I get these errors:
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -O2 -Wall -Werror -g -fPIC -m64 -fno-rtti -c -o x86_64-unknown-linux-gnu/rustllvm/RustWrapper.o -I//usr//lib//llvm-3.7//include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -g -O2 -fomit-frame-pointer -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fPIC -ffunction-sections -fdata-sections -Wcast-qual -I /usr/lib/llvm-3.7/include -I /build/rustc-1.5.0~beta.2.20151029+dfsg1/src/rustllvm/include /build/rustc-1.5.0~beta.2.20151029+dfsg1/src/rustllvm/RustWrapper.cpp
/build/rustc-1.5.0~beta.2.20151029+dfsg1/src/rustllvm/RustWrapper.cpp: In function 'LLVMOpaqueValue* LLVMRustBuildLandingPad(LLVMBuilderRef, LLVMTypeRef, LLVMValueRef, unsigned int, const char*, LLVMValueRef)':
/build/rustc-1.5.0~beta.2.20151029+dfsg1/src/rustllvm/RustWrapper.cpp:972:69: error: invalid conversion from 'LLVMValueRef {aka LLVMOpaqueValue*}' to 'unsigned int' [-fpermissive]
return LLVMBuildLandingPad(Builder, Ty, PersFn, NumClauses, Name);
^
/build/rustc-1.5.0~beta.2.20151029+dfsg1/src/rustllvm/RustWrapper.cpp:972:69: error: invalid conversion from 'unsigned int' to 'const char*' [-fpermissive]
/build/rustc-1.5.0~beta.2.20151029+dfsg1/src/rustllvm/RustWrapper.cpp:972:69: error: too many arguments to function 'LLVMOpaqueValue* LLVMBuildLandingPad(LLVMBuilderRef, LLVMTypeRef, unsigned int, const char*)'
In file included from //usr//lib//llvm-3.7//include/llvm/IR/Value.h:17:0,
from //usr//lib//llvm-3.7//include/llvm/IR/User.h:24,
from //usr//lib//llvm-3.7//include/llvm/IR/Instruction.h:22,
from //usr//lib//llvm-3.7//include/llvm/IR/BasicBlock.h:19,
from //usr//lib//llvm-3.7//include/llvm/IR/IRBuilder.h:21,
from /build/rustc-1.5.0~beta.2.20151029+dfsg1/src/rustllvm/rustllvm.h:11,
from /build/rustc-1.5.0~beta.2.20151029+dfsg1/src/rustllvm/RustWrapper.cpp:11:
//usr//lib//llvm-3.7//include/llvm-c/Core.h:2677:14: note: declared here
LLVMValueRef LLVMBuildLandingPad(LLVMBuilderRef B, LLVMTypeRef Ty,
^
/build/rustc-1.5.0~beta.2.20151029+dfsg1/mk/rustllvm.mk:60: recipe for target 'x86_64-unknown-linux-gnu/rustllvm/RustWrapper.o' failed
make[2]: *** [x86_64-unknown-linux-gnu/rustllvm/RustWrapper.o] Error 1
and the same error occurs for the nightly. However, 1.4 (current stable) builds fine, and 1.5 (nightly on 2015-09-18) also built fine.
I see that rust includes a custom LLVM; I wonder if someone knows which patches we need to also back-port to Debian's LLVM to fix the build (or if it is Debian's patches that are at fault, even).
Metadata
Metadata
Assignees
Labels
No labels