[Buildroot] [PATCH 1/1] package/libdeflate: fix build with arm soft float
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Tue Dec 27 19:57:24 UTC 2022
On Mon, 26 Dec 2022 22:19:10 +0100
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:
> Fix the following build failure with arm soft float raised since bump to
> version 1.15 in commit c31087182fa545784d9a0a01f0b32715d78c3955 and
> https://github.com/ebiggers/libdeflate/commit/84c76f6f2cf5e5ac4deca0b1c25faebb42469f58:
>
> In file included from /home/autobuild/autobuild/instance-3/output-1/build/libdeflate-1.15/lib/arm/crc32_impl.h:256,
> from /home/autobuild/autobuild/instance-3/output-1/build/libdeflate-1.15/lib/crc32.c:227:
> /home/autobuild/autobuild/instance-3/output-1/host/lib/gcc/arm-buildroot-linux-gnueabi/11.3.0/include/arm_neon.h:31:2: error: #error "NEON intrinsics not available with the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard"
> 31 | #error "NEON intrinsics not available with the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard"
> | ^~~~~
> In file included from /home/autobuild/autobuild/instance-3/output-1/build/libdeflate-1.15/lib/crc32.c:227:
> /home/autobuild/autobuild/instance-3/output-1/build/libdeflate-1.15/lib/arm/crc32_impl.h: In function 'clmul_u32':
> /home/autobuild/autobuild/instance-3/output-1/build/libdeflate-1.15/lib/arm/crc32_impl.h:262:9: error: unknown type name 'uint64x2_t'; did you mean 'uint16x2_t'?
> 262 | uint64x2_t res = vreinterpretq_u64_p128(
> | ^~~~~~~~~~
> | uint16x2_t
>
> Fixes:
> - http://autobuild.buildroot.org/results/1445dcbf676893133f311a92ac21b29237fb75df
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
> ...or-due-to-PMULL-enabled-without-NEON.patch | 35 +++++++++++++++++++
> 1 file changed, 35 insertions(+)
> create mode 100644 package/libdeflate/0002-lib-arm-cpu_features-fix-build-error-due-to-PMULL-enabled-without-NEON.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list