Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 877581

Summary: dev-lang/rust-1.62.1: Fails to build on big endian arm64
Product: Gentoo Linux Reporter: Marcus Comstedt <marcus>
Component: Current packagesAssignee: Gentoo Rust Project <rust>
Status: CONFIRMED ---    
Severity: normal CC: navi, randy, rust
Priority: Normal    
Version: unspecified   
Hardware: ARM64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Complete build log
Output from emerge --info

Description Marcus Comstedt 2022-10-18 20:45:49 UTC
Created attachment 824699 [details]
Complete build log

When attempting to emerge dev-lang/rust-1.62.1 under the
default/linux/arm64/17.0/big-endian profile, the build fails with
the following message:

OSError: [Errno 8] Exec format error: '/var/tmp/portage/dev-lang/rust-1.62.1/work/rust-stage0/bin/cargo'

This is because the cargo binary it's trying to run is compiled for
little endian:

 # file '/var/tmp/portage/dev-lang/rust-1.62.1/work/rust-stage0/bin/cargo'
/var/tmp/portage/dev-lang/rust-1.62.1/work/rust-stage0/bin/cargo: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 4.2.6, with debug_info, not stripped
 #
Comment 1 Marcus Comstedt 2022-10-18 20:46:19 UTC
Created attachment 824701 [details]
Output from emerge --info
Comment 2 Georgy Yakovlev archtester gentoo-dev 2022-10-18 23:18:45 UTC
Yeah profile should add wd40 feature, there’s no upstream bootstrap tarball for arm64_be, and no plans to provide one like we do for sparc.