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 D7AB44281B; Thu, 23 Mar 2023 04:54:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 81B4E4021E; Thu, 23 Mar 2023 04:54:12 +0100 (CET) Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) by mails.dpdk.org (Postfix) with ESMTP id AA76040156 for ; Thu, 23 Mar 2023 04:54:10 +0100 (CET) X-QQ-mid: bizesmtp64t1679543631teijoczc Received: from DESKTOPGF9TM7H ( [125.42.32.4]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 23 Mar 2023 11:53:50 +0800 (CST) X-QQ-SSF: 00000000000000C0I000000A0000000 X-QQ-FEAT: 6TsEncM2xqhbKF5fCSMihJw0RK1IIBgyG+AEbNiQfWJePofFICkPGuC2tGWaB n60jbORnk+wtGy+BewgKPO/Tr4bnIfi/QH+x4w+BtOwwIjWRTl7YldguJ7BDcf29VtiJ1rr cvMKdE4uK7tg5hErCc3vTWPtezq15Jc8kJt65kcavuFJr1252YMsal3DScW8TzFFz76VThf 94DlU4K3bR8e2QfErFTrOEHIanEDAw9HRGUcr7Zii10hHFwFydBu0FXRSn6vPxqGnjMFFSS x4qNzzeIU6fgLV+vzrYPUjfbODD1HaQI+L/+zqNSmunh6cV5SEuag2WGD8eF52AZFESduwy 21wgdfSPdJ9A4fKefL80rP5w00cSw+oiHB817W/ X-QQ-GoodBg: 0 From: To: "'Bruce Richardson'" Cc: References: <80472A8920AEBCC5+003001d95bc4$9afdeb30$d0f9c190$@netitest.com> In-Reply-To: Subject: =?UTF-8?Q?=E5=9B=9E=E5=A4=8D:_build_dpdk_error_by_gcc_8.4.?= =?UTF-8?Q?0?= Date: Thu, 23 Mar 2023 11:53:52 +0800 Message-ID: <4A657C3D94F1BCB6+003701d95d3b$15d67490$41835db0$@netitest.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQGjaMEUWx4vBnqnJjNKtR1oHWL5uQFqXHyFr2hCKTA= Content-Language: zh-cn X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:netitest.com:qybglogicsvr:qybglogicsvr5 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 Hi Bruce, The issue has been fixed after I upgrade binutis to 2.38, thanks a lot. Regards, Haifeng -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- =E5=8F=91=E4=BB=B6=E4=BA=BA: Bruce Richardson = =20 =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2023=E5=B9=B43=E6=9C=8821=E6=97=A5 = 19:54 =E6=94=B6=E4=BB=B6=E4=BA=BA: hfli@netitest.com =E6=8A=84=E9=80=81: dev@dpdk.org =E4=B8=BB=E9=A2=98: Re: build dpdk error by gcc 8.4.0 On Tue, Mar 21, 2023 at 03:13:14PM +0800, hfli@netitest.com wrote: > Hi Dev, >=20 > When I build dpdk on CentOS7.9 and GCC 8.4.0, it throw = =E2=80=9Coperand type=20 > mismatch for `vpclmulqdq'=E2=80=9D, how can I fix this? >=20 > FAILED: lib/net/libnet_crc_avx512_lib.a.p/net_crc_avx512.c.o > ccache cc -Ilib/net/libnet_crc_avx512_lib.a.p -Ilib/net -I../lib/net = -I. > -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include=20 > -Ilib/eal/linux/include -I../lib/eal/linux/include=20 > -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common = -I../lib/eal/common -Ilib/eal -I.. > /lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics=20 > -Ilib/telemetry -I../lib/telemetry -fdiagnostics-color=3Dalways -pipe > -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Wextra -O3 -include=20 > rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral=20 > -Wformat-security -Wmissing-declarations -Wmissing-prototypes=20 > -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare = > -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned=20 > -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=3Dnative=20 > -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation=20 > -DCC_X86_64_SSE42_PCLMULQDQ_SUPPORT=20 > -DCC_X86_64_AVX512_VPCLMULQDQ_SUPPORT > -mavx512f -mavx512bw -mavx512dq -mavx512vl -mvpclmulqdq -mavx2 -mavx=20 > -MD -MQ lib/net/libnet_crc_avx512_lib.a.p/net_crc_avx512.c.o -MF=20 > lib/net/libnet_crc_avx512_lib.a.p/net_crc_avx512.c.o.d -o=20 > lib/net/libnet_crc_avx512_lib.a.p/net_crc_avx512.c.o -c=20 > ../lib/net/net_crc_avx512.c {standard input}: Assembler messages: > {standard input}:66: =E9=94=99=E8=AF=AF=EF=BC=9Aoperand type mismatch = for `vpclmulqdq' >=20 The assembler generally comes from the binutils package rather than with = gcc, so it could be a mismatch between new compiler and older assembler. You could try getting a newer copy of binutils and see if that fixes it. Alternatively, you can just try building with a target instruction set = which does not include vpcmulqdq (unless you need the code that uses = that instruction). Try configuring a build with = "-Dcpu_instruction_set=3Dskylake-avx512", and see if that works. = According to the man page for gcc, that should give you AVX512 support, = but not the problematic instruction. /Bruce