Hi,

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

make VERBOSE=1
CC -o memcmp.o memcmp.c
gcc  -I./../arch/arm -I. -Wall -g -O2 -fomit-frame-pointer -marm -march=armv6 
-DHAVE_CONFIG_H  
-DDEFAULTPATH='".:/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_LARGEFILE_SOURCE=1 -I/usr/include/freetype2 -I/usr/include/libpng16      
-c  -o memcmp.o memcmp.c
cc1: error: ‘-mfloat-abi=hard’: selected architecture lacks an FPU

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

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

cheers,

David



Reply via email to