Closed ankith26 closed 6 months ago
On ARMv7-A targets, you need to append the compiler option -mfpu=neon
.
Hello!
I was already passing -mfpu=neon
. But I just found out that on raspbian gcc defaults to doing something like -march=armv6
even on an armv7 processor, so manually passing -march=armv7-a
fixed my issue
I am trying to compile a project using
sse2neon.h
inside a docker container from the base imagebalenalib/raspberrypi3-debian:bookworm
, using QEMU for armv7 virtualization.Here is some info as printed by the
meson
build system inside this containerThe build fails with "Unsupported target. Must be either ARMv7-A+NEON or ARMv8-A." in the file that the header is included but this system is clearly armv7.
I am not sure if this is something that must be fixed in this library or the compiler toolchain/distribution I am using, but I am making this issue report anyways because I believe this check can be removed or updated on the
sse2neon
side.