[Pkg-dpdk-devel] Build error of OVS 2.8.1 on new DPDK 17.11
Christian Ehrhardt
christian.ehrhardt at canonical.com
Mon Nov 20 08:25:06 UTC 2017
This might be just "as it is" upstream in both projects but I wanted
to start a thread FYI so we can take a look.
Base on that we can decide to carry a bug or not in relation to our
work on dpdk 17.11.
When building OVS against 17.11 I see the following as part of the full log [1]:
I had no time to read it in detail, but didn't see an pre-existing ifx
upstream in OVS yet.
Will answer here once I have more.
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I ../include -I
./include -I ../lib -I ./lib -Wdate-time -D_FORTIFY_SOURCE=2
-Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith
-Wformat -Wformat-security -Wswitch-enum -Wunused-parameter
-Wbad-function-cast -Wcast-align -Wstrict-prototypes
-Wold-style-definition -Wmissing-prototypes
-Wmissing-field-initializers -fno-strict-aliasing -Wswitch-bool
-Wlogical-not-parentheses -Wsizeof-array-argument -Wbool-compare
-Wshift-negative-value -Wduplicated-cond -mssse3 -include
/usr/include/x86_64-linux-gnu/dpdk/rte_config.h
-I/usr/include/x86_64-linux-gnu/dpdk -I/usr/include/dpdk
-D_FILE_OFFSET_BITS=64 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -MT
lib/netdev-dpdk.lo -MD -MP -MF lib/.deps/netdev-dpdk.Tpo -c
../lib/netdev-dpdk.c -o lib/netdev-dpdk.o
../lib/netdev-dpdk.c: In function ‘netdev_dpdk_process_devargs’:
../lib/netdev-dpdk.c:1204:51: warning: passing argument 2 of
‘rte_eth_dev_get_port_by_name’ from incompatible pointer type
[-Wincompatible-pointer-types]
|| rte_eth_dev_get_port_by_name(name, &new_port_id)
^
In file included from ../lib/netdev-dpdk.c:33:0:
/usr/include/dpdk/rte_ethdev.h:4555:1: note: expected ‘uint16_t * {aka
short unsigned int *}’ but argument is of type ‘dpdk_port_t * {aka
unsigned char *}’
rte_eth_dev_get_port_by_name(const char *name, uint16_t *port_id);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/netdev-dpdk.c:1207:42: warning: passing argument 2 of
‘rte_eth_dev_attach’ from incompatible pointer type
[-Wincompatible-pointer-types]
if (!rte_eth_dev_attach(devargs, &new_port_id)) {
^
In file included from ../lib/netdev-dpdk.c:33:0:
/usr/include/dpdk/rte_ethdev.h:1921:5: note: expected ‘uint16_t * {aka
short unsigned int *}’ but argument is of type ‘dpdk_port_t * {aka
unsigned char *}’
int rte_eth_dev_attach(const char *devargs, uint16_t *port_id);
^~~~~~~~~~~~~~~~~~
../lib/netdev-dpdk.c: In function ‘netdev_dpdk_get_status’:
../lib/netdev-dpdk.c:2453:41: error: dereferencing pointer to
incomplete type ‘struct rte_pci_device’
dev_info.pci_dev->id.vendor_id);
^~
../lib/netdev-dpdk.c: In function ‘netdev_dpdk_detach’:
../lib/netdev-dpdk.c:2531:62: warning: passing argument 2 of
‘rte_eth_dev_get_port_by_name’ from incompatible pointer type
[-Wincompatible-pointer-types]
&port_id)) {
^
In file included from ../lib/netdev-dpdk.c:33:0:
/usr/include/dpdk/rte_ethdev.h:4555:1: note: expected ‘uint16_t * {aka
short unsigned int *}’ but argument is of type ‘uint8_t * {aka
unsigned char *}’
rte_eth_dev_get_port_by_name(const char *name, uint16_t *port_id);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:4636: recipe for target 'lib/netdev-dpdk.lo' failed
[1]: https://launchpadlibrarian.net/346162848/buildlog_ubuntu-bionic-amd64.openvswitch_2.8.1-0ubuntu2_BUILDING.txt.gz
--
Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd
More information about the Pkg-dpdk-devel
mailing list