pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Recent(ish) failures



With llvm 4.0 installed rust 1.16 fails compilation as follows:

1- configure does not deal with llvm version  greater than 3.9
2. After manual correction of the above, I get the following:
-----------------------------
rustc: x86_64-unknown-netbsd/stage0/lib/rustlib/x86_64-unknown-netbsd/lib/libsyntax_pos
rustc: x86_64-unknown-netbsd/stage0/lib/rustlib/x86_64-unknown-netbsd/lib/librustc_errors
rustc: x86_64-unknown-netbsd/stage0/lib/rustlib/x86_64-unknown-netbsd/lib/librustc_data_structures
rustc: x86_64-unknown-netbsd/stage0/lib/rustlib/x86_64-unknown-netbsd/lib/libsyntax
rustc: x86_64-unknown-netbsd/stage0/lib/rustlib/x86_64-unknown-netbsd/lib/libfmt_macros
compile: x86_64-unknown-netbsd/rustllvm/RustWrapper.o
/usr/pkgsrc/lang/rust/work/rustc-1.16.0-src/src/rustllvm/RustWrapper.cpp: In function 'LLVMOpaqueMetadata* LLVMRustDIBuilderCreateCompileUnit(LLVMRustDIBuilderRef, unsigned int, const char*, const char*, const char*, bool, const char*, unsigned int, const char*)':
/usr/pkgsrc/lang/rust/work/rustc-1.16.0-src/src/rustllvm/RustWrapper.cpp:469:70: error: no matching function for call to 'llvm::DIBuilder::createCompileUnit(unsigned int&, const char*&, const char*&, const char*&, bool&, const char*&, unsigned int&, const char*&)'
                                          Flags, RuntimeVer, SplitName));
                                                                      ^
In file included from /usr/pkgsrc/lang/rust/work/rustc-1.16.0-src/src/rustllvm/rustllvm.h:71:0,
                 from /usr/pkgsrc/lang/rust/work/rustc-1.16.0-src/src/rustllvm/RustWrapper.cpp:11:
/usr/pkgsrc/lang/rust/work/.buildlink/include/llvm/IR/DIBuilder.h:109:5: note: candidate: llvm::DICompileUnit* llvm::DIBuilder::createCompileUnit(unsigned int, llvm::DIFile*, llvm::StringRef, bool, llvm::StringRef, unsigned int, llvm::StringRef, llvm::DICompileUnit::DebugEmissionKind, __uint64_t, bool)
     createCompileUnit(unsigned Lang, DIFile *File, StringRef Producer,
     ^
/usr/pkgsrc/lang/rust/work/.buildlink/include/llvm/IR/DIBuilder.h:109:5: note:   no known conversion for argument 2 from 'const char*' to 'llvm::DIFile*'
/usr/pkgsrc/lang/rust/work/rustc-1.16.0-src/src/rustllvm/RustWrapper.cpp: In function 'LLVMOpaqueMetadata* LLVMRustDIBuilderCreateStaticVariable(LLVMRustDIBuilderRef, LLVMRustMetadataRef, const char*, const char*, LLVMRustMetadataRef, unsigned int, LLVMRustMetadataRef, bool, LLVMValueRef, LLVMRustMetadataRef, __uint64_t)':
/usr/pkgsrc/lang/rust/work/rustc-1.16.0-src/src/rustllvm/RustWrapper.cpp:591:24: error: 'class llvm::DIBuilder' has no member named 'createGlobalVariable'
   return wrap(Builder->createGlobalVariable(
                        ^
/usr/pkgsrc/lang/rust/work/rustc-1.16.0-src/mk/rustllvm.mk:68: recipe for target 'x86_64-unknown-netbsd/rustllvm/RustWrapper.o' failed
gmake: *** [x86_64-unknown-netbsd/rustllvm/RustWrapper.o] Error 1
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/lang/rust
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/rust

This is on recent 7.99.70 amd64.

Chavdar



Home | Main Index | Thread Index | Old Index