[ovs-dev] Fail to compile the git master version of openvswitch on Ubuntu 20.04.

Hongyi Zhao hongyi.zhao at gmail.com
Mon Feb 22 04:00:24 UTC 2021


I try to compile the git master version of openvswitch on Ubuntu 20.04
with the following steps:

$ sudo apt-get build-dep openvswitch-switch
$ git clone https://github.com/openvswitch/ovs.git openvswitch/ovs.git
$ cd openvswitch/ovs.git/
$ ./boot.sh
$ ./configure
$ make -j1
[...]
make  all-recursive
make[1]: Entering directory
'/home/werner/Public/repo/github.com/openvswitch/ovs.git'
Making all in datapath
make[2]: Entering directory
'/home/werner/Public/repo/github.com/openvswitch/ovs.git/datapath'
make[3]: Entering directory
'/home/werner/Public/repo/github.com/openvswitch/ovs.git/datapath'
make[3]: Leaving directory
'/home/werner/Public/repo/github.com/openvswitch/ovs.git/datapath'
make[2]: Leaving directory
'/home/werner/Public/repo/github.com/openvswitch/ovs.git/datapath'
make[2]: Entering directory
'/home/werner/Public/repo/github.com/openvswitch/ovs.git'
make[3]: Entering directory
'/home/werner/Public/repo/github.com/openvswitch/ovs.git/datapath'
make[3]: 'distfiles' is up to date.
make[3]: Leaving directory
'/home/werner/Public/repo/github.com/openvswitch/ovs.git/datapath'
See above for list of violations of the rule that
every C source file must #include <config.h>.
make[2]: *** [Makefile:6475: config-h-check] Error 1
make[2]: Leaving directory
'/home/werner/Public/repo/github.com/openvswitch/ovs.git'
make[1]: *** [Makefile:5252: all-recursive] Error 1
make[1]: Leaving directory
'/home/werner/Public/repo/github.com/openvswitch/ovs.git'
make: *** [Makefile:2997: all] Error 2

Any hints for fixing this problem will be highly appreciated.

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao at gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China


More information about the dev mailing list