Skip to content

Latest Rust nightly does not work on FreeBSD #43427

Closed
@alexreg

Description

@alexreg

I'm not sure when exactly it broke, but I suspect within the last few days. When I run rustc now, I get:

$ rustc
ELF binary type "0" not known.
/home/alexuk/.rustup/toolchains/nightly-x86_64-unknown-freebsd/bin/rustc: ELF: not found
/home/alexuk/.rustup/toolchains/nightly-x86_64-unknown-freebsd/bin/rustc: ?gߓ?4????O06???: not found
/home/alexuk/.rustup/toolchains/nightly-x86_64-unknown-freebsd/bin/rustc: DD: not found
/home/alexuk/.rustup/toolchains/nightly-x86_64-unknown-freebsd/bin/rustc: ?T: not found
/home/alexuk/.rustup/toolchains/nightly-x86_64-unknown-freebsd/bin/rustc: Wui: not found
/home/alexuk/.rustup/toolchains/nightly-x86_64-unknown-freebsd/bin/rustc: 6: Syntax error: ")" unexpected

And the output of readelf -h $(which rustc) is the following:

ELF Header:
  Magic:   7f 45 4c 46 02 01 01 09 00 00 00 00 00 00 00 00 
  Class:                             ELF64
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - FreeBSD
  ABI Version:                       0
  Type:                              DYN (Shared object file)
  Machine:                           Advanced Micro Devices X86-64
  Version:                           0x1
  Entry point address:               0xa4420
  Start of program headers:          64 (bytes into file)
  Start of section headers:          11889304 (bytes into file)
  Flags:                             0x0
  Size of this header:               64 (bytes)
  Size of program headers:           56 (bytes)
  Number of program headers:         9
  Size of section headers:           64 (bytes)
  Number of section headers:         44
  Section header string table index: 41

I'm using the latest version of Rustup, if it makes a difference. Did the build script get botched recently, or something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-freebsdOperating system: FreeBSDP-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions