Hi
Looks like there has been some API change in llvm, leading to:
---------------
error: failed to run custom build command for `rustc_llvm v0.0.0
(/sources/rust/rustc-1.37.0-src/src/librustc_llvm)`
Caused by:
process didn't exit successfully:
`/sources/rust/rustc-1.37.0-src/build/x86_64-unknown-linux-gnu/stage0-codegen/release/build/rustc_llvm-1acb7c1e485f87ef/build-script-build`
(exit code: 101)
--- stdout
cargo:rerun-if-env-changed=REAL_LIBRARY_PATH_VAR
cargo:rerun-if-env-changed=REAL_LIBRARY_PATH
cargo:rerun-if-changed=/usr/bin/llvm-config
cargo:rerun-if-env-changed=LLVM_CONFIG
cargo:rustc-cfg=llvm_component="amdgpu"
cargo:rustc-cfg=llvm_component="asmparser"
cargo:rustc-cfg=llvm_component="bitreader"
cargo:rustc-cfg=llvm_component="bitwriter"
cargo:rustc-cfg=llvm_component="instrumentation"
cargo:rustc-cfg=llvm_component="interpreter"
cargo:rustc-cfg=llvm_component="ipo"
cargo:rustc-cfg=llvm_component="linker"
cargo:rustc-cfg=llvm_component="lto"
cargo:rustc-cfg=llvm_component="mcjit"
cargo:rustc-cfg=llvm_component="x86"
cargo:rerun-if-changed-env=LLVM_RUSTLLVM
cargo:rerun-if-env-changed=LLVM_CONFIG
cargo:rustc-cfg=llvm_component="amdgpu"
cargo:rustc-cfg=llvm_component="asmparser"
cargo:rustc-cfg=llvm_component="bitreader"
cargo:rustc-cfg=llvm_component="bitwriter"
cargo:rustc-cfg=llvm_component="instrumentation"
cargo:rustc-cfg=llvm_component="interpreter"
cargo:rustc-cfg=llvm_component="ipo"
cargo:rustc-cfg=llvm_component="linker"
cargo:rustc-cfg=llvm_component="lto"
cargo:rustc-cfg=llvm_component="mcjit"
cargo:rustc-cfg=llvm_component="x86"
cargo:rerun-if-changed-env=LLVM_RUSTLLVM
cargo:rerun-if-changed=../rustllvm/Linker.cpp
cargo:rerun-if-changed=../rustllvm/RustWrapper.cpp
cargo:rerun-if-changed=../rustllvm/rustllvm.h
cargo:rerun-if-changed=../rustllvm/.editorconfig
cargo:rerun-if-changed=../rustllvm/README
cargo:rerun-if-changed=../rustllvm/ArchiveWrapper.cpp
cargo:rerun-if-changed=../rustllvm/PassWrapper.cpp
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("2")
HOST = Some("x86_64-unknown-linux-gnu")
CXX_x86_64-unknown-linux-gnu = Some("c++")
CXXFLAGS_x86_64-unknown-linux-gnu = Some("-ffunction-sections -fdata-sections
-fPIC -m64")
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,mmx,sse,sse2")
running: "c++" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64"
"-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I/usr/include"
"-std=c++11" "-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_INSTRUMENTATION"
"-DLLVM_COMPONENT_INTERPRETER" "-DLLVM_COMPONENT_IPO"
"-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LTO" "-DLLVM_COMPONENT_MCJIT"
"-DLLVM_COMPONENT_X86" "-o"
"/sources/rust/rustc-1.37.0-src/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/build/rustc_llvm-0a33e4ab1226a568/out/../rustllvm/PassWrapper.o"
"-c" "../rustllvm/PassWrapper.cpp"
cargo:warning=../rustllvm/PassWrapper.cpp: In function ‘LLVMRustThinLTOData*
LLVMRustCreateThinLTOData(LLVMRustThinLTOModule*, int, const char**, int)’:
cargo:warning=../rustllvm/PassWrapper.cpp:917:77: error: too few arguments to
function ‘void
llvm::thinLTOResolvePrevailingInIndex(llvm::ModuleSummaryIndex&,
llvm::function_ref<bool(long unsigned int, const llvm::GlobalValueSummary*)>,
llvm::function_ref<void(llvm::StringRef, long unsigned int,
llvm::GlobalValue::LinkageTypes)>, const llvm::DenseSet<long unsigned int>&)’
cargo:warning= 917 | thinLTOResolvePrevailingInIndex(Ret->Index,
isPrevailing, recordNewLinkage);
cargo:warning= |
^
cargo:warning=In file included from ../rustllvm/PassWrapper.cpp:22:
cargo:warning=/usr/include/llvm/LTO/LTO.h:49:6: note: declared here
cargo:warning= 49 | void thinLTOResolvePrevailingInIndex(
cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exit code: 1
--- stderr
thread 'main' panicked at '
Internal error occurred: Command "c++" "-O2" "-ffunction-sections"
"-fdata-sections" "-fPIC" "-m64" "-ffunction-sections" "-fdata-sections"
"-fPIC" "-m64" "-I/usr/include" "-std=c++11" "-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_INSTRUMENTATION" "-DLLVM_COMPONENT_INTERPRETER"
"-DLLVM_COMPONENT_IPO" "-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LTO"
"-DLLVM_COMPONENT_MCJIT" "-DLLVM_COMPONENT_X86" "-o"
"/sources/rust/rustc-1.37.0-src/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/build/rustc_llvm-0a33e4ab1226a568/out/../rustllvm/PassWrapper.o"
"-c" "../rustllvm/PassWrapper.cpp" with args "c++" did not execute
successfully (status code exit code: 1).
',
/home/pierre/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.35/src/lib.rs:2398:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
command did not execute successfully:
"/sources/rust/rustc-1.37.0-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo"
"build" "--target" "x86_64-unknown-linux-gnu" "-j" "8" "--release"
"--manifest-path"
"/sources/rust/rustc-1.37.0-src/src/librustc_codegen_llvm/Cargo.toml"
"--features" "" "--message-format" "json"
expected success, got: exit code: 101
failed to run: /sources/rust/rustc-1.37.0-src/build/bootstrap/debug/bootstrap
build --exclude src/tools/miri
Build completed unsuccessfully in 0:12:30
-------------
I think the problem is "error: too few arguments to function...", which looks
like an API change.
Actually, I've found this patch:
https://github.com/rust-lang/rust/commit/04304fcd16e40c936dc5ba71c9ac3c445597f8bb
which seems to be included into 1.38 and following... Time to update rust?
Pierre
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page