Bug 251254 - lang/rust: 1.48.0 fails to build on aarch64
Summary: lang/rust: 1.48.0 fails to build on aarch64
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm64 Any
: --- Affects Many People
Assignee: FreeBSD Rust Team
URL:
Keywords:
: 251337 (view as bug list)
Depends on:
Blocks: 201763
  Show dependency treegraph
 
Reported: 2020-11-19 11:19 UTC by Dave Cottlehuber
Modified: 2021-02-21 22:48 UTC (History)
7 users (show)

See Also:
bugzilla: maintainer-feedback? (rust)


Attachments
excerpt from poudriere run on 13.0-CURRENT aarch64 (12.92 KB, text/plain)
2020-11-19 11:19 UTC, Dave Cottlehuber
no flags Details
excerpt from poudriere run on 13.0-CURRENT aarch64 for 12.2-RELEASE aarch64 jail (9.44 KB, text/plain)
2020-11-19 11:31 UTC, Dave Cottlehuber
no flags Details
1.48 rust build on poudriere run on 13.0-CURRENT aarch64 (169.66 KB, text/plain)
2021-01-02 14:19 UTC, Dave Cottlehuber
no flags Details
v0 (4.40 KB, patch)
2021-01-28 09:13 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Cottlehuber freebsd_committer 2020-11-19 11:19:53 UTC
Created attachment 219811 [details]
excerpt from poudriere run on 13.0-CURRENT aarch64
Comment 1 Dave Cottlehuber freebsd_committer 2020-11-19 11:31:39 UTC
Created attachment 219812 [details]
excerpt from poudriere run on 13.0-CURRENT aarch64 for 12.2-RELEASE aarch64 jail

additional log from 12.2R failure (same poudriere config, just different jail)
Comment 2 Mikael Urankar freebsd_committer 2020-11-24 09:16:37 UTC
*** Bug 251337 has been marked as a duplicate of this bug. ***
Comment 3 Dave Cottlehuber freebsd_committer 2021-01-02 14:00:54 UTC
still failing on rust 1.48:

sysroot: "/tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/build/aarch64-unknown-freebsd/stage0-sysroot"
libdir: "/tmp/usr/ports/lang/rust/work/bootstrap/lib"
rustc command: "LD_LIBRARY_PATH"="/tmp/usr/ports/lang/rust/work/bootstrap/lib:/tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/build/aarch64-unknown-freebsd/stage0-std/release/deps:/tmp/usr/ports/lang/rust/work/bootstrap/lib" "/tmp/usr/ports/lang/rust/work/bootstrap/bin/rustc" "--crate-name" "rustc_demangle" "/tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/vendor/rustc-demangle/src/lib.rs" "--error-format=json" "--json=diagnostic-rendered-ansi" "--crate-type" "lib" "--emit=dep-info,metadata,link" "-C" "opt-level=3" "-C" "embed-bitcode=no" "-C" "debuginfo=0" "--cfg" "feature=\"compiler_builtins\"" "--cfg" "feature=\"core\"" "--cfg" "feature=\"rustc-dep-of-std\"" "-C" "metadata=896f26396713e7ec" "-C" "extra-filename=-896f26396713e7ec" "--out-dir" "/tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/build/aarch64-unknown-freebsd/stage0-std/aarch64-unknown-freebsd/release/deps" "--target" "aarch64-unknown-freebsd" "-C" "linker=cc" "-L" "dependency=/tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/build/aarch64-unknown-freebsd/stage0-std/aarch64-unknown-freebsd/release/deps" "-L" "dependency=/tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/build/aarch64-unknown-freebsd/stage0-std/release/deps" "--extern" "compiler_builtins=/tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/build/aarch64-unknown-freebsd/stage0-std/aarch64-unknown-freebsd/release/deps/libcompiler_builtins-76fb8f931de56102.rmeta" "--extern" "core=/tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/build/aarch64-unknown-freebsd/stage0-std/aarch64-unknown-freebsd/release/deps/librustc_std_workspace_core-b94c7363f7b078b7.rmeta" "--cap-lints" "allow" "--cfg=bootstrap" "-Zmacro-backtrace" "-Clink-args=-Wl,-rpath,$ORIGIN/../lib" "-Cprefer-dynamic" "-Z" "binary-dep-depinfo" "-L" "native=/tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/build/aarch64-unknown-freebsd/stage0-std/aarch64-unknown-freebsd/release/build/compiler_builtins-b0e5c52ecb481b3a/out" "-Wrust_2018_idioms" "-Wunused_lifetimes" "-Dwarnings" "--sysroot" "/tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/build/aarch64-unknown-freebsd/stage0-sysroot" "-Z" "force-unstable-if-unmarked"
sysroot: "/tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/build/aarch64-unknown-freebsd/stage0-sysroot"
libdir: "/tmp/usr/ports/lang/rust/work/bootstrap/lib"
   Compiling panic_abort v0.0.0 (/tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/library/panic_abort)
command did not execute successfully: "/tmp/usr/ports/lang/rust/work/bootstrap/bin/cargo" "build" "--target" "aarch64-unknown-freebsd" "-Zbinary-dep-depinfo" "-j" "32" "-v" "--release" "--frozen" "--features" "panic-unwind backtrace compiler-builtins-c" "--manifest-path" "/tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/library/test/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 "/tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/src/bootstrap/bootstrap.py", line 1066, in main
    bootstrap(help_triggered)
  File "/tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/src/bootstrap/bootstrap.py", line 1052, in bootstrap
    run(args, env=env, verbose=build.verbose)
  File "/tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/src/bootstrap/bootstrap.py", line 153, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /tmp/usr/ports/lang/rust/work/rustc-1.48.0-src/build/bootstrap/debug/bootstrap build --jobs=32
*** Error code 1
Comment 4 Dave Cottlehuber freebsd_committer 2021-01-02 14:19:54 UTC
Created attachment 221195 [details]
1.48 rust build on poudriere run on 13.0-CURRENT aarch64
Comment 5 Michal Meloun freebsd_committer 2021-01-27 16:33:54 UTC
Same problem (signal 11) can be also observer on armv7 (tegra TK1).
As workaround you may use make MAKE_JOBS_UNSAFE=yes.
Comment 6 Mikael Urankar freebsd_committer 2021-01-28 09:13:26 UTC
Created attachment 221982 [details]
v0

Can you test this patch (it's a new bootstrap based on rust 1.49.0 built with a 12.1 sysroot and some unrelated changes)?
It seems to build fine on my nvidia board and a honeycomb.
Comment 7 commit-hook freebsd_committer 2021-01-29 10:49:59 UTC
A commit references this bug:

Author: mikael
Date: Fri Jan 29 10:49:02 UTC 2021
New revision: 563191
URL: https://svnweb.freebsd.org/changeset/ports/563191

Log:
  lang/rust: reroll the aarch64 bootstrap.

  This new bootstrap is based on rust 1.49.0 built with a 12.1 sysroot.

  PR:		251254
  Reported by:	dch, mmel
  Tested by:	dch, mikael

Changes:
  head/lang/rust/Makefile
  head/lang/rust/distinfo
Comment 8 Michal Meloun freebsd_committer 2021-01-29 11:49:59 UTC
Thanks for fixing aarch64. But can you, please, also update armv7 bootstrap? armv7 have same problem.
Comment 9 commit-hook freebsd_committer 2021-01-30 17:22:41 UTC
A commit references this bug:

Author: mikael
Date: Sat Jan 30 17:21:48 UTC 2021
New revision: 563425
URL: https://svnweb.freebsd.org/changeset/ports/563425

Log:
  lang/rust: reroll the armv7 bootstrap

  The current one fails to build Rust.

  PR:		251254
  Reported by:	mmel

Changes:
  head/lang/rust/distinfo
Comment 10 Ronald Klop 2021-02-21 22:48:19 UTC
Any interest in porting this to the current quarterly branch?