numam-dpdk/config/arm
Chengwen Feng 5aa9189d74 config/arm: fix SVE build with GCC 8.3
If the target machine has SVE feature (e.g. "-march=armv8.2-a+sve'),
and the compiler is gcc-8.3, it will produce this error:
	In file included from lib/eal/common/eal_common_options.c:38:
	lib/eal/arm/include/rte_vect.h:13:10: fatal	error:
	arm_sve.h: No such file or directory
	#include <arm_sve.h>
	       ^~~~~~~~~~~

The root cause is that gcc-8.3 supports SVE (the macro
__ARM_FEATURE_SVE was 1), but it doesn't support SVE ACLE [1].

The solution:
a) Detect compiler whether support SVE ACLE, if support then define
RTE_HAS_SVE_ACLE macro.
b) Use the RTE_HAS_SVE_ACLE macro to include SVE header file.

[1] ACLE:  Arm C Language Extensions, the SVE ACLE header file is
<arm_sve.h>, user should include it when writing ACLE SVE code.

Fixes: 67b68824a8 ("lpm/arm: support SVE")
Cc: stable@dpdk.org

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Acked-by: Ruifeng Wang <ruifeng.wang@arm.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
2021-07-09 22:25:24 +02:00
..
arm32_armv8_linux_gcc config/arm: add aarch32 cross-compilation 2021-07-09 20:03:37 +02:00
arm64_armada_linux_gcc config/arm: add platform config option 2021-04-15 22:34:37 +02:00
arm64_armv8_linux_clang_ubuntu1804 config/arm: add platform config option 2021-04-15 22:34:37 +02:00
arm64_armv8_linux_gcc config/arm: add platform config option 2021-04-15 22:34:37 +02:00
arm64_bluefield_linux_gcc config/arm: add platform config option 2021-04-15 22:34:37 +02:00
arm64_centriq2400_linux_gcc config/arm: add Qualcomm Centriq 2400 2021-05-19 12:08:42 +02:00
arm64_cn10k_linux_gcc config/arm: add Marvell CN10K 2021-04-21 00:26:20 +02:00
arm64_dpaa_linux_gcc config/arm: add platform config option 2021-04-15 22:34:37 +02:00
arm64_emag_linux_gcc config/arm: add platform config option 2021-04-15 22:34:37 +02:00
arm64_graviton2_linux_gcc config/arm: add platform config option 2021-04-15 22:34:37 +02:00
arm64_kunpeng920_linux_gcc config/arm: add Hisilicon kunpeng 2021-04-19 10:09:03 +02:00
arm64_kunpeng930_linux_gcc config/arm: add Hisilicon kunpeng 2021-04-19 10:09:03 +02:00
arm64_n1sdp_linux_gcc config/arm: add platform config option 2021-04-15 22:34:37 +02:00
arm64_n2_linux_gcc config/arm: add platform config option 2021-04-15 22:34:37 +02:00
arm64_octeontx2_linux_gcc crypto/cnxk: add PCI ID for cn9k 2021-07-09 13:18:56 +02:00
arm64_stingray_linux_gcc config/arm: add platform config option 2021-04-15 22:34:37 +02:00
arm64_thunderx2_linux_gcc config/arm: add platform config option 2021-04-15 22:34:37 +02:00
arm64_thunderxt88_linux_gcc config/arm: add platform config option 2021-04-15 22:34:37 +02:00
armv8_machine.py support python 3 only 2020-10-02 13:51:00 +02:00
meson.build config/arm: fix SVE build with GCC 8.3 2021-07-09 22:25:24 +02:00