View Single Post
Old 01-19-06, 11:12 AM   #6
kosik-rockz
Registered User
 
Join Date: Jan 2006
Location: Wuppertal, Germany
Posts: 5
Default 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 is offline   Reply With Quote