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

Compile error with linux kernel 4.1.4 #84

Open
toabctl opened this issue Aug 18, 2015 · 0 comments
Open

Compile error with linux kernel 4.1.4 #84

toabctl opened this issue Aug 18, 2015 · 0 comments

Comments

@toabctl
Copy link

toabctl commented Aug 18, 2015

I tried to build vrouter on openSUSE Tumbleweed and got the following error:

tom@basilikum:~/tmp/contrail-vrouter$ repo forall -vc "git reset --hard"
HEAD is now at a34f049 Add valgrind option to scons --optimization=<options>
HEAD is now at 90e2637 A few minor changes need to generate 'clean' coverage report for
HEAD is now at aaa0a45 DPDK: change packet scheduling for non-RSS interfaces (RX side)
tom@basilikum:~/tmp/contrail-vrouter$ scons vrouter
scons: Reading SConscript files ...

scons: warning: Ignoring missing SConscript 'controller/SConscript'
File "/home/tom/tmp/contrail-vrouter/SConstruct", line 16, in <module>

scons: warning: Ignoring missing SConscript 'build/noarch/nova_contrail_vif/SConscript'
File "/home/tom/tmp/contrail-vrouter/SConstruct", line 19, in <module>

scons: warning: Ignoring missing SConscript 'build/noarch/neutron_plugin/SConscript'
File "/home/tom/tmp/contrail-vrouter/SConstruct", line 26, in <module>
scons: done reading SConscript files.
scons: Building targets ...
scons: `vrouter/utils' is up to date.
scons: `vrouter/uvrouter' is up to date.
cd /home/tom/tmp/contrail-vrouter/vrouter/ && make SANDESH_HEADER_PATH=/home/tom/tmp/contrail-vrouter/build/debug/vrouter SANDESH_SRC_ROOT=../build/kbuild/ SANDESH_EXTRA_HEADER_PATH=/home/tom/tmp/contrail-vrouter/tools
make -C /lib/modules/4.1.4-1-desktop/build M=/home/tom/tmp/contrail-vrouter/vrouter modules
make[1]: Entering directory '/usr/src/linux-4.1.4-1-obj/x86_64/desktop'
  CC [M]  /home/tom/tmp/contrail-vrouter/vrouter/linux/vr_host_interface.o
/home/tom/tmp/contrail-vrouter/vrouter/linux/vr_host_interface.c: In function ‘linux_if_notifier’:
/home/tom/tmp/contrail-vrouter/vrouter/linux/vr_host_interface.c:2261:21: error: invalid operands to binary != (have ‘possible_net_t {aka struct <anonymous>}’ and ‘struct net *’)
     if (dev->nd_net != &init_net) {
                     ^
/usr/src/linux-4.1.4-1/scripts/Makefile.build:274: recipe for target '/home/tom/tmp/contrail-vrouter/vrouter/linux/vr_host_interface.o' failed
make[4]: *** [/home/tom/tmp/contrail-vrouter/vrouter/linux/vr_host_interface.o] Error 1
/usr/src/linux-4.1.4-1/Makefile:1409: recipe for target '_module_/home/tom/tmp/contrail-vrouter/vrouter' failed
make[3]: *** [_module_/home/tom/tmp/contrail-vrouter/vrouter] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make[1]: *** [__sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-4.1.4-1-obj/x86_64/desktop'
Makefile:86: recipe for target 'default' failed
make: *** [default] Error 2
scons: *** [vrouter/vrouter.ko] Error 2
scons: building terminated because of errors.
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

1 participant