Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529258 - x11-drivers/nvidia-drivers-346.16 - In file included from .../work/kernel/nv-linux.h:15:0, from .../work/kernel/nv-acpi.c:15: .../work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
Summary: x11-drivers/nvidia-drivers-346.16 - In file included from .../work/kernel/nv-...
Status: RESOLVED DUPLICATE of bug 529256
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-14 18:17 UTC by thygreatswaggedone
Modified: 2014-11-14 22:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,25.12 KB, text/plain)
2014-11-14 22:42 UTC, Mario Bachmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thygreatswaggedone 2014-11-14 18:17:45 UTC
Simple emerge failure.

the output of emerge --info '=x11-drivers/nvidia-drivers-346.16::gentoo' is
http://pastebin.com/m7TkXdg0

The compilation starts to get messed up right here
...
...
...
 x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/.nv-mempool.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include -I/usr/src/linux-3.17.2-gentoo/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.17.2-gentoo/include -Iinclude -I/usr/src/linux-3.17.2-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.17.2-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.17.2-gentoo/include/linux/kconfig.h   -I/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -m64 -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -march=corei7 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG   -I/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"346.16\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_mempool)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/.tmp_nv-mempool.o /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-mempool.c
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-acpi.c:15:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
compilation terminated.
/usr/src/linux-3.17.2-gentoo/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-acpi.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-acpi.o] Error 1
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-chrdev.c:15:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
make[3]: *** Waiting for unfinished jobs....
compilation terminated.
/usr/src/linux-3.17.2-gentoo/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-chrdev.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-chrdev.o] Error 1
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-cray.c:15:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
compilation terminated.
/usr/src/linux-3.17.2-gentoo/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-cray.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-cray.o] Error 1
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-dma.c:15:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
compilation terminated.
/usr/src/linux-3.17.2-gentoo/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-dma.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-dma.o] Error 1
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-drm.c:15:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
compilation terminated.
/usr/src/linux-3.17.2-gentoo/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-drm.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-drm.o] Error 1
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nvlink-linux.h:14,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nvlink.c:13:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
compilation terminated.
/usr/src/linux-3.17.2-gentoo/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nvlink.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nvlink.o] Error 1
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-mempool.c:15:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
compilation terminated.
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-gvi.c:15:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
compilation terminated.
/usr/src/linux-3.17.2-gentoo/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-mempool.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-mempool.o] Error 1
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-i2c.c:15:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
compilation terminated.
/usr/src/linux-3.17.2-gentoo/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-gvi.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-gvi.o] Error 1
/usr/src/linux-3.17.2-gentoo/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-i2c.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-i2c.o] Error 1
/usr/src/linux-3.17.2-gentoo/Makefile:1373: recipe for target '_module_/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel' failed
make[2]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel] Error 2
Makefile:181: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-3.17.2-gentoo'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
nvidia-modules-common.mk:248: recipe for target 'module' failed
make: *** [module] Error 1
 * ERROR: x11-drivers/nvidia-drivers-346.16::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-346.16::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-346.16::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/'
Comment 1 thygreatswaggedone 2014-11-14 19:07:52 UTC
Also would like to comment that it says this earlier in the log

test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;				

Which is false if thunar is my file manager is to be believed
Comment 2 Harris Landgarten 2014-11-14 19:31:31 UTC
harrisl-desktop conftest # ls -ltr
total 18
-rw-r--r-- 1 paludisbuild paludisbuild  641 Nov 14 14:25 types.h
-rw-r--r-- 1 paludisbuild paludisbuild   36 Nov 14 14:25 macros.h
-rw-r--r-- 1 paludisbuild paludisbuild   77 Nov 14 14:25 generic.h
-rw-r--r-- 1 paludisbuild paludisbuild 1208 Nov 14 14:25 functions.h
drwxr-xr-x 2 paludisbuild paludisbuild 1704 Nov 14 14:25 compile-tests

kernel/conftest/headers.h is definitely missing.
Comment 3 Mario Bachmann 2014-11-14 19:38:03 UTC
Same here. 

In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-acpi.c:15:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
compilation terminated.
  x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/.nv-i2c.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include -I/usr/src/linux-3.16.7/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.16.7/include -Iinclude -I/usr/src/linux-3.16.7/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.16.7/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.16.7/include/linux/kconfig.h   -I/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -m64 -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG   -I/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"346.16\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_i2c)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-i2c.o /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-i2c.c
/usr/src/linux-3.16.7/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-acpi.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-acpi.o] Error 1
make[3]: *** Waiting for unfinished jobs....
  x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/.nvlink.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include -I/usr/src/linux-3.16.7/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.16.7/include -Iinclude -I/usr/src/linux-3.16.7/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.16.7/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.16.7/include/linux/kconfig.h   -I/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -m64 -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG   -I/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"346.16\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nvlink)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nvlink.o /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nvlink.c
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-chrdev.c:15:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
compilation terminated.
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-cray.c:15:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
compilation terminated.
/usr/src/linux-3.16.7/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-chrdev.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-chrdev.o] Error 1
/usr/src/linux-3.16.7/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-cray.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-cray.o] Error 1
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-dma.c:15:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
compilation terminated.
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-drm.c:15:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
compilation terminated.
/usr/src/linux-3.16.7/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-dma.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-dma.o] Error 1
/usr/src/linux-3.16.7/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-drm.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-drm.o] Error 1
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-gvi.c:15:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
compilation terminated.
/usr/src/linux-3.16.7/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-gvi.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-gvi.o] Error 1
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-i2c.c:15:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
compilation terminated.
/usr/src/linux-3.16.7/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-i2c.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-i2c.o] Error 1
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nv-linux.h:15:0,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nvlink-linux.h:14,
                 from /var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nvlink.c:13:
/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/conftest.h:1:30: fatal error: conftest/headers.h: No such file or directory
 #include "conftest/headers.h"
                              ^
compilation terminated.
/usr/src/linux-3.16.7/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nvlink.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel/nvlink.o] Error 1
/usr/src/linux-3.16.7/Makefile:1333: recipe for target '_module_/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel' failed
make[2]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel] Error 2
Makefile:181: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-3.16.7'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
nvidia-modules-common.mk:248: recipe for target 'module' failed
make: *** [module] Error 1
 * ERROR: x11-drivers/nvidia-drivers-346.16::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-346.16::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-346.16::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/kernel'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-346.16/work/'

>>> Failed to emerge x11-drivers/nvidia-drivers-346.16, Log file:
Comment 4 Mario Bachmann 2014-11-14 19:38:34 UTC
core ~ # emerge --info
Portage 2.2.14 (python 2.7.8-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.20, 3.16.7 x86_64)
=================================================================
System uname: Linux-3.16.7-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16390488 total,  14010540 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 14 Nov 2014 16:45:01 +0000
ld GNU ld (GNU Binutils) 2.24
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p30-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r2
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.20
Repositories: gentoo Mario
ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx-i -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core-avx-i -O2 -pipe"
DISTDIR="/mnt/base/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://mirror.netcologne.de/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://de-mirror.org/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror.leaseweb.com/gentoo/ ftp://mirror.ovh.net/gentoo-distfiles/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://mirrors.linuxant.fr/distfiles.gentoo.org/ ftp://mirror.netcologne.de/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/mnt/base/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage_overlay"
SYNC="rsync://haswell/portage"
USE="7zip X a52 aac aacs acl acpi alsa amd64 avx berkdb bluray bzip2 cairo cdparanoia cli cracklib crypt cups custom-cflags custom-cpuopts custom-cxxflags custom-optimization cxx dbus dri dvb dvd dvdr encode exif fam flac fortran g3dvl gdbm gimp glitz gnutls iconv icu ilbc imagemagick imlib ipv6 jpeg kpathsea lame lcms libsamplerate lm_sensors lzo mad mmx modules mp3 multilib ncurses nls nptl ogg openal opengl openmp openvg pam pcre pdf png qt3support qt4 readline sdl semantic-desktop session smp speex spell sse sse2 sse3 ssl ssse3 svg tcpd theora threads tiff truetype unicode usb v4l vdpau vorbis wmf x264 xcb xcomposite xine xinerama xml xulrunner xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="alias auth_basic authn_file authz_groupfile authz_host authz_user autoindex deflate dir filter ident log_config logio mime status" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="joystick keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby21" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 5 Tom Shaw 2014-11-14 20:58:37 UTC
MAKEOPTS=-j1 makes it build. I think the ebuild tries to set this but something must of changed to break it.

Just wanted to comment for those that are stuck.
Comment 6 thygreatswaggedone 2014-11-14 21:08:39 UTC
(In reply to Tom Shaw from comment #5)
> MAKEOPTS=-j1 makes it build. I think the ebuild tries to set this but
> something must of changed to break it.
> 
> Just wanted to comment for those that are stuck.

Thank you!  That fixed it for me
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-14 22:16:10 UTC
Please attach the entire build log to this bug report.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-14 22:18:16 UTC
(In reply to Tom Shaw from comment #5)
> MAKEOPTS=-j1 makes it build. I think the ebuild tries to set this but
> something must of changed to break it.

That would be quite ironic given that the release notes[1] say:

  Improved the performance of nvidia-installer by enabling the use of parallel
  make when building the NVIDIA kernel modules. The concurrency level can be set
  with the --concurrency-level option, and defaults to the number of detected
  CPUs.

Note: the ebuild already sets MAKEOPTS=-j1 in case two kernel modules are compiled (USE=uvm).


[1] http://www.nvidia.com/download/driverResults.aspx/79720/en-us
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-14 22:40:08 UTC

*** This bug has been marked as a duplicate of bug 529256 ***
Comment 10 Mario Bachmann 2014-11-14 22:42:11 UTC
Created attachment 389336 [details]
build.log