[ovs-dev] What is the minimum Linux kernel version ovs 2.6.1 build requires?
Yang, Yi Y
yi.y.yang at intel.com
Wed Nov 30 12:58:41 UTC 2016
Hi, folks
I tried to build ovs 2.6.1 in Ubuntu trusty 64 with the below configuration options, but it failed, it is ok when I use the same way to build in Ubuntu 16.04 which has Linux kernel 4.4. What is the minimum Linux kernel version ovs 2.6.1 build requires?
./configure --prefix=/ --with-linux=/lib/modules/`uname -r`/build
Here is error log
/home/vagrant/ovs-2.6.1-build/ovs-2.6.1/datapath/linux/gso.c: In function 'tnl_skb_gso_segment.isra.11.constprop.14':
include/linux/compiler.h:325:20: error: call to '__compiletime_assert_174' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ovs_gso_cb) > FIELD_SIZEOF(struct sk_buff, cb)
prefix ## suffix(); \
^
include/linux/compiler.h:330:2: note: in expansion of macro '__compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler.h:342:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/bug.h:50:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/bug.h:74:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
/home/vagrant/ovs-2.6.1-build/ovs-2.6.1/datapath/linux/gso.c:174:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(sizeof(struct ovs_gso_cb) > FIELD_SIZEOF(struct sk_buff, cb));
^
More information about the dev
mailing list