From mboxrd@z Thu Jan 1 00:00:00 1970 From: dwilder Subject: ppc64: fix compilation of when AltiVec is enabled Date: Wed, 05 Sep 2018 14:05:07 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 8bit To: dev@dpdk.org Return-path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by dpdk.org (Postfix) with ESMTP id 7604CF11 for ; Wed, 5 Sep 2018 23:05:12 +0200 (CEST) Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w85L3tKf095962 for ; Wed, 5 Sep 2018 17:05:10 -0400 Received: from e34.co.us.ibm.com (e34.co.us.ibm.com [32.97.110.152]) by mx0b-001b2d01.pphosted.com with ESMTP id 2mamrun8ns-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 05 Sep 2018 17:05:10 -0400 Received: from localhost by e34.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 5 Sep 2018 15:05:09 -0600 Received: from b03ledav002.gho.boulder.ibm.com (b03ledav002.gho.boulder.ibm.com [9.17.130.233]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w85L56Yj19398700 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 5 Sep 2018 14:05:06 -0700 Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 326DF136051 for ; Wed, 5 Sep 2018 15:05:06 -0600 (MDT) Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0D57F13604F for ; Wed, 5 Sep 2018 15:05:05 -0600 (MDT) Received: from ltc.linux.ibm.com (unknown [9.16.170.189]) by b03ledav002.gho.boulder.ibm.com (Postfix) with ESMTP for ; Wed, 5 Sep 2018 15:05:05 -0600 (MDT) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Christian I am new to the list thus was unable to reply directly to your post: [PATCH v2] ppc64: fix compilation of when AltiVec is enabled I reproduce the build error on my ppc64le box and verified that your V2 patch corrects the build failure on both RHEL 7.5 and Ubuntu 18.04. Thanks for the patch, apologies for the very slow response. PS: I ran this past our Power tools team. For now the best practice is to #undef bool, vector, pixel after including altivec.h when compiled for C++ or ANSI C11. A patch to gcc for this issue has been proposed to solve this issue, but it needs to be validated on a Linux distribution. If this works out it will show up in GCC 9. Regards David