Bug 277921 - lang/rust: 1.77.0 fails to build on aarch64 14.0-RELEASE
Summary: lang/rust: 1.77.0 fails to build on aarch64 14.0-RELEASE
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: FreeBSD Rust Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-24 14:22 UTC by Daniel Engberg
Modified: 2024-03-26 18:33 UTC (History)
6 users (show)

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


Attachments
Poudriere log (31.19 KB, text/plain)
2024-03-24 14:22 UTC, Daniel Engberg
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Engberg freebsd_committer freebsd_triage 2024-03-24 14:22:13 UTC
Created attachment 249449 [details]
Poudriere log

Fails at "Building bootstrap"

Building bootstrap
running: /wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/cargo build --manifest-path /wrkdirs/usr/ports/lang/rust/work/rustc-1.77.0-src/src/bootstrap/Cargo.toml --verbose --verbose --frozen
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `/wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/rustc - --crate-name ___ --print=file-names -Zallow-features= -C linker=cc -Wrust_2018_idioms -Wunused_lifetimes --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg` (exit status: 1)
  --- stderr
  rustc -Cllvm-args="..." with: Unknown command line argument '-generate-arange-section'.  Try: 'rustc -Cllvm-args="..." with --help'
  rustc -Cllvm-args="..." with: Did you mean '--print-all-options'?
  rustc -Cllvm-args="..." with: Unknown command line argument '-mergefunc-use-aliases'.  Try: 'rustc -Cllvm-args="..." with --help'
  rustc -Cllvm-args="..." with: Did you mean '--rng-seed'?
  rustc -Cllvm-args="..." with: Unknown command line argument '-preserve-alignment-assumptions-during-inlining=false'.  Try: 'rustc -Cllvm-args="..." with --help'
  rustc -Cllvm-args="..." with: Did you mean '--print-all-options=false'?
  rustc -Cllvm-args="..." with: Unknown command line argument '-import-cold-multiplier=0.1'.  Try: 'rustc -Cllvm-args="..." with --help'
  rustc -Cllvm-args="..." with: Did you mean '--sort-timers=0.1'?
Traceback (most recent call last):
  File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.77.0-src/x.py", line 50, in <module>
    bootstrap.main()
  File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.77.0-src/src/bootstrap/bootstrap.py", line 1162, in main
    bootstrap(args)
  File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.77.0-src/src/bootstrap/bootstrap.py", line 1129, in bootstrap
    build.build_bootstrap()
  File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.77.0-src/src/bootstrap/bootstrap.py", line 880, in build_bootstrap
    run(args, env=env, verbose=self.verbose, cwd=self.rust_root)
  File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.77.0-src/src/bootstrap/bootstrap.py", line 187, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/cargo build --manifest-path /wrkdirs/usr/ports/lang/rust/work/rustc-1.77.0-src/src/bootstrap/Cargo.toml --verbose --verbose --frozen
*** Error code 1

Full Poudriere log attached, also reproducable using ports
Comment 1 Orville Q. Song 2024-03-24 15:44:01 UTC
(In reply to Daniel Engberg from comment #0)
Reproducible on my arm64 server either.
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2024-03-24 20:33:17 UTC
If I look at the correct build log the build system took the broken 
devel/freebsd-sysroot [1]: aarch64-freebsd-sysroot-a2023.12.30_2

should be aarch64-freebsd-sysroot-a2023.12.30_3 [2]

[1] https://pkg-status.freebsd.org/beefy16/data/132amd64-default/3229bb06d7d7/logs/aarch64-rust-bootstrap-1.76.0.log

[2] https://github.com/freebsd/freebsd-ports/commit/a0802863390d880d8ea18de688162cad0e45f97e
Comment 3 Nuno Teixeira freebsd_committer freebsd_triage 2024-03-25 13:02:23 UTC
This build error seems to be equal of PR from 1.76.0
(+See also)
Comment 4 Vick Khera 2024-03-25 17:27:03 UTC
(In reply to Nuno Teixeira from comment #3)
Are you saying we should drop the bootstrap version to the 2023-12-28 1.75.0?

The current rust port seems to have everything current as per that referenced issue.
Comment 5 commit-hook freebsd_committer freebsd_triage 2024-03-26 12:43:45 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6f156f501ce613b7948ea1bddd00f0c4dbeb44fb

commit 6f156f501ce613b7948ea1bddd00f0c4dbeb44fb
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2024-03-26 12:42:02 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2024-03-26 12:43:32 +0000

    lang/rust: Update bootstrap for aarch64

    The previous one did not work.

    PR:             277921

 lang/rust/distinfo | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
Comment 6 Nuno Teixeira freebsd_committer freebsd_triage 2024-03-26 12:55:00 UTC
(In reply to commit-hook from comment #5)

Building :)