naixia / netmap

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

Debian 7.8, e1000e plus netmap build error #49

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Get git clone version of netmap
2. cd netmap/LINUX 
3../configure --kernel-sources=/usr/src/linux-source-3.2 --drivers=e1000e
4. make 

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

sin3t@bm:/opt/acts_build/netmap/LINUX$ make
make -C /lib/modules/3.2.0-4-amd64/build M=/opt/acts_build/netmap/LINUX 
EXTRA_CFLAGS='-I/opt/acts_build/netmap/LINUX -I/opt/acts_build/netmap/LINUX 
-I/opt/acts_build/netmap/LINUX/../sys -I/opt/acts_build/netmap/LINUX/../sys/dev 
-DCONFIG_NETMAP -Wno-unused-but-set-variable -DCONFIG_NETMAP_GENERIC 
-DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE'  modules 
CONFIG_NETMAP=m
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-4-amd64'
cp -Rp /usr/src/linux-source-3.2/drivers/net/ethernet/intel/e1000e .
if [ -f patches/diff--e1000e--30100--30400 ]; then patch --posix --quiet 
--force -p1 < patches/diff--e1000e--30100--30400; fi
patch: **** malformed patch at line 48: @@ -3468,6 +3484,10 @@ void 
e1000e_down(struct e1000_adapter *adapter)

make: *** [get-e1000e] Error 2

Also after applying patches by hands,I got the next output.log

What version of the product are you using? On what operating system?
Debian: 7.8
git revision of netmap: 32e06f9d18bf82e40a7c5b6e769c0ca7607913fc
Ethernet controller: Intel Corporation 80003ES2LAN Gigabit Ethernet Controller 

Please provide any additional information below.
I was try'ng to build separately default drivers and 
http://downloadmirror.intel.com/15817/eng/e1000e-3.1.0.2.tar.gz. Both compiled 
in OK state, without netmap patches.

Original issue reported on code.google.com by sine...@gmail.com on 10 Mar 2015 at 5:20

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Problem was solved by upgrading to non out of stock kernel 3.16. 

sin3t@bm:/opt/acts_build/netmap.tests/netmap/LINUX$ ./configure 
--kernel-dir=/usr/src/linux-headers-3.16.0-0.bpo.4-amd64 
--kernel-sources=/usr/src/linux-source-3.16 --drivers=e1000e
kernel directory            /usr/src/linux-headers-3.16.0-0.bpo.4-amd64
linux version               31007  [3.16.7]
module file                 netmap.ko
subsystems                  generic monitor pipe vale
kernel sources              /usr/src/linux-source-3.16
drivers                     e1000e

Candidate patches for this kernel:

   diff--e1000--20620--99999
   diff--e1000e--30f00--99999
   diff--forcedeth.c--20626--99999
   diff--igb--30f00--99999
   diff--ixgbe--30f00--99999
   diff--r8169.c--30500--99999
   diff--virtio_net.c--30b00--99999
sin3t@bm:/opt/acts_build/netmap.tests/netmap/LINUX$ make
make -C /usr/src/linux-headers-3.16.0-0.bpo.4-amd64 
M=/opt/acts_build/netmap.tests/netmap/LINUX 
EXTRA_CFLAGS='-I/opt/acts_build/netmap.tests/netmap/LINUX 
-I/opt/acts_build/netmap.tests/netmap/LINUX 
-I/opt/acts_build/netmap.tests/netmap/LINUX/../sys 
-I/opt/acts_build/netmap.tests/netmap/LINUX/../sys/dev -DCONFIG_NETMAP 
-Wno-unused-but-set-variable -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR 
-DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE'  modules CONFIG_NETMAP=m
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-0.bpo.4-amd64'
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-0.bpo.4-amd64'
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/netmap_mem2.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/netmap_mbq.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/netmap_vale.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/netmap_offloadings.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/netmap_pipe.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/netmap_monitor.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/netmap_generic.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/netmap_common.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/netmap_linux.o
  LD [M]  /opt/acts_build/netmap.tests/netmap/LINUX/netmap.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /opt/acts_build/netmap.tests/netmap/LINUX/netmap.mod.o
  LD [M]  /opt/acts_build/netmap.tests/netmap/LINUX/netmap.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.16.0-0.bpo.4-amd64'
cp -Rp /usr/src/linux-source-3.16/drivers/net/ethernet/intel/e1000e .
if [ -f patches/diff--e1000e--30f00--99999 ]; then patch --posix --quiet 
--force -p1 < patches/diff--e1000e--30f00--99999; fi
if [ -f drv-subdir.mak ]; then mv e1000e/Makefile e1000e/orig.mak; cp 
drv-subdir.mak e1000e/Makefile; fi
touch get-e1000e
make -C /usr/src/linux-headers-3.16.0-0.bpo.4-amd64 
M=/opt/acts_build/netmap.tests/netmap/LINUX 
EXTRA_CFLAGS='-I/opt/acts_build/netmap.tests/netmap/LINUX 
-I/opt/acts_build/netmap.tests/netmap/LINUX 
-I/opt/acts_build/netmap.tests/netmap/LINUX/../sys 
-I/opt/acts_build/netmap.tests/netmap/LINUX/../sys/dev -DCONFIG_NETMAP 
-Wno-unused-but-set-variable -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR 
-DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE'  modules CONFIG_E1000E=m  
O_DRIVERS="e1000e/" \
        NETMAP_DRIVER_SUFFIX=
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-0.bpo.4-amd64'
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-0.bpo.4-amd64'
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/e1000e/82571.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/e1000e/ich8lan.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/e1000e/80003es2lan.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/e1000e/mac.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/e1000e/manage.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/e1000e/nvm.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/e1000e/phy.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/e1000e/param.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/e1000e/ethtool.o
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/e1000e/netdev.o
In file included from 
/opt/acts_build/netmap.tests/netmap/LINUX/e1000e/netdev.c:497:0:
/opt/acts_build/netmap.tests/netmap/LINUX/if_e1000e_netmap.h:51:2: warning: 
#warning this driver uses extended descriptors [-Wcpp]
  CC [M]  /opt/acts_build/netmap.tests/netmap/LINUX/e1000e/ptp.o
  LD [M]  /opt/acts_build/netmap.tests/netmap/LINUX/e1000e/e1000e.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /opt/acts_build/netmap.tests/netmap/LINUX/e1000e/e1000e.mod.o
  LD [M]  /opt/acts_build/netmap.tests/netmap/LINUX/e1000e/e1000e.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.16.0-0.bpo.4-amd64'

Also, please, remove from netmap/README file information about NODRIVERS=1 
option and add more info about ./configure. Because NODRIVERS has not an effect 
if configure was ran before.

Original comment by sine...@gmail.com on 11 Mar 2015 at 1:31