x11/nvidia-driver: cc1: error: /src: No such file or directory

2011-05-09 Thread Hartmann, O.
Port x11/nvidia-driver fails with the the following error. This error 
obviously was introduced within the updates of the last few days, since 
building the specific port was possible before the last weekend. Does 
anyone has an idea?


Regards,

Oliver


===>  Vulnerability check disabled, database not found
===>  License NVIDIA accepted by the user
===>  Found saved configuration for nvidia-driver-270.41.06
===>  Extracting for nvidia-driver-256.53
=> SHA256 Checksum OK for NVIDIA-FreeBSD-x86_64-256.53.tar.gz.
===>  Patching for nvidia-driver-256.53
===>   nvidia-driver-256.53 depends on shared library: GL.1 - found
===>  Configuring for nvidia-driver-256.53
===>  Building for nvidia-driver-256.53
===> src (all)
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
x86 -> /usr/src/sys/x86/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 -pipe -march=native -DNV_VERSION_STRING=\"256.53\" -D__KERNEL__ 
-DNVRM -O -mcmodel=kernel -mno-red-zone -UDEBUG -U_DEBUG -DNDEBUG 
-fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/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  -mcmodel=kernel -mno-red-zone  -mfpmath=387 
-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3  -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 -c nvidia_ctl.c

cc1: error: /src: No such file or directory
*** Error code 1

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

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

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

Stop in /usr/ports/x11/nvidia-driver.

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


Re: x11/nvidia-driver: cc1: error: /src: No such file or directory

2011-05-09 Thread Ion-Mihai Tetcu
On Mon, 09 May 2011 21:18:20 +0200
"Hartmann, O."  wrote:

> Port x11/nvidia-driver fails with the the following error. This error 
> obviously was introduced within the updates of the last few days,
> since building the specific port was possible before the last
> weekend. Does anyone has an idea?
> 
> Regards,
> 
> Oliver
> 
> 
> ===>  Vulnerability check disabled, database not found
> ===>  License NVIDIA accepted by the user
> ===>  Found saved configuration for nvidia-driver-270.41.06
> ===>  Extracting for nvidia-driver-256.53
> => SHA256 Checksum OK for NVIDIA-FreeBSD-x86_64-256.53.tar.gz.
> ===>  Patching for nvidia-driver-256.53
> ===>   nvidia-driver-256.53 depends on shared library: GL.1 - found
> ===>  Configuring for nvidia-driver-256.53
> ===>  Building for nvidia-driver-256.53
> ===> src (all)
> @ -> /usr/src/sys
> machine -> /usr/src/sys/amd64/include
> x86 -> /usr/src/sys/x86/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 -pipe -march=native -DNV_VERSION_STRING=\"256.53\"
> -D__KERNEL__ -DNVRM -O -mcmodel=kernel -mno-red-zone -UDEBUG -U_DEBUG
> -DNDEBUG -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE
> -nostdinc  -I/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  -mcmodel=kernel -mno-red-zone
> -mfpmath=387 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
> -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 -c
> nvidia_ctl.c cc1: error: /src: No such file or directory
> *** Error code 1

At this late hour I can only say that it complies OK for me.

Please check your make.conf and env.


-- 
IOnut - Un^d^dregistered ;) FreeBSD "user"
  "Intellectual Property" is   nowhere near as valuable   as "Intellect"
FreeBSD committer -> ite...@freebsd.org, PGP Key ID 057E9F8B493A297B


signature.asc
Description: PGP signature


Re: x11/nvidia-driver: cc1: error: /src: No such file or directory

2011-05-09 Thread Ivan Klymenko
В Tue, 10 May 2011 00:36:18 +0300
Ion-Mihai Tetcu  пишет:

> On Mon, 09 May 2011 21:18:20 +0200
> "Hartmann, O."  wrote:
> 
> > Port x11/nvidia-driver fails with the the following error. This
> > error obviously was introduced within the updates of the last few
> > days, since building the specific port was possible before the last
> > weekend. Does anyone has an idea?
> > 
> > Regards,
> > 
> > Oliver
> > 
> > 
> > ===>  Vulnerability check disabled, database not found
> > ===>  License NVIDIA accepted by the user
> > ===>  Found saved configuration for nvidia-driver-270.41.06
> > ===>  Extracting for nvidia-driver-256.53
> > => SHA256 Checksum OK for NVIDIA-FreeBSD-x86_64-256.53.tar.gz.
> > ===>  Patching for nvidia-driver-256.53
> > ===>   nvidia-driver-256.53 depends on shared library: GL.1 - found
> > ===>  Configuring for nvidia-driver-256.53
> > ===>  Building for nvidia-driver-256.53
> > ===> src (all)
> > @ -> /usr/src/sys
> > machine -> /usr/src/sys/amd64/include
> > x86 -> /usr/src/sys/x86/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 -pipe -march=native -DNV_VERSION_STRING=\"256.53\"
> > -D__KERNEL__ -DNVRM -O -mcmodel=kernel -mno-red-zone -UDEBUG
> > -U_DEBUG -DNDEBUG -fno-strict-aliasing -Werror -D_KERNEL
> > -DKLD_MODULE -nostdinc  -I/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
> > -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-mmx -mno-3dnow
> > -mno-sse -mno-sse2 -mno-sse3 -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 -c nvidia_ctl.c cc1:
> > error: /src: No such file or directory *** Error code 1
> 
> At this late hour I can only say that it complies OK for me.
> 
> Please check your make.conf and env.
> 
> 

The same error occurs when the complete absence of /etc/make.conf for
me...

uname -a
FreeBSD nonamehost 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r221598: Sat May
7 17:28:18 EEST 2011 ivan@nonamehost:/usr/obj/usr/src/sys/mk9  amd64

===> src (all)
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
x86 -> /usr/src/sys/x86/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 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"256.53\"
-D__KERNEL__ -DNVRM -Wno-unused-function -O -mno-red-zone
-mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL
-DKLD_MODULE -nostdinc  -I/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
-mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-mmx -mno-3dnow
-mno-sse -mno-sse2 -mno-sse3  -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 -c nvidia_ctl.c cc1:
error: /src: No such file or directory distcc[22246] ERROR: compile
nvidia_ctl.c on localhost failed *** Error code 1

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

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

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

Stop in /usr/ports/x11/nvidia-driver.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: x11/nvidia-driver: cc1: error: /src: No such file or directory

2011-05-10 Thread Pan Tsu
"Hartmann, O."  writes:

[...]
> cc -O2 -pipe -march=native -DNV_VERSION_STRING=\"256.53\" -D__KERNEL__
> -DNVRM -O -mcmodel=kernel -mno-red-zone -UDEBUG -U_DEBUG -DNDEBUG
> -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/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  -mcmodel=kernel -mno-red-zone  -mfpmath=387
> -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3  -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 -c nvidia_ctl.c
> cc1: error: /src: No such file or directory
> *** Error code 1

FYI, warnings can be ignored via WERROR= (kernel) or NO_WERROR= (world).

On /head@r221320 for kernel sources -Wmissing-include-dirs was added to
force people to provide valid include directories.

  # list of Makefiles that don't define NVIDIA_ROOT before using
  $ grep -L 'NVIDIA_ROOT\s*=' **/Makefile | xargs fgrep -H NVIDIA_ROOT
  src/Makefile:CFLAGS+=   -I${NVIDIA_ROOT}/src 
-DNV_VERSION_STRING=\"270.41.06\"

It can be fixed by either providing default definition in port's Makefile

  MAKE_ENV+=NVIDIA_ROOT=${WRKSRC}

or removing NVIDIA_ROOT from there

  # expand undefined NVIDIA_ROOT
  ${REINPLACE_CMD} -e 's|$${NVIDIA_ROOT}|${WRKSRC}|' ${WRKSRC}/src/Makefile

Either way I think the following patch should be sent to the vendor.

%%
--- src/Makefile~
+++ src/Makefile
@@ -3,6 +3,8 @@
 # Generated on 'swio-display-x86-rhel47-06.nvidia.com' on Mon Apr 18 14:48:43 
PDT 2011.
 #
 
+NVIDIA_ROOT=   ${.CURDIR}/..
+
 OSOBJ= nv-freebsd.o
 KMOD=  nvidia
 RMOBJ= nv-kernel.o
%%
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: x11/nvidia-driver: cc1: error: /src: No such file or directory

2011-05-17 Thread O. Hartmann

On 05/10/11 11:40, Pan Tsu wrote:

"Hartmann, O."  writes:

[...]

cc -O2 -pipe -march=native -DNV_VERSION_STRING=\"256.53\" -D__KERNEL__
-DNVRM -O -mcmodel=kernel -mno-red-zone -UDEBUG -U_DEBUG -DNDEBUG
-fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/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  -mcmodel=kernel -mno-red-zone  -mfpmath=387
-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3  -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 -c nvidia_ctl.c
cc1: error: /src: No such file or directory
*** Error code 1


FYI, warnings can be ignored via WERROR= (kernel) or NO_WERROR= (world).

On /head@r221320 for kernel sources -Wmissing-include-dirs was added to
force people to provide valid include directories.

   # list of Makefiles that don't define NVIDIA_ROOT before using
   $ grep -L 'NVIDIA_ROOT\s*=' **/Makefile | xargs fgrep -H NVIDIA_ROOT
   src/Makefile:CFLAGS+=   -I${NVIDIA_ROOT}/src 
-DNV_VERSION_STRING=\"270.41.06\"

It can be fixed by either providing default definition in port's Makefile

   MAKE_ENV+=   NVIDIA_ROOT=${WRKSRC}

or removing NVIDIA_ROOT from there

   # expand undefined NVIDIA_ROOT
   ${REINPLACE_CMD} -e 's|$${NVIDIA_ROOT}|${WRKSRC}|' ${WRKSRC}/src/Makefile

Either way I think the following patch should be sent to the vendor.

%%
--- src/Makefile~
+++ src/Makefile
@@ -3,6 +3,8 @@
  # Generated on 'swio-display-x86-rhel47-06.nvidia.com' on Mon Apr 18 14:48:43 
PDT 2011.
  #

+NVIDIA_ROOT=   ${.CURDIR}/..
+
  OSOBJ=nv-freebsd.o
  KMOD= nvidia
  RMOBJ=nv-kernel.o
%%


I used your suggestions and patch and it works great with 270.41.06.

Hope the new driver will find its way into the ports. I use it on both 
desktop (GTX570, GTX560Ti) and Laptop (NVS 3100M).


Thanks,

Oliver

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


Re: x11/nvidia-driver: cc1: error: /src: No such file or directory

2011-05-23 Thread O. Hartmann

On 05/23/11 08:07, Alexey Dokuchaev wrote:

On Tue, May 10, 2011 at 01:40:00PM +0400, Pan Tsu wrote:

On /head@r221320 for kernel sources -Wmissing-include-dirs was added to
force people to provide valid include directories.

It can be fixed by either providing default definition in port's Makefile
or removing NVIDIA_ROOT from there.

Either way I think the following patch should be sent to the vendor.


Thank you very much for your detailed report and analysis.  I've notified
Christian Zander from NVidia about this, and he'd been very supportive
with handling our reports for quite a long time.  I will fix the port
shortly.

./danfe


Thank you very much for fixing this. And many thanks to Pan Tsu for 
helping me getting the driver to work.


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


Re: x11/nvidia-driver: cc1: error: /src: No such file or directory

2011-05-23 Thread Alexey Dokuchaev
On Tue, May 10, 2011 at 01:40:00PM +0400, Pan Tsu wrote:
> On /head@r221320 for kernel sources -Wmissing-include-dirs was added to
> force people to provide valid include directories.
> 
> It can be fixed by either providing default definition in port's Makefile
> or removing NVIDIA_ROOT from there.
> 
> Either way I think the following patch should be sent to the vendor.

Thank you very much for your detailed report and analysis.  I've notified
Christian Zander from NVidia about this, and he'd been very supportive
with handling our reports for quite a long time.  I will fix the port
shortly.

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