From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9FEE0A0547; Wed, 19 May 2021 14:37:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1DC4D40041; Wed, 19 May 2021 14:37:49 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id CF15B4003F for ; Wed, 19 May 2021 14:37:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621427867; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PmosuvLh478apax0PxqIGyywCqduyro3AZ3oIID8k8E=; b=U+HgYHbSNjhlNMi7IHr896ZGDS1SIipERJ+nNBvJUJqcBTARsn2uiB+YhA8lGoL56yROQ/ FdFRhkm55Z6tY3Ty527GHglnnuYzZX8BwvC/ir7ImgL4J+rhvzW0JwERpkh0Nkw5j3Uewd uncjRoXT7CAbgF0vGXUEkKcQi2LGcwU= Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-64-cwG8ZIVdOkivFmJcMUwrKA-1; Wed, 19 May 2021 08:37:43 -0400 X-MC-Unique: cwG8ZIVdOkivFmJcMUwrKA-1 Received: by mail-vk1-f198.google.com with SMTP id x19-20020a0561221193b02901ead4626284so1588816vkn.13 for ; Wed, 19 May 2021 05:37:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PmosuvLh478apax0PxqIGyywCqduyro3AZ3oIID8k8E=; b=PgFl7MlFhQY1q7zcGkkJGYeQs2Eif47zaLJDtZV41HZRnmaDsEnBscylN33q8Ct9oi Q95sc30v3MMHBzl8vC96/1ZdoGBGSf9EK4y+m+VhUlQsBICWIL9hz9BVcRfQR5o8UvJh aQbch0MwYqOk5BTvDsTuLJVqNIqPl4a2UlKh5YIcTSIcbFsZCukDvC3ieDQUFjcoLsS6 DEAF6amSYWUU1LRdhi0hrs6gWFFkvEsUy5FE8PopbgeCZ9A/lou0UtwNxFb7ZNQUDbWg BXdhBOCLq3Y615hFcCiMyJoo+IF/iZOs27zqPXV73ZWHC9igp+qhANAxztS3NzspYJ/8 GeRg== X-Gm-Message-State: AOAM531veaCgJ+px9nqa3yd2NTJns7jwJoMy9XcZ1DrCpDJLa4V8aYoQ XPg8FL7GmiA4yKm79tGKHP2ftwkLgEf7ZsHsTTWFE4OkqeiyPFtwUh5usXTGOWHUh1/APPMn4Mq hSriNctjSuTQYOQNzEc8= X-Received: by 2002:a9f:368f:: with SMTP id p15mr15032189uap.41.1621427863324; Wed, 19 May 2021 05:37:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQVdoSGxOnnrYpyyEqfJJme0HCQrCqbI2XgEmUKGzRg+vcpBUiZwAv48hlCkbJC1fh4t8bR3T6/ypT6+KxjLQ= X-Received: by 2002:a9f:368f:: with SMTP id p15mr15032158uap.41.1621427863155; Wed, 19 May 2021 05:37:43 -0700 (PDT) MIME-Version: 1.0 References: <1620808126-18876-1-git-send-email-fengchengwen@huawei.com> <1620986039-29475-1-git-send-email-fengchengwen@huawei.com> <1620986039-29475-3-git-send-email-fengchengwen@huawei.com> <394de3ea-f0ba-a5a3-e751-be04f479281d@intel.com> <6a61d582-ca9b-42bf-9a5a-b0f106919f25@huawei.com> In-Reply-To: <6a61d582-ca9b-42bf-9a5a-b0f106919f25@huawei.com> From: David Marchand Date: Wed, 19 May 2021 14:37:31 +0200 Message-ID: To: fengchengwen Cc: Ferruh Yigit , Honnappa Nagarahalli , "thomas@monjalon.net" , "dev@dpdk.org" , "jerinj@marvell.com" , Ruifeng Wang , "viktorin@rehivetech.com" , "bruce.richardson@intel.com" , "jerinjacobk@gmail.com" , "juraj.linkes@pantheon.tech" , nd Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v5 2/2] net/hns3: refactor SVE code compile method X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, May 19, 2021 at 2:17 PM fengchengwen wrote: > We also found compile error with gcc8.3 with arm64_kunpeng930_linux_gcc (-march=-march=armv8.2-a+crypto+sve): > In file included from ../dpdk-next-net/lib/eal/common/eal_common_options.c:38: > ../dpdk-next-net/lib/eal/arm/include/rte_vect.h:13:10: fatal error: arm_sve.h: No such file or directory > #include > ^~~~~~~~~~~ > compilation terminated. > [126/2250] Compiling C object lib/librte_net.a.p/net_rte_net_crc.c.o > > the corresponding code: > #ifdef __ARM_FEATURE_SVE > #include > #endif > > this is because gcc8.3 defined __ARM_FEATURE_SVE but it can't compile ACLE SVE code. Afaiu, gcc 8.3 does not define __ARM_FEATURE_SVE: $ aarch64-linux-gnu-gcc --version aarch64-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 8.3.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ aarch64-linux-gnu-gcc - -pipe -E -P -D_FILE_OFFSET_BITS=64 -P -O0 -march=armv8-a+crc < #ifndef __ARM_FEATURE_SVE > # define __ARM_FEATURE_SVE > #endif > "MESON_GET_DEFINE_DELIMITER" > __ARM_FEATURE_SVE > EOF "MESON_GET_DEFINE_DELIMITER" -- David Marchand