[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

difficulties compiling tg3 kernel module



Hi,

I am trying to compile a network kernel module (tg3 for broadcom BCM
5704s adapter) as the one provided with the kernel does not work
properly (Bug#412122)

My distribution is sarge (3.1) with kernel 2.6.8-12-amd64-k8-smp

I have downloaded the source of tg3 module from broadcom but when I
compile the module here is what I get :

samsara:/src# make
make -C /lib/modules/2.6.8-12-amd64-k8-smp/build SUBDIRS=/src modules
make[1]: Entering directory `/usr/src/kernel-headers-2.6.8-12-amd64-k8-smp'
  CC [M]  /src/tg3.o
cc1: error: code model `kernel' not supported in the 32 bit mode
make[2]: *** [/src/tg3.o] Error 1
make[1]: *** [_module_/src] Error 2
make[1]: Leaving directory `/usr/src/kernel-headers-2.6.8-12-amd64-k8-smp'
make: *** [default] Error 2

Here are the make variables :

ARCH=x86_64 (x86_64)
BCM_DRV=tg3.ko (tg3.ko)
BCM_KVER=2.6 (2.6)
CFLAGS=-DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes
-I/lib/modules/2.6.8-12-amd64-k8-smp/build/include -mno-red-zone
-mcmodel=kernel -pipe -finline-limit=2000 (-DMODULE -D__KERNEL__ -Wall
-Wstrict-prototypes -I$(LINUX)/include -mno-red-zone -mcmodel=kernel
-pipe -finline-limit=2000)
KVER=2.6.8-12-amd64-k8-smp ($(shell uname -r))
LINUX=/lib/modules/2.6.8-12-amd64-k8-smp/build (/lib/modules/$(KVER)/build)
LINUXSRC=/lib/modules/2.6.8-12-amd64-k8-smp/source
(/lib/modules/$(KVER)/source)
MAKEFLAGS= ()
NETDUMP_CFLAG= ()
PREFIX= ()
SHELL=/bin/sh (/bin/sh)

I have tried with gcc-3.3 and gcc-3.4 with the same error.

Any help very much appreciated

Regards

Olivier

--

 Olivier RICHE, Computing officer
 University of Ulster, School of Biomedical Sciences,
 Systems Biology Research group
 Cromore Road, Coleraine BT52 1SA, Northern Ireland
 http://www.systemsbiology.ulster.ac.uk
 phone: +44-(0)28-70-323205
 fax: +44 (0)28-70-324375
 email: o.riche@ulster.ac.uk





Reply to: