FTBFS on armhf with ‘-mfloat-abi=hard’: selected architecture lacks an FPU

Bug #2006501 reported by Nick Rosbrook
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openlibm (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Build log:https://launchpadlibrarian.net/648312859/buildlog_ubuntu-lunar-armhf.openlibm_0.8.1+dfsg-2_BUILDING.txt.gz

The relevant part is this:

make[1]: Entering directory '/<<PKGBUILDDIR>>'
cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/openlibm-0.8.1+dfsg-2 -fno-gnu89-inline -fno-builtin -mhard-float -fPIC -march=armv7-a -std=c99 -Wall -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/arm -I/<<PKGBUILDDIR>>/src -DASSEMBLER -D__BSD_VISIBLE -Wno-implicit-function-declaration -c src/common.c -o src/common.c.o
cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/openlibm-0.8.1+dfsg-2 -fno-gnu89-inline -fno-builtin -mhard-float -fPIC -march=armv7-a -std=c99 -Wall -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/arm -I/<<PKGBUILDDIR>>/src -DASSEMBLER -D__BSD_VISIBLE -Wno-implicit-function-declaration -c src/e_acos.c -o src/e_acos.c.o
cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/openlibm-0.8.1+dfsg-2 -fno-gnu89-inline -fno-builtin -mhard-float -fPIC -march=armv7-a -std=c99 -Wall -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/arm -I/<<PKGBUILDDIR>>/src -DASSEMBLER -D__BSD_VISIBLE -Wno-implicit-function-declaration -c src/e_acosf.c -o src/e_acosf.c.o
cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/openlibm-0.8.1+dfsg-2 -fno-gnu89-inline -fno-builtin -mhard-float -fPIC -march=armv7-a -std=c99 -Wall -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/arm -I/<<PKGBUILDDIR>>/src -DASSEMBLER -D__BSD_VISIBLE -Wno-implicit-function-declaration -c src/e_acosh.c -o src/e_acosh.c.o
cc1: error: ‘-mfloat-abi=hard’: selected architecture lacks an FPU
cc1: error: ‘-mfloat-abi=hard’: selected architecture lacks an FPU
cc1: error: ‘-mfloat-abi=hard’: selected architecture lacks an FPU
cc1: error: ‘-mfloat-abi=hard’: selected architecture lacks an FPU
make[1]: *** [Make.inc:163: src/e_acosf.c.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Make.inc:163: src/common.c.o] Error 1
make[1]: *** [Make.inc:163: src/e_acos.c.o] Error 1
make[1]: *** [Make.inc:163: src/e_acosh.c.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:7: binary-arch] Error 25
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2

A fix is already committed to salsa[1], but has not been uploaded yet.

[1] https://salsa.debian.org/julia-team/openlibm/-/commit/ab1ac62c3d6a108d824abdd4e7e4c443ed887a03

Revision history for this message
Nick Rosbrook (enr0n) wrote :
Revision history for this message
Nick Rosbrook (enr0n) wrote :

I proposed uploading Debian's fix now, but with a `maysync` version so that Debian's next upload will autosync.

Revision history for this message
Steve Langasek (vorlon) wrote :

Uploaded (fixing spelling of Adrian's name in debian/changelog)

Revision history for this message
Steve Langasek (vorlon) wrote :

but somebody else had already uploaded without updating status here.

Changed in openlibm (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openlibm - 0.8.1+dfsg-2maysync1

---------------
openlibm (0.8.1+dfsg-2maysync1) lunar; urgency=medium

  * debian/rules: unset MARCH on build and test. Thanks Andrian Bunk.
    (LP: #2006501)

 -- Nick Rosbrook <email address hidden> Tue, 07 Feb 2023 12:14:27 -0500

Changed in openlibm (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.