tech-pkg archive

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

lang/rust issue on aarch64eb



Hi,

Perhaps this information will be useful to someone here who understands Rust build issues.

NetBSD-current from 15-April-2022 (9.99.96), aarch64eb, lang/rust from 6-May-2022:

  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fp,neon,pmuv3")
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-O2" "-fPIC" "-D_FORTIFY_SOURCE=2" "-I/usr/local/include" "-I/usr/include" "-I/usr/include/krb5" "-I/usr/local/include/python3.10" "-I/usr/pkgsrc/lang/rust/work/rustc-1.59.0-src/src/llvm-project/llvm/include" "-I/usr/pkgsrc/lang/rust/work/rustc-1.59.0-src/build/aarch64_be-unknown-netbsd/llvm/build/include" "-std=c++14" "-fno-exceptions" "-fno-rtti" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-DLLVM_COMPONENT_AARCH64" "-DLLVM_COMPONENT_ARM" "-DLLVM_COMPONENT_ASMPARSER" "-DLLVM_COMPONENT_AVR" "-DLLVM_COMPONENT_BITREADER" "-DLLVM_COMPONENT_BITWRITER" "-DLLVM_COMPONENT_BPF" "-DLLVM_COMPONENT_COVERAGE" "-DLLVM_COMPONENT_HEXAGON" "-DLLVM_COMPONENT_INSTRUMENTATION" "-DLLVM_COMPONENT_IPO" "-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LTO" "-DLLVM_COMPONENT_M68K" "-DLLVM_COMPONENT_MIPS" "-DLLVM_COMPONENT_MSP430" "-DLLVM_COMPONENT_NVPTX" "-DLLVM_COMPONENT_POWERPC" "-DLLVM_COMPONENT_RISCV" "-DLLVM_COMPONENT_SPARC" "-DLLVM_COMPONENT_SYSTEMZ" "-DLLVM_COMPONENT_WEBASSEMBLY" "-DLLVM_COMPONENT_X86" "-DLLVM_RUSTLLVM" "-DNDEBUG" "-o" "/usr/pkgsrc/lang/rust/work/rustc-1.59.0-src/build/aarch64_be-unknown-netbsd/stage0-rustc/aarch64_be-unknown-netbsd/release/build/rustc_llvm-e7d7516c579afc18/out/llvm-wrapper/PassWrapper.o" "-c" "llvm-wrapper/PassWrapper.cpp" cargo:warning=llvm-wrapper/PassWrapper.cpp: In function 'void LLVMRustPrintTargetCPUs(LLVMTargetMachineRef)': cargo:warning=llvm-wrapper/PassWrapper.cpp:414:57: error: 'const class llvm::MCSubtargetInfo' has no member named 'getCPUTable' cargo:warning= 414 | const ArrayRef<SubtargetSubTypeKV> CPUTable = MCInfo->getCPUTable(); cargo:warning= | ^~~~~~~~~~~ cargo:warning=llvm-wrapper/PassWrapper.cpp: In function 'size_t LLVMRustGetTargetFeaturesCount(LLVMTargetMachineRef)': cargo:warning=llvm-wrapper/PassWrapper.cpp:431:58: error: 'const class llvm::MCSubtargetInfo' has no member named 'getFeatureTable'; did you mean 'getFeatureBits'? cargo:warning= 431 | const ArrayRef<SubtargetFeatureKV> FeatTable = MCInfo->getFeatureTable(); cargo:warning= | ^~~~~~~~~~~~~~~ cargo:warning= | getFeatureBits cargo:warning=llvm-wrapper/PassWrapper.cpp: In function 'void LLVMRustGetTargetFeature(LLVMTargetMachineRef, size_t, const char**, const char**)': cargo:warning=llvm-wrapper/PassWrapper.cpp:439:58: error: 'const class llvm::MCSubtargetInfo' has no member named 'getFeatureTable'; did you mean 'getFeatureBits'? cargo:warning= 439 | const ArrayRef<SubtargetFeatureKV> FeatTable = MCInfo->getFeatureTable(); cargo:warning= | ^~~~~~~~~~~~~~~ cargo:warning= | getFeatureBits
  exit status: 1

  --- stderr


error occurred: Command "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-O2" "-fPIC" "-D_FORTIFY_SOURCE=2" "-I/usr/local/include" "-I/usr/include" "-I/usr/include/krb5" "-I/usr/local/include/python3.10" "-I/usr/pkgsrc/lang/rust/work/rustc-1.59.0-src/src/llvm-project/llvm/include" "-I/usr/pkgsrc/lang/rust/work/rustc-1.59.0-src/build/aarch64_be-unknown-netbsd/llvm/build/include" "-std=c++14" "-fno-exceptions" "-fno-rtti" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-DLLVM_COMPONENT_AARCH64" "-DLLVM_COMPONENT_ARM" "-DLLVM_COMPONENT_ASMPARSER" "-DLLVM_COMPONENT_AVR" "-DLLVM_COMPONENT_BITREADER" "-DLLVM_COMPONENT_BITWRITER" "-DLLVM_COMPONENT_BPF" "-DLLVM_COMPONENT_COVERAGE" "-DLLVM_COMPONENT_HEXAGON" "-DLLVM_COMPONENT_INSTRUMENTATION" "-DLLVM_COMPONENT_IPO" "-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LTO" "-DLLVM_COMPONENT_M68K" "-DLLVM_COMPONENT_MIPS" "-DLLVM_COMPONENT_MSP430" "-DLLVM_COMPONENT_NVPTX" "-DLLVM_COMPONENT_POWERPC" "-DLLVM_COMPONENT_RISCV" "-DLLVM_COMPONENT_SPARC" "-DLLVM_COMPONENT_SYSTEMZ" "-DLLVM_COMPONENT_WEBASSEMBLY" "-DLLVM_COMPONENT_X86" "-DLLVM_RUSTLLVM" "-DNDEBUG" "-o" "/usr/pkgsrc/lang/rust/work/rustc-1.59.0-src/build/aarch64_be-unknown-netbsd/stage0-rustc/aarch64_be-unknown-netbsd/release/build/rustc_llvm-e7d7516c579afc18/out/llvm-wrapper/PassWrapper.o" "-c" "llvm-wrapper/PassWrapper.cpp" with args "c++" did not execute successfully (status code exit status: 1).


command did not execute successfully: "/usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo" "build" "--target" "aarch64_be-unknown-netbsd" "-Zbinary-dep-depinfo" "-j" "1" "-v" "--release" "--frozen" "--features" " llvm max_level_info" "--manifest-path" "/usr/pkgsrc/lang/rust/work/rustc-1.59.0-src/compiler/rustc/Cargo.toml" "--message-format" "json-render-diagnostics"
expected success, got: exit status: 101
Traceback (most recent call last):
File "/usr/pkgsrc/lang/rust/work/rustc-1.59.0-src/./x.py", line 27, in <module>
    bootstrap.main()
File "/usr/pkgsrc/lang/rust/work/rustc-1.59.0-src/src/bootstrap/bootstrap.py", line 1321, in main
    bootstrap(help_triggered)
File "/usr/pkgsrc/lang/rust/work/rustc-1.59.0-src/src/bootstrap/bootstrap.py", line 1307, in bootstrap
    run(args, env=env, verbose=build.verbose, is_bootstrap=True)
File "/usr/pkgsrc/lang/rust/work/rustc-1.59.0-src/src/bootstrap/bootstrap.py", line 182, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /usr/pkgsrc/lang/rust/work/rustc-1.59.0-src/build/bootstrap/debug/bootstrap -v build --stage 2 -j 1
*** Error code 1

Thanks,
John


Home | Main Index | Thread Index | Old Index