Small hickup when trying to compile recent gforth on armhf

David Kuehling <[email protected]> Tue, 21 Oct 2025 21:16:40 +0000
Newsgroups gmane.comp.lang.forth.gforth
Message-ID <[email protected]>
Hi,

trying to compile gforth-0.7.9_20251001 on Debian Trixie armhf, I run
into the following issue:

make VERBOSE=3D1
CC -o memcmp.o memcmp.c
gcc  -I./../arch/arm -I. -Wall -g -O2 -fomit-frame-pointer -marm -march=3Da=
rmv6 -DHAVE_CONFIG_H  -DDEFAULTPATH=3D'".:/usr/local/lib/gforth/site-forth:=
/usr/local/lib/gforth/0.7.9_20251001:/usr/local/share/gforth/0.7.9_20251001=
:/usr/share/gforth/site-forth:/usr/local/share/gforth/site-forth"'  -D_LARG=
EFILE_SOURCE=3D1 -I/usr/include/freetype2 -I/usr/include/libpng16      -c  =
-o memcmp.o memcmp.c
cc1: error: =E2=80=98-mfloat-abi=3Dhard=E2=80=99: selected architecture lac=
ks an FPU

It appears, that with this gcc (gcc-14.2) we need to specify
-march=3Darmv6+fp instead of armv6.  Otherwise gcc apears to assume no
hardware floating point support.

Patching the configure script to use march=3Darmv6+fp for a gnueabihf
host, the build finishes successfully.

cheers,

David