lang/rust failing to build on aarch64
Renato Botelho
garga at FreeBSD.org
Fri Oct 9 12:16:13 UTC 2020
Here at pfSense we follow ports tree quarterly branch. This week I
merged 2020Q4 and then rust stop building on 12.x aarch64.
Before the merge we had rust version 1.44.1_1 and now we got 1.46.0.
We do native build on a ThunderX running 13-CURRENT from January
(r357002) and poudriere jail is running stable/12 based src. When I try
to build I got the following error (full log at [1]):
rustc command:
"LD_LIBRARY_PATH"="/wrkdirs/usr/ports/lang/rust/work/bootstrap/lib:/wrkdirs/usr/ports/lang/rust/work/rustc-1.46.0-src/build/aarch64-unknown-freebsd/stage0-std/release/deps:/wrkdirs/usr/ports/lang/rust/work/bootstrap/lib"
"/wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/rustc" "--crate-name"
"rustc_std_workspace_core" "--edition=2018"
"src/tools/rustc-std-workspace-core/lib.rs" "--error-format=json"
"--json=diagnostic-rendered-ansi,artifacts" "--crate-type" "lib"
"--emit=dep-info,metadata,link" "-C" "opt-level=3" "-Cembed-bitcode=no"
"-C" "debuginfo=0" "-C" "metadata=6ef567c55f0253ba" "-C"
"extra-filename=-6ef567c55f0253ba" "--out-dir"
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.46.0-src/build/aarch64-unknown-freebsd/stage0-std/aarch64-unknown-freebsd/release/deps"
"--target" "aarch64-unknown-freebsd" "-C" "linker=cc" "-L"
"dependency=/wrkdirs/usr/ports/lang/rust/work/rustc-1.46.0-src/build/aarch64-unknown-freebsd/stage0-std/aarch64-unknown-freebsd/release/deps"
"-L"
"dependency=/wrkdirs/usr/ports/lang/rust/work/rustc-1.46.0-src/build/aarch64-unknown-freebsd/stage0-std/release/deps"
"--extern"
"core=/wrkdirs/usr/ports/lang/rust/work/rustc-1.46.0-src/build/aarch64-unknown-freebsd/stage0-std/aarch64-unknown-freebsd/release/deps/libcore-65643217d9192060.rmeta"
"--cfg=bootstrap" "-Zmacro-backtrace"
"-Clink-args=-Wl,-rpath,$ORIGIN/../lib" "-Cprefer-dynamic"
"-Zbinary-dep-depinfo" "-Wrust_2018_idioms" "-Wunused_lifetimes"
"-Dwarnings" "--sysroot"
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.46.0-src/build/aarch64-unknown-freebsd/stage0-sysroot"
"-Z" "force-unstable-if-unmarked"
sysroot:
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.46.0-src/build/aarch64-unknown-freebsd/stage0-sysroot"
libdir: "/wrkdirs/usr/ports/lang/rust/work/bootstrap/lib"
command did not execute successfully:
"/wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/cargo" "build"
"--target" "aarch64-unknown-freebsd" "-Zbinary-dep-depinfo" "-j" "12"
"-v" "--release" "--frozen" "--features" "panic-unwind backtrace
compiler-builtins-c" "--manifest-path"
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.46.0-src/src/libtest/Cargo.toml"
"--message-format" "json-render-diagnostics"
expected success, got: signal: 11
Traceback (most recent call last):
File "x.py", line 11, in <module>
bootstrap.main()
File
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.46.0-src/src/bootstrap/bootstrap.py",
line 981, in main
bootstrap(help_triggered)
File
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.46.0-src/src/bootstrap/bootstrap.py",
line 967, in bootstrap
run(args, env=env, verbose=build.verbose)
File
"/wrkdirs/usr/ports/lang/rust/work/rustc-1.46.0-src/src/bootstrap/bootstrap.py",
line 143, in run
raise RuntimeError(err)
RuntimeError: failed to run:
/wrkdirs/usr/ports/lang/rust/work/rustc-1.46.0-src/build/bootstrap/debug/bootstrap
install --jobs=12
*** Error code 1
[1] https://gist.github.com/rbgarga/b2a31ffed23cd761f8dd30b8850eec68
--
Renato Botelho
More information about the freebsd-ports
mailing list