From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by dpdk.org (Postfix) with ESMTP id 4FDDEC518 for ; Fri, 24 Jun 2016 11:50:05 +0200 (CEST) Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u5O9nxFX071509 for ; Fri, 24 Jun 2016 05:50:04 -0400 Received: from e28smtp05.in.ibm.com (e28smtp05.in.ibm.com [125.16.236.5]) by mx0a-001b2d01.pphosted.com with ESMTP id 23rmkj9pnr-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 24 Jun 2016 05:50:04 -0400 Received: from localhost by e28smtp05.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 24 Jun 2016 15:19:43 +0530 Received: from d28dlp03.in.ibm.com (9.184.220.128) by e28smtp05.in.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 24 Jun 2016 15:19:42 +0530 X-IBM-Helo: d28dlp03.in.ibm.com X-IBM-MailFrom: chaozhu@linux.vnet.ibm.com X-IBM-RcptTo: dev@dpdk.org Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 2F184125805B for ; Fri, 24 Jun 2016 15:22:19 +0530 (IST) Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay03.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u5O9nfeo10486080 for ; Fri, 24 Jun 2016 15:19:41 +0530 Received: from d28av01.in.ibm.com (localhost [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u5O9ne9L018290 for ; Fri, 24 Jun 2016 15:19:40 +0530 Received: from ADMINIB2M8Q79C ([9.186.50.37]) by d28av01.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id u5O9ncnl017385; Fri, 24 Jun 2016 15:19:39 +0530 From: "Chao Zhu" To: "'Dumitrescu, Cristian'" , =?gb2312?B?J06opmxpbyBMYXJhbmplaXJvJw==?= Cc: References: <20160622123103.GU14221@autoinstall.dev.6wind.com> <3EB4FA525960D640B5BDFFD6A3D8912647A0C230@IRSMSX108.ger.corp.intel.com> In-Reply-To: <3EB4FA525960D640B5BDFFD6A3D8912647A0C230@IRSMSX108.ger.corp.intel.com> Date: Fri, 24 Jun 2016 17:49:18 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQFoPhRMFMjdXoa8z0I1QfVS/W49MQFbwF/AoMCgFJA= Content-Language: zh-cn X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16062409-0016-0000-0000-000002B116C5 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16062409-0017-0000-0000-0000247E8D0B Message-Id: <000001d1cdfd$bb9eedf0$32dcc9d0$@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-06-24_05:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1606240112 Subject: Re: [dpdk-dev] librte_meter compilation fails on IBM Power8 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2016 09:50:05 -0000 I can repeat this problem by "export EXTRA_CFLAGS=3D"-O0 -g"" on Power8. = But I'm not sure why this happens. The "-O3 -g" option works properly. I'll investigate more. -----Original Message----- From: Dumitrescu, Cristian [mailto:cristian.dumitrescu@intel.com]=20 Sent: 2016=C4=EA6=D4=C224=C8=D5 1:26 To: N=A8=A6lio Laranjeiro ; Chao Zhu = Cc: dev@dpdk.org Subject: RE: librte_meter compilation fails on IBM Power8 > -----Original Message----- > From: N=A8=A6lio Laranjeiro [mailto:nelio.laranjeiro@6wind.com] > Sent: Wednesday, June 22, 2016 1:31 PM > To: Dumitrescu, Cristian ; Chao Zhu=20 > > Cc: dev@dpdk.org > Subject: librte_meter compilation fails on IBM Power8 >=20 > Hi Cristian, Chao, >=20 > I have encountered a compilation failure on IBM Power8 when compiling=20 > master branch with EXTRA_CFLAGS=3D'-O0 -g': >=20 > /root/nl/dpdk.org/build/lib/librte_meter.a(rte_meter.o): In function > `rte_meter_get_tb_params': > /root/nl/dpdk.org/lib/librte_meter/rte_meter.c:57: undefined=20 > reference to `ceil' >=20 > Seems related to commit 43f4364d. >=20 > I don't have the time to search more deeply, I hope it can help. >=20 > Regards, >=20 > -- > N=A8=A6lio Laranjeiro > 6WIND I am not sure what the problem might be for IBM Power8. ceil() is a function defined in math library, we include math.h header = file in rte_meter.c and we also link the library properly in the Makefile by using LDLIBS +=3D -lm, therefore I do not see any issue in the library = code. Thanks, Cristian