Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 877581 - dev-lang/rust-1.62.1: Fails to build on big endian arm64
Summary: dev-lang/rust-1.62.1: Fails to build on big endian arm64
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-18 20:45 UTC by Marcus Comstedt
Modified: 2024-02-14 10:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Complete build log (build.log,7.63 KB, text/x-log)
2022-10-18 20:45 UTC, Marcus Comstedt
Details
Output from emerge --info (emerge.info,5.42 KB, text/plain)
2022-10-18 20:46 UTC, Marcus Comstedt
Details

Note You need to log in before you can comment on or make changes to this bug.
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.