View previous topic :: View next topic |
Author |
Message |
auriga n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Aug 2003 Posts: 11 Location: Derby, UK
|
Posted: Wed Oct 01, 2003 8:20 pm Post subject: Problems when I emerge -up world with nvidia kernel |
|
|
Hi
When i run emerge -up world I get the following output for nvidia-kernel. Anyone have any ideas what is causing it and how I can fix it?
---
worm root # emerge -u world
Calculating world dependencies ...done!
>>> emerge (1 of 14) media-video/nvidia-kernel-1.0.4496-r3 to /
>>> md5 src_uri ;-) NVIDIA-Linux-x86-1.0-4496-pkg0.run
>>> Unpacking source...
Creating directory NVIDIA-Linux-x86-1.0-4496-pkg0
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 1.0-4496.........................................................
* Linux kernel 2.4.20
>>> Source unpacked.
rm -f nv.o os-agp.o os-interface.o os-registry.o nv-linux.o nv_compiler.h *.d NVdriver nvidia.o
echo \#define NV_COMPILER \"`gcc -v 2>&1 | tail -n 1`\" > nv_compiler.h
gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4496 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
In file included from nv.c:14:
nv-linux.h:24:31: linux/modversions.h: No such file or directory
In file included from /usr/src/linux/include/linux/module.h:11,
from nv-linux.h:28,
from nv.c:14:
/usr/src/linux/include/linux/spinlock.h:223:1: warning: "read_unlock" redefined
In file included from /usr/src/linux/include/linux/spinlock.h:57,
from /usr/src/linux/include/linux/module.h:11,
from nv-linux.h:28,
from nv.c:14:
/usr/include/asm/spinlock.h:200:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/module.h:11,
from nv-linux.h:28,
from nv.c:14:
/usr/src/linux/include/linux/spinlock.h:225:1: warning: "write_unlock" redefined
In file included from /usr/src/linux/include/linux/spinlock.h:57,
from /usr/src/linux/include/linux/module.h:11,
from nv-linux.h:28,
from nv.c:14:
/usr/include/asm/spinlock.h:201:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/mm.h:22,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:71,
from nv.c:14:
/usr/src/linux/include/linux/sched.h:891: conflicting types for `kernel_thread'
/usr/include/asm/processor.h:436: previous declaration of `kernel_thread'
/usr/src/linux/include/linux/sched.h: In function `unhash_process':
/usr/src/linux/include/linux/sched.h:980: warning: implicit declaration of function `_raw_write_lock'
/usr/src/linux/include/linux/sched.h:985: warning: implicit declaration of function `_raw_write_unlock'
/usr/src/linux/include/linux/sched.h: In function `task_lock':
/usr/src/linux/include/linux/sched.h:991: warning: implicit declaration of function `_raw_spin_lock'
/usr/src/linux/include/linux/sched.h: In function `task_unlock':
/usr/src/linux/include/linux/sched.h:996: warning: implicit declaration of function `_raw_spin_unlock'
/usr/src/linux/include/linux/sched.h: In function `d_path':
/usr/src/linux/include/linux/sched.h:1006: warning: implicit declaration of function `_raw_read_lock'
/usr/src/linux/include/linux/sched.h:1009: warning: implicit declaration of function `_raw_read_unlock'
In file included from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:71,
from nv.c:14:
/usr/src/linux/include/linux/mm.h: At top level:
/usr/src/linux/include/linux/mm.h:206: parse error before "pte_addr_t"
/usr/src/linux/include/linux/mm.h:206: warning: no semicolon at end of struct or union
/usr/src/linux/include/linux/mm.h:206: warning: no semicolon at end of struct or union
/usr/src/linux/include/linux/mm.h:207: warning: type defaults to `int' in declaration of `pte'
/usr/src/linux/include/linux/mm.h:207: warning: data definition has no type or storage class
/usr/src/linux/include/linux/mm.h:226: parse error before '}' token
/usr/src/linux/include/linux/mm.h:226: warning: type defaults to `int' in declaration of `mem_map_t'
/usr/src/linux/include/linux/mm.h:226: warning: data definition has no type or storage class
/usr/src/linux/include/linux/mm.h: In function `pte_chain_lock':
/usr/src/linux/include/linux/mm.h:390: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h:391: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h:391: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h: In function `pte_chain_unlock':
/usr/src/linux/include/linux/mm.h:401: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h: In function `page_zone':
/usr/src/linux/include/linux/mm.h:424: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h: In function `set_page_zone':
/usr/src/linux/include/linux/mm.h:429: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h:430: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h: In function `page_mapped':
/usr/src/linux/include/linux/mm.h:534: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h: At top level:
/usr/src/linux/include/linux/mm.h:544: parse error before '*' token
/usr/src/linux/include/linux/mm.h:544: warning: type defaults to `int' in declaration of `mem_map'
/usr/src/linux/include/linux/mm.h:544: warning: data definition has no type or storage class
/usr/src/linux/include/linux/mm.h: In function `is_page_cache_freeable':
/usr/src/linux/include/linux/mm.h:654: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h:654: dereferencing pointer to incomplete type
In file included from /usr/src/linux/include/linux/highmem.h:5,
from /usr/src/linux/include/linux/vmalloc.h:8,
from nv-linux.h:72,
from nv.c:14:
/usr/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/include/asm/pgalloc.h:78: structure has no member named `processor'
/usr/include/asm/pgalloc.h:79: structure has no member named `processor'
/usr/include/asm/pgalloc.h:81: structure has no member named `processor'
/usr/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/include/asm/pgalloc.h:89: structure has no member named `processor'
/usr/include/asm/pgalloc.h:90: structure has no member named `processor'
/usr/include/asm/pgalloc.h:91: structure has no member named `processor'
/usr/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/include/asm/pgalloc.h:122: structure has no member named `processor'
/usr/include/asm/pgalloc.h:123: structure has no member named `processor'
/usr/include/asm/pgalloc.h:125: structure has no member named `processor'
/usr/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/include/asm/pgalloc.h:132: structure has no member named `processor'
/usr/include/asm/pgalloc.h:133: structure has no member named `processor'
/usr/include/asm/pgalloc.h:134: structure has no member named `processor'
In file included from /usr/src/linux/include/linux/vmalloc.h:8,
from nv-linux.h:72,
from nv.c:14:
/usr/src/linux/include/linux/highmem.h: In function `kmap':
/usr/src/linux/include/linux/highmem.h:68: arithmetic on pointer to an incomplete type
/usr/src/linux/include/linux/highmem.h:68: arithmetic on pointer to an incomplete type
In file included from /usr/src/linux/include/linux/pci.h:622,
from nv-linux.h:77,
from nv.c:14:
/usr/include/asm/pci.h: In function `pci_map_page':
/usr/include/asm/pci.h:106: invalid operands to binary -
/usr/include/asm/pci.h: In function `pci_map_sg':
/usr/include/asm/pci.h:160: invalid operands to binary -
/usr/include/asm/pci.h: In function `pci_dac_page_to_dma':
/usr/include/asm/pci.h:236: invalid operands to binary -
In file included from /usr/src/linux/include/linux/irq.h:69,
from /usr/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/interrupt.h:45,
from nv-linux.h:79,
from nv.c:14:
/usr/include/asm/hw_irq.h: In function `x86_do_profile':
/usr/include/asm/hw_irq.h:201: structure has no member named `processor'
In file included from nv.c:14:
nv-linux.h:402:2: #error "Couldn't determine number of arguments expected by remap_page_range!"
In file included from nv.c:14:
nv-linux.h: In function `NV_SET_AMD_PAGE_ATTRIB':
nv-linux.h:469: warning: initialization from incompatible pointer type
nv-linux.h:470: warning: implicit declaration of function `change_page_attr'
nv-linux.h: In function `NV_CLEAR_AMD_PAGE_ATTRIB':
nv-linux.h:478: warning: initialization from incompatible pointer type
nv.c: In function `nvos_malloc_pages':
nv.c:400: request for member `flags' in something not a structure or union
nv.c:413: request for member `flags' in something not a structure or union
nv.c: In function `nvos_unlock_pages':
nv.c:433: request for member `flags' in something not a structure or union
nv.c: In function `nv_kern_vma_nopage':
nv.c:1073: invalid operands to binary -
nv.c: In function `nv_kern_mmap':
nv.c:1349: warning: implicit declaration of function `NV_REMAP_PAGE_RANGE'
nv.c: In function `nv_lock_rm':
nv.c:2549: structure has no member named `processor'
nv.c:2558: structure has no member named `processor'
make: *** [nv.o] Error 1
!!! ERROR: media-video/nvidia-kernel-1.0.4496-r3 failed.
!!! Function src_compile, Line 117, Exitcode 2
!!! (no error message)
--- _________________ Alan
2.6.12-vs2.0-gentoo-r1
System: i686 AMD Athlon(tm) MP 1600+
RAM: 1024MB |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Smoke2firE Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/4319854903f8cd42511452.jpg)
Joined: 19 Sep 2003 Posts: 282 Location: the couch
|
Posted: Thu Oct 02, 2003 3:03 am Post subject: |
|
|
ill tell ya this its all fed up ![Crying or Very sad :cry:](images/smiles/icon_cry.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
m4chine Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/18723714314368f8668165b.gif)
Joined: 12 Mar 2003 Posts: 271 Location: Ventura, CA, USA
|
Posted: Thu Oct 02, 2003 3:17 am Post subject: |
|
|
i got the same error, perhaps a bug, can anyone else confirm this?
Code: | * Linux kernel 2.4.22
>>> Source unpacked.
rm -f nv.o os-agp.o os-interface.o os-registry.o nv-linux.o nv_compiler.h *.d NVdriver nvidia.o
echo \#define NV_COMPILER \"`gcc -v 2>&1 | tail -n 1`\" > nv_compiler.h
gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4496 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
In file included from nv.c:14:
nv-linux.h:24:31: linux/modversions.h: No such file or directory
In file included from /usr/src/linux/include/linux/module.h:11,
from nv-linux.h:28,
from nv.c:14:
/usr/src/linux/include/linux/spinlock.h:223:1: warning: "read_unlock" redefined
In file included from /usr/src/linux/include/linux/spinlock.h:57,
from /usr/src/linux/include/linux/module.h:11,
from nv-linux.h:28,
from nv.c:14:
/usr/include/asm/spinlock.h:200:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/module.h:11,
from nv-linux.h:28,
from nv.c:14:
/usr/src/linux/include/linux/spinlock.h:225:1: warning: "write_unlock" redefined
In file included from /usr/src/linux/include/linux/spinlock.h:57,
from /usr/src/linux/include/linux/module.h:11,
from nv-linux.h:28,
from nv.c:14:
/usr/include/asm/spinlock.h:201:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:71,
from nv.c:14:
/usr/src/linux/include/linux/sched.h:890: conflicting types for `kernel_thread'
/usr/include/asm/processor.h:436: previous declaration of `kernel_thread'
/usr/src/linux/include/linux/sched.h: In function `unhash_process':
/usr/src/linux/include/linux/sched.h:982: warning: implicit declaration of function `_raw_write_lock'
/usr/src/linux/include/linux/sched.h:987: warning: implicit declaration of function `_raw_write_unlock'
/usr/src/linux/include/linux/sched.h: In function `task_lock':
/usr/src/linux/include/linux/sched.h:993: warning: implicit declaration of function `_raw_spin_lock'
/usr/src/linux/include/linux/sched.h: In function `task_unlock':
/usr/src/linux/include/linux/sched.h:998: warning: implicit declaration of function `_raw_spin_unlock'
/usr/src/linux/include/linux/sched.h: In function `d_path':
/usr/src/linux/include/linux/sched.h:1008: warning: implicit declaration of function `_raw_read_lock'
/usr/src/linux/include/linux/sched.h:1011: warning: implicit declaration of function `_raw_read_unlock'
In file included from /usr/src/linux/include/linux/highmem.h:5,
from /usr/src/linux/include/linux/vmalloc.h:8,
from nv-linux.h:72,
from nv.c:14:
/usr/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/include/asm/pgalloc.h:78: structure has no member named `processor'
/usr/include/asm/pgalloc.h:79: structure has no member named `processor'
/usr/include/asm/pgalloc.h:81: structure has no member named `processor'
/usr/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/include/asm/pgalloc.h:89: structure has no member named `processor'
/usr/include/asm/pgalloc.h:90: structure has no member named `processor'
/usr/include/asm/pgalloc.h:91: structure has no member named `processor'
/usr/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/include/asm/pgalloc.h:122: structure has no member named `processor'
/usr/include/asm/pgalloc.h:123: structure has no member named `processor'
/usr/include/asm/pgalloc.h:125: structure has no member named `processor'
/usr/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/include/asm/pgalloc.h:132: structure has no member named `processor'
/usr/include/asm/pgalloc.h:133: structure has no member named `processor'
/usr/include/asm/pgalloc.h:134: structure has no member named `processor'
In file included from /usr/src/linux/include/linux/irq.h:69,
from /usr/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/interrupt.h:46,
from nv-linux.h:79,
from nv.c:14:
/usr/include/asm/hw_irq.h: In function `x86_do_profile':
/usr/include/asm/hw_irq.h:201: structure has no member named `processor'
In file included from nv.c:14:
nv-linux.h:402:2: #error "Couldn't determine number of arguments expected by remap_page_range!"
In file included from nv.c:14:
nv-linux.h: In function `NV_SET_AMD_PAGE_ATTRIB':
nv-linux.h:470: warning: implicit declaration of function `change_page_attr'
nv.c: In function `nv_kern_mmap':
nv.c:1349: warning: implicit declaration of function `NV_REMAP_PAGE_RANGE'
nv.c: In function `nv_lock_rm':
nv.c:2549: structure has no member named `processor'
nv.c:2558: structure has no member named `processor'
make: *** [nv.o] Error 1
!!! ERROR: media-video/nvidia-kernel-1.0.4496-r3 failed.
!!! Function src_compile, Line 117, Exitcode 2
!!! (no error message)
|
_________________ never trust a man who can count to 1023 on his fingers.
-m4chine |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Baldzius Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 17 Mar 2003 Posts: 154 Location: Lithuania
|
Posted: Thu Oct 02, 2003 5:51 am Post subject: |
|
|
Why they are using pkg0 ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Azarah Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/gallery/BaldursGate/baldursgate_edwin.gif)
Joined: 20 Jun 2002 Posts: 81
|
Posted: Thu Oct 02, 2003 9:32 pm Post subject: |
|
|
I used pkg0 because they no longer do the seperate tarballs.
As for the problem - it seems like from the just one of the following
messages:
--
In file included from nv.c:14:
nv-linux.h:24:31: linux/modversions.h: No such file or directory
--
(others are similar), that either:
1) The kernel sources are not setup properly with module support
(hello, this is a module right ?!?!)
2) The required 'make dep' was not run.
Hope this helps. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
auriga n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Aug 2003 Posts: 11 Location: Derby, UK
|
Posted: Sat Oct 04, 2003 8:44 pm Post subject: No Success |
|
|
Nope, niether of these work. I have my headers sorted out, am setup for modules and make dep has been run correctly.
Any other ideas anyone ? _________________ Alan
2.6.12-vs2.0-gentoo-r1
System: i686 AMD Athlon(tm) MP 1600+
RAM: 1024MB |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Azarah Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/gallery/BaldursGate/baldursgate_edwin.gif)
Joined: 20 Jun 2002 Posts: 81
|
Posted: Sat Oct 04, 2003 9:06 pm Post subject: |
|
|
Do you have your /usr/src/linux symlink setup properly ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
auriga n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Aug 2003 Posts: 11 Location: Derby, UK
|
Posted: Sat Oct 04, 2003 9:27 pm Post subject: Kernel wierdness... |
|
|
I seem to.
Code: |
lrwxr-xr-x 1 root root 23 2003-09-16 22:09 linux -> linux-2.4.20-gentoo-r7/
drwxr-xr-x 16 root root 4.0K 2003-10-04 21:54 linux-2.4.20-gentoo-r7
| [/quote] _________________ Alan
2.6.12-vs2.0-gentoo-r1
System: i686 AMD Athlon(tm) MP 1600+
RAM: 1024MB |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Azarah Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/gallery/BaldursGate/baldursgate_edwin.gif)
Joined: 20 Jun 2002 Posts: 81
|
Posted: Sat Oct 04, 2003 10:22 pm Post subject: Re: Kernel wierdness... |
|
|
auriga wrote: | I seem to.
Code: |
lrwxr-xr-x 1 root root 23 2003-09-16 22:09 linux -> linux-2.4.20-gentoo-r7/
drwxr-xr-x 16 root root 4.0K 2003-10-04 21:54 linux-2.4.20-gentoo-r7
|
| [/quote]
I am assuming the -r7 in the symlink and you saying -r5 is a type-o ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
auriga n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Aug 2003 Posts: 11 Location: Derby, UK
|
Posted: Sun Oct 05, 2003 7:56 am Post subject: Oooeerr |
|
|
Nice observation.
Code: | alan@worm alan $ uname -a
Linux worm.aurigaonline.co.uk 2.4.20-gentoo-r5 #1 SMP Sun Aug 3 16:35:39 BST 2003 i686 AMD Athlon(TM) XP1800+ AuthenticAMD GNU/Linux
alan@worm alan $
|
Think I need to redo me kernel.
*Wanders off to fertle* _________________ Alan
2.6.12-vs2.0-gentoo-r1
System: i686 AMD Athlon(tm) MP 1600+
RAM: 1024MB |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
idave n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/157749645840313af31a4f4.jpg)
Joined: 20 Aug 2003 Posts: 41 Location: /dev/null
|
Posted: Wed Oct 08, 2003 10:53 am Post subject: |
|
|
I get the same error but my kernel is configured properly...
uname -r gives 2.4.20-gentoo-r7
/usr/src/linux is correclty symlinked...
HELP!!!! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|