* [Buildroot] [PATCH] package/xnnpack: add support for aarch64
@ 2026-10-25 11:03 Titouan Christophe via buildroot
2026-10-25 17:39 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Titouan Christophe via buildroot @ 2026-10-25 11:03 UTC (permalink / raw)
To: buildroot; +Cc: Stefan Hager, James Hilliard
XNNPACK officially supports aarch64, so it can be added to
BR2_PACKAGE_XNNPACK_ARCH_SUPPORTS.
Because some NEON intrinsics calls are flagged as type incompatible by recent
GCC versions, do not consider them as errors. This issue was already
noticed and reported upstream some time ago; and this is the recommended
fix from upstream. See https://github.com/google/XNNPACK/issues/7733
Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
---
package/xnnpack/Config.in | 1 +
package/xnnpack/xnnpack.mk | 2 ++
2 files changed, 3 insertions(+)
diff --git a/package/xnnpack/Config.in b/package/xnnpack/Config.in
index 794c5c47d2..434cc823a7 100644
--- a/package/xnnpack/Config.in
+++ b/package/xnnpack/Config.in
@@ -2,6 +2,7 @@ config BR2_PACKAGE_XNNPACK_ARCH_SUPPORTS
bool
default y if BR2_i386
default y if BR2_x86_64
+ default y if BR2_aarch64
depends on BR2_PACKAGE_CPUINFO_ARCH_SUPPORTS
config BR2_PACKAGE_XNNPACK
diff --git a/package/xnnpack/xnnpack.mk b/package/xnnpack/xnnpack.mk
index bb53188f9e..22f4b059e9 100644
--- a/package/xnnpack/xnnpack.mk
+++ b/package/xnnpack/xnnpack.mk
@@ -10,7 +10,9 @@ XNNPACK_LICENSE = BSD-3-Clause
XNNPACK_LICENSE_FILES = LICENSE
XNNPACK_INSTALL_STAGING = YES
XNNPACK_DEPENDENCIES = cpuinfo fp16 fxdiv pthreadpool
+# GCC >= 14 errors out on some fp16 NEON intrinsics calls
XNNPACK_CONF_OPTS = \
+ -DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -Wno-error=incompatible-pointer-types" \
-DCPUINFO_SOURCE_DIR=$(STAGING_DIR)/usr \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DXNNPACK_BUILD_TESTS=OFF \
--
2.55.0
_______________________________________________
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] package/xnnpack: add support for aarch64
2026-10-25 11:03 [Buildroot] [PATCH] package/xnnpack: add support for aarch64 Titouan Christophe via buildroot
@ 2026-10-25 17:39 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-10-25 17:39 UTC (permalink / raw)
To: Titouan Christophe; +Cc: buildroot, Stefan Hager, James Hilliard
On Sun, Oct 25, 2026 at 12:03:24PM +0100, Titouan Christophe via buildroot wrote:
> XNNPACK officially supports aarch64, so it can be added to
> BR2_PACKAGE_XNNPACK_ARCH_SUPPORTS.
>
> Because some NEON intrinsics calls are flagged as type incompatible by recent
> GCC versions, do not consider them as errors. This issue was already
> noticed and reported upstream some time ago; and this is the recommended
> fix from upstream. See https://github.com/google/XNNPACK/issues/7733
>
> Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
Applied to master, thanks!
Best regards,
Thomas Petazzoni
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
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:[~2026-10-25 17:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-25 11:03 [Buildroot] [PATCH] package/xnnpack: add support for aarch64 Titouan Christophe via buildroot
2026-10-25 17:39 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox