DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
Old 9th July 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Default

What's the output of ' find /usr/src/sys/ -name "agpvar.h" ' ?
Reply With Quote
Old 9th July 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Default

Quote:
Originally Posted by robbak View Post
OK. It's interesting: the old version ports are slave ports - don't bother if you don't understand what that means - so their options will appear here. Everything should work, but don't be afraid to delete that file if it worries you: if you do, all that happens is that the options screen will show when you next attempt to build that port.
Okay, ta. Is the options screen the ncurses style one? If so, I might try this tonight as I'm not sure I selected all the options within it...
Reply With Quote
Old 9th July 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

Selecting all the options could be the cause of your problems!

I'd suggest that you try using the nvidia agp driver (leave FreeBSD agp gart _un_selected). This will only work if you have _not_ got the agp driver in your kernel (I'm not sure if it is there by default: you may need to reconfigure your kernel (which is _very_ easy, by the way), but your error messages may suggest that it is not.).

The other options look like good defaults: leave them as the system has them.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
Old 10th July 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

When/if you recompile your kernel, don't include agp driver....
nvidia-drivers got own agp driver, which is way better..... (at least on my pc)
Reply With Quote
Old 10th July 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Default

Tried deleting it and then this time selecting the agp support when the options screen appreared, still fails...

In file included from nvidia_ctl.c:14:
nv-freebsd.h:80:24: error: pci/agpvar.h: No such file or directory
*** Error code 1

Is this the time for me to start compiling kernel support or somesuch?

(QLD is nice btw, used to live in Brisbane...)
Reply With Quote
Old 11th July 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

What we wanted is for you to leave "freeBSD agp" _un_selected. The port will then build and install it's own agp gart.

The other thing we would like to know is, do you have the file "/usr/src/sys/pci/agpvar.h" that it appears to be looking for?
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
Old 11th July 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Default

I tried with the AGP option because I previously hadn't selected it. I'll try like you say again, also I'll look for that src.
Reply With Quote
Old 13th July 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Default

I don't appear to have that agp header file:

Code:
max@~: ls /usr/src/sys/pci/
alpm.c          if_pcnreg.h     if_ste.c        if_wbreg.h      locate.pl
amdpm.c         if_rl.c         if_stereg.h     if_xl.c         ncr.c
amdsmb.c        if_rlreg.h      if_tl.c         if_xlreg.h      ncrreg.h
if_mn.c         if_sis.c        if_tlreg.h      intpm.c         nfsmb.c
if_pcn.c        if_sisreg.h     if_wb.c         intpmreg.h      viapm.c

Where can I get a copy of the file to include?
Reply With Quote
Old 13th July 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

Quote:
Originally Posted by maxrussell View Post
I have the kernel source, however I get this:

Code:
max@/usr/ports/x11/nvidia-driver: sudo make clean install clean
Password:
===>  Cleaning for nvidia-driver-173.14.09
===>  WARNING: Vulnerability database out of date, checking anyway
===>  Found saved configuration for nvidia-driver-169.12
===>  Extracting for nvidia-driver-173.14.09
=> MD5 Checksum OK for NVIDIA-FreeBSD-x86-173.14.09.tar.gz.
=> SHA256 Checksum OK for NVIDIA-FreeBSD-x86-173.14.09.tar.gz.
===>  Patching for nvidia-driver-173.14.09
===>  Applying FreeBSD patches for nvidia-driver-173.14.09
===>   nvidia-driver-173.14.09 depends on shared library: X11.6 - found
===>   nvidia-driver-173.14.09 depends on shared library: m.3 - found
===>   nvidia-driver-173.14.09 depends on shared library: GL.1 - found
===>  Configuring for nvidia-driver-173.14.09
===>  Building for nvidia-driver-173.14.09
===> src (all)
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -p
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -q
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h
cc -O2 -fno-strict-aliasing -pipe -DNV_VERSION_STRING=\"173.14.09\" -D__KERNEL__ -DNVRM -UDEBUG -U_DEBUG -DNDEBUG -O -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc  -I/src -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_ctl.c
In file included from nvidia_ctl.c:14:
nv-freebsd.h:80:24: error: pci/agpvar.h: No such file or directory
*** Error code 1

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

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

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

Stop in /usr/ports/x11/nvidia-driver.
Do I need to include the kernel source somehow during the install?
Try su, instead of sudo
Reply With Quote
Old 13th July 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Default

Quote:
Originally Posted by killasmurf View Post
Try su, instead of sudo
No luck. I tried that, although it doesn't help because the file is still missing.
Reply With Quote
Old 13th July 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

Report this as port bug, and/or ask help from freebsd ports developers on freebsd ports mailing list.
Reply With Quote
Old 13th July 2008
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

sorry to not reread all the threads, but are you SURE that
your /usr/src has the SAME source files upon which your
current kernel was built? AFAIK that is required to
build the port
__________________
FreeBSD 13-STABLE
Reply With Quote
Old 13th July 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

Very good point, jb_daefo, 7.0 RELEASE have agpvar.h in sys/pci/ acording to following link: http://fxr.watson.org/fxr/source/pci/?v=FREEBSD70
Reply With Quote
Old 13th July 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Default

Code:
max@/usr/ports/x11/nvidia-driver: ls /sys/pci/
alpm.c          if_pcnreg.h     if_ste.c        if_wbreg.h      locate.pl
amdpm.c         if_rl.c         if_stereg.h     if_xl.c         ncr.c
amdsmb.c        if_rlreg.h      if_tl.c         if_xlreg.h      ncrreg.h
if_mn.c         if_sis.c        if_tlreg.h      intpm.c         nfsmb.c
if_pcn.c        if_sisreg.h     if_wb.c         intpmreg.h      viapm.c
I'm surprised the file isn't on there; I've included the source when I san sysinstall?
Reply With Quote
Old 13th July 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

Code:
# ls /sys/pci
agp.c        agp_nvidia.c amdsmb.c     if_sis.c     if_wb.c      ncrreg.h
agp_ali.c    agp_sis.c    if_mn.c      if_sisreg.h  if_wbreg.h   nfsmb.c
agp_amd.c    agp_via.c    if_pcn.c     if_ste.c     if_xl.c      viapm.c
agp_amd64.c  agppriv.h    if_pcnreg.h  if_stereg.h  if_xlreg.h   xrpu.c
agp_ati.c    agpreg.h     if_rl.c      if_tl.c      intpm.c
agp_i810.c   agpvar.h     if_rlreg.h   if_tlreg.h   intpmreg.h
agp_if.m     alpm.c       if_sf.c      if_vr.c      locate.pl
agp_intel.c  amdpm.c      if_sfreg.h   if_vrreg.h   ncr.c

# uname -a
FreeBSD killasmurf.pc 7.0-RELEASE FreeBSD 7.0-RELEASE #20: Wed Jul  9 19:09:03 EEST 2008
killasmurf@killasmurf.pc:/usr/obj/usr/src/sys/killabsd  i386
I have them in /sys/pci
Reply With Quote
Old 13th July 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

Quote:
Originally Posted by maxrussell
I'm surprised the file isn't on there; I've included the source when I san sysinstall?
Which source? And how you installed it? Use csup with file located somewhere in /usr/share/examples directory.
Reply With Quote
Old 14th July 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Default

I'm going to try running my cvsupfile again. I keep it in /root/ - the lines pertaining to src look like this:

Code:
*default host=cvsup3.uk.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix

# If you seem to be limited by CPU rather than network or disk bandwidth, try
# commenting out the following line.  (Normally, today's CPUs are fast enough
# that you want to run compression.)
*default compress

## Main Source Tree.
#
# The easiest way to get the main source tree is to use the "src-all"
# mega-collection.  It includes all of the individual "src-*" collections.
src-all
Reply With Quote
Old 14th July 2008
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

I don't think that might work as you want it to. For example,
in uname I have 7-STABLE and the source for that was
obtained with a tag=RELENG_7. AFAIK if you use a =. tag
that will either get source code you don't want, obliterate the
source code you do have, or both. One must be precisely sure
when obtaining kernel source. You can even, if you have the
precise date and "type" of your kernel (uname -a), AFAIK obtain
the source code that was present, for that tag, at that
point in time (I've read of it but it is beyond my expertise)
__________________
FreeBSD 13-STABLE
Reply With Quote
Old 14th July 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

tag = . will give you CURRENT, the current development tree, right now in heavy development as they do the final work to remove the GIANT kernel-wide lock. Much functionality is going to be stripped from the kernel, and slowly re-added until it is ready for 8.0. It's not a place for the feint-hearted, especially when this sort of heavy hacking is going on.

You do not want tag= .

You should choose between tag=RELENG_7 (known as stable, it is the place where proven code changes go for final widespread testing) or RELENG_7_0, which 7.0-release + security fixes + important, stable bug fixes.

Then you need to build and install that system. This should be as easy as:
Code:
# cd /usr/src
# make buildworld buildkernel installkernel installworld
#reboot
(This is a very shorthand way to do it. Really, the make should be done in a number of steps, and mergemaster should be used to make sure your config is correct - check the handbook for full info)

Then, with your system in sync with your source, you will be ready to install nvidia.

You _do_ need to have the same system sources that your current kernel and world are built on.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
Old 15th July 2008
maxrussell maxrussell is offline
Package Pilot
 
Join Date: May 2008
Location: Montrose, Angus
Posts: 181
Default

okay, I updated using a src supfile (only) that used releng_7_0 and got the agp file. I'm now seeing this:

Code:
max@/usr/ports/x11/nvidia-driver: sudo make clean install clean
Password:
===>  Cleaning for nvidia-driver-100.14.19
===>  Found saved configuration for nvidia-driver-173.14.09
=> NVIDIA-FreeBSD-x86-100.14.19.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://jp.download.nvidia.com/freebsd/100.14.19/.
NVIDIA-FreeBSD-x86-100.14.19.tar.gz           100% of   10 MB  672 kBps 00m00s
===>  Extracting for nvidia-driver-100.14.19
=> MD5 Checksum OK for NVIDIA-FreeBSD-x86-100.14.19.tar.gz.
=> SHA256 Checksum OK for NVIDIA-FreeBSD-x86-100.14.19.tar.gz.
===>  Patching for nvidia-driver-100.14.19
===>  Applying extra patch /usr/ports/x11/nvidia-driver/files/7667-patch-lib::Makefile
===>  Applying extra patch /usr/ports/x11/nvidia-driver/files/100xx-patch-src::nvidia.os
===>  Applying FreeBSD patches for nvidia-driver-100.14.19
Ignoring previously applied (or reversed) patch.
1 out of 1 hunks ignored--saving rejects to lib/Makefile.rej
=> Patch patch-lib::Makefile failed to apply cleanly.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver.
I'll have to investigate tonight. It looks like that is a considerably older version of the driver.

I understood releng_7_0 tag to be correct for release:
http://www.freebsd.org/doc/en/books/.../cvs-tags.html

Code:
FreeBSD ironteeth.home 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
Reply With Quote
Reply

Tags
nvidia

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is nVidia driver stable? rex FreeBSD General 14 31st October 2008 06:40 PM
NVIDIA driver fails to load, freebsd 7.0 mc_i2020 FreeBSD General 18 18th July 2008 01:12 PM
Image artifacts with nvidia-driver KernelPanic FreeBSD Ports and Packages 1 10th July 2008 09:56 PM
problems with nvidia-driver-169.12 greencross FreeBSD General 8 21st May 2008 01:41 PM


All times are GMT. The time now is 04:33 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick