nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   problems with compiling on 2.6.16-rc1 (http://www.nvnews.net/vbulletin/showthread.php?t=63518)

blwegrzyn 01-18-06 02:23 PM

problems with compiling on 2.6.16-rc1
 
When I try to complie it i receive that error:


prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O
2 -fomit-frame-pointer -g -pipe -msoft-float -mpreferred-stack-boundary=2 -m
arch=i686 -mtune=pentium4 -mregparm=3 -I/usr/src/kernels/linux-2.6.16-rc1/in
clude/asm-i386/mach-generic -Iinclude/asm-i386/mach-generic -I/usr/src/kerne
ls/linux-2.6.16-rc1/include/asm-i386/mach-default -Iinclude/asm-i386/mach-de
fault -Wdeclaration-after-statement -Wno-pointer-sign -I/tmp/selfgz7022/NVI
DIA-Linux-x86-1.0-8178-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswit
ch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -
Werror -O -fno-common -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_
KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -DNVRM -DDYNAMIC_SLI -DNV_MAJOR_VE
RSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=8178 -UDEBUG -U_DEBUG -DNDEBUG
-DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DMODULE
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASEN
AME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz
7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz7022/NVI
DIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c
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/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-linux.h:47,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-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 a
rithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:523,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-linux.h:71,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv.c:14:
include/asm/io.h: In function ‚check_signature‚:
include/asm/io.h:258: warning: wrong type argument to increment
In file included from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv.c:14:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv-linux.h:677:2:
warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c: At top level
:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:296: warning:
initialization from incompatible pointer type
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c: In function
‚nvos_get_agp_device_by_class‚:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:502: warning:
implicit declaration of function ‚pci_find_class‚
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:502: warning:
assignment makes pointer from integer without a cast
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:516: warning:
assignment makes pointer from integer without a cast
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c: In function
‚nvidia_init_module‚:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:1305: warning
: implicit declaration of function ‚pm_register‚
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:1305: warning
: assignment makes pointer from integer without a cast
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:1423: warning
: implicit declaration of function ‚pm_unregister‚
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c: In function
‚nv_kern_mmap‚:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:1979: warning
: implicit declaration of function ‚remap_page_range‚
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c: In function
‚nvos_count_devices‚:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:3641: warning
: assignment makes pointer from integer without a cast
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv.c:3647: warning
: assignment makes pointer from integer without a cast
cc -Wp,-MD,/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/.nv-v
m.o.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.0.0/include -D__K
ERNEL__ -Iinclude -Iinclude2 -I/usr/src/kernels/linux-2.6.16-rc1/include -in
clude include/linux/autoconf.h -I/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-
pkg1/usr/src/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict
-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -g -pipe -msof
t-float -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium4 -mregparm=3
-I/usr/src/kernels/linux-2.6.16-rc1/include/asm-i386/mach-generic -Iinclude/
asm-i386/mach-generic -I/usr/src/kernels/linux-2.6.16-rc1/include/asm-i386/m
ach-default -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -W
no-pointer-sign -I/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv
-Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -
Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wsig
n-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMOD
ULE -DNTRM -DNVRM -DDYNAMIC_SLI -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -D
NV_PATCHLEVEL=8178 -UDEBUG -U_DEBUG -DNDEBUG -DNV_MULTIPLE_BRIDGE_AGPGART_PR
ESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_
BASENAME=KBUILD_STR(nv_vm)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tm
p/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/.tmp_nv-vm.o /tmp/sel
fgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv-vm.c
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/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-linux.h:47,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-vm.c:14:
include/linux/prefetch.h: In function ‚prefetch_range‚:
include/linux/prefetch.h:62: warning: pointer of type ‚void *‚ used in a
rithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:523,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-linux.h:71,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-vm.c:14:
include/asm/io.h: In function ‚check_signature‚:
include/asm/io.h:258: warning: wrong type argument to increment
In file included from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-vm.c:14:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv-linux.h:677:2:
warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
cc -Wp,-MD,/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/.os-a
gp.o.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.0.0/include -D__
KERNEL__ -Iinclude -Iinclude2 -I/usr/src/kernels/linux-2.6.16-rc1/include -i
nclude include/linux/autoconf.h -I/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178
-pkg1/usr/src/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-stric
t-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -g -pipe -mso
ft-float -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium4 -mregparm=
3 -I/usr/src/kernels/linux-2.6.16-rc1/include/asm-i386/mach-generic -Iinclud
e/asm-i386/mach-generic -I/usr/src/kernels/linux-2.6.16-rc1/include/asm-i386
/mach-default -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement
-Wno-pointer-sign -I/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/
nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wpare
ntheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wsign-com
pare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -
DNTRM -DNVRM -DDYNAMIC_SLI -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PA
TCHLEVEL=8178 -UDEBUG -U_DEBUG -DNDEBUG -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT
-DNV_CHANGE_PAGE_ATTR_PRESENT -DMODULE -D"KBUILD_STR(
s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_agp)" -D"KBUILD_MODNAME=KBUILD_STR(
nvidia)" -c -o /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/.tm
p_os-agp.o /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-agp.
c
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/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-linux.h:47,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/os-agp.c:24:
include/linux/prefetch.h: In function ‚prefetch_range‚:
include/linux/prefetch.h:62: warning: pointer of type ‚void *‚ used in a
rithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:523,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-linux.h:71,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/os-agp.c:24:
include/asm/io.h: In function ‚check_signature‚:
include/asm/io.h:258: warning: wrong type argument to increment
In file included from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/os-agp.c:24:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv-linux.h:677:2:
warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
cc -Wp,-MD,/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/.os-i
nterface.o.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.0.0/includ
e -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/kernels/linux-2.6.16-rc1/incl
ude -include include/linux/autoconf.h -I/tmp/selfgz7022/NVIDIA-Linux-x86-1.
0-8178-pkg1/usr/src/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno
-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -g -pip
e -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium4 -mre
gparm=3 -I/usr/src/kernels/linux-2.6.16-rc1/include/asm-i386/mach-gener
ic -Iinclude/asm-i386/mach-generic -I/usr/src/kernels/linux-2.6.16-rc1/inclu
de/asm-i386/mach-default -Iinclude/asm-i386/mach-default -Wdeclaration-after
-statement -Wno-pointer-sign -I/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pk
g1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscr
ipts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD
-Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__
-DMODULE -DNTRM -DNVRM -DDYNAMIC_SLI -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION
=0 -DNV_PATCHLEVEL=8178 -UDEBUG -U_DEBUG -DNDEBUG -DNV_MULTIPLE_BRIDGE_AGPGA
RT_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KB
UILD_BASENAME=KBUILD_STR(os_interface)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia
)" -c -o /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/.tmp_os-i
nterface.o /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-inte
rface.c
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/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-linux.h:47,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/os-interface.c:26:
include/linux/prefetch.h: In function ‚prefetch_range‚:
include/linux/prefetch.h:62: warning: pointer of type ‚void *‚ used in a
rithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:523,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/nv-linux.h:71,
from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/os-interface.c:26:
include/asm/io.h: In function ‚check_signature‚:
include/asm/io.h:258: warning: wrong type argument to increment
In file included from /tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv/os-interface.c:26:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv-linux.h:677:2:
warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-interface.c: In
function ‚os_set_mlock_capability‚:
/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-interface.c:137
5: error: ‚struct task_struct‚ has no member named ‚rlim‚
make[4]: *** [/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-i
nterface.o] Error 1
make[3]: *** [_module_/tmp/selfgz7022/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src
/nv] Error 2
make[2]: *** [cdbuilddir] 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.
[root@localhost log]#


any ideas

thx

zander 01-18-06 03:49 PM

Re: problems with compiling on 2.6.16-rc1
 
Did you apply this update patch: http://www.nvnews.net/vbulletin/showthread.php?t=62021?

blwegrzyn 01-18-06 04:30 PM

Re: problems with compiling on 2.6.16-rc1
 
now it compiled , thx
i will check later i video works

kosik-rockz 01-19-06 05:36 AM

Re: problems with compiling on 2.6.16-rc1
 
Over here it bails out with the following message:

marc@stiffy:~/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv$ make KBUILD_VERBOSE=1 -C /lib/modules/2.6.16-rc1-marc-g0f36b018-dirty/build SUBDIRS=/home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv modules
make: Entering directory `/home/marc/linux/git/linux-2.6'
mkdir -p /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/.tmp_versions
make -f scripts/Makefile.build obj=/home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv
Building modules, stage 2.
make -rR -f /home/marc/linux/git/linux-2.6/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i /home/marc/linux/git/linux-2.6/Module.symvers vmlinux /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nvidia.o
Warning: could not find /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/.nv-kernel.o.cmd for /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nv-kernel.o
make: Leaving directory `/home/marc/linux/git/linux-2.6'

The latest patches for 8178 went into my 'current-git' nVidia tree. ;)

zander 01-19-06 06:01 AM

Re: problems with compiling on 2.6.16-rc1
 
@kosik-rockz: does nv-kernel.o exist in that directory?

kosik-rockz 01-19-06 11:12 AM

Re: problems with compiling on 2.6.16-rc1
 
I just did a 'make clean' _from within_ the source dir. Then i did a 'make -f makefile' due to having no 'Makefile' in that directory. Afterwards I just issued the already mentioned command _from the kernel dir_. Now I have a nvidia.ko. What's that? Zander, let mee try to reproduce that, when I have the git kernel running. Seems like the code mixes the current kernel with the git one or something. ATTENTION: I issued the command from _within_ the kernel tree, not within the nVidia source tree!

marc@stiffy:~/linux/git/linux-2.6$ make KBUILD_VERBOSE=1 -C /lib/modules/2.6.16-rc1-marc-g0f36b018-dirty/build SUBDIRS=/home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv modules
make: Entering directory `/home/marc/linux/git/linux-2.6'
mkdir -p /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/.tmp_versions
make -f scripts/Makefile.build obj=/home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv
echo \#define NV_COMPILER \"`gcc -m32 -v 2>&1 | tail -n 1`\" > /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nv_compiler.h
gcc -m32 -Wp,-MD,/home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib/gcc-snapshot/lib/gcc/i486-linux-gnu/4.1.0/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium4 -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sign -I/home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -DNVRM -DDYNAMIC_SLI -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=8178 -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_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_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/.tmp_nv.o /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nv.c
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 /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nv-linux.h:47,
from /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/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 arithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:523,
from /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nv-linux.h:71,
from /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nv.c:14:
include/asm/io.h: In function 'check_signature':
include/asm/io.h:258: warning: wrong type argument to increment
gcc -m32 -Wp,-MD,/home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/.nv-vm.o.d -nostdinc -isystem /usr/lib/gcc-snapshot/lib/gcc/i486-linux-gnu/4.1.0/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium4 -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sign -I/home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES











... removed some stuff due to the forum no letting me post > 15K data. :/ ...







-I/home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -DNVRM -DDYNAMIC_SLI -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=8178 -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_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_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_registry)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/.tmp_os-registry.o /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/os-registry.c
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 /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nv-linux.h:47,
from /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/os-registry.c:14:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:523,
from /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nv-linux.h:71,
from /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/os-registry.c:14:
include/asm/io.h: In function 'check_signature':
include/asm/io.h:258: warning: wrong type argument to increment
ld -m elf_i386 -m elf_i386 -r -o /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nvidia.o /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nv-kernel.o /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nv.o /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nv-vm.o /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/os-agp.o /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/os-interface.o /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/os-registry.o
Building modules, stage 2.
make -rR -f /home/marc/linux/git/linux-2.6/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i /home/marc/linux/git/linux-2.6/Module.symvers vmlinux /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nvidia.o
Warning: could not find /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/.nv-kernel.o.cmd for /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nv-kernel.o
gcc -m32 -Wp,-MD,/home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/.nvidia.mod.o.d -nostdinc -isystem /usr/lib/gcc-snapshot/lib/gcc/i486-linux-gnu/4.1.0/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium4 -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sign -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nvidia)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -DMODULE -c -o /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nvidia.mod.o /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nvidia.mod.c
ld -m elf_i386 -m elf_i386 -r -o /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nvidia.ko /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nvidia.o /home/marc/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv/nvidia.mod.o
make: Leaving directory `/home/marc/linux/git/linux-2.6'

Wonder how, but:

marc@stiffy:~/linux/drivers/3rdparty/NVIDIA/current-git/usr/src/nv$ ls -lai nvidia*
1049487 -rw-r--r-- 1 marc marc 4644740 2006-01-19 18:01 nvidia.ko
1043896 -rw-r--r-- 1 marc marc 3603 2006-01-19 18:01 nvidia.mod.c
1049102 -rw-r--r-- 1 marc marc 7420 2006-01-19 18:01 nvidia.mod.o
1043892 -rw-r--r-- 1 marc marc 4638050 2006-01-19 18:01 nvidia.o

kosik-rockz 01-19-06 11:20 AM

Re: problems with compiling on 2.6.16-rc1
 
OK, works ... I'll try to get into it to report what went wrong. I just rebooted and see:

marc@stiffy:~$ uname -a
Linux stiffy 2.6.16-rc1-marc-g0f36b018-dirty #23 PREEMPT Thu Jan 19 10:15:48 CET 2006 i686 GNU/Linux
marc@stiffy:~$ modinfo nvidia
filename: /lib/modules/2.6.16-rc1-marc-g0f36b018-dirty/kernel/drivers/video/nvidia.ko
license: NVIDIA
alias: char-major-195-*
vermagic: 2.6.16-rc1-marc-g0f36b018-dirty preempt PENTIUM4 gcc-4.1
depends: agpgart
alias: pci:v000010DEd*sv*sd*bc03sc00i00*
parm: NVreg_VbiosFromROM:int
parm: NVreg_DetectPrimaryVga:int
parm: NVreg_UseCPA:int
parm: NVreg_RemapLimit:int
parm: NVreg_RmLogonRC:int
parm: NVreg_VideoEnhancement:int
parm: NVreg_DevicesConnected:int
parm: NVreg_FlatPanelMode:int
parm: NVreg_ResmanDebugLevel:int
parm: NVreg_DeviceFileMode:int
parm: NVreg_DeviceFileGID:int
parm: NVreg_DeviceFileUID:int
parm: NVreg_ModifyDeviceFiles:int
parm: NVreg_Mobile:int
parm: NVreg_SoftEDIDs:int
parm: NVreg_EnableAGPFW:int
parm: NVreg_EnableAGPSBA:int
parm: NVreg_NvAGP:int
parm: NVreg_ReqAGPRate:int
parm: NVreg_EnableALiAGP:int
parm: NVreg_EnableVia4x:int
parm: NVreg_VideoMemoryTypeOverride:int
parm: nv_disable_pat:int
marc@stiffy:~$

OK for now and thank you Zander...

zander 01-19-06 11:41 AM

Re: problems with compiling on 2.6.16-rc1
 
@kosik-rockz: so things are working for you now? FWIW, the Linux 2.6 Makefile in the NVIDIA kernel module source directory calls KBUILD to actually build the module.

kosik-rockz 01-20-06 05:38 AM

Re: problems with compiling on 2.6.16-rc1
 
Yes, Zander, anything OK over here. It just rebuilt today's git and the module compiled OK as it did before in that run.

Thanks anyways for your help and forgive me for waking up sleeping dogs... ;)

Marc


All times are GMT -5. The time now is 10:58 PM.

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