From e8f84531205f2229771fa6a48fb5301bd4cf1eda Mon Sep 17 00:00:00 2001 From: Sunil Shahu Date: Tue, 22 Nov 2022 14:42:17 +0000 Subject: [PATCH] configure: add gcc version check for ARM octeontx2 platform When doing debug build on ARM octeontx2 platform, if gcc version is lower than 8.4.0, we may met following errors: /tmp/cc0XoOUM.s: Assembler messages: /tmp/cc0XoOUM.s:56: Error: selected processor does not support `casp x0,x1,x2,x3,[x4]' /tmp/cc0XoOUM.s:88: Error: selected processor does not support `caspa x0,x1,x2,x3,[x4]' /tmp/cc0XoOUM.s:120: Error: selected processor does not support `caspl x0,x1,x2,x3,[x4]' /tmp/cc0XoOUM.s:152: Error: selected processor does not support `caspal x0,x1,x2,x3,[x4]' This change is based on existing solution available for ARM Neoverse-N1 platform Reference commit id - fcc3894 Signed-off-by: Sunil Shahu Change-Id: I01fab06fc40a82416e6a650c64cc25a1cd2a5dc0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15592 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Tomasz Zawadzki --- configure | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure b/configure index bfa92c03a..082b2fc10 100755 --- a/configure +++ b/configure @@ -1178,6 +1178,10 @@ if [[ "${CONFIG[DEBUG]}" = "y" && $arch = aarch64* && "$CC_TYPE" = "gcc" ]]; the echo "WARNING: For ARM Neoverse-N1 platform, debug build needs GCC version newer than 8.4." echo " Will work around this by using armv8.2-a+crypto as target architecture for now." CONFIG[ARCH]=armv8.2-a+crypto + elif [[ $PART_NUM = 0x0b2 ]]; then + echo "WARNING: For ARM octeontx2 platform, debug build needs GCC version newer than 8.4." + echo " Will work around this by using armv8.2-a+crypto as target architecture for now." + CONFIG[ARCH]=armv8.2-a+crypto fi fi fi