package/cryptopp: disable neon if needed
PATCH 1/1 package/cryptopp: disable neon if needed
Fix the following build failure raised since commit bf4cf9de833e2d571d98d1ca935ea08a3468e463:
In file included from aria_simd.cpp:18:0:/home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/lib/gcc/arm-none-linux-gnueabi/4.8.3/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
#error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
^
Fixes:
- http://autobuild.buildroot.org/results/e4fd947c118174a4fad62cbed18816f02d39ec25
--- package/cryptopp/cryptopp.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/cryptopp/cryptopp.mk +4 -0
@@ -47,6 +47,10 @@ ifneq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_4_9),y) CRYPTOPP_CXXFLAGS += -DCRYPTOPP_DISABLE_AVX2 endif +ifneq ($(BR2_ARM_CPU_HAS_NEON),y) +CRYPTOPP_CXXFLAGS += -DCRYPTOPP_DISABLE_ARM_NEON +endif + CRYPTOPP_MAKE_OPTS = \ $(TARGET_CONFIGURE_OPTS) \ CXXFLAGS="$(CRYPTOPP_CXXFLAGS)"
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni
AppliedQuoted 8 lines · On Mon, 10 Jan 2022 18:36:40 +0100 Fabrice Fontaine…
Fix the following build failure raised since commit
bf4cf9de833e2d571d98d1ca935ea08a3468e463:In file included from aria_simd.cpp:18:0:
/home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/lib/gcc/arm-none-linux-gnueabi/4.8.3/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to usearm_neon.h
#error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to usearm_neon.h
^
Quoted 7 lines
Fixes:
- http://autobuild.buildroot.org/results/e4fd947c118174a4fad62cbed18816f02d39ec25Signed-off-by Fabrice Fontaine <[email protected]>--- package/cryptopp/cryptopp.mk | 4 ++++ 1 file changed, 4 insertions(+)
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot