Re: x11/nvidia-driver / Compilation has failed

2011-10-19 Thread tcb

Hi there

After my upgrade from 285.03 to 285.05.09 I experience daily to bidaily  
freezes on 10-current, with nvidia 8600gts.
I'm guessing they come from the nvidia-driver. I'm back to 285.03 (which  
ran without fault) now to test if they persist.



mfg tobias


On Wed, 12 Oct 2011 04:20:07 +0200, Alexey Dokuchaev da...@freebsd.org  
wrote:



On Thu, Oct 06, 2011 at 01:35:14AM +, Nali Toja wrote:

Ali Mashtizadeh mashtiza...@gmail.com writes:
 2011/8/31 Alexey Dokuchaev da...@freebsd.org:
 On Mon, Aug 29, 2011 at 02:59:48PM +0200, Olivier Smedts wrote:
 2011/8/29 ken k...@tydfam.jp:
  Could I test your patch for nvidia-driver, too?
  I cannot find your patch in this mail.

 I took the patch in :
  
http://lists.freebsd.org/pipermail/freebsd-current/2011-August/026515.html


 And it worked for me.

 Should be fixed in the port itself now (also updated to 280.13).

 Is there any reason I should still be hitting this bug when building
 on 9-STABLE? With Linux compatibility disabled I can build the driver,
 but the kernel refuses to load it saying it's incompatible with my
 kernel version.

Only if you're using 285.05.09 with the port. And it'd affect both
/stable/9 and /head users.

  // from src/nv-freebsd.h:
  #if __FreeBSD_version = 900041
  #include sys/capability.h
  #else
  #define fget(td, fd, cap, fp) fget(td, fd, fp)
  #endif

Can you commit below tiny change? It should make testing the new  
version a
bit easier for people who are impatient to wait for the next port  
update.


That version also includes tunable support similar to ports/156386.


Port was updated to serve the most recent release from NVidia, 285.05.09.
Please test and report of any issues.

Thanks,

./danfe
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to  
freebsd-current-unsubscr...@freebsd.org



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: x11/nvidia-driver / Compilation has failed

2011-10-11 Thread Alexey Dokuchaev
On Thu, Oct 06, 2011 at 01:35:14AM +, Nali Toja wrote:
 Ali Mashtizadeh mashtiza...@gmail.com writes:
  2011/8/31 Alexey Dokuchaev da...@freebsd.org:
  On Mon, Aug 29, 2011 at 02:59:48PM +0200, Olivier Smedts wrote:
  2011/8/29 ken k...@tydfam.jp:
   Could I test your patch for nvidia-driver, too?
   I cannot find your patch in this mail.
 
  I took the patch in :
  http://lists.freebsd.org/pipermail/freebsd-current/2011-August/026515.html
 
  And it worked for me.
 
  Should be fixed in the port itself now (also updated to 280.13).
 
  Is there any reason I should still be hitting this bug when building
  on 9-STABLE? With Linux compatibility disabled I can build the driver,
  but the kernel refuses to load it saying it's incompatible with my
  kernel version.
 
 Only if you're using 285.05.09 with the port. And it'd affect both
 /stable/9 and /head users.
 
   // from src/nv-freebsd.h:
   #if __FreeBSD_version = 900041
   #include sys/capability.h
   #else
   #define fget(td, fd, cap, fp) fget(td, fd, fp)
   #endif
 
 Can you commit below tiny change? It should make testing the new version a
 bit easier for people who are impatient to wait for the next port update.
 
 That version also includes tunable support similar to ports/156386.

Port was updated to serve the most recent release from NVidia, 285.05.09.
Please test and report of any issues.

Thanks,

./danfe
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: x11/nvidia-driver / Compilation has failed

2011-10-06 Thread Ali Mashtizadeh
Hmm it seemed to be reading from a random other source tree because I
had deleted /usr/src, but /usr/src-8 and /usr/src-9 where present.
When I moved src-9 to src the build worked perfectly. I think that
took care of the linux issue as well. Sorry for the spam. All these
flags you mentioned will come in handy from now on so I can use those
to avoid this issue.

Thanks,
~ Ali

On Wed, Oct 5, 2011 at 5:47 PM, Scot Hetzel swhet...@gmail.com wrote:
 On Wed, Oct 5, 2011 at 4:43 PM, Ali Mashtizadeh mashtiza...@gmail.com wrote:
 On Wed, Oct 5, 2011 at 2:27 PM, Scot Hetzel swhet...@gmail.com wrote:
 On Wed, Oct 5, 2011 at 3:52 PM, Ali Mashtizadeh mashtiza...@gmail.com 
 wrote:
 Is there any reason I should still be hitting this bug when building
 on 9-STABLE? With Linux compatibility disabled I can build the driver,
 but the kernel refuses to load it saying it's incompatible with my
 kernel version.

 Was your kernel built from the same version of /usr/src, or have you
 updated the source (/usr/src) since you last rebuilt the kernel.

 If you updated the source, then you need to rebuild the kernel from
 those updated sources (should also build/installworld).


 Yes, I did that just before. I'll try buildkernel and installkernel
 again but I know havn't updated the tree. Could there be an issue
 since I built it from the directory /usr/src-9?


 Do you also have a /usr/src directory?

 If you do, then the port is using the wrong kernel source.  You'll
 need to set SRC_BASE to /usr/src-9 when building the port.

 cd /usr/ports/x11/nvida-driver
 make deinstall ; make clean ; make install -DSRC_BASE=/usr/src-9

 Then you should be able to load the kernel module.

 Scot




-- 
Ali Mashtizadeh
علی مشتی زاده
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: x11/nvidia-driver / Compilation has failed

2011-10-05 Thread Garrett Cooper
On Wed, Oct 5, 2011 at 1:52 PM, Ali Mashtizadeh mashtiza...@gmail.com wrote:
 Is there any reason I should still be hitting this bug when building
 on 9-STABLE? With Linux compatibility disabled I can build the driver,
 but the kernel refuses to load it saying it's incompatible with my
 kernel version.

You probably need to rebuild the port..?
-Garrett
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: x11/nvidia-driver / Compilation has failed

2011-10-05 Thread Ali Mashtizadeh
I did that. In fact I decided to remove all ports and rebuild all my
ports based on a snapshot from portsnap that is one day old at this
point.

~ Ali

On Wed, Oct 5, 2011 at 2:05 PM, Garrett Cooper yaneg...@gmail.com wrote:
 On Wed, Oct 5, 2011 at 1:52 PM, Ali Mashtizadeh mashtiza...@gmail.com wrote:
 Is there any reason I should still be hitting this bug when building
 on 9-STABLE? With Linux compatibility disabled I can build the driver,
 but the kernel refuses to load it saying it's incompatible with my
 kernel version.

 You probably need to rebuild the port..?
 -Garrett




-- 
Ali Mashtizadeh
علی مشتی زاده
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: x11/nvidia-driver / Compilation has failed

2011-10-05 Thread Ali Mashtizadeh
Is there any reason I should still be hitting this bug when building
on 9-STABLE? With Linux compatibility disabled I can build the driver,
but the kernel refuses to load it saying it's incompatible with my
kernel version.

~ Ali

2011/8/31 Alexey Dokuchaev da...@freebsd.org:
 On Mon, Aug 29, 2011 at 02:59:48PM +0200, Olivier Smedts wrote:
 2011/8/29 ken k...@tydfam.jp:
   Could I test your patch for nvidia-driver, too?
   I cannot find your patch in this mail.

 I took the patch in :
 http://lists.freebsd.org/pipermail/freebsd-current/2011-August/026515.html

 And it worked for me.

 Should be fixed in the port itself now (also updated to 280.13).

 ./danfe
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: x11/nvidia-driver / Compilation has failed

2011-10-05 Thread Scot Hetzel
On Wed, Oct 5, 2011 at 3:52 PM, Ali Mashtizadeh mashtiza...@gmail.com wrote:
 Is there any reason I should still be hitting this bug when building
 on 9-STABLE? With Linux compatibility disabled I can build the driver,
 but the kernel refuses to load it saying it's incompatible with my
 kernel version.

Was your kernel built from the same version of /usr/src, or have you
updated the source (/usr/src) since you last rebuilt the kernel.

If you updated the source, then you need to rebuild the kernel from
those updated sources (should also build/installworld).

Scot
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: x11/nvidia-driver / Compilation has failed

2011-10-05 Thread Ali Mashtizadeh
I ran buildworld and installworld again, but the module still won't
load. Also, if I enable linux compatibility the original bug from this
email chain is still present.

On Wed, Oct 5, 2011 at 2:27 PM, Scot Hetzel swhet...@gmail.com wrote:
 On Wed, Oct 5, 2011 at 3:52 PM, Ali Mashtizadeh mashtiza...@gmail.com wrote:
 Is there any reason I should still be hitting this bug when building
 on 9-STABLE? With Linux compatibility disabled I can build the driver,
 but the kernel refuses to load it saying it's incompatible with my
 kernel version.

 Was your kernel built from the same version of /usr/src, or have you
 updated the source (/usr/src) since you last rebuilt the kernel.

 If you updated the source, then you need to rebuild the kernel from
 those updated sources (should also build/installworld).

 Scot




-- 
Ali Mashtizadeh
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: x11/nvidia-driver / Compilation has failed

2011-10-05 Thread Garrett Cooper
On Wed, Oct 5, 2011 at 3:31 PM, Ali Mashtizadeh mashtiza...@gmail.com wrote:
 I ran buildworld and installworld again, but the module still won't
 load. Also, if I enable linux compatibility the original bug from this
 email chain is still present.

Please bottom post.

That being said, there are issues with the port infrastructure tying
into /usr/src where [if you're using the PORTS_MODULES feature and]
compiling using an older world I've seen stuff fall apart at build
because it's detecting OSVERSION or something else incorrectly.
Haven't spent time tracking this down because it's virtually a
non-issue if you install stuff manually after you boot your new
kernel.

It's annoying, but easy to work around.

Having the error message and your build details would help though, as always.

Thanks,
-Garrett
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: x11/nvidia-driver / Compilation has failed

2011-10-05 Thread Benjamin Kaduk

On Wed, 5 Oct 2011, Ali Mashtizadeh wrote:


I ran buildworld and installworld again, but the module still won't
load. Also, if I enable linux compatibility the original bug from this
email chain is still present.


Kernel, too?

-Ben Kaduk
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: x11/nvidia-driver / Compilation has failed

2011-10-05 Thread Scot Hetzel
On Wed, Oct 5, 2011 at 4:43 PM, Ali Mashtizadeh mashtiza...@gmail.com wrote:
 On Wed, Oct 5, 2011 at 2:27 PM, Scot Hetzel swhet...@gmail.com wrote:
 On Wed, Oct 5, 2011 at 3:52 PM, Ali Mashtizadeh mashtiza...@gmail.com 
 wrote:
 Is there any reason I should still be hitting this bug when building
 on 9-STABLE? With Linux compatibility disabled I can build the driver,
 but the kernel refuses to load it saying it's incompatible with my
 kernel version.

 Was your kernel built from the same version of /usr/src, or have you
 updated the source (/usr/src) since you last rebuilt the kernel.

 If you updated the source, then you need to rebuild the kernel from
 those updated sources (should also build/installworld).


 Yes, I did that just before. I'll try buildkernel and installkernel
 again but I know havn't updated the tree. Could there be an issue
 since I built it from the directory /usr/src-9?


Do you also have a /usr/src directory?

If you do, then the port is using the wrong kernel source.  You'll
need to set SRC_BASE to /usr/src-9 when building the port.

cd /usr/ports/x11/nvida-driver
make deinstall ; make clean ; make install -DSRC_BASE=/usr/src-9

Then you should be able to load the kernel module.

Scot
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: x11/nvidia-driver / Compilation has failed

2011-10-05 Thread Nali Toja
Ali Mashtizadeh mashtiza...@gmail.com writes:

 2011/8/31 Alexey Dokuchaev da...@freebsd.org:
 On Mon, Aug 29, 2011 at 02:59:48PM +0200, Olivier Smedts wrote:
 2011/8/29 ken k...@tydfam.jp:
  Could I test your patch for nvidia-driver, too?
  I cannot find your patch in this mail.

 I took the patch in :
 http://lists.freebsd.org/pipermail/freebsd-current/2011-August/026515.html

 And it worked for me.

 Should be fixed in the port itself now (also updated to 280.13).

 Is there any reason I should still be hitting this bug when building
 on 9-STABLE? With Linux compatibility disabled I can build the driver,
 but the kernel refuses to load it saying it's incompatible with my
 kernel version.

Only if you're using 285.05.09 with the port. And it'd affect both
/stable/9 and /head users.

  // from src/nv-freebsd.h:
  #if __FreeBSD_version = 900041
  #include sys/capability.h
  #else
  #define fget(td, fd, cap, fp) fget(td, fd, fp)
  #endif

---BeginMessage---
Can you commit below tiny change? It should make testing the new version a
bit easier for people who are impatient to wait for the next port update.

That version also includes tunable support similar to ports/156386.

  $ make
  [...]
  nvidia_linux.c:40:51: error: too many arguments to function call, expected 4, 
have 5
  if ((error = fget(td, args-fd, CAP_IOCTL, 0, fp)) != 0)
    ^~~
  @/sys/file.h:186:1: note: 'fget' declared here
  int fget(struct thread *td, int fd, cap_rights_t rights, struct file **fpp);
  ^
  1 error generated.

Index: x11/nvidia-driver/Makefile
===
RCS file: /a/.csup/ports/x11/nvidia-driver/Makefile,v
retrieving revision 1.109
diff -u -p -r1.109 Makefile
--- x11/nvidia-driver/Makefile  31 Aug 2011 12:30:24 -  1.109
+++ x11/nvidia-driver/Makefile  4 Oct 2011 05:33:52 -
@@ -112,7 +113,7 @@ post-patch: .SILENT
${REINPLACE_CMD} -e 's/status != status/status != RM_OK/' \
${WRKSRC}/src/nvidia_os.c
 # Fix the build after fget(9) KPI was changed in r224778
-.if ${OSVERSION}  900040  ${NVVERSION} = 1952200
+.if ${OSVERSION}  900040  ${NVVERSION} = 1952200  ${NVVERSION}  2850509
${REINPLACE_CMD} -e '/fget/s/fp/0, /' ${WRKSRC}/src/nvidia_linux.c
 .endif
 .if defined(WITH_FREEBSD_AGP)
---End Message---
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: x11/nvidia-driver / Compilation has failed

2011-08-31 Thread Alexey Dokuchaev
On Mon, Aug 29, 2011 at 02:59:48PM +0200, Olivier Smedts wrote:
 2011/8/29 ken k...@tydfam.jp:
   Could I test your patch for nvidia-driver, too?
   I cannot find your patch in this mail.
 
 I took the patch in :
 http://lists.freebsd.org/pipermail/freebsd-current/2011-August/026515.html
 
 And it worked for me.

Should be fixed in the port itself now (also updated to 280.13).

./danfe
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: x11/nvidia-driver / Compilation has failed

2011-08-29 Thread ken
  Could I test your patch for nvidia-driver, too?
  I cannot find your patch in this mail.

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: x11/nvidia-driver / Compilation has failed

2011-08-29 Thread Olivier Smedts
2011/8/29 ken k...@tydfam.jp:
  Could I test your patch for nvidia-driver, too?
  I cannot find your patch in this mail.

I took the patch in :
http://lists.freebsd.org/pipermail/freebsd-current/2011-August/026515.html

And it worked for me.

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: oliv...@gid0.org        - against HTML email  vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


x11/nvidia-driver / Compilation has failed

2011-08-16 Thread Alvaro Castillo
I try to compile a x11/nvidia-driver and give this error.

===  Building for nvidia-driver-270.41.19
=== src (all)
cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\270.41.19\
-D__KERNEL__ -DNVRM -Wno-unused-function -O -mno-red-zone
-mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL
-DKLD_MODULE -nostdinc
-I/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-270.41.19/src
-I. -I@ -I@/contrib/altq -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000 -fno-common
-fno-omit-frame-pointer  -mno-sse -mcmodel=kernel -mno-red-zone
-mno-mmx -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding
-fstack-protector -std=iso9899:1999 -fstack-protector -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs
-fdiagnostics-show-option -c nvidia_linux.c
cc1: warnings being treated as errors
nvidia_linux.c: In function 'linux_ioctl_nvidia':
nvidia_linux.c:42: warning: passing argument 3 of 'fget' makes integer
from pointer without a cast
nvidia_linux.c:42: error: too few arguments to function 'fget'
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-270.41.19/src.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-270.41.19.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver.
*** Error code 1

uname -a:
FreeBSD shuttle0.lan 9.0-BETA1 FreeBSD 9.0-BETA1 #2: Mon Aug  8
17:05:59 WEST 2011
net...@shuttle0.lan:/usr/obj/usr/src/sys/HYDROGEN  amd64

Ports has been updated since 19:20 (GMT0)

Step to reproduce:
# cd /usr/ports/x11/nvidia-driver
# make

Options to compile: (From make config command)

WITH_FREEBSD_AGP=yes
WITH_ACPI_PM=yes
WITHOUT_LINUX=no
WITH_WBINVD=no

--
netSys--
http://www.byteandbit.info
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: x11/nvidia-driver / Compilation has failed

2011-08-16 Thread Ivan Klymenko
В Tue, 16 Aug 2011 19:23:06 +0100
Alvaro Castillo gobl...@gmail.com пишет:

 I try to compile a x11/nvidia-driver and give this error.
 
 ===  Building for nvidia-driver-270.41.19
 === src (all)
 cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\270.41.19\
 -D__KERNEL__ -DNVRM -Wno-unused-function -O -mno-red-zone
 -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL
 -DKLD_MODULE -nostdinc
 -I/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-270.41.19/src
 -I. -I@ -I@/contrib/altq -finline-limit=8000 --param
 inline-unit-growth=100 --param large-function-growth=1000 -fno-common
 -fno-omit-frame-pointer  -mno-sse -mcmodel=kernel -mno-red-zone
 -mno-mmx -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding
 -fstack-protector -std=iso9899:1999 -fstack-protector -Wall
 -Wredundant-decls -Wnested-externs -Wstrict-prototypes
 -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
 -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs
 -fdiagnostics-show-option -c nvidia_linux.c
 cc1: warnings being treated as errors
 nvidia_linux.c: In function 'linux_ioctl_nvidia':
 nvidia_linux.c:42: warning: passing argument 3 of 'fget' makes integer
 from pointer without a cast
 nvidia_linux.c:42: error: too few arguments to function 'fget'
 *** Error code 1
 
 Stop
 in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-270.41.19/src.
 *** Error code 1
 
 Stop
 in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-270.41.19.
 *** Error code 1
 
 Stop in /usr/ports/x11/nvidia-driver.
 *** Error code 1
 
 uname -a:
 FreeBSD shuttle0.lan 9.0-BETA1 FreeBSD 9.0-BETA1 #2: Mon Aug  8
 17:05:59 WEST 2011
 net...@shuttle0.lan:/usr/obj/usr/src/sys/HYDROGEN  amd64
 
 Ports has been updated since 19:20 (GMT0)
 
 Step to reproduce:
 # cd /usr/ports/x11/nvidia-driver
 # make
 
 Options to compile: (From make config command)
 
 WITH_FREEBSD_AGP=yes
 WITH_ACPI_PM=yes
 WITHOUT_LINUX=no
 WITH_WBINVD=no
 
 --

http://lists.freebsd.org/pipermail/freebsd-current/2011-August/026533.html
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: x11/nvidia-driver / Compilation has failed

2011-08-16 Thread Garrett Cooper
On Aug 16, 2011, at 11:26 AM, Ivan Klymenko fi...@ukr.net wrote:

 В Tue, 16 Aug 2011 19:23:06 +0100
 Alvaro Castillo gobl...@gmail.com пишет:
 
 I try to compile a x11/nvidia-driver and give this error.
 
 ===  Building for nvidia-driver-270.41.19
 === src (all)
 cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\270.41.19\
 -D__KERNEL__ -DNVRM -Wno-unused-function -O -mno-red-zone
 -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL
 -DKLD_MODULE -nostdinc
 -I/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-270.41.19/src
 -I. -I@ -I@/contrib/altq -finline-limit=8000 --param
 inline-unit-growth=100 --param large-function-growth=1000 -fno-common
 -fno-omit-frame-pointer  -mno-sse -mcmodel=kernel -mno-red-zone
 -mno-mmx -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding
 -fstack-protector -std=iso9899:1999 -fstack-protector -Wall
 -Wredundant-decls -Wnested-externs -Wstrict-prototypes
 -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
 -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs
 -fdiagnostics-show-option -c nvidia_linux.c
 cc1: warnings being treated as errors
 nvidia_linux.c: In function 'linux_ioctl_nvidia':
 nvidia_linux.c:42: warning: passing argument 3 of 'fget' makes integer
 from pointer without a cast
 nvidia_linux.c:42: error: too few arguments to function 'fget'
 *** Error code 1
 
 Stop
 in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-270.41.19/src.
 *** Error code 1
 
 Stop
 in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-270.41.19.
 *** Error code 1
 
 Stop in /usr/ports/x11/nvidia-driver.
 *** Error code 1
 
 uname -a:
 FreeBSD shuttle0.lan 9.0-BETA1 FreeBSD 9.0-BETA1 #2: Mon Aug  8
 17:05:59 WEST 2011
 net...@shuttle0.lan:/usr/obj/usr/src/sys/HYDROGEN  amd64
 
 Ports has been updated since 19:20 (GMT0)
 
 Step to reproduce:
 # cd /usr/ports/x11/nvidia-driver
 # make
 
 Options to compile: (From make config command)
 
 WITH_FREEBSD_AGP=yes
 WITH_ACPI_PM=yes
 WITHOUT_LINUX=no
 WITH_WBINVD=no
 
 
 http://lists.freebsd.org/pipermail/freebsd-current/2011-August/026533.html

Thanks for the reminder. I'll submit a patch to fix this to danfe tonight.
Cheers,
-Garrett
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: x11/nvidia-driver / Compilation has failed

2011-08-16 Thread Garrett Cooper
2011/8/16 Garrett Cooper yaneg...@gmail.com:
 On Aug 16, 2011, at 11:26 AM, Ivan Klymenko fi...@ukr.net wrote:

 В Tue, 16 Aug 2011 19:23:06 +0100
 Alvaro Castillo gobl...@gmail.com пишет:

 I try to compile a x11/nvidia-driver and give this error.

 ===  Building for nvidia-driver-270.41.19
 === src (all)
 cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\270.41.19\
 -D__KERNEL__ -DNVRM -Wno-unused-function -O -mno-red-zone
 -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL
 -DKLD_MODULE -nostdinc
 -I/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-270.41.19/src
 -I. -I@ -I@/contrib/altq -finline-limit=8000 --param
 inline-unit-growth=100 --param large-function-growth=1000 -fno-common
 -fno-omit-frame-pointer  -mno-sse -mcmodel=kernel -mno-red-zone
 -mno-mmx -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding
 -fstack-protector -std=iso9899:1999 -fstack-protector -Wall
 -Wredundant-decls -Wnested-externs -Wstrict-prototypes
 -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
 -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs
 -fdiagnostics-show-option -c nvidia_linux.c
 cc1: warnings being treated as errors
 nvidia_linux.c: In function 'linux_ioctl_nvidia':
 nvidia_linux.c:42: warning: passing argument 3 of 'fget' makes integer
 from pointer without a cast
 nvidia_linux.c:42: error: too few arguments to function 'fget'
 *** Error code 1

 Stop
 in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-270.41.19/src.
 *** Error code 1

 Stop
 in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-270.41.19.
 *** Error code 1

 Stop in /usr/ports/x11/nvidia-driver.
 *** Error code 1

 uname -a:
 FreeBSD shuttle0.lan 9.0-BETA1 FreeBSD 9.0-BETA1 #2: Mon Aug  8
 17:05:59 WEST 2011
 net...@shuttle0.lan:/usr/obj/usr/src/sys/HYDROGEN  amd64

 Ports has been updated since 19:20 (GMT0)

 Step to reproduce:
 # cd /usr/ports/x11/nvidia-driver
 # make

 Options to compile: (From make config command)

 WITH_FREEBSD_AGP=yes
 WITH_ACPI_PM=yes
 WITHOUT_LINUX=no
 WITH_WBINVD=no


 http://lists.freebsd.org/pipermail/freebsd-current/2011-August/026533.html

 Thanks for the reminder. I'll submit a patch to fix this to danfe tonight.

Please take this patch and put it in your x11/nvidia-driver/files/
directory, test it out, and let me know how things go (I can't test it
out yet because the source tree on my workstation is not up-to-date
yet).
Thanks,
-Garrett
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org