From: "Chao Zhu" <chaozhu@linux.vnet.ibm.com>
To: "'Dumitrescu, Cristian'" <cristian.dumitrescu@intel.com>,
"'Nélio Laranjeiro'" <nelio.laranjeiro@6wind.com>
Cc: <dev@dpdk.org>
Subject: Re: [dpdk-dev] librte_meter compilation fails on IBM Power8
Date: Fri, 24 Jun 2016 17:49:18 +0800 [thread overview]
Message-ID: <000001d1cdfd$bb9eedf0$32dcc9d0$@linux.vnet.ibm.com> (raw)
In-Reply-To: <3EB4FA525960D640B5BDFFD6A3D8912647A0C230@IRSMSX108.ger.corp.intel.com>
I can repeat this problem by "export EXTRA_CFLAGS="-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年6月24日 1:26
To: Nélio Laranjeiro <nelio.laranjeiro@6wind.com>; Chao Zhu <chaozhu@linux.
vnet.ibm.com>
Cc: dev@dpdk.org
Subject: RE: librte_meter compilation fails on IBM Power8
> -----Original Message-----
> From: Nélio Laranjeiro [mailto:nelio.laranjeiro@6wind.com]
> Sent: Wednesday, June 22, 2016 1:31 PM
> To: Dumitrescu, Cristian <cristian.dumitrescu@intel.com>; Chao Zhu
> <chaozhu@linux.vnet.ibm.com>
> 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='-O0 -g':
>
> /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
> 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élio 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 += -lm, therefore I do not see any issue in the library code.
Thanks,
Cristian
next prev parent reply other threads:[~2016-06-24 9:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-22 12:31 Nélio Laranjeiro
2016-06-23 6:23 ` Chao Zhu
2016-06-23 17:25 ` Dumitrescu, Cristian
2016-06-24 9:49 ` Chao Zhu [this message]
2016-07-16 8:03 ` gowrishankar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000001d1cdfd$bb9eedf0$32dcc9d0$@linux.vnet.ibm.com' \
--to=chaozhu@linux.vnet.ibm.com \
--cc=cristian.dumitrescu@intel.com \
--cc=dev@dpdk.org \
--cc=nelio.laranjeiro@6wind.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).