[Bug 223009] lang/rust: fails to build on aarch64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Oct 22 03:02:17 UTC 2017


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

--- Comment #9 from Jan Beich <jbeich at FreeBSD.org> ---
clusteadm@, nevermind comment 5. Can you downgrade ref11-aarch64 to
11.0-RELEASE? 1100122 ABI is still supported for 1 month more. You can't
upgrade before that without risking to sabotage ports/ work.

  # poudriere jail (qemu-user + native-xtools)
  $ cc -v
  FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM
3.8.0)
  Target: aarch64-unknown-freebsd11.0
  Thread model: posix
  InstalledDir: /usr/bin
  $ cc -Wl,--version
  GNU ld (GNU Binutils) 2.28

  $ echo 'int main() {}' >a.c
  $ cc a.c
  $ file a.out
  a.out: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically
linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 11.0 (1100122),
FreeBSD-style, not stripped

vs.

  $ ssh ref11-aarch64.freebsd.org
  $ cc -v
  FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM
4.0.0)
  Target: aarch64-unknown-freebsd11.1
  Thread model: posix
  InstalledDir: /usr/bin
  $ cc -Wl,--version
  LLD 4.0.0 (FreeBSD 297347) (compatible with GNU linkers)

  $ echo 'int main() {}' >a.c
  $ cc a.c
  $ file a.out
  a.out: ELF 64-bit LSB executable, ARM aarch64, version 1 (FreeBSD),
dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 11.0
(1100513), FreeBSD-style, not stripped

Notice how ABI was unintentionally upgraded in ports r446815:

  $ for f in
/usr/ports/distfiles/rust/*/rustc-*-aarch64-unknown-freebsd.tar.gz; do tar xkf
$f; done
  $ file */rustc/bin/rustc
  rustc-1.17.0-aarch64-unknown-freebsd/rustc/bin/rustc: ELF 64-bit LSB shared
object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter
/libexec/ld-elf.so.1, for FreeBSD 11.0 (1100122), FreeBSD-style, not stripped
  rustc-1.18.0-aarch64-unknown-freebsd/rustc/bin/rustc: ELF 64-bit LSB shared
object, ARM aarch64, version 1 (FreeBSD), dynamically linked, interpreter
/libexec/ld-elf.so.1, for FreeBSD 11.0 (1100513), FreeBSD-style, not stripped
  rustc-1.19.0-aarch64-unknown-freebsd/rustc/bin/rustc: ELF 64-bit LSB shared
object, ARM aarch64, version 1 (FreeBSD), dynamically linked, interpreter
/libexec/ld-elf.so.1, for FreeBSD 11.0 (1100513), FreeBSD-style, not stripped

Obviously, downgrading ref11-aarch64 to 11.0 would require starting over from
the last bootstrap with 1100122 ABI. Maybe the maintainer wouldn't mind doing
it as part of bug 223123.

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


More information about the freebsd-ports-bugs mailing list