Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19800 - nvidia-kernel-4349-r2 doesn't compile
Summary: nvidia-kernel-4349-r2 doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-22 16:39 UTC by Aaron Gyes
Modified: 2003-04-24 05:37 UTC (History)
2 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 Aaron Gyes 2003-04-22 16:39:31 UTC
They wont compile here, they die with:

nv.c:111: parse error before "nv_kern_isr"
nv.c:111: warning: type defaults to `int' in declaration of `nv_kern_isr'
nv.c:111: warning: data definition has no type or storage class
nv.c: In function `nv_kern_open':
nv.c:1091: warning: passing arg 2 of `request_irq' from incompatible pointer type
nv.c: At top level:
nv.c:1597: parse error before "nv_kern_isr"
nv.c:1602: warning: return type defaults to `int'
nv.c: In function `nv_kern_isr':
nv.c:1614: `IRQ_HANDLED' undeclared (first use in this function)
nv.c:1614: (Each undeclared identifier is reported only once
nv.c:1614: for each function it appears in.)
make: *** [nv.o] Error 1


Here are my specs:
Kernel 2.5.68-mm1, (mm-sources-2.5.68-r1)
Athlon XP 2100
Geforce 4 ti4200
512 MB PC2700 RAM

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Matthew Swank 2003-04-22 21:03:10 UTC
'emerge nvidia-kernel' gives:

>>> Unpacking source...
>>> Unpacking NVIDIA_kernel-1.0-4349.tar.gz to /var/tmp/portage/nvidia-kernel-1.0.4349-r2/work
 * 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 -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=4349  -DNV_UNIX   -DNV_LINUX   -DNV_INT64_OK   -DNVCPU_X86      -DREMAP_PAGE_RANGE_4  -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
make: *** [nv.o] Error 1

!!! ERROR: media-video/nvidia-kernel-1.0.4349-r2 failed.
!!! Function src_compile, Line 107, Exitcode 2
!!! (no error message)

Calculating dependencies  ...done!
>>> emerge (1 of 7) media-video/nvidia-kernel-1.0.4349-r2 to /
>>> md5 ;-) NVIDIA_kernel-1.0-4349.tar.gz


My emerge info:

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-gentoo-r2 i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Lin
ux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share
/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncu
rses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berk
db slang readline arts tetex bonobo svga tcltk java guile sdl gpm tcpd pam libww
w ssl perl python esd imlib oggvorbis qt kde motif opengl mozilla cdr scanner X 
gtk gnome dvd"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache userpriv usersandbox"
Comment 2 Seth Chandler 2003-04-22 21:16:10 UTC
what kernel you using :-P 
 
let me guess...2.5? 
 
Comment 3 Matthew Swank 2003-04-22 22:34:50 UTC
No, not I.  As my previous comment states: Linux kernel 2.4.20
Comment 4 Matthew Swank 2003-04-22 22:51:05 UTC
running 'make depend' in /usr/src/linux fixed (my) problem; I don't know what those 2.5.x guys should do.
Comment 5 Christopher Rude 2003-04-23 02:23:14 UTC
just a me too for kernel-2.5.68 and 2.5.68-mm1 
Comment 6 Aaron Gyes 2003-04-23 08:17:41 UTC
I emerge sync'd and now its been fixed.

  Fix the 2.5.68 patch to only apply if 'irqreturn_t' is defined in
  linux/interrupt.h.
Comment 7 Aaron Gyes 2003-04-23 08:18:51 UTC
I emerge sync'ed and its been fixed
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2003-04-24 05:37:17 UTC
fixed