Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-24-06, 04:23 PM   #1
kamen12
Registered User
 
Join Date: Apr 2006
Posts: 6
Default Trouble building the module in kernel

So when I try to install the driver, it stops with only the message: "Unable to build kernel module" iwthout any explanations. In /var/log/nvidia-install.log the errors starts from here:

Quote:
/tmp/selfgz3890/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:1979: warning
: implicit declaration of function `remap_page_range'
/tmp/selfgz3890/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c: In function
`nvos_count_devices':
/tmp/selfgz3890/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:3641: warning
: assignment makes pointer from integer without a cast
/tmp/selfgz3890/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:3647: warning
: assignment makes pointer from integer without a cast
make[4]: *** [/tmp/selfgz3890/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.o
] Error 1
make[3]: *** [_module_/tmp/selfgz3890/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [mdl] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
What may it means??? I'm using GeForce FX 5600, kernel 2.6.13 and tried the drivers 8178 and 8756 (with same effect).

please
kamen12 is offline   Reply With Quote
Old 04-24-06, 04:41 PM   #2
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: Trouble building the module in kernel

Please post the installer log against 1.0-8756 as 1.0-8178 is no longer supported.

Thanks,
Lonni
netllama is offline   Reply With Quote
Old 04-24-06, 05:25 PM   #3
kamen12
Registered User
 
Join Date: Apr 2006
Posts: 6
Default Re: Trouble building the module in kernel

OK, this is the full /var/log/nvidia-installer.log:

Quote:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Apr 25 00:14:52 2006

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : true
no questions : false
silent : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : /usr/X11R6
OpenGL install prefix : /usr
compat32 install prefix : (not specified)
installer install prefix: /usr
utility install prefix : /usr
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Performing CC test with CC="cc".
-> Kernel source path: '/lib/modules/2.6.13/source'
-> Kernel output path: '/lib/modules/2.6.13/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nv.o nv
-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -f stprof stprof.o symtab.h
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.13/source S
YSOUT=/lib/modules/2.6.13/build'...

NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.13/build KBUILD_VERBOSE=1 -C /lib/
modules/2.6.13/source SUBDIRS=/tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1
/usr/src/nv modules
make -C /lib/modules/2.6.13/build \
KBUILD_SRC=/usr/src/linux-2.6.13 KBUILD_VERBOSE=1 \
KBUILD_CHECK= KBUILD_EXTMOD="/tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/
usr/src/nv" \
-f /usr/src/linux-2.6.13/Makefile modules
mkdir -p /tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/usr/src/nv/.tmp_vers
ions

WARNING: Symbol version dump /usr/src/linux-2.6.13/Module.symvers
is missing; modules will have no dependencies and modversions.

make -f /usr/src/linux-2.6.13/scripts/Makefile.build obj=/tmp/selfgz7011/NVI
DIA-Linux-x86-1.0-8756-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz7011/NVI
DIA-Linux-x86-1.0-8756-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/usr/src/nv/.nv.o
.d -nostdinc -isystem /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include -
D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.13/include -I/tmp/sel
fgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/usr/src/nv -Wall -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-fr
ame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i586 -I/u
sr/src/linux-2.6.13/include/asm-i386/mach-default -Iinclude/asm-i386/mach-de
fault -I/tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/usr/src/nv -Wall -Wi
mplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpo
inter-arith -Wno-multichar -Werror -O -fno-common -MD -Wsign-compare -Wno-ca
st-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -DNVRM
-DDYNAMIC_SLI -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=8756
-UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGA
RT_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV
_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRES
ENT
-DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DMODULE -DKBUIL
D_BASENAME=nv -DKBUILD_MODNAME=nvidia -c -o /tmp/selfgz7011/NVIDIA-Linux-x86
-1.0-8756-pkg1/usr/src/nv/nv.o /tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg
1/usr/src/nv/nv.c
In file included from include/linux/bitops.h:77,
from include/linux/kernel.h:15,
from /tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/usr/src
/nv/nv-linux.h:50,
from /tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/usr/src
/nv/nv.c:14:
include/asm/bitops.h: In function `find_first_bit':
include/asm/bitops.h:339: warning: comparison between signed and unsigned
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:20,
from include/linux/module.h:10,
from /tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/usr/src
/nv/nv-linux.h:51,
from /tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/usr/src
/nv/nv.c:14:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
metic
In file included from include/asm/fixmap.h:27,
from include/asm/pgtable.h:17,
from include/linux/mm.h:36,
from include/linux/poll.h:11,
from /tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/usr/src
/nv/nv-linux.h:65,
from /tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/usr/src
/nv/nv.c:14:
include/asm/acpi.h:31:28: acpi/pdc_intel.h: No such file or directory
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:870,
from /tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/usr/src
/nv/nv-linux.h:76,
from /tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/usr/src
/nv/nv.c:14:
include/asm/io.h: In function `check_signature':
include/asm/io.h:253: warning: wrong type argument to increment
/tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/usr/src/nv/nv.c: In function
`nv_kern_mmap':
/tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/usr/src/nv/nv.c:2069: warning
: implicit declaration of function `vm_insert_page'
make[4]: *** [/tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/usr/src/nv/nv.o
] Error 1
make[3]: *** [_module_/tmp/selfgz7011/NVIDIA-Linux-x86-1.0-8756-pkg1/usr/src
/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [mdl] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.

Before a two or three months I installed nvidia drivers on the same computer without problems, but then the linux distro and the kernel were different.
kamen12 is offline   Reply With Quote
Old 04-24-06, 05:40 PM   #4
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: Trouble building the module in kernel

Your kernel source looks broken or incomplete:
include/asm/acpi.h:31:28: acpi/pdc_intel.h: No such file or directory

Where did you obtain the 2.6.13 kernel that you're using?

Thanks,
Lonni
netllama is offline   Reply With Quote
Old 04-24-06, 06:10 PM   #5
kamen12
Registered User
 
Join Date: Apr 2006
Posts: 6
Default Re: Trouble building the module in kernel

This is the default kernel, coming with my distro I installed soon.

What could you advise me to do??? Download the kernel sources from kernel.org??
kamen12 is offline   Reply With Quote
Old 04-24-06, 06:26 PM   #6
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: Trouble building the module in kernel

Unless you wish to build a new kernel, the source from kernel.org is unlikely to fix this problem.

Have you made any changes to the kernel source that you currently have? I suppose you could always remove it and reinstall if it was provided with the distribution.

Thanks,
Lonni
netllama is offline   Reply With Quote
Old 04-24-06, 06:33 PM   #7
kamen12
Registered User
 
Join Date: Apr 2006
Posts: 6
Default Re: Trouble building the module in kernel

Hmm, I don't know where the problem comes from.....but thanks for the help and ideas!!!! I'll write again after repairing the kernel source............
kamen12 is offline   Reply With Quote
Old 04-27-06, 04:14 PM   #8
kamen12
Registered User
 
Join Date: Apr 2006
Posts: 6
Default Re: Trouble building the module in kernel

So the problem was there in my /usr/src dir I had a shortcut named linux, linked to 2.6.10 folder bad setting in my distribution.

Althought, I removed this file and then installed your original package 8756. No problems appeared. Now I'm happy running my X server and using my nVidia card in its full potencial, and I'm planning to start playing games.


Keep the good work in supporting linux drivers and support, because linux is the future for the home-users.

Regards.
kamen12 is offline   Reply With Quote

Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Corrupted display - 302.17 - Dell Precision T3500 (G98 [Quadro NVS 295]) gbailey NVIDIA Linux 1 06-27-12 11:24 AM
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 05:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 12:04 PM
X Failed to load NVdriver c00lr4c3r NVIDIA Linux 13 10-22-02 02:44 PM
Error messages... HELP!!!! Imperito NVIDIA Linux 3 09-24-02 11:46 PM

All times are GMT -5. The time now is 09:35 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.