arm cross-compile fails for gcc 11.2: "selected architecture lacks an FPU"
/usr/bin/arm-linux-gnueabihf-gcc -DDYNAMORIO_INTERNAL -DNOT_DYNAMORIO_CORE -I/home/bruening/dr/git/build_a32_dbg_tests -I/home/bruening/dr/git/src/libutil -I/home/bruening/dr/git/src/core -I/home/bruening/dr/git/src/core/lib -mthumb -march=armv7-a -fno-strict-aliasing -fno-stack-protector -fvisibility=internal -std=gnu99 -g3 -fno-omit-frame-pointer -fno-builtin-strcmp -Wall -Werror -Wwrite-strings -Wno-unused-but-set-variable -Wno-stringop-truncation -Wno-format-truncation -Wno-stringop-overflow -MD -MT tools/CMakeFiles/run_in_bg.dir/run_in_bg.c.o -MF tools/CMakeFiles/run_in_bg.dir/run_in_bg.c.o.d -o tools/CMakeFiles/run_in_bg.dir/run_in_bg.c.o -c /home/bruening/dr/git/src/tools/run_in_bg.c
cc1: error: ‘-mfloat-abi=hard’: selected architecture lacks an FPU
[4/1124] Building C object tools/CMakeFiles/runstats.dir/runstats.c.o
FAILED: tools/CMakeFiles/runstats.dir/runstats.c.o
$ /usr/bin/arm-linux-gnueabihf-g++ -v
Using built-in specs.
COLLECT_GCC=/usr/bin/arm-linux-gnueabihf-g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabihf/11/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Debian 11.2.0-10' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --without-target-system-zlib --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a+fp --with-float=hard --with-mode=thumb --disable-werror --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-linux-gnueabihf --program-prefix=arm-linux-gnueabihf- --includedir=/usr/arm-linux-gnueabihf/include --with-build-config=bootstrap-lto-lean --enable-link-serialization=8
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (Debian 11.2.0-10)
Replacing "-march=armv7-a" with "-march=armv7-a+fp" fixes it.