Bug#1001882: 0ad: FTBFS on armhf: error: ‘-mfloat-abi=hard’: selected architecture lacks an FPU

Simon McVittie smcv at debian.org
Sat Dec 18 12:04:21 GMT 2021


On Sat, 18 Dec 2021 at 17:22:49 +0800, Shengjing Zhu wrote:
>   process didn't exit successfully: `/<<PKGBUILDDIR>>/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/debug/build/mozglue-static-db2fd9029278a596/build-script-build` (exit status: 1)
...
>   cargo:warning=cc1plus: error: ‘-mfloat-abi=hard’: selected architecture lacks an FPU

This looks like the same root cause as #1001314, which was triggered by
configuration changes in Debian's gcc-11: 0ad seems to include a vendored
copy of mozjs78, which includes a vendored copy of cc-rs, which needs
<https://salsa.debian.org/gnome-team/mozjs/-/blob/debian/78/master/debian/patches/Fix-armhf-build-for-GCC-11-627.patch>
(originally
<https://github.com/alexcrichton/cc-rs/commit/b2f6b146b75299c444e05bbde50d03705c7c4b6e>).

If it's feasible to make 0ad use a system copy of mozjs78, that might
help to avoid this sort of thing, although I realise the version of mozjs
that we need for gjs and polkit is not always going to be the same as
the version that 0ad wants.

    smcv



More information about the Pkg-games-devel mailing list