Files
packages/lang
Josef Schlehofer 388c3b6ad4 rust: build soft-float on soft-float PowerPC subtargets
RUSTC_TARGET_ARCH comes from the GNU triple, so every 32-bit PowerPC
subtarget gets powerpc-unknown-linux-musl. That triple is hard-float and
mpc85xx is not: its e500v2 has no floating-point unit, and the toolchain
reports _SOFT_FLOAT and calls __divdf3 for a division.

So rustc emits lfd, stfd and fdiv for a core with no floating-point
registers, and passes doubles in a way nothing else in the image does. It
does not fail outright — a speed test reported negative throughput, and
formatting one of those values tripped an assertion inside core.

Pass -Ctarget-feature=-hard-float where CONFIG_SOFT_FLOAT says so. The same
flag has to reach the std that rust/host builds, or std and the packages
linked against it disagree about how a double is passed.

Signed-off-by: Josef Schlehofer <pepe@bloodkings.eu>
2026-08-16 08:15:03 +02:00
..
2026-08-14 15:36:45 +03:00
2026-08-15 12:26:13 +02:00
2026-08-02 09:35:26 +02:00
2026-07-13 21:54:20 +02:00
2026-05-08 22:28:27 +02:00
2025-05-11 21:23:49 +03:00
2026-06-03 13:06:55 +03:00