From patchwork Tue Jun 27 20:54:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: David Christensen X-Patchwork-Id: 129024 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 461E442D76; Tue, 27 Jun 2023 22:54:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C175A40F18; Tue, 27 Jun 2023 22:54:50 +0200 (CEST) Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by mails.dpdk.org (Postfix) with ESMTP id 6C6C140EE1 for ; Tue, 27 Jun 2023 22:54:49 +0200 (CEST) Received: from pps.filterd (m0353722.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35RKoL6L031268 for ; Tue, 27 Jun 2023 20:54:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=pp1; bh=Gxig4G/Z9rbptR1vWXxqB/Pg9V+jOzkBfwJkjJHZnmo=; b=P6ASu5Byy2Dj2mbQo0up3ZTvxHQp8P46R/cRHPdsTCK7/lkNFvpVZBQvuR4n7lla+INj Qkkc8JPQWlfz0wvKIGQzyY+mjNFMZuw1kxRVoCBW+Sekw1M8ELFx5XASrfGDy2KTqB9W LI0COVQ39X7n4i8hW8ffGQaXsho2qaXwUnwB1+0T6/Td0sLIxbcL6IwaOXaGVX5HQp+Q iNAnwgnMI9xxodtojCPi65TtWNo8DKAGN3MI3iOYv8NC4qNFXu4Ewpy+fne5oMuZWIy5 tN9WU+Ql2nYe/e8OtsFVrhbJbkNkm2U8QRnjCBrCq4OVN9t+gWU6+R1N0YjyNfHQmcvq KQ== Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rg75j824d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 27 Jun 2023 20:54:48 +0000 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 35RKT0Dd008272 for ; Tue, 27 Jun 2023 20:54:47 GMT Received: from smtprelay01.wdc07v.mail.ibm.com ([9.208.129.119]) by ppma02dal.us.ibm.com (PPS) with ESMTPS id 3rdr464nrv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 27 Jun 2023 20:54:47 +0000 Received: from smtpav01.wdc07v.mail.ibm.com (smtpav01.wdc07v.mail.ibm.com [10.39.53.228]) by smtprelay01.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 35RKskB631654580 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 27 Jun 2023 20:54:46 GMT Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 456375805B; Tue, 27 Jun 2023 20:54:46 +0000 (GMT) Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D545B5804B; Tue, 27 Jun 2023 20:54:45 +0000 (GMT) Received: from ltc19u30.pok.stglabs.ibm.com (unknown [9.114.224.51]) by smtpav01.wdc07v.mail.ibm.com (Postfix) with ESMTP; Tue, 27 Jun 2023 20:54:45 +0000 (GMT) From: David Christensen To: dev@dpdk.org Cc: David Christensen , Thinh Tran Subject: [PATCH] config/ppc: fix gcc "internal compiler error" message for p10 Date: Tue, 27 Jun 2023 16:54:37 -0400 Message-Id: <20230627205437.2476729-1-drc@linux.vnet.ibm.com> X-Mailer: git-send-email 2.31.1 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: OzB_h3vVZAX3XJftDNILXrv4KXy_a-GB X-Proofpoint-ORIG-GUID: OzB_h3vVZAX3XJftDNILXrv4KXy_a-GB X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-27_14,2023-06-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 malwarescore=0 lowpriorityscore=0 mlxscore=0 mlxlogscore=936 phishscore=0 spamscore=0 bulkscore=0 clxscore=1011 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306270187 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 Building DPDK with gcc 11.3.x for the power10 instruction set may generate the following error: ../drivers/mempool/cnxk/cnxk_mempool_ops.c during RTL pass: final ../drivers/mempool/cnxk/cnxk_mempool_ops.c: In function ‘cnxk_mempool_alloc’: ../drivers/mempool/cnxk/cnxk_mempool_ops.c:124:1: internal compiler error: output_operand: invalid expression as operand 124 | } | ^ Please submit a full bug report, with preprocessed source if appropriate. ... ninja: build stopped: subcommand failed. The same issue is not encoutered when building with gcc 11.4 or later, where the compiler automatically adds the option "-mno-block-ops-vector-pair" when building for power10 which is intended as a code optimization and also effectively avoids the compiler bug displayed. Modify the meson.build file for ppc and manually set the flag when building for power10 with gcc less than 11.4. Bugzilla ID: 1251 Signed-off-by: David Christensen Tested-by: Thinh Tran --- config/ppc/meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/ppc/meson.build b/config/ppc/meson.build index 1cba44011f..160b203cb1 100644 --- a/config/ppc/meson.build +++ b/config/ppc/meson.build @@ -105,6 +105,14 @@ else endif endif machine_args = ['-mcpu=' + cpu_instruction_set, '-mtune=' + cpu_instruction_set] + +# gcc versions < 11.4 may fail to build for power10, see https://bugs.dpdk.org/show_bug.cgi?id=1251. +# Explicitly specify a default used in gcc 11.4 and later to workaround the issue +if (cpu_instruction_set == 'power10' and cc.get_id() == 'gcc' and + cc.version().version_compare('<=11.4')) + machine_args += '-mno-block-ops-vector-pair' +endif + dpdk_conf.set('RTE_MACHINE', cpu_instruction_set)