From mboxrd@z Thu Jan 1 00:00:00 1970 From: gowrishankar Subject: Re: librte_meter compilation fails on IBM Power8 Date: Sat, 16 Jul 2016 13:33:19 +0530 Message-ID: <5789EA47.2050507@linux.vnet.ibm.com> References: <20160622123103.GU14221@autoinstall.dev.6wind.com> <3EB4FA525960D640B5BDFFD6A3D8912647A0C230@IRSMSX108.ger.corp.intel.com> <000001d1cdfd$bb9eedf0$32dcc9d0$@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org To: Chao Zhu , "'Dumitrescu, Cristian'" , "=?UTF-8?Q?'N=c3=a9lio_Laranjeiro'?=" Return-path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by dpdk.org (Postfix) with ESMTP id 3C034530A for ; Sat, 16 Jul 2016 10:03:31 +0200 (CEST) Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u6G82ARK076319 for ; Sat, 16 Jul 2016 04:03:30 -0400 Received: from e28smtp05.in.ibm.com (e28smtp05.in.ibm.com [125.16.236.5]) by mx0b-001b2d01.pphosted.com with ESMTP id 247h2g80x6-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Sat, 16 Jul 2016 04:03:30 -0400 Received: from localhost by e28smtp05.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 16 Jul 2016 13:33:27 +0530 Received: from d28relay10.in.ibm.com (d28relay10.in.ibm.com [9.184.220.161]) by d28dlp02.in.ibm.com (Postfix) with ESMTP id 9C895394004E for ; Sat, 16 Jul 2016 13:33:23 +0530 (IST) Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay10.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u6G83NeB38404212 for ; Sat, 16 Jul 2016 13:33:23 +0530 Received: from d28av02.in.ibm.com (localhost [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u6G83Mld031756 for ; Sat, 16 Jul 2016 13:33:23 +0530 In-Reply-To: <000001d1cdfd$bb9eedf0$32dcc9d0$@linux.vnet.ibm.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" I remember I came across this problem some time back (not sure on which=20 tip of master), but certainly it is no more appearing now (atleast today tip=20 65965546 ..) Just an update. Thanks, Gowrishankar On Friday 24 June 2016 03:19 PM, Chao Zhu wrote: > 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] > Sent: 2016=C4=EA6=D4=C224=C8=D5 1:26 > To: N=A8=A6lio Laranjeiro ; Chao Zhu vnet.ibm.com> > 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 >> >> Cc: dev@dpdk.org >> Subject: librte_meter compilation fails on IBM Power8 >> >> Hi Cristian, Chao, >> >> I have encountered a compilation failure on IBM Power8 when compiling >> master branch with EXTRA_CFLAGS=3D'-O0 -g': >> >> /root/nl/dpdk.org/build/lib/librte_meter.a(rte_meter.o): In functio= n >> `rte_meter_get_tb_params': >> /root/nl/dpdk.org/lib/librte_meter/rte_meter.c:57: undefined >> reference to `ceil' >> >> Seems related to commit 43f4364d. >> >> I don't have the time to search more deeply, I hope it can help. >> >> Regards, >> >> -- >> 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 > > >