Solved Unable to build nvidia driver 340.107

trev

Aspiring Daemon

Reaction score: 177
Messages: 820

Code:
===>  Configuring for nvidia-driver-340-340.107
===>  Building for nvidia-driver-340-340.107
===> src (all)
make[6]: "/usr/src/sys/conf/kmod.mk" line 474: Could not find bsd.clang-analyze.mk
make[6]: Fatal errors encountered -- cannot continue
make[6]: stopped in /usr/obj/usr/src/sys/MACMINI/usr/ports/x11/nvidia-driver-340/work/NVIDIA-FreeBSD-x86_64-340.107/src
*** Error code 1
The file does exist:

Code:
-rw-r--r--  1 root  wheel  3132 10 Aug 19:56 /usr/src/share/mk/bsd.clang-analyze.mk
I'm running 10.4-STABLE r331401M. Attempting to upgrade to 11.2-STABLE. Buildworld finishes successfully. Buildkernel itself finishes successfully, but when it comes to rebuild the nvidia driver I get the above error (being built as part of buildkernel due to /etc/make.conf "PORTS_MODULES+=x11/nvidia-driver-340").

I've deleted /usr/src and /usr/obj and re-checked out 11.2-STABLE source and rebuilt 11.2-STABLE. No change.

Obviously I don't want to upgrade until I can successfully build the nvidia driver for X.

Any ideas?
 
OP
OP
T

trev

Aspiring Daemon

Reaction score: 177
Messages: 820

As /usr/src/share/mk/bsd.clang-analyze.mk did not exist in /usr/share/mk/ I took a gamble and installed 11.2-STABLE anyway. I was then able to build the nvidia driver successfully :)

It seems that the required file did not exist in 10.4, but does exist in at least 11.2.
 
Top