Skip to contentSkip to conversation

librte_meter compilation fails on IBM Power8

DISCUSSION Nélio Laranjeiro 4 participants 5 messages Jun 22, 2016 – Jul 16, 2016

lore
Share & tools
lore
#0 lore raw

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,

Signature · 2 lines
Nélio Laranjeiro
6WIND
#1 lore raw

Nelio,

I'll check. Thanks!

-----Original Message-----
From: Nélio Laranjeiro [mailto:[email protected]]
Sent: 2016年6月22日 20:31
To: Cristian Dumitrescu <[email protected]>; Chao Zhu <[email protected]>
Cc: [email protected]
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

#2 lore raw
In reply to Nélio Laranjeiro
Quoted 22 lines

-----Original Message-----
From: Nélio Laranjeiro [mailto:[email protected]]
Sent: Wednesday, June 22, 2016 1:31 PM
To: Dumitrescu, Cristian <[email protected]>; Chao Zhu <[email protected]>
Cc: [email protected]
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.

Quoted 7 lines

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

#3 lore raw

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:[email protected]]
Sent: 2016年6月24日 1:26
To: Nélio Laranjeiro <[email protected]>; Chao Zhu <chaozhu@linux. vnet.ibm.com>
Cc: [email protected]
Subject: RE: librte_meter compilation fails on IBM Power8

Quoted 20 lines

-----Original Message-----
From: Nélio Laranjeiro [mailto:[email protected]]
Sent: Wednesday, June 22, 2016 1:31 PM
To: Dumitrescu, Cristian <[email protected]>; Chao Zhu <[email protected]>
Cc: [email protected]
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.

Quoted 7 lines

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

#4 lore raw

I remember I came across this problem some time back (not sure on which tip of master), but certainly it is no more appearing now (atleast today tip 65965546 ..) Just an update.

Thanks,
Gowrishankar

Quoted 52 lines · Chao Zhu

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:[email protected]]
Sent: 2016年6月24日 1:26
To: Nélio Laranjeiro <[email protected]>; Chao Zhu <chaozhu@linux. vnet.ibm.com>
Cc: [email protected]
Subject: RE: librte_meter compilation fails on IBM Power8

Quoted 20 lines

-----Original Message-----
From: Nélio Laranjeiro [mailto:[email protected]]
Sent: Wednesday, June 22, 2016 1:31 PM
To: Dumitrescu, Cristian <[email protected]>; Chao Zhu <[email protected]>
Cc: [email protected]
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.

Quoted 7 lines

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