Bug 255475 - lang/rust: fails to build on 12/amd64
Summary: lang/rust: fails to build on 12/amd64
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: FreeBSD Rust Team
Depends on:
Reported: 2021-04-29 00:04 UTC by Chris Hutchinson
Modified: 2021-04-29 00:04 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Chris Hutchinson 2021-04-29 00:04:14 UTC
As I was fixing one of my ports. During the gtk3 build depends
I ran into this:

===>   spidermonkey78-78.7.0_3 depends on file: /usr/local/bin/python3.7 - found
===>   spidermonkey78-78.7.0_3 depends on package: rust>=1.35 - not found
===>  Building for rust-1.51.0
rustup not detected: [Errno 2] No such file or directory: 'rustc': 'rustc'
falling back to auto-detect
running: /usr/ports/lang/rust/work/bootstrap/bin/cargo build --manifest-path /usr/ports/lang/rust/work/rustc-1.51.0-src/src/bootstrap/Cargo.toml --verbose --frozen
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `/usr/ports/lang/rust/work/bootstrap/bin/rustc - --crate-name ___ --print=file-names -Cdebuginfo=2 -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=cfg` (exit code: 101)
  --- stderr
  thread 'rustc' panicked at 'failed to get current_exe: No such file or directory (os error 2)', compiler/rustc_session/src/filesearch.rs:133:19
  stack backtrace:
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

  error: internal compiler error: unexpected panic

  note: the compiler unexpectedly panicked. this is a bug.

  note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

  note: rustc 1.50.0 running on x86_64-unknown-freebsd

  note: compiler flags: -C debuginfo=2 -C linker=cc --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro

  query stack during panic:
  end of query stack
Traceback (most recent call last):
  File "x.py", line 27, in <module>
  File "/usr/ports/lang/rust/work/rustc-1.51.0-src/src/bootstrap/bootstrap.py", line 1123, in main
  File "/usr/ports/lang/rust/work/rustc-1.51.0-src/src/bootstrap/bootstrap.py", line 1096, in bootstrap
  File "/usr/ports/lang/rust/work/rustc-1.51.0-src/src/bootstrap/bootstrap.py", line 855, in build_bootstrap
    run(args, env=env, verbose=self.verbose)
  File "/usr/ports/lang/rust/work/rustc-1.51.0-src/src/bootstrap/bootstrap.py", line 153, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /usr/ports/lang/rust/work/bootstrap/bin/cargo build --manifest-path /usr/ports/lang/rust/work/rustc-1.51.0-src/src/bootstrap/Cargo.toml --verbose --frozen
*** Error code 1

Any clues?
This is a 12/amd64 jail with a git checkout of ports as of today:
2021-04-28 (git info/revision/status return nothing)

Thanks! :-)