Just built cmake 1.17, llvm 10.0? and trying rustc-1.39. Got an error:
See attached log (with ~3300 lines cut). Sorry it is a little long, but
it really looks like some LLVM header file is missing or API has
changed.

Has anybody seen this too?

Pierre

Copying stage0 rustc from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 codegen artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu, llvm)
   Compiling build_helper v0.1.0 (/sources/rust/rustc-1.39.0-src/src/build_helper)
   Compiling cc v1.0.35
   Compiling rustc_codegen_llvm v0.0.0 (/sources/rust/rustc-1.39.0-src/src/librustc_codegen_llvm)
   Compiling rustc_llvm v0.0.0 (/sources/rust/rustc-1.39.0-src/src/librustc_llvm)
error: failed to run custom build command for `rustc_llvm v0.0.0 (/sources/rust/rustc-1.39.0-src/src/librustc_llvm)`

Caused by:
  process didn't exit successfully: `/sources/rust/rustc-1.39.0-src/build/x86_64-unknown-linux-gnu/stage0-codegen/release/build/rustc_llvm-95def1069b4f4999/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="ipo"
cargo:rustc-cfg=llvm_component="linker"
cargo:rustc-cfg=llvm_component="lto"
cargo:rustc-cfg=llvm_component="x86"
cargo:rustc-cfg=llvm_has_msp430_asm_parser
cargo:rerun-if-changed-env=LLVM_RUSTLLVM
cargo:rerun-if-changed=../rustllvm/.editorconfig
cargo:rerun-if-changed=../rustllvm/README
cargo:rerun-if-changed=../rustllvm/PassWrapper.cpp
cargo:rerun-if-changed=../rustllvm/ArchiveWrapper.cpp
cargo:rerun-if-changed=../rustllvm/rustllvm.h
cargo:rerun-if-changed=../rustllvm/RustWrapper.cpp
cargo:rerun-if-changed=../rustllvm/Linker.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++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_INSTRUMENTATION" "-DLLVM_COMPONENT_IPO" "-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LTO" "-DLLVM_COMPONENT_X86" "-DNDEBUG" "-o" "/sources/rust/rustc-1.39.0-src/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/build/rustc_llvm-ec98b741bd69569d/out/../rustllvm/PassWrapper.o" "-c" "../rustllvm/PassWrapper.cpp"
cargo:warning=../rustllvm/PassWrapper.cpp: In function ‘void LLVMInitializePasses()’:
cargo:warning=../rustllvm/PassWrapper.cpp:39:3: error: ‘initializeCore’ was not declared in this scope; did you mean ‘LLVMInitializeCore’?
cargo:warning=   39 |   initializeCore(Registry);
cargo:warning=      |   ^~~~~~~~~~~~~~
cargo:warning=      |   LLVMInitializeCore
cargo:warning=../rustllvm/PassWrapper.cpp:40:3: error: ‘initializeCodeGen’ was not declared in this scope
cargo:warning=   40 |   initializeCodeGen(Registry);
cargo:warning=      |   ^~~~~~~~~~~~~~~~~
cargo:warning=../rustllvm/PassWrapper.cpp:41:3: error: ‘initializeScalarOpts’ was not declared in this scope
cargo:warning=   41 |   initializeScalarOpts(Registry);
cargo:warning=      |   ^~~~~~~~~~~~~~~~~~~~
cargo:warning=../rustllvm/PassWrapper.cpp:42:3: error: ‘initializeVectorization’ was not declared in this scope
cargo:warning=   42 |   initializeVectorization(Registry);
cargo:warning=      |   ^~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=../rustllvm/PassWrapper.cpp:43:3: error: ‘initializeIPO’ was not declared in this scope
cargo:warning=   43 |   initializeIPO(Registry);
cargo:warning=      |   ^~~~~~~~~~~~~
cargo:warning=../rustllvm/PassWrapper.cpp:44:3: error: ‘initializeAnalysis’ was not declared in this scope
cargo:warning=   44 |   initializeAnalysis(Registry);
cargo:warning=      |   ^~~~~~~~~~~~~~~~~~
cargo:warning=../rustllvm/PassWrapper.cpp:45:3: error: ‘initializeTransformUtils’ was not declared in this scope
cargo:warning=   45 |   initializeTransformUtils(Registry);
cargo:warning=      |   ^~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=../rustllvm/PassWrapper.cpp:46:3: error: ‘initializeInstCombine’ was not declared in this scope
cargo:warning=   46 |   initializeInstCombine(Registry);
cargo:warning=      |   ^~~~~~~~~~~~~~~~~~~~~
cargo:warning=../rustllvm/PassWrapper.cpp:47:3: error: ‘initializeInstrumentation’ was not declared in this scope
cargo:warning=   47 |   initializeInstrumentation(Registry);
cargo:warning=      |   ^~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=../rustllvm/PassWrapper.cpp:48:3: error: ‘initializeTarget’ was not declared in this scope; did you mean ‘LLVMInitializeX86Target’?
cargo:warning=   48 |   initializeTarget(Registry);
cargo:warning=      |   ^~~~~~~~~~~~~~~~
cargo:warning=      |   LLVMInitializeX86Target
cargo:warning=../rustllvm/PassWrapper.cpp: At global scope:
cargo:warning=../rustllvm/PassWrapper.cpp:500:23: error: ‘CodeGenFileType’ in ‘class llvm::TargetMachine’ does not name a type
cargo:warning=  500 | static TargetMachine::CodeGenFileType fromRust(LLVMRustFileType Type) {
cargo:warning=      |                       ^~~~~~~~~~~~~~~
cargo:warning=../rustllvm/PassWrapper.cpp: In function ‘LLVMRustResult LLVMRustWriteOutputFile(LLVMTargetMachineRef, LLVMPassManagerRef, LLVMModuleRef, const char*, LLVMRustFileType)’:
cargo:warning=../rustllvm/PassWrapper.cpp:516:40: error: no matching function for call to ‘fromRust(LLVMRustFileType&)’
cargo:warning=  516 |   auto FileType = fromRust(RustFileType);
cargo:warning=      |                                        ^
cargo:warning=../rustllvm/PassWrapper.cpp:214:25: note: candidate: ‘llvm::CodeModel::Model fromRust(LLVMRustCodeModel)’
cargo:warning=  214 | static CodeModel::Model fromRust(LLVMRustCodeModel Model) {
cargo:warning=      |                         ^~~~~~~~
cargo:warning=../rustllvm/PassWrapper.cpp:214:52: note:   no known conversion for argument 1 from ‘LLVMRustFileType’ to ‘LLVMRustCodeModel’
cargo:warning=  214 | static CodeModel::Model fromRust(LLVMRustCodeModel Model) {
cargo:warning=      |                                  ~~~~~~~~~~~~~~~~~~^~~~~
cargo:warning=../rustllvm/PassWrapper.cpp:237:26: note: candidate: ‘llvm::CodeGenOpt::Level fromRust(LLVMRustCodeGenOptLevel)’
cargo:warning=  237 | static CodeGenOpt::Level fromRust(LLVMRustCodeGenOptLevel Level) {
cargo:warning=      |                          ^~~~~~~~
cargo:warning=../rustllvm/PassWrapper.cpp:237:59: note:   no known conversion for argument 1 from ‘LLVMRustFileType’ to ‘LLVMRustCodeGenOptLevel’
cargo:warning=  237 | static CodeGenOpt::Level fromRust(LLVMRustCodeGenOptLevel Level) {
cargo:warning=      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
cargo:warning=../rustllvm/PassWrapper.cpp:262:31: note: candidate: ‘llvm::Optional<llvm::Reloc::Model> fromRust(LLVMRustRelocMode)’
cargo:warning=  262 | static Optional<Reloc::Model> fromRust(LLVMRustRelocMode RustReloc) {
cargo:warning=      |                               ^~~~~~~~
cargo:warning=../rustllvm/PassWrapper.cpp:262:58: note:   no known conversion for argument 1 from ‘LLVMRustFileType’ to ‘LLVMRustRelocMode’
cargo:warning=  262 | static Optional<Reloc::Model> fromRust(LLVMRustRelocMode RustReloc) {
cargo:warning=      |                                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~
cargo:warning=../rustllvm/PassWrapper.cpp: In function ‘LLVMRustThinLTOData* LLVMRustCreateThinLTOData(LLVMRustThinLTOModule*, int, const char**, int)’:
cargo:warning=../rustllvm/PassWrapper.cpp:856:20: error: ‘make_unique’ is not a member of ‘llvm’; did you mean ‘std::make_unique’?
cargo:warning=  856 |   auto Ret = llvm::make_unique<LLVMRustThinLTOData>();
cargo:warning=      |                    ^~~~~~~~~~~
cargo:warning=In file included from /usr/include/c++/9.2.0/memory:80,
cargo:warning=                 from /usr/include/llvm/ADT/SmallVector.h:30,
cargo:warning=                 from /usr/include/llvm/ADT/ArrayRef.h:14,
cargo:warning=                 from ../rustllvm/rustllvm.h:4,
cargo:warning=                 from ../rustllvm/PassWrapper.cpp:6:
cargo:warning=/usr/include/c++/9.2.0/bits/unique_ptr.h:860:5: note: ‘std::make_unique’ declared here
cargo:warning=  860 |     make_unique(_Args&&...) = delete;
cargo:warning=      |     ^~~~~~~~~~~
cargo:warning=../rustllvm/PassWrapper.cpp:856:51: error: expected primary-expression before ‘>’ token
cargo:warning=  856 |   auto Ret = llvm::make_unique<LLVMRustThinLTOData>();
cargo:warning=      |                                                   ^
cargo:warning=../rustllvm/PassWrapper.cpp:856:53: error: expected primary-expression before ‘)’ token
cargo:warning=  856 |   auto Ret = llvm::make_unique<LLVMRustThinLTOData>();
cargo:warning=      |                                                     ^
cargo:warning=../rustllvm/PassWrapper.cpp: In function ‘LLVMRustThinLTOBuffer* LLVMRustThinLTOBufferCreate(LLVMModuleRef)’:
cargo:warning=../rustllvm/PassWrapper.cpp:1092:20: error: ‘make_unique’ is not a member of ‘llvm’; did you mean ‘std::make_unique’?
cargo:warning= 1092 |   auto Ret = llvm::make_unique<LLVMRustThinLTOBuffer>();
cargo:warning=      |                    ^~~~~~~~~~~
cargo:warning=In file included from /usr/include/c++/9.2.0/memory:80,
cargo:warning=                 from /usr/include/llvm/ADT/SmallVector.h:30,
cargo:warning=                 from /usr/include/llvm/ADT/ArrayRef.h:14,
cargo:warning=                 from ../rustllvm/rustllvm.h:4,
cargo:warning=                 from ../rustllvm/PassWrapper.cpp:6:
cargo:warning=/usr/include/c++/9.2.0/bits/unique_ptr.h:860:5: note: ‘std::make_unique’ declared here
cargo:warning=  860 |     make_unique(_Args&&...) = delete;
cargo:warning=      |     ^~~~~~~~~~~
cargo:warning=../rustllvm/PassWrapper.cpp:1092:53: error: expected primary-expression before ‘>’ token
cargo:warning= 1092 |   auto Ret = llvm::make_unique<LLVMRustThinLTOBuffer>();
cargo:warning=      |                                                     ^
cargo:warning=../rustllvm/PassWrapper.cpp:1092:55: error: expected primary-expression before ‘)’ token
cargo:warning= 1092 |   auto Ret = llvm::make_unique<LLVMRustThinLTOBuffer>();
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++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_INSTRUMENTATION" "-DLLVM_COMPONENT_IPO" "-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LTO" "-DLLVM_COMPONENT_X86" "-DNDEBUG" "-o" "/sources/rust/rustc-1.39.0-src/build/x86_64-unknown-linux-gnu/stage0-codegen/x86_64-unknown-linux-gnu/release/build/rustc_llvm-ec98b741bd69569d/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.39.0-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "-Zconfig-profile" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--manifest-path" "/sources/rust/rustc-1.39.0-src/src/librustc_codegen_llvm/Cargo.toml" "--features" "" "--message-format" "json-render-diagnostics"
expected success, got: exit code: 101
failed to run: /sources/rust/rustc-1.39.0-src/build/bootstrap/debug/bootstrap build --exclude src/tools/miri
Build completed unsuccessfully in 0:12:18
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to