[Bug 255475] lang/rust: fails to build on 12/amd64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Apr 29 00:04:14 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255475

            Bug ID: 255475
           Summary: lang/rust: fails to build on 12/amd64
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: rust at FreeBSD.org
          Reporter: portmaster at bsdforge.com
             Flags: maintainer-feedback?(rust at FreeBSD.org)
          Assignee: rust at FreeBSD.org

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>
    bootstrap.main()
  File "/usr/ports/lang/rust/work/rustc-1.51.0-src/src/bootstrap/bootstrap.py",
line 1123, in main
    bootstrap(help_triggered)
  File "/usr/ports/lang/rust/work/rustc-1.51.0-src/src/bootstrap/bootstrap.py",
line 1096, in bootstrap
    build.build_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! :-)

--Chris

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list