Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24977 - ebuild nvidia-kernel r2 wont compile on my 2.6 machine
Summary: ebuild nvidia-kernel r2 wont compile on my 2.6 machine
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 24525 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-21 09:40 UTC by [name redacted]
Modified: 2003-07-21 11:27 UTC (History)
1 user (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 [name redacted] 2003-07-21 09:40:16 UTC
This is the log:

root@mymachine scrooch # emerge nvidia-kernel
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/nvidia-kernel-1.0.4363-r2 to /
>>> md5 src_uri ;-) NVIDIA_kernel-1.0-4363.tar.gz
>>> Unpacking source...
>>> Unpacking NVIDIA_kernel-1.0-4363.tar.gz to
/var/tmp/portage/nvidia-kernel-1.0.4363-r2/work
 * Linux kernel 2.6.0
>>> 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 -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=4363  -DNV_UNIX   -DNV_LINUX   -DNV_INT64_OK   -DNVCPU_X86     
-DREMAP_PAGE_RANGE_5  -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
In file included from nv.c:14:
nv-linux.h:51:4: #error This driver does not support 2.6.x or newer kernels!
In file included from /usr/src/linux/include/linux/irq.h:19,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:10,
                 from nv-linux.h:79,
                 from nv.c:14:
/usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h: No such file or
directoryIn file included from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:10,
                 from nv-linux.h:79,
                 from nv.c:14:
/usr/src/linux/include/linux/irq.h:69: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/irq.h:71,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:10,
                 from nv-linux.h:79,
                 from nv.c:14:
/usr/src/linux/include/asm/hw_irq.h:27: `NR_IRQS' undeclared here (not in a
function)
/usr/src/linux/include/asm/hw_irq.h:30: `NR_IRQS' undeclared here (not in a
function)
In file included from nv.c:14:
nv-linux.h: In function `NV_IRQL_IS_RAISED':
nv-linux.h:255: warning: implicit declaration of function `__save_flags'
nv.c: At top level:
nv.c:46: parse error before "nv_dev_handle"
nv.c:46: warning: type defaults to `int' in declaration of `nv_dev_handle'
nv.c:46: warning: data definition has no type or storage class
nv.c:47: parse error before "nv_ctl_handle"
nv.c:47: warning: type defaults to `int' in declaration of `nv_ctl_handle'
nv.c:47: warning: data definition has no type or storage class
nv.c: In function `init_module':
nv.c:746: warning: implicit declaration of function `devfs_register_chrdev'
nv.c:757: `devfs_handle_t' undeclared (first use in this function)
nv.c:757: (Each undeclared identifier is reported only once
nv.c:757: for each function it appears in.)
nv.c:762: warning: implicit declaration of function `devfs_register'
nv.c:763: `DEVFS_FL_DEFAULT' undeclared (first use in this function)
nv.c:826: warning: implicit declaration of function `devfs_unregister_chrdev'
nv.c: In function `cleanup_module':
nv.c:889: warning: implicit declaration of function `devfs_unregister'
nv.c: In function `nv_kern_vma_open':
nv.c:922: warning: `MOD_INC_USE_COUNT' is deprecated (declared at
/usr/src/linux/include/linux/module.h:481)
nv.c: In function `nv_kern_vma_release':
nv.c:956: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at
/usr/src/linux/include/linux/module.h:493)
nv.c: In function `nv_kern_open':
nv.c:1079: invalid operands to binary &
nv.c:1083: invalid operands to binary &
nv.c:1091: warning: `MOD_INC_USE_COUNT' is deprecated (declared at
/usr/src/linux/include/linux/module.h:481)
nv.c:1124: warning: passing arg 2 of `request_irq' from incompatible pointer type
nv.c:1160: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at
/usr/src/linux/include/linux/module.h:493)
nv.c: In function `nv_kern_close':
nv.c:1182: invalid operands to binary &
nv.c:1185: invalid operands to binary &
nv.c:1249: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at
/usr/src/linux/include/linux/module.h:493)
nv.c: In function `nv_kern_mmap':
nv.c:1416: warning: `MOD_INC_USE_COUNT' is deprecated (declared at
/usr/src/linux/include/linux/module.h:481)
nv.c: In function `nv_kern_ioctl':
nv.c:1525: structure has no member named `uc'
nv.c: In function `nv_kern_isr':
nv.c:1669: warning: implicit declaration of function `mark_bh'
nv.c:1669: `IMMEDIATE_BH' undeclared (first use in this function)
nv.c: In function `nv_kern_ctl_open':
nv.c:1763: warning: `MOD_INC_USE_COUNT' is deprecated (declared at
/usr/src/linux/include/linux/module.h:481)
nv.c: In function `nv_kern_ctl_close':
nv.c:1828: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at
/usr/src/linux/include/linux/module.h:493)
nv.c: In function `nv_kern_read_agpinfo':
nv.c:1963: structure has no member named `name'
make: *** [nv.o] Error 1
 
!!! ERROR: media-video/nvidia-kernel-1.0.4363-r2 failed.
!!! Function src_compile, Line 116, Exitcode 2
!!! (no error message)
 
root@mymachine scrooch #



Reproducible: Always
Steps to Reproduce:



Expected Results:  
I did make a symlink as such, - there is being done some patching for the 2.6
kernel after all. I'm sorry if this is a duplicate or so, but on IRC, Google,
the forum and Bugzilla I couldn't find this problem.
Comment 1 [name redacted] 2003-07-21 09:48:36 UTC
r3 will, I'm so sorry for posting.
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-07-21 10:20:57 UTC
fixed in upstream version
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-07-21 11:27:27 UTC
*** Bug 24525 has been marked as a duplicate of this bug. ***