Change History (4)
comment:1 by , 3 years ago
comment:3 by , 3 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Release notes are at https://releases.llvm.org/14.0.0/docs/ReleaseNotes.html
Fixed at commit 3e208e9941bd4e7c2df253fadb25331291938591
comment:4 by , 3 years ago
Looks like rust-1.58.1 FTBFS with llvm-14: I get:
cargo:warning=llvm-wrapper/RustWrapper.cpp:344:21: error: no matching function for call to ‘llvm::AttrBuilder::AttrBuilder(llvm::Attribute&)’ cargo:warning= 344 | AttrBuilder B(Attr); cargo:warning= | ^ cargo:warning=In file included from /usr/include/llvm/IR/Argument.h:18, cargo:warning= from /usr/include/llvm/IR/Function.h:25, cargo:warning= from /usr/include/llvm/IR/PassManager.h:45, cargo:warning= from /usr/include/llvm/Analysis/Lint.h:21, cargo:warning= from llvm-wrapper/LLVMWrapper.h:8, cargo:warning= from llvm-wrapper/RustWrapper.cpp:1: cargo:warning=/usr/include/llvm/IR/Attributes.h:1009:3: note: candidate: ‘llvm::AttrBuilder::AttrBuilder(llvm::LLVMContext&, llvm::AttributeSet)’ cargo:warning= 1009 | AttrBuilder(LLVMContext &Ctx, AttributeSet AS); cargo:warning= | ^~~~~~~~~~~ cargo:warning=/usr/include/llvm/IR/Attributes.h:1009:3: note: candidate expects 2 arguments, 1 provided cargo:warning=/usr/include/llvm/IR/Attributes.h:1005:3: note: candidate: ‘llvm::AttrBuilder::AttrBuilder(llvm::LLVMContext&, const llvm::Attribute&)’ cargo:warning= 1005 | AttrBuilder(LLVMContext &Ctx, const Attribute &A) : Ctx(Ctx) { cargo:warning= | ^~~~~~~~~~~ cargo:warning=/usr/include/llvm/IR/Attributes.h:1005:3: note: candidate expects 2 arguments, 1 provided cargo:warning=/usr/include/llvm/IR/Attributes.h:1003:3: note: candidate: ‘llvm::AttrBuilder::AttrBuilder(llvm::AttrBuilder&&)’ cargo:warning= 1003 | AttrBuilder(AttrBuilder &&) = default; cargo:warning= | ^~~~~~~~~~~ cargo:warning=/usr/include/llvm/IR/Attributes.h:1003:15: note: no known conversion for argument 1 from ‘llvm::Attribute’ to ‘llvm::AttrBuilder&&’ cargo:warning= 1003 | AttrBuilder(AttrBuilder &&) = default; cargo:warning= | ^~~~~~~~~~~~~~ cargo:warning=/usr/include/llvm/IR/Attributes.h:1001:3: note: candidate: ‘llvm::AttrBuilder::AttrBuilder(llvm::LLVMContext&)’ cargo:warning= 1001 | AttrBuilder(LLVMContext &Ctx) : Ctx(Ctx) {} cargo:warning= | ^~~~~~~~~~~ cargo:warning=/usr/include/llvm/IR/Attributes.h:1001:28: note: no known conversion for argument 1 from ‘llvm::Attribute’ to ‘llvm::LLVMContext&’ cargo:warning= 1001 | AttrBuilder(LLVMContext &Ctx) : Ctx(Ctx) {} cargo:warning= | ~~~~~~~~~~~~~^~~ cargo:warning=llvm-wrapper/RustWrapper.cpp:350:39: error: no matching function for call to ‘llvm::AttributeList::removeAttributesAtIndex(llvm::LLVMContext&, unsigned int&, llvm::AttrBuilder&)’ cargo:warning= 350 | PALNew = PAL.removeAttributesAtIndex(F->getContext(), Index, B); cargo:warning= | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=In file included from /usr/include/llvm/IR/Argument.h:18, cargo:warning= from /usr/include/llvm/IR/Function.h:25, cargo:warning= from /usr/include/llvm/IR/PassManager.h:45, cargo:warning= from /usr/include/llvm/Analysis/Lint.h:21, cargo:warning= from llvm-wrapper/LLVMWrapper.h:8, cargo:warning= from llvm-wrapper/RustWrapper.cpp:1: cargo:warning=/usr/include/llvm/IR/Attributes.h:582:32: note: candidate: ‘llvm::AttributeList llvm::AttributeList::removeAttributesAtIndex(llvm::LLVMContext&, unsigned int, const llvm::AttributeMask&) const’ cargo:warning= 582 | LLVM_NODISCARD AttributeList removeAttributesAtIndex( cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=/usr/include/llvm/IR/Attributes.h:583:60: note: no known conversion for argument 3 from ‘llvm::AttrBuilder’ to ‘const llvm::AttributeMask&’ cargo:warning= 583 | LLVMContext &C, unsigned Index, const AttributeMask &AttrsToRemove) const; cargo:warning= | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ cargo:warning=/usr/include/llvm/IR/Attributes.h:587:32: note: candidate: ‘llvm::AttributeList llvm::AttributeList::removeAttributesAtIndex(llvm::LLVMContext&, unsigned int) const’ cargo:warning= 587 | LLVM_NODISCARD AttributeList removeAttributesAtIndex(LLVMContext &C, cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=/usr/include/llvm/IR/Attributes.h:587:32: note: candidate expects 2 arguments, 3 provided cargo:warning=llvm-wrapper/RustWrapper.cpp: In function ‘LLVMOpaqueValue* LLVMRustDIBuilderInsertDeclareAtEnd(LLVMRustDIBuilderRef, LLVMValueRef, LLVMMetadataRef, int64_t*, unsigned int, LLVMMetadataRef, LLVMBasicBlockRef)’: cargo:warning=llvm-wrapper/RustWrapper.cpp:968:39: error: cannot convert ‘ArrayRef<long int>’ to ‘ArrayRef<long unsigned int>’ cargo:warning= 968 | Builder->createExpression(llvm::ArrayRef<int64_t>(AddrOps, AddrOpsCount)), cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning= | | cargo:warning= | ArrayRef<long int> cargo:warning=In file included from llvm-wrapper/LLVMWrapper.h:42, cargo:warning= from llvm-wrapper/RustWrapper.cpp:1: cargo:warning=/usr/include/llvm/IR/DIBuilder.h:713:55: note: initializing argument 1 of ‘llvm::DIExpression* llvm::DIBuilder::createExpression(llvm::ArrayRef<long unsigned int>)’ cargo:warning= 713 | DIExpression *createExpression(ArrayRef<uint64_t> Addr = None); cargo:warning= | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ exit status: 1 --- stderr error occurred: Command "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I/usr/include" "-std=c++14" "-fno-exceptions" "-D_GNU_SOURCE" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-DLLVM_COMPONENT_AMDGPU" "-DLLVM_COMPONENT_ASMPARSER" "-DLLVM_COMPONENT_BITREADER" "-DLLVM_COMPONENT_BITWRITER" "-DLLVM_COMPONENT_BPF" "-DLLVM_COMPONENT_COVERAGE" "-DLLVM_COMPONENT_INSTRUMENTATION" "-DLLVM_COMPONENT_IPO" "-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LTO" "-DLLVM_COMPONENT_X86" "-DNDEBUG" "-o" "/sources/rust/rustc-1.58.1-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/rustc_llvm-d978d935f102952f/out/llvm-wrapper/RustWrapper.o" "-c" "llvm-wrapper/RustWrapper.cpp" with args "c++" did not execute successfully (status code exit status: 1).
Note:
See TracTickets
for help on using tickets.
We need to add
-DLLVM_INCLUDE_BENCHMARKS=OFF
, orcmake
fails with: