Re: Nvidia-driver and current lead system reboot with no error message

From: Rainer Hurling <Rainer.Hurling_at_nw-fva.de>
Date: Thu, 12 Jul 2007 10:54:53 +0200
Hello Harry,

Harald Schmalzbauer schrieb:
> Am Mittwoch, 11. Juli 2007 schrieb Rainer Hurling:
>> Hallo Harry,
>>
>> for version 100.14.11 (after unpacking the tarball) I had to make four
>> changes before I had been able to install:
>>
>> 1. set environment variable 'X11BASE' to '/usr/local'
>>
>> 2. Delete lines 24-26 in 'src/nv-freebsd.h' (test for FreeBSD version
>>
>>  >=70000)
>>
>> 3. Change '${X11BASE}/lib/modules[...]' to
>> '${X11BASE}/lib/xorg/modules[...]' in Makefiles under
>> x11/[driver,extension,lib]
>>
>> 4. Change '/usr/X11R6/lib/modules[...]' to
>> '/usr/local/lib/xorg/modules[...]' in 'doc/html/appendix-b.html'
>>
>>
>> Don't forget to delete any installed x11/nvidia-driver* port before
>> installing this new driver version.
>>
>> Hope this helps,
>> Rainer
> 
> Hello Rainer,
> 
> thanks for your hints.
> Unfortunately it's not just a matter of paths.
> 
> Here's the compiler showstopper:
> cc -O1 -pipe -march=prescott -march=prescott -DNV_VERSION_STRING=\"100.14.11\" -
> D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -fno-common -msoft-float
> -fno-unit-at-a-time -minline-all-stringops  -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc
> -I/src -I. -I_at_ -I_at_/contrib/altq -finline-limit=8000 --paraminline-unit-growth=100 
> --paramlarge-function-growth=1000 -fno-common  -mno-align-long-strings -mpre
> ferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffree
> standing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing
> -prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -ffo
> rmat-extensions -c nvidia_pci.c
> nvidia_pci.c: In function 'nvidia_pci_setup_intr':
> nvidia_pci.c:56: warning: passing argument 7 of 'bus_setup_intr' from 
> incompatible pointer type
> nvidia_pci.c:56: error: too many arguments to function 'bus_setup_intr'
> *** Error code 1

This error in src/nvidia_pci.c originates by testing the version of 
7.0-CURRENT:

--------------
#if __FreeBSD_version >= 700031
     status = bus_setup_intr(dev, sc->irq, flags, NULL, nvidia_intr, sc, 
&sc->irq_ih);
#else
     status = bus_setup_intr(dev, sc->irq, flags, nvidia_intr, sc, 
&sc->irq_ih);
#endif
--------------

Do you use newest CURRENT? With my FreeBSD version from yesterday the 
nvidia driver 100.14.11 compiles fine, there are no problems with 
version testing.

#sysctl -a | grep osreldate
kern.osreldate: 700052

Rainer


> 
> Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-100.14.11/src.
> *** Error code 1
> 
> Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-100.14.11.
> *** Error code 1
> 
> Thansk in advance for any hint.
> 
> -Harry
Received on Thu Jul 12 2007 - 07:25:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:14 UTC