* [Buildroot] [PATCH 1/1] package/cryptopp: disable neon if needed
@ 2022-01-10 17:36 Fabrice Fontaine
2022-01-11 21:00 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-01-10 17:36 UTC (permalink / raw)
To: buildroot; +Cc: Julian Scheel, 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 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
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/cryptopp/cryptopp.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/cryptopp/cryptopp.mk b/package/cryptopp/cryptopp.mk
index 5e6eb9644d..4353e35e0a 100644
--- a/package/cryptopp/cryptopp.mk
+++ b/package/cryptopp/cryptopp.mk
@@ -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)"
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/cryptopp: disable neon if needed
2022-01-10 17:36 [Buildroot] [PATCH 1/1] package/cryptopp: disable neon if needed Fabrice Fontaine
@ 2022-01-11 21:00 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2022-01-11 21:00 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Julian Scheel, buildroot
On Mon, 10 Jan 2022 18:36:40 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> 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
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/cryptopp/cryptopp.mk | 4 ++++
> 1 file changed, 4 insertions(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-11 21:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-10 17:36 [Buildroot] [PATCH 1/1] package/cryptopp: disable neon if needed Fabrice Fontaine
2022-01-11 21:00 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.