[dpdk-dev] build failed on dpdk-1.2.3r2

Bo Chen glbrt.chen at gmail.com
Tue Jun 11 06:59:45 CEST 2013


When I run the make command on dpdk-1.2.3r2, it show me the following, but
it works on dpdk-1.2.3r1:

== Build lib/librte_eal/linuxapp/igb_uio
  LD
 /opt/dpdk-1.2.3r2/build/build/lib/librte_eal/linuxapp/igb_uio/built-in.o
  CC [M]
 /opt/dpdk-1.2.3r2/build/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.o
cc1: warnings being treated as errors
/opt/dpdk-1.2.3r2/build/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c: In
function ‘igbuio_pci_probe’:
include/linux/slab.h:349: error: inlining failed in call to
‘kzalloc.clone.0’: --param max-inline-insns-single limit reached
/opt/dpdk-1.2.3r2/build/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c:267:
error: called from here
make[8]: ***
[/opt/dpdk-1.2.3r2/build/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.o]
Error 1
make[7]: ***
[_module_/opt/dpdk-1.2.3r2/build/build/lib/librte_eal/linuxapp/igb_uio]
Error 2
make[6]: *** [sub-make] Error 2
make[5]: *** [igb_uio.ko] Error 2
make[4]: *** [igb_uio] Error 2
make[3]: *** [linuxapp] Error 2
make[2]: *** [librte_eal] Error 2
make[1]: *** [lib] Error 2
make: *** [all] Error 2

And I noticed there is a warning from gcc: --param max-inline-insns-single
limit reached
So I changed the file: lib/librte_eal/linuxapp/igb_uio/Makefile from 50 to
100.
MODULE_CFLAGS += -I$(SRCDIR) --param max-inline-insns-single=100
It works.
And the question is: Is there any change on dpdk-1.2.3r2 let the parameter
max-inline-insns-single not big enough, or there is something wrong at my
env.

Thanks & BR
Bo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dpdk.org/ml/archives/dev/attachments/20130611/c4fe3280/attachment.html>


More information about the dev mailing list