Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build userspace cni failed #37

Open
ljhuangRax opened this issue Mar 9, 2020 · 1 comment
Open

build userspace cni failed #37

ljhuangRax opened this issue Mar 9, 2020 · 1 comment

Comments

@ljhuangRax
Copy link

hello,
First, followed https://github.com/intel/userspace-cni-network-plugin#building-vpp-cni-library-with-ovs , I build vpp cni library with ovs successfully

./usr/include/vpp-api/client/vppapiclient.h
21024 blocks
./usr/lib64/libvppapiclient.so.0.0.0
537169 blocks
./usr/share/vpp/api/interface.api.json
./usr/share/vpp/api/l2.api.json
./usr/share/vpp/api/memif.api.json
./usr/share/vpp/api/vhost_user.api.json
./usr/share/vpp/api/vpe.api.json
537169 blocks
Installed /usr/include/vpp-api/client/vppapiclient.h
Installed /usr/lib64/libvppapiclient.so
Installed /usr/share/vpp/api/interface.api.json /usr/share/vpp/api/l2.api.json /usr/share/vpp/api/memif.api.json /usr/share/vpp/api/vhost_user.api.json /usr/share/vpp/api/vpe.api.json
OVS Python Script not installed. Installing now.

Second, when building userspace cni, an error occured

github.com/intel/userspace-cni-network-plugin/vendor/github.com/lunixbochs/struc
github.com/intel/userspace-cni-network-plugin/vendor/git.fd.io/govpp.git/core/bin_api/l2
github.com/intel/userspace-cni-network-plugin/cnivpp/api/bridge
# github.com/intel/userspace-cni-network-plugin/cnivpp/api/bridge
../cnivpp/api/bridge/bridge.go:121:3: unknown field 'PortType' in struct literal of type l2.SwInterfaceSetL2Bridge
../cnivpp/api/bridge/bridge.go:147:3: unknown field 'PortType' in struct literal of type l2.SwInterfaceSetL2Bridge
github.com/intel/userspace-cni-network-plugin/vendor/git.fd.io/govpp.git/adapter
github.com/intel/userspace-cni-network-plugin/vendor/git.fd.io/govpp.git/codec
github.com/intel/userspace-cni-network-plugin/vendor/git.fd.io/govpp.git/examples/binapi/memclnt
github.com/intel/userspace-cni-network-plugin/vendor/github.com/fsnotify/fsnotify
github.com/intel/userspace-cni-network-plugin/vendor/git.fd.io/govpp.git/adapter/socketclient
github.com/intel/userspace-cni-network-plugin/vendor/git.fd.io/govpp.git/core
github.com/intel/userspace-cni-network-plugin/vendor/git.fd.io/govpp.git
github.com/intel/userspace-cni-network-plugin/cnivpp/api/infra
github.com/intel/userspace-cni-network-plugin/vendor/git.fd.io/govpp.git/core/bin_api/interfaces
github.com/intel/userspace-cni-network-plugin/cnivpp/api/interface
github.com/intel/userspace-cni-network-plugin/vendor/git.fd.io/govpp.git/core/bin_api/memif
github.com/intel/userspace-cni-network-plugin/cnivpp/api/memif
make: *** [build] Error 2

kernel info:

uname -a
Linux ljhuang 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Thanks

@johnoloughlin
Copy link
Contributor

I have modified userspace cni to build in a container now. userspace cni was broken for a good while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants