pkgsrc-Users archive

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

most recent lang/rust fails to build



With pkgsrc updated to about 12 hours ago, I'm seeing the following repeatable build failure on my NetBSD-8.99.7 host. The error occurs fairly early in the build process (after only 1.5 minutes).

     Running `/tmp/pkgs/lang/rust/work.x86_64/rustc-1.22.1-src/build/bootstrap/debug/rustc --crate-name miniz_sys src/vendor/miniz-sys/lib.rs --error-format json --crate-type lib --emit=dep-info,link -C opt-level=2 -C metadata=637d17bc7b48d031 -C extra-filename=-637d17bc7b48d031 --out-dir /tmp/pkgs/lang/rust/work.x86_64/rustc-1.22.1-src/build/x86_64-unknown-netbsd/stage0-rustc/x86_64-unknown-netbsd/release/deps --target x86_64-unknown-netbsd -L dependency=/tmp/pkgs/lang/rust/work.x86_64/rustc-1.22.1-src/build/x86_64-unknown-netbsd/stage0-rustc/x86_64-unknown-netbsd/release/deps -L dependency=/tmp/pkgs/lang/rust/work.x86_64/rustc-1.22.1-src/build/x86_64-unknown-netbsd/stage0-rustc/release/deps --extern libc=/tmp/pkgs/lang/rust/work.x86_64/rustc-1.22.1-src/build/x86_64-unknown-netbsd/stage0-rustc/x86_64-unknown-netbsd/release/deps/liblibc-a6edce516e433fbf.rlib --cap-lints allow -L native=/tmp/pkgs/lang/rust/work.x86_64/rustc-1.22.1-src/build/x86_64-unknown-netbsd/stage0-rustc/x86_64-unknown-netbsd/release/build/miniz-sys-c6d7bcefdc3fad22/out -l static=miniz`
error: failed to run custom build command for `rustc_llvm v0.0.0 (file:///tmp/pkgs/lang/rust/work.x86_64/rustc-1.22.1-src/src/librustc_llvm)`
process didn't exit successfully: `/tmp/pkgs/lang/rust/work.x86_64/rustc-1.22.1-src/build/x86_64-unknown-netbsd/stage0-rustc/release/build/rustc_llvm-14f8fdd90bd043f4/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=/usr/pkg/bin/llvm-config
cargo:rerun-if-env-changed=LLVM_CONFIG
cargo:rustc-cfg=llvm_component="aarch64"
cargo:rustc-cfg=llvm_component="arm"
cargo:rustc-cfg=llvm_component="asmparser"
cargo:rustc-cfg=llvm_component="bitreader"
cargo:rustc-cfg=llvm_component="bitwriter"
cargo:rustc-cfg=llvm_component="hexagon"
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="mips"
cargo:rustc-cfg=llvm_component="msp430"
cargo:rustc-cfg=llvm_component="nvptx"
cargo:rustc-cfg=llvm_component="powerpc"
cargo:rustc-cfg=llvm_component="sparc"
cargo:rustc-cfg=llvm_component="systemz"
cargo:rustc-cfg=llvm_component="x86"
cargo:rerun-if-changed=../rustllvm/llvm-rebuild-trigger
cargo:rerun-if-changed=../rustllvm/RustWrapper.cpp
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/.editorconfig
cargo:rerun-if-changed=../rustllvm/README
TARGET = Some("x86_64-unknown-netbsd")
OPT_LEVEL = Some("2")
TARGET = Some("x86_64-unknown-netbsd")
HOST = Some("x86_64-unknown-netbsd")
TARGET = Some("x86_64-unknown-netbsd")
TARGET = Some("x86_64-unknown-netbsd")
HOST = Some("x86_64-unknown-netbsd")
CXX_x86_64-unknown-netbsd = Some("c++")
TARGET = Some("x86_64-unknown-netbsd")
HOST = Some("x86_64-unknown-netbsd")
CXXFLAGS_x86_64-unknown-netbsd = None
CXXFLAGS_x86_64_unknown_netbsd = None
HOST_CXXFLAGS = None
CXXFLAGS = Some("-O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5")
DEBUG = Some("false")
running: "c++" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-O2" "-D_FORTIFY_SOURCE=2" "-I/usr/pkg/include" "-I/usr/include" "-I/usr/include/krb5" "-m64" "-I/usr/pkg/include" "-O2" "-D_FORTIFY_SOURCE=2" "-I/usr/include" "-I/usr/pkg/include/python3.6" "-fPIC" "-fvisibility-inlines-hidden" "-Werror=date-time" "-std=c++11" "-Wall" "-W" "-Wno-unused-parameter" "-Wwrite-strings" "-Wcast-qual" "-Wno-missing-field-initializers" "-pedantic" "-Wno-long-long" "-Wno-maybe-uninitialized" "-Wdelete-non-virtual-dtor" "-Wno-comment" "-ffunction-sections" "-fdata-sections" "-DNDEBUG" "-fno-exceptions" "-fno-rtti" "-DLLVM_BUILD_GLOBAL_ISEL" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-DLLVM_COMPONENT_AARCH64" "-DLLVM_COMPONENT_ARM" "-DLLVM_COMPONENT_ASMPARSER" "-DLLVM_COMPONENT_BITREADER" "-DLLVM_COMPONENT_BITWRITER" "-DLLVM_COMPONENT_HEXAGON" "-DLLVM_COMPONENT_INSTRUMENTATION" "-DLLVM_COMPONENT_INTERPRETER" "-DLLVM_COMPONENT_IPO" "-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LTO" "-DLLVM_COMPONENT_MCJIT" "-DLLVM_COMPONENT_MIPS" "-DLLVM_COMPONENT_MSP430" "-DLLVM_COMPONENT_NVPTX" "-DLLVM_COMPONENT_POWERPC" "-DLLVM_COMPONENT_SPARC" "-DLLVM_COMPONENT_SYSTEMZ" "-DLLVM_COMPONENT_X86" "-o" "/tmp/pkgs/lang/rust/work.x86_64/rustc-1.22.1-src/build/x86_64-unknown-netbsd/stage0-rustc/x86_64-unknown-netbsd/release/build/rustc_llvm-5102558825011242/out/../rustllvm/PassWrapper.o" "-c" "../rustllvm/PassWrapper.cpp"
cargo:warning=../rustllvm/PassWrapper.cpp:29:54: fatal error: llvm/Object/ModuleSummaryIndexObjectFile.h: No such file or directory
cargo:warning=compilation terminated.
exit code: 1

--- stderr
thread 'main' panicked at '

Internal error occurred: Command "c++" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-O2" "-D_FORTIFY_SOURCE=2" "-I/usr/pkg/include" "-I/usr/include" "-I/usr/include/krb5" "-m64" "-I/usr/pkg/include" "-O2" "-D_FORTIFY_SOURCE=2" "-I/usr/include" "-I/usr/pkg/include/python3.6" "-fPIC" "-fvisibility-inlines-hidden" "-Werror=date-time" "-std=c++11" "-Wall" "-W" "-Wno-unused-parameter" "-Wwrite-strings" "-Wcast-qual" "-Wno-missing-field-initializers" "-pedantic" "-Wno-long-long" "-Wno-maybe-uninitialized" "-Wdelete-non-virtual-dtor" "-Wno-comment" "-ffunction-sections" "-fdata-sections" "-DNDEBUG" "-fno-exceptions" "-fno-rtti" "-DLLVM_BUILD_GLOBAL_ISEL" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-DLLVM_COMPONENT_AARCH64" "-DLLVM_COMPONENT_ARM" "-DLLVM_COMPONENT_ASMPARSER" "-DLLVM_COMPONENT_BITREADER" "-DLLVM_COMPONENT_BITWRITER" "-DLLVM_COMPONENT_HEXAGON" "-DLLVM_COMPONENT_INSTRUMENTATION" "-DLLVM_COMPONENT_INTERPRETER" "-DLLVM_COMPONENT_IPO" "-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LTO" "-DLLVM_COMPONENT_MCJIT" "-DLLVM_COMPONENT_MIPS" "-DLLVM_COMPONENT_MSP430" "-DLLVM_COMPONENT_NVPTX" "-DLLVM_COMPONENT_POWERPC" "-DLLVM_COMPONENT_SPARC" "-DLLVM_COMPONENT_SYSTEMZ" "-DLLVM_COMPONENT_X86" "-o" "/tmp/pkgs/lang/rust/work.x86_64/rustc-1.22.1-src/build/x86_64-unknown-netbsd/stage0-rustc/x86_64-unknown-netbsd/release/build/rustc_llvm-5102558825011242/out/../rustllvm/PassWrapper.o" "-c" "../rustllvm/PassWrapper.cpp" with args "c++" did not execute successfully (status code exit code: 1).

', src/vendor/cc/src/lib.rs:1645:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed
thread 'main' panicked at 'command did not execute successfully: "/tmp/pkgs/lang/rust/work.x86_64/rust-bootstrap/bin/cargo" "build" "--target" "x86_64-unknown-netbsd" "-v" "--release" "--frozen" "--features" " jemalloc llvm" "--manifest-path" "/tmp/pkgs/lang/rust/work.x86_64/rustc-1.22.1-src/src/rustc/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101', src/bootstrap/compile.rs:883:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Traceback (most recent call last):
  File "./x.py", line 20, in <module>
    bootstrap.main()
  File "/tmp/pkgs/lang/rust/work.x86_64/rustc-1.22.1-src/src/bootstrap/bootstrap.py", line 756, in main
    bootstrap()
  File "/tmp/pkgs/lang/rust/work.x86_64/rustc-1.22.1-src/src/bootstrap/bootstrap.py", line 747, in bootstrap
    run(args, env=env, verbose=build.verbose)
  File "/tmp/pkgs/lang/rust/work.x86_64/rustc-1.22.1-src/src/bootstrap/bootstrap.py", line 148, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /tmp/pkgs/lang/rust/work.x86_64/rustc-1.22.1-src/build/bootstrap/debug/bootstrap -v dist
*** Error code 1

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

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

+------------------+--------------------------+----------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:          |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
+------------------+--------------------------+----------------------------+


Home | Main Index | Thread Index | Old Index