fatihky2 / netmap

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

build on linux 3.16 error #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In file included from /home/sjp/env/c/push/netmap/LINUX/virtio_net.c:148:
/home/sjp/env/c/push/netmap/LINUX/virtio_netmap.h:180: error:
In function ‘virtio_netmap_free_rx_unused_bufs' ‘struct receive_queue' has 
no members
'num'

Original issue reported on code.google.com by Shuang.J...@gmail.com on 16 Sep 2014 at 3:07

GoogleCodeExporter commented 9 years ago
I guess you are using a patched 3.16 kernel, since I don't observe this error 
here. If you are not interested in the virtio_net driver, please remove the 
related patches:

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

then run

make clean
make # with any additional parameter

Original comment by giuseppe.lettieri73 on 16 Sep 2014 at 10:47

GoogleCodeExporter commented 9 years ago
On Linux 3.10.33 I have a slightly different failure, probably because of the 
following:

** patch with diff--virtio_net.c--30800--30b00
1 out of 7 hunks FAILED -- saving rejects to file virtio_net.c.rej

Reject and .c file attached.

Original comment by fklas...@gmail.com on 18 Sep 2014 at 8:09

Attachments:

GoogleCodeExporter commented 9 years ago
If I remove virtio_net patches, the build continues to e1000 which also fails 
...

fklassen@jltm9-ubuntu:~/git/netmap/LINUX$ rm final-patches/diff--virtio_net.c--*
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 ---
  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 :
** 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
Building the following drivers: e1000 e1000e forcedeth.c igb ixgbe
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/" 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
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 comment by fklas...@gmail.com on 18 Sep 2014 at 9:05

GoogleCodeExporter commented 9 years ago
Please ignore my comments. I found that I had already patched my files and that 
caused the conflict. I started with a brand-new kernel image and was able to 
build.

Original comment by fklas...@gmail.com on 25 Sep 2014 at 8:43

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

Original comment by giuseppe.lettieri73 on 25 Sep 2014 at 9:11