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 13C25427FB; Tue, 21 Mar 2023 12:54:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 924CB410EE; Tue, 21 Mar 2023 12:54:06 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 73B21410DF for ; Tue, 21 Mar 2023 12:54:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679399644; x=1710935644; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=wS95HK5EANPJx66+UWd8x+GsAOrdkVMAnRLcaNRHsNs=; b=erQ9quhKcBx0wRbFjXzScB9i5pH4VJOVeiSMN2efejSKXosPeSFV60F8 81bdzG6NM2rPNt2jf2ryDGe0FqxLkr2bJiVXgq5CvLpVQ0OgYHa2x4Y9/ 3+zZnIRrC9pK7P/+BqZS482oT2hxSw801TOgT6UDZG00HY5H2r6kktaHI 2P4K+MQI9ujdrQ2yvWsHy+UZ5rRzph193kwuaRy7JmTn75j56Qt646qM3 uJ5royJZ9SbxiajWEh5tKD1R/nmpr8gLxwBCeadBJ6bpC0W3r681+jcyN gNQKgLkxxaL5UaZbx6zfTjSasv5yJSZe3czdAatmLEnTF4nq6aP/fLoZh Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10655"; a="338952311" X-IronPort-AV: E=Sophos;i="5.98,278,1673942400"; d="scan'208";a="338952311" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2023 04:54:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10655"; a="713968359" X-IronPort-AV: E=Sophos;i="5.98,278,1673942400"; d="scan'208";a="713968359" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga001.jf.intel.com with ESMTP; 21 Mar 2023 04:54:03 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 21 Mar 2023 04:54:02 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Tue, 21 Mar 2023 04:54:02 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.40) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Tue, 21 Mar 2023 04:54:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QKq9m9/jeYHA0BuavsaQMRR2n9CrrErXiFEw+dASLTpI+RjbWSQXfhnlw73jQGRtQD9VO+oxkGBMllrgFwIfPNqghwX613Fyn8UC8czYVzD6NhhWPhnXDNuK9EvhfS8V1UW3/Ypp9eh9tQA63n3j9uASTHgR+g8tDiI3e/wVQHUqxSYCsuzumQ/c4fptOBeDKGUO6oFb+WOhpzBHsHMWkMGloiC6WEW2eRJNmpJiweOdaKI6jWK1hVVb0OdCqFmZllmOlpELCmCGcGcyrf3cvT0EjeIyevElD8T4tfoxXwr3NBPsPqLz/OQXku9iHcP/VO85CLvuttkUaIvpMqwPPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rTM3W9nNpZ/klneQlP2syO3y+3isVO3PbN3uh/AIyjQ=; b=nSdp99DjPYkLGO3U4X1EzViIIn1YmaazAuKpCoYgqKzVDM0ozmDwoQ06r5Iwm8nv6s3LORMbbYZ0O7gU5adWnhrk9MmqMToBcfYaBxD/rWBRPNBH18QsPhFUNi8s9n/yW/x2u33ytdR4shXcMKeuSRvDoAfiDblutlu0TYvwRWYnsVdq5RzD12YORAzOMXpgplgg3nzsLQAUebm9tfsichDXfGkZhzsWz+9kJGgPgl5pw5/yjPMgRrjxQUp9LsJJk0qGaX1ttbsHQkkwS+XFnADFPFyzEcd9Ctvy5cchBZoiuQlR52378HOuDmYzK3DLMKBGmczg6pTKY2SJpNAt9Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by IA1PR11MB6148.namprd11.prod.outlook.com (2603:10b6:208:3ec::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Tue, 21 Mar 2023 11:54:00 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::18d0:ac53:aa1d:d19c]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::18d0:ac53:aa1d:d19c%7]) with mapi id 15.20.6178.037; Tue, 21 Mar 2023 11:54:00 +0000 Date: Tue, 21 Mar 2023 11:53:54 +0000 From: Bruce Richardson To: CC: Subject: Re: build dpdk error by gcc 8.4.0 Message-ID: References: <80472A8920AEBCC5+003001d95bc4$9afdeb30$d0f9c190$@netitest.com> Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <80472A8920AEBCC5+003001d95bc4$9afdeb30$d0f9c190$@netitest.com> X-ClientProxiedBy: LO4P123CA0382.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18f::9) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|IA1PR11MB6148:EE_ X-MS-Office365-Filtering-Correlation-Id: 5d3acfd7-e77e-4d73-b403-08db2a02f578 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zR3q7TxRLiCbH2Ru1CM8Z3b551jEOiNOrx0b7nM7kK8YZijahdI+dohelE524ffOwufyjSEHO4eSMjZwIVXdtKDWvTRUcsVn9Aw+LLJRkeF4rsXJOHTZTKhw/7n4sVuPmytWapCN3sW5Lx+kTOvephAYAHQ3Ki92RDkOCcPJRn1zTFTcNr2VzPesznehXu/rhrphm/w5HjDbtHA5H9JNvDCasZISgqdi4sg6ppbR8atdKlCrIUiJN0i4kqyakC3DDNWzWJmM3qUgg4mUolumCgfvkiKaG5FW75J9+VgvdI2V8o4B3U5+VhW3chMrqA6+ZX+yuGznzMnA/v5rCYl+QJqocK/EeO2gmMkP10GZX6Buu3uuLIhW/ipa2/Tk9cwO7yfPPW3hzvN12svD8w7lhFsYGvYK5r1GcCiJX1o7+qQFKSnbNt1AgUJmOBONn9g9YuL+loAngVzb8fKLdYy/fGDehdT+DYWiIWiGD2x5PS/KOdlIXIVMQmmjEtU6ity6CM22QRLuVCaobpgH3rZkcWvDitt/+jkOU+ZYOPxqg02of02SuC0n63Cq3U0hoPvf04ofOa3/yVMHYa7CE+sPpO/1yqJhxy/6OilbWSi36ethrNXITSY44Q5AivXFx0PZCFBGKVgoDORiUIjhe45zVydO48fsdkOT6C/4fpELPVXFAR/kcfjQ1d2fINX/yy1Z X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(376002)(39860400002)(366004)(396003)(136003)(346002)(451199018)(41300700001)(38100700002)(6916009)(8676002)(4326008)(66556008)(66946007)(66476007)(82960400001)(2906002)(44832011)(8936002)(26005)(6512007)(5660300002)(6506007)(6486002)(6666004)(186003)(86362001)(83380400001)(478600001)(316002)(67856001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?di9yYjByd3E4UlJROEwzdVpZS2lISlpSZHJzaVlCMzNlMGJESVYyZjd2NDhx?= =?utf-8?B?VmsrYXJ3cmM5R25kMXYrOGQrR0hEKzFFMzNXYTd5ektrL29oYm11U2QrWXpY?= =?utf-8?B?SmJZVy9UcWgwNWhrVVIzQi9iTWhSb05YZkxHSFcwRE54Mko5bGRTSWdUWEtx?= =?utf-8?B?bnVma1ZaQkkzY2Mya0F3WHNESE40ZnZIRzZZUXNUVkl6NjE1VlRGTG1JekZ1?= =?utf-8?B?SkNEWXM0SUZNZDlPRWVQYUtqdnpUL1A1b08vYktLZ091WFVWa1p3MzE1eW9Q?= =?utf-8?B?OG5zdk5vOGhSQ2tmR2lnK2VsWUQyczY4a09qenVOT1FrRGVlMk9tbHFrelhS?= =?utf-8?B?bUFVT05CeTFjTkdpZXVrZHBib0RyVVRBQVUzQjdIV0lZY3E5bDc1NExxSTdP?= =?utf-8?B?TTdEUTlqbVFLMnFTcEtyaGxFRm1tOWQzaDEySlhETFRpWjcwSmJjdFg3RU9B?= =?utf-8?B?T3JhZmhKUmZ6MVdoT2JVeVg2MitrOWZLckRWL0dTVGR4MFQ0RnN1cnU0Um9L?= =?utf-8?B?UzRSRlMxODgraTd2ZkZR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RJNHNjMGxUNVpSdk52Sk9pUzgyQVVxRDUwVWVXeVdjVkFvTzZWUE5O?= =?utf-8?B?K3VTam44c1gvaGxqSUZiTWd2R013Vld4NVV6c0Y4Tk5JY0hFTy9aRm5IWjVM?= =?utf-8?B?SVp1enVUNGE1UzdibHd3MkQ2OGs4UGkvc3JQTXBSWkw2OEt2dHQwSlk3MUtW?= =?utf-8?B?N1V6ZVhTVUlkS0hyV1o0bkoxWld6NXJvbm1aUkt0Z0Q3Nld4aXVkdnQ3cEQz?= =?utf-8?B?eVFOZWhabGxiSUJ4ckpIYkUxK0JYZ1UwTCt0YzZxeDRnSktPT2R1VnFGYmZQ?= =?utf-8?B?bkdlZ1hIMGFCamgyWUdOdFBzQjRkV2IwdTVEL1crT05XSHFWWnZnVW9Oam52?= =?utf-8?B?cDFwem9mTlhiQTdTajVNRXhDRkJHOEIwVEYwVG5MNncrK1BUWmhZSlhRWktI?= =?utf-8?B?MXZndEVwRDBkVGNib3RtWG5RYllsTndmVXp6aUFrc1didVFQVzdWN0EyNzlV?= =?utf-8?B?WFdKaW9ZSElZMDZucGpCYjYvRkNKNHkyL1VwWFVxRGpoM3VydWhvcW96OEth?= =?utf-8?B?dUJBOTN1SWVCbnRDWS9mUytTa1IwV3NmdTVQV2o3OHk5dmIydFlVWnVhRXVo?= =?utf-8?B?ZHRJNEtvL1MxNUd5b0Q5eEFDYmFYNmxyRUdPK1NVUVpJdFpwVm90MFhjQ0lK?= =?utf-8?B?eU9WZEcralU5WVdEMm11UkZoZDlZNUREaTZlT01Ib3hDSzN1dUhGZGt6ZzZu?= =?utf-8?Q?CQHsFTNbwBavado34iPmxhk=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 5d3acfd7-e77e-4d73-b403-08db2a02f578 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2023 11:54:00.2030 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: TPjAzLOYHxqu6e8scMjc8q0XipiAO+qzKPxYk4I5AQSOROoK1Sy0r2t+/O78N80RfDlnM2ReTQwx4G4nxWs5YJkQCBHGYQBsTbfkEfleFNw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB6148 X-OriginatorOrg: intel.com 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 On Tue, Mar 21, 2023 at 03:13:14PM +0800, hfli@netitest.com wrote: > Hi Dev, > > When I build dpdk on CentOS7.9 and GCC 8.4.0, it throw “operand type > mismatch for `vpclmulqdq'”, how can I fix this? > > 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 > -Ilib/eal/linux/include -I../lib/eal/linux/include -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 > -Ilib/telemetry -I../lib/telemetry -fdiagnostics-color=always -pipe > -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -O3 -include rte_config.h > -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security > -Wmissing-declarations -Wmissing-prototypes -Wnested-externs > -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes > -Wundef -Wwrite-strings -Wno-packed-not-aligned > -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native > -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation > -DCC_X86_64_SSE42_PCLMULQDQ_SUPPORT -DCC_X86_64_AVX512_VPCLMULQDQ_SUPPORT > -mavx512f -mavx512bw -mavx512dq -mavx512vl -mvpclmulqdq -mavx2 -mavx -MD -MQ > lib/net/libnet_crc_avx512_lib.a.p/net_crc_avx512.c.o -MF > lib/net/libnet_crc_avx512_lib.a.p/net_crc_avx512.c.o.d -o > lib/net/libnet_crc_avx512_lib.a.p/net_crc_avx512.c.o -c > ../lib/net/net_crc_avx512.c > {standard input}: Assembler messages: > {standard input}:66: 错误:operand type mismatch for `vpclmulqdq' > 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=skylake-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