Fails to build with Meson on Debian armel (armv5te EABI softfloat little-endian)
The Debian armel
architecture represents little-endian ARM EABI without a FPU. In older Debian releases (up to and including Debian 9 'stretch') the baseline CPU was armv4t; it is now armv5te.
Building in this configuration worked with Autotools, but fails with Meson:
cc -Iglib/glib@@glib-2.0@sha -Iglib -I../../../glib -I. -I../../../ -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu89 -D_GNU_SOURCE -fno-strict-aliasing -Wall -Wduplicated-branches -Wmisleading-indentation -Wstrict-prototypes -Wunused -Wno-bad-function-cast -Werror=declaration-after-statement -Werror=format=2 -Werror=implicit-function-declaration -Werror=init-self -Werror=missing-include-dirs -Werror=missing-prototypes -Werror=pointer-arith -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread '-DG_LOG_DOMAIN="GLib"' -DGLIB_COMPILATION -fvisibility=hidden -MD -MQ 'glib/glib@@glib-2.0@sha/gatomic.c.o' -MF 'glib/glib@@glib-2.0@sha/gatomic.c.o.d' -o 'glib/glib@@glib-2.0@sha/gatomic.c.o' -c ../../../glib/gatomic.c
../../../glib/gatomic.c:675:2: error: #error G_ATOMIC_LOCK_FREE defined, but incapable of lock-free atomics.
Full build log: https://buildd.debian.org/status/fetch.php?pkg=glib2.0&arch=armel&ver=2.58.1-4&stamp=1540004145&raw=0
An Autotools build seems to think atomic lock-free intrinsics are available:
checking for lock-free atomic intrinsics... yes