[ovs-dev] build failure with DPDK on Ubuntu 16.04 with GCC 5.4

Xu, Qian Q qian.q.xu at intel.com
Wed Oct 19 15:16:21 UTC 2016


Hi,
I met an issue when building OVS with DPDK on Ubuntu 16.04, the commit ID is as below, also I'm using DPDK R16.11 RC1 commit ID: commit fed622dfd90ffc754808ecb464d7e62e77f0da58. We can pass build on Fedora 23 but can't pass build on Ubuntu 16.04, kernel: 4.4, gcc: 5.4. Could anyone help check?

commit b2b24278772bfc89627580cc5d53a5b72339aa09
Author: Mark Kavanagh <mark.b.kavanagh at intel.com>
Date:   Thu Oct 6 11:25:33 2016 +0100

The error log can be seen as below:

In file included from /usr/include/string.h:630:0,
                 from ./lib/string.h:20,
                 from ./lib/hash.h:22,
                 from ./lib/smap.h:19,
                 from ./ovn/lib/ovn-nb-idl.h:11,
                 from ovn/utilities/ovn-nbctl.c:27:
ovn/utilities/ovn-nbctl.c: In function 'lb_by_name_or_uuid':
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I ./lib -I                                                        ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith -Wfor                                                       mat-security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align -                                                       Wmissing-prototypes -Wmissing-field-initializers -fno-strict-aliasing -mssse3 -I                                                       /home/qxu10/ovs-dpdk/dpdk/x86_64-native-linuxapp-gcc/include -D_FILE_OFFSET_BITS                                                       =64 -O3 -march=native -MT lib/dpif-netlink.lo -MD -MP -MF lib/.deps/dpif-netlink                                                       .Tpo -c lib/dpif-netlink.c -o lib/dpif-netlink.o
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^
ovn/utilities/ovn-nbctl.c:524:28: error: 'const struct nbrec_load_balancer' has                                                        no member named 'name'
             if (strcmp(iter->name, id)) {
                            ^




More information about the dev mailing list