PDA

View Full Version : problem compiling kernel interface FC4 / nForce4 for athlon 64


tiesel
06-27-05, 01:33 PM
Hello,
I am trying to install the board drivers for my Gigabyte K8NF-9
(nForce4 chipset) on a fresh Fedora Core 4 installation running
on AMD Athlon 64.
./NFORCE-Linux-x86_64-1.0-0301-pkg1.run works fine for
audio driver, but fails to compile nvenet.c for network driver:

nforce-installer log file '/var/log/nvidia-nforce-installer.log'
creation time: Sat Jun 25 21:18:06 2005

option status:
license pre-accepted : false
expert : false
uninstall : false
driver info : false
no precompiled interface : false
no ncurses color : false
no questions : false
silent : false
Installer install prefix : /usr
kernel source path : (not specified)
net kernel install path : (not specified)
audio kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp

Using: nvidia-installer ncurses user interface
-> Found package NVIDIA audio driver for Linux-x86_64
-> Found package NVIDIA network driver for Linux-x86_64
-> Please select packages for installation:
Selections:
NVIDIA audio driver for Linux-x86_64 (1.0-2)
NVIDIA network driver for Linux-x86_64 (1.0-11)
-> Starting install of NVIDIA audio driver for Linux-x86_64
...
-> done.
-> Sanity check passed.
-> Installation of the NVIDIA audio driver for Linux-x86_64 (version: 1.0-2) is
now complete. Please update your audio configuration as appropriate; see
the file /usr/share/doc/nforce/ReleaseNotes.html for details.

<FROM HERE ON NETWORK DRIVER INSTALL IS TRIED:>

-> Starting install of NVIDIA network driver for Linux-x86_64
-> Checking for loaded module nvnet
-> Checking for loaded module forcedeth
-> License accepted.
-> Skipping check for conflicting rpms.
-> /proc/version is Linux version 2.6.11-1.1369_FC4
(bhcompile@dolly.build.redhat.com) (gcc version 4.0.0 20050525 (Red Hat
4.0.0-9)) #1 Thu Jun 2 22:56:33 EDT 2005
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Using the kernel source path '/lib/modules/2.6.11-1.1369_FC4/source' as
specified by the '--kernel-source-path' commandline option.
-> Kernel source path: '/lib/modules/2.6.11-1.1369_FC4/source'
-> Using the kernel output path '/lib/modules/2.6.11-1.1369_FC4/build' as
specified by the '--kernel-output-path' commandline option.
-> Kernel output path: '/lib/modules/2.6.11-1.1369_FC4/build'
-> Performing cc_version_check with CC="cc".
-> running command /bin/grep "^PATCHLEVEL ="
/lib/modules/2.6.11-1.1369_FC4/source/Makefile | /bin/cut -d " " -f 3
-> Kernel module filename is nvnet.ko
Cleaning kernel module build directory.
executing: 'cd ./nvnet; make clean'...
rm -f *.ko *mod.* *.cmd nvenet.o nvenetif.o nvnet.o *~ core
-> Building kernel module:
executing: 'cd ./nvnet; make module SYSSRC=/lib/modules/2.6.11-1.1369_FC4/so
urce SYSOUT=/lib/modules/2.6.11-1.1369_FC4/build'...
make -C /lib/modules/2.6.11-1.1369_FC4/build \
KBUILD_SRC=/usr/src/kernels/2.6.11-1.1369_FC4-x86_64 KBUILD_VERBOSE=1 \
KBUILD_CHECK= KBUILD_EXTMOD="/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pk
g1/nvnet" \
-f /usr/src/kernels/2.6.11-1.1369_FC4-x86_64/Makefile modules
mkdir -p /tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvnet/.tmp_versio
ns
make -f /usr/src/kernels/2.6.11-1.1369_FC4-x86_64/scripts/Makefile.build obj
=/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvnet
cc -Wp,-MD,/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvnet/.nvenet
.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.0.0/include -D__
KERNEL__ -Iinclude -Iinclude2 -I/usr/src/kernels/2.6.11-1.1369_FC4-x86_64/in
clude -I/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvnet -Wall -Wstr
ict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestandin
g -O2 -fomit-frame-pointer -g -mno-red-zone -mcmodel=kernel -pipe -fno-reord
er-blocks -Wno-sign-compare -funit-at-a-time -mno-sse -mno-mmx -mno-sse2
-mno-3dnow -Wdeclaration-after-statement -Wno-pointer-sign -DDRIVERVER=\"99
99\" -I/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvnet -Wall -Wimpl
icit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpoint
er-arith -Wno-multichar -Werror -O -MD -Wno-cast-qual -Wno-error -DMODULE -D
KBUILD_BASENAME=nvenet -DKBUILD_MODNAME=nvnet -c -o /tmp/selfgz3166/NFORCE-L
inux-x86_64-1.0-0301-pkg1/nvnet/.tmp_nvenet.o /tmp/selfgz3166/NFORCE-Linux-x
86_64-1.0-0301-pkg1/nvnet/nvenet.c
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:42,
from include/linux/sched.h:20,
from include/linux/module.h:10,
from /tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvne
t/nvenet.h:20,
from /tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvne
t/nvenet.c:22:
include/linux/prefetch.h: In Funktion »prefetch_range«:
include/linux/prefetch.h:62: Warnung: Zeiger auf Typen »void *« in Arithme
tik verwendet
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:864,
from /tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvne
t/nvenet.h:32,
from /tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvne
t/nvenet.c:22:
include/asm/io.h: In Funktion »check_signature«:
include/asm/io.h:308: Warnung: Argument falschen Typs für Inkrementierung
In file included from include/asm/pci.h:94,
from include/linux/pci.h:904,
from /tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvne
t/nvenet.h:32,
from /tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvne
t/nvenet.c:22:
include/asm-generic/pci-dma-compat.h: In Funktion »pci_map_page«:
include/asm-generic/pci-dma-compat.h:49: Warnung: Zeiger auf Typen »void *
in Arithmetik verwendet

<ERROR FOLLOWS:>

/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvnet/nvenet.c: In Funktion "nvenet_ioctl":
/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvnet/nvenet.c:990: Fehler : "struct pci_dev" hat kein Element namens "slot_name" // en.: struct "pci_dev" has no element named "slot_name"

<JUST WARNINGS AGAIN:>
/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvnet/nvenet.c: In Funktion "nvenet_suspend":
/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvnet/nvenet.c:1408: Warnung: der Rckgabewert von "pci_enable_wake", der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvnet/nvenet.c:1409: Warnu
ng: der Rückgabewert von "pci_enable_wake", der mit dem Attribut warn_unu
sed_result deklariert wurde, wird ignoriert
/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvnet/nvenet.c:1410: Warnu
ng: der Rückgabewert von "pci_set_power_state", der mit dem Attribut warn
_unused_result deklariert wurde, wird ignoriert
/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvnet/nvenet.c: In Funktio
n "nvenet_resume":
/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvnet/nvenet.c:1431: Warnu
ng: der Rückgabewert von "pci_set_power_state", der mit dem Attribut warn
_unused_result deklariert wurde, wird ignoriert
/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvnet/nvenet.c:1437: Warnu
ng: der Rückgabewert von "pci_enable_wake", der mit dem Attribut warn_unu
sed_result deklariert wurde, wird ignoriert
/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvnet/nvenet.c:1438: Warnu
ng: der Rückgabewert von "pci_enable_wake", der mit dem Attribut warn_unu
sed_result deklariert wurde, wird ignoriert
make[4]: *** [/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvnet/nvenet
.o] Fehler 1
make[3]: *** [_module_/tmp/selfgz3166/NFORCE-Linux-x86_64-1.0-0301-pkg1/nvne
t] Fehler 2
make[2]: *** [modules] Fehler 2
-> Error.
ERROR: The NVIDIA kernel module was not created.



Any suggestions?
Tiesel