Bug 157255 - x11/nvidia-driver port not work.
Summary: x11/nvidia-driver port not work.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-22 19:00 UTC by vsityz
Modified: 2011-07-06 11:01 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vsityz 2011-05-22 19:00:21 UTC
x11/nvidia-driver port not work.


portmaster nvidia-driver-256.53_1

===>>> Currently installed version: nvidia-driver-256.53_1
===>>> Port directory: /usr/ports/x11/nvidia-driver

===>>> Gathering distinfo list for installed ports

===>>> Launching 'make checksum' for x11/nvidia-driver in background
===>>> Gathering dependency list for x11/nvidia-driver from ports
===>>> Initial dependency check complete for x11/nvidia-driver

===>>> Starting build for x11/nvidia-driver <<<===

===>>> All dependencies are up to date

===>  Cleaning for nvidia-driver-270.41.19

===>  Vulnerability check disabled, database not found
===>  License NVIDIA accepted by the user
===>  Found saved configuration for nvidia-driver-195.36.15
===>  Extracting for nvidia-driver-270.41.19
=> SHA256 Checksum OK for NVIDIA-FreeBSD-x86_64-270.41.19.tar.gz.
===>  Patching for nvidia-driver-270.41.19
===>   nvidia-driver-270.41.19 depends on file: /usr/local/libdata/pkgconfig/xorg-server.pc - found
===>   nvidia-driver-270.41.19 depends on shared library: GL.1 - found
===>  Configuring for nvidia-driver-270.41.19
===>  Building for nvidia-driver-270.41.19
===> src (all)
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/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 -O2 -pipe -fno-strict-aliasing -march=native -mtune=native -fno-delete-null-pointer-checks -fstack-protector -fno-omit-frame-pointer -Wformat -Wformat-security -s -O2 -pipe -fno-strict-aliasing -march=native -mtune=native -fno-delete-null-pointer-checks -fstack-protector -fno-omit-frame-pointer -Wformat -Wformat-security -s -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/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-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -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 -Wca
 st-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_ctl.c
cc -O2 -pipe -O2 -pipe -fno-strict-aliasing -march=native -mtune=native -fno-delete-null-pointer-checks -fstack-protector -fno-omit-frame-pointer -Wformat -Wformat-security -s -O2 -pipe -fno-strict-aliasing -march=native -mtune=native -fno-delete-null-pointer-checks -fstack-protector -fno-omit-frame-pointer -Wformat -Wformat-security -s -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/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-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -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 -Wca
 st-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_dev.c
cc -O2 -pipe -O2 -pipe -fno-strict-aliasing -march=native -mtune=native -fno-delete-null-pointer-checks -fstack-protector -fno-omit-frame-pointer -Wformat -Wformat-security -s -O2 -pipe -fno-strict-aliasing -march=native -mtune=native -fno-delete-null-pointer-checks -fstack-protector -fno-omit-frame-pointer -Wformat -Wformat-security -s -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/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-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -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 -Wca
 st-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_linux.c
cc -O2 -pipe -O2 -pipe -fno-strict-aliasing -march=native -mtune=native -fno-delete-null-pointer-checks -fstack-protector -fno-omit-frame-pointer -Wformat -Wformat-security -s -O2 -pipe -fno-strict-aliasing -march=native -mtune=native -fno-delete-null-pointer-checks -fstack-protector -fno-omit-frame-pointer -Wformat -Wformat-security -s -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/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-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -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 -Wca
 st-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c nvidia_os.c
cc1: warnings being treated as errors
nvidia_os.c: In function 'os_log_error':
nvidia_os.c:410: warning: format not a string literal and no format arguments
*** Error code 1

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

Stop in /tmp/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

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

===>>> make failed for x11/nvidia-driver
===>>> Aborting update

Terminated
Terminated

===>>> You can restart from the point of failure with this command line:
       portmaster <flags> x11/nvidia-driver
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-05-22 19:00:37 UTC
Responsible Changed
From-To: freebsd-ports-bugs->danfe

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Rainer Hurling freebsd_committer freebsd_triage 2011-05-22 20:40:41 UTC
As Pan Tsu figured out some days ago, there seems to be a problem with 
NVIDIA_ROOT after /head@r221320, see

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=159799+0+archive/2011/freebsd-ports/20110515.freebsd-ports

Hope this helps,
Rainer Hurling
Comment 3 danfe 2011-05-23 01:51:11 UTC
Hm, but head@r221320 does not apply here as submitter's running 8.2-STABLE.
However, it's seen from the log some hardening options are passed to gcc,
which in addition of -Werror cause the build breakage.

While I will take a closer look at nvidia sources and try to fix it properly,
removing -Wformat-security (or turning it into -Wno-format-security) should
remedy this particular problem right now.
Comment 4 Alexey Dokuchaev freebsd_committer freebsd_triage 2011-07-06 11:01:18 UTC
State Changed
From-To: open->closed

Should be fixed in Makefile rev. 1.108.