Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10233 - nvidia-kernel seems broken
Summary: nvidia-kernel seems broken
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Brandon Low (RETIRED)
URL: http://nvidia.com
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-04 20:21 UTC by david mattatall
Modified: 2003-02-04 19:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description david mattatall 2002-11-04 20:21:03 UTC
emerge nvidia-kernel 
Calculating dependencies ...done! 
>>> emerge (1 of 1) media-video/nvidia-kernel-1.0.3123-r1 to / 
>>> md5 ;-) NVIDIA_kernel-1.0-3123.tar.gz 
>>> Unpacking source... 
>>> Unpacking NVIDIA_kernel-1.0-3123.tar.gz 
 * Applying page_alloc.c patch... 
>>> Source unpacked. 
rm -f nv.o os-interface.o os-registry.o  Module-linux nv_compiler.h *.d NVdriver 
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -1`\" > nv_compiler.h 
cc -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 -DRM_HEAPMGR 
-D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 
-DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=3123  -DNV_UNIX   -DNV_LINUX   -DNVCPU_X86       
-I. -I/usr/src/linux/include -Wno-cast-qual nv.c 
In file included from /usr/src/linux/include/linux/fs.h:376, 
                 from /usr/src/linux/include/linux/capability.h:17, 
                 from /usr/src/linux/include/linux/binfmts.h:5, 
                 from /usr/src/linux/include/linux/sched.h:9, 
                 from /usr/src/linux/include/linux/mm.h:4, 
                 from /usr/src/linux/include/linux/slab.h:14, 
                 from nv-linux.h:56, 
                 from nv.c:14: 
/usr/src/linux/include/linux/quota.h:138: linux/dqblk_v1.h: No such file or directory 
make: *** [nv.o] Error 1 
 
!!! ERROR: The ebuild did not complete successfully. 
!!! Function src_compile, Line -10, Exitcode 2 
!!! (no error message)
Comment 1 Regin Larsen 2002-11-05 13:13:01 UTC
I also have some problems with the nvidia-kernel ebuild, I get these errors:

Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/nvidia-kernel-1.0.3123-r1 to /
>>> md5 ;-) NVIDIA_kernel-1.0-3123.tar.gz
>>> Unpacking source...
>>> Unpacking NVIDIA_kernel-1.0-3123.tar.gz
 * Applying page_alloc.c patch...
>>> Source unpacked.
rm -f nv.o os-interface.o os-registry.o  Module-linux nv_compiler.h *.d NVdriver
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -1`\" > nv_compiler.h
cc -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 -DRM_HEAPMGR
-D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1
-DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=3123  -DNV_UNIX   -DNV_LINUX   -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/affs_fs_i.h:7,
                 from /usr/src/linux/include/linux/fs.h:305,
                 from /usr/src/linux/include/linux/capability.h:17,
                 from /usr/src/linux/include/linux/binfmts.h:6,
                 from /usr/src/linux/include/linux/sched.h:10,
                 from /usr/src/linux/include/linux/mm.h:4,
                 from /usr/src/linux/include/linux/slab.h:14,
                 from nv-linux.h:56,
                 from nv.c:14:
/usr/src/linux/include/linux/time.h: In function `timespec_to_jiffies':
/usr/src/linux/include/linux/time.h:37: `CONFIG_JIFFIES' undeclared (first use
in this function)
/usr/src/linux/include/linux/time.h:37: (Each undeclared identifier is reported
only once
/usr/src/linux/include/linux/time.h:37: for each function it appears in.)
/usr/src/linux/include/linux/time.h: In function `jiffies_to_timespec':
/usr/src/linux/include/linux/time.h:47: `CONFIG_JIFFIES' undeclared (first use
in this function)
In file included from /usr/src/linux/include/linux/sched.h:15,
                 from /usr/src/linux/include/linux/mm.h:4,
                 from /usr/src/linux/include/linux/slab.h:14,
                 from nv-linux.h:56,
                 from nv.c:14:
/usr/src/linux/include/linux/timex.h:78:3: #error You lose.
In file included from /usr/src/linux/include/asm/pci.h:35,
                 from /usr/src/linux/include/linux/pci.h:614,
                 from nv-linux.h:62,
                 from nv.c:14:
/usr/src/linux/include/asm/io.h: In function `virt_to_phys':
/usr/src/linux/include/asm/io.h:78: `PAGE_OFFSET_RAW' undeclared (first use in
this function)
/usr/src/linux/include/asm/io.h: In function `phys_to_virt':
/usr/src/linux/include/asm/io.h:96: `PAGE_OFFSET_RAW' undeclared (first use in
this function)
/usr/src/linux/include/asm/io.h: In function `isa_check_signature':
/usr/src/linux/include/asm/io.h:268: `PAGE_OFFSET_RAW' undeclared (first use in
this function)
In file included from /usr/src/linux/include/linux/highmem.h:5,
                 from nv-linux.h:75,
                 from nv.c:14:
/usr/src/linux/include/asm/pgalloc.h: In function `get_pgd_slow':
/usr/src/linux/include/asm/pgalloc.h:64: `PAGE_OFFSET_RAW' undeclared (first use
in this function)
In file included from nv-linux.h:75,
                 from nv.c:14:
/usr/src/linux/include/linux/highmem.h: In function `kmap':
/usr/src/linux/include/linux/highmem.h:33: `PAGE_OFFSET_RAW' undeclared (first
use in this function)
nv.c: In function `nvos_malloc_pages':
nv.c:444: `PAGE_OFFSET_RAW' undeclared (first use in this function)
nv.c: In function `nvos_unlock_pages':
nv.c:484: `PAGE_OFFSET_RAW' undeclared (first use in this function)
nv.c: In function `nv_kern_close':
nv.c:1327: `CONFIG_JIFFIES' undeclared (first use in this function)
nv.c: In function `nv_find_kernel_mapping':
nv.c:2253: `PAGE_OFFSET_RAW' undeclared (first use in this function)
nv.c: In function `nv_get_phys_address':
nv.c:2284: `PAGE_OFFSET_RAW' undeclared (first use in this function)
nv.c: In function `nv_alloc_pages':
nv.c:2375: `PAGE_OFFSET_RAW' undeclared (first use in this function)
nv.c: In function `nv_free_pages':
nv.c:2518: `PAGE_OFFSET_RAW' undeclared (first use in this function)
make: *** [nv.o] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -10, Exitcode 2
!!! (no error message)

I'm using the 2.4.19-gentoo-r9 kernel.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-05 13:46:39 UTC
Does the following solve it:

 # emerge =nvidia-kernel-1.0.3123

?
Comment 3 Jason McDonald 2002-11-05 19:17:36 UTC
I'm getting more of the same.   My error message is a bit different, but has the
same strange ":#"  appearences throughout.  (As in :9 and :14 at the end of the
lines.)  Doing the emerge as requested in add'l comment #2 changed nothing.  
have rsync'd, cleared /var/tmp/portage, cleared distfiles dir and rsync'd again,
but no avail.  if you want my massive codespew, let me know.   

I've posted it to the gentoo forums looking for info, or at least some "Me too"
factor, but nothing yet. http://forums.gentoo.org/viewtopic.php?t=21205
Comment 4 david mattatall 2002-11-05 20:10:40 UTC
>>Does the following solve it: 
>> 
>># emerge =nvidia-kernel-1.0.3123 
>>? 
 
No. 
 
Comment 5 SpanKY gentoo-dev 2002-11-07 01:20:17 UTC
Bug 8695 <- modversions.h ... basically setup your kernel first :P
Comment 6 Mikael A 2002-12-05 18:07:51 UTC
Not all kernel include files are protected if kernel source is 
unmerged. grdefs.h disappeared when i emergeed gentoo-sources-2.4.19-r10 
while running on 2.4.19-r9. And kernel include files are must be preserved 
to be able to build additional modules for the running kernel. 
Comment 7 Brandon Low (RETIRED) gentoo-dev 2003-01-09 15:13:59 UTC
This bug appears to be the result of an incomplete kernel source tree on the
system with the problem.  If that is not the case, re-open it.