mperedim / netmap

Automatically exported from code.google.com/p/netmap
0 stars 0 forks source link

Unable to build master with Linux kernel 3.10.33 (used to work) #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Linux 3.10.33
2. Clone netmap repository
3. make

What is the expected output? What do you see instead?
build succeeds

What version of the product are you using? On what operating system?
build fails

Please provide any additional information below

fklassen@jltm9-ubuntu:~/git/netmap/LINUX$ make
LIN_VER 30a21
---- Building from /lib/modules/3.10.33-ani05/build/drivers/net/ethernet
---- copying e1000 e1000e forcedeth.c igb ixgbe virtio_net.c ---
  From /lib/modules/3.10.33-ani05/build/drivers/net/ethernet/nvidia :
    -rw-r--r-- 1 fklassen fklassen 194454 2014-03-06 21:58 forcedeth.c
  From /lib/modules/3.10.33-ani05/build/drivers/net/ethernet/realtek :
  From /lib/modules/3.10.33-ani05/build/drivers/net/ethernet/intel :
    drwxr-xr-x 3 fklassen fklassen 4096 2014-08-15 16:38 e1000/
    drwxr-xr-x 4 fklassen fklassen 4096 2014-08-15 16:38 e1000e/
    drwxr-xr-x 2 fklassen fklassen 4096 2014-08-15 16:38 igb/
    drwxr-xr-x 4 fklassen fklassen 4096 2014-08-15 16:38 ixgbe/
  From /lib/modules/3.10.33-ani05/build/drivers/net/ethernet/broadcom :
    -rw-r--r-- 1 fklassen fklassen 8951 2014-03-06 21:58 cnic_if.h
  From /lib/modules/3.10.33-ani05/build/drivers/net/ethernet :
  From /lib/modules/3.10.33-ani05/build/drivers/net :
    -rw-r--r-- 1 fklassen fklassen 45068 2014-03-06 21:58 virtio_net.c
** patch with diff--e1000--20620--99999
** patch with diff--e1000e--30900--99999
** patch with diff--forcedeth.c--20626--99999
** patch with diff--igb--30800--30b00
** patch with diff--ixgbe--30a00--99999
** patch with diff--virtio_net.c--30800--30b00
1 out of 7 hunks FAILED -- saving rejects to file virtio_net.c.rej
Building the following drivers: e1000 e1000e forcedeth.c igb ixgbe virtio_net.c
make -C /lib/modules/3.10.33-ani05/build M=/home/fklassen/git/netmap/LINUX 
CONFIG_NETMAP=m CONFIG_E1000=m CONFIG_E1000E=m CONFIG_IXGBE=m CONFIG_IGB=m 
CONFIG_BNX2X=m CONFIG_MLX4=m CONFIG_VIRTIO_NET=m \
        EXTRA_CFLAGS='-I/home/fklassen/git/netmap/LINUX -I/home/fklassen/git/netmap/LINUX/../sys -I/home/fklassen/git/netmap/LINUX/../sys/dev -DCONFIG_NETMAP -Wno-unused-but-set-variable'         \
        O_DRIVERS="e1000/ e1000e/ forcedeth.o igb/ ixgbe/ virtio_net.o" modules
make[1]: Entering directory 
`/home/fklassen/git/pvc-appliance/Appliances/Common64/Kernel-3.10/linux-3.10.33'
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap.o
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap_mem2.o
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap_generic.o
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap_mbq.o
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap_vale.o
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap_offloadings.o
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap_pipe.o
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap_linux.o
  LD [M]  /home/fklassen/git/netmap/LINUX/netmap_lin.o
  CC [M]  /home/fklassen/git/netmap/LINUX/forcedeth.o
  CC [M]  /home/fklassen/git/netmap/LINUX/virtio_net.o
scripts/Makefile.build:473: /home/fklassen/git/netmap/LINUX/e1000/.e1000.o.cmd: 
No such file or directory
make[3]: *** No rule to make target 
`/home/fklassen/git/netmap/LINUX/e1000/.e1000.o.cmd'.  Stop.
make[2]: *** [/home/fklassen/git/netmap/LINUX/e1000] Error 2
make[1]: *** [_module_/home/fklassen/git/netmap/LINUX] Error 2
make[1]: Leaving directory 
`/home/fklassen/git/pvc-appliance/Appliances/Common64/Kernel-3.10/linux-3.10.33'
make: *** [build] Error 2
fklassen@jltm9-ubuntu:~/git/netmap/LINUX$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 
4.4.3-4ubuntu5.1' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared 
--enable-multiarch --enable-linker-build-id --with-system-zlib 
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix 
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls 
--enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc 
--disable-werror --with-arch-32=i486 --with-tune=generic 
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu 
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1) 
fklassen@jltm9-ubuntu:~/git/netmap/LINUX$ uname -a
Linux jltm9-ubuntu 3.10.33-ani05 #1 SMP Fri May 23 11:08:23 PDT 2014 x86_64 
GNU/Linux
fklassen@jltm9-ubuntu:~/git/netmap/LINUX$ 

NOTE: this is what I get if I try to build next branch:

fklassen@jltm9-ubuntu:~/git/netmap$ git st
# On branch master
nothing to commit (working directory clean)
fklassen@jltm9-ubuntu:~/git/netmap$ git checkout next
Switched to branch 'next'
fklassen@jltm9-ubuntu:~/git/netmap$ cd LINUX/
fklassen@jltm9-ubuntu:~/git/netmap/LINUX$ make
rm: cannot remove `/home/fklassen/git/netmap/LINUX/patches': No such file or 
directory
LIN_VER 30a21
---- Building from /lib/modules/3.10.33-ani05/build/drivers/net/ethernet
---- copying e1000 e1000e forcedeth.c igb ixgbe virtio_net.c ---
  From /lib/modules/3.10.33-ani05/build/drivers/net/ethernet/nvidia :
    -rw-r--r-- 1 fklassen fklassen 194454 2014-03-06 21:58 forcedeth.c
  From /lib/modules/3.10.33-ani05/build/drivers/net/ethernet/realtek :
  From /lib/modules/3.10.33-ani05/build/drivers/net/ethernet/intel :
    drwxr-xr-x 3 fklassen fklassen 4096 2014-08-15 16:38 e1000/
    drwxr-xr-x 4 fklassen fklassen 4096 2014-08-15 16:38 e1000e/
    drwxr-xr-x 2 fklassen fklassen 4096 2014-08-15 16:38 igb/
    drwxr-xr-x 4 fklassen fklassen 4096 2014-08-15 16:38 ixgbe/
  From /lib/modules/3.10.33-ani05/build/drivers/net/ethernet/broadcom :
    -rw-r--r-- 1 fklassen fklassen 8951 2014-03-06 21:58 cnic_if.h
  From /lib/modules/3.10.33-ani05/build/drivers/net/ethernet :
  From /lib/modules/3.10.33-ani05/build/drivers/net :
    -rw-r--r-- 1 fklassen fklassen 45068 2014-03-06 21:58 virtio_net.c
** patch with diff--e1000--20620--99999
** patch with diff--e1000e--30900--30f00
** patch with diff--forcedeth.c--20626--99999
** patch with diff--igb--30800--30b00
** patch with diff--ixgbe--30a00--30f00
** patch with diff--virtio_net.c--30800--30b00
1 out of 7 hunks FAILED -- saving rejects to file virtio_net.c.rej
Building the following drivers: e1000 e1000e forcedeth.c igb ixgbe virtio_net.c
make -C /lib/modules/3.10.33-ani05/build M=/home/fklassen/git/netmap/LINUX 
CONFIG_NETMAP=m CONFIG_E1000=m CONFIG_E1000E=m CONFIG_IXGBE=m CONFIG_IGB=m 
CONFIG_BNX2X=m CONFIG_MLX4=m CONFIG_VIRTIO_NET=m \
        EXTRA_CFLAGS='-I/home/fklassen/git/netmap/LINUX -I/home/fklassen/git/netmap/LINUX/../sys -I/home/fklassen/git/netmap/LINUX/../sys/dev -DCONFIG_NETMAP -Wno-unused-but-set-variable'         \
        O_DRIVERS="e1000/ e1000e/ forcedeth.o igb/ ixgbe/ virtio_net.o" modules
make[1]: Entering directory 
`/home/fklassen/git/pvc-appliance/Appliances/Common64/Kernel-3.10/linux-3.10.33'
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap.o
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap_mem2.o
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap_generic.o
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap_mbq.o
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap_vale.o
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap_offloadings.o
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap_pipe.o
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap_monitor.o
  CC [M]  /home/fklassen/git/netmap/LINUX/netmap_linux.o
  LD [M]  /home/fklassen/git/netmap/LINUX/netmap_lin.o
  CC [M]  /home/fklassen/git/netmap/LINUX/forcedeth.o
  CC [M]  /home/fklassen/git/netmap/LINUX/virtio_net.o
In file included from /home/fklassen/git/netmap/LINUX/virtio_net.c:135:
/home/fklassen/git/netmap/LINUX/virtio_netmap.h: In function 
‘virtio_netmap_reg’:
/home/fklassen/git/netmap/LINUX/virtio_netmap.h:197: warning: unused variable 
‘hwna’
At top level:
cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
scripts/Makefile.build:473: /home/fklassen/git/netmap/LINUX/e1000/.e1000.o.cmd: 
No such file or directory
make[3]: *** No rule to make target 
`/home/fklassen/git/netmap/LINUX/e1000/.e1000.o.cmd'.  Stop.
make[2]: *** [/home/fklassen/git/netmap/LINUX/e1000] Error 2
make[1]: *** [_module_/home/fklassen/git/netmap/LINUX] Error 2
make[1]: Leaving directory 
`/home/fklassen/git/pvc-appliance/Appliances/Common64/Kernel-3.10/linux-3.10.33'
make: *** [build] Error 2

Original issue reported on code.google.com by fklas...@gmail.com on 17 Aug 2014 at 3:43

GoogleCodeExporter commented 9 years ago
does the build succeeds if you remove the virtio_net patches?

please try the following:

rm final-patches/diff--virtio_net.c--*
make clean
make

Original comment by giuseppe.lettieri73 on 17 Aug 2014 at 4:03

GoogleCodeExporter commented 9 years ago
Actually, I found the issue. My mistake. I was pointing to a modified kernel 
which broke the build. When I pointed to a clean kernel and everything worked.

Original comment by fklas...@gmail.com on 17 Aug 2014 at 4:39

GoogleCodeExporter commented 9 years ago
thanks for the update, I am closing the issue.

Original comment by giuseppe.lettieri73 on 17 Aug 2014 at 6:15