Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402273 - x11-drivers/nvidia-drivers with linux 3.3 - /usr/src/linux/arch/x86/include/asm/unistd.h:16:29: fatal error: asm/unistd_64.h: No such file or directory
Summary: x11-drivers/nvidia-drivers with linux 3.3 - /usr/src/linux/arch/x86/include/a...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-05 18:56 UTC by Clemens Noss
Modified: 2012-02-06 22:46 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Clemens Noss 2012-02-05 18:56:28 UTC
One of

export GCC_INCLUDE_DIR="${KERNEL_DIR}/arch/x86/include/generated/"
export C_INCLUDE_PATH="${KERNEL_DIR}/arch/x86/include/generated/"

before linux-mod_src_compile works around this.

Tested with Linux 3.3-rc commit 23783f817bceedd6d4e549385e3f400ea64059e5 and nvidia-drivers-290.10-rc1

More information:

Removing some >/dev/null in conftest.sh reveals

make -j9 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux CC=x86_64-pc-linux-gnu-gcc clean module
Test---1
In file included from /usr/src/linux/include/linux/unistd.h:7:0,
                 from /usr/src/linux/arch/x86/include/asm/seccomp_64.h:4,
                 from /usr/src/linux/arch/x86/include/asm/seccomp.h:4,
                 from /usr/src/linux/include/linux/seccomp.h:8,
                 from /usr/src/linux/include/linux/sched.h:80,
                 from /usr/src/linux/include/linux/utsname.h:35,
                 from conftest30236.c:5:
/usr/src/linux/arch/x86/include/asm/unistd.h:16:29: fatal error: asm/unistd_64.h: No such file or directory

Since Linux commit 303395ac3bf3e2cb488435537d416bc840438fcb, unistd_{32,64}.h are autogenerated and placed in arch/x86/include/generated/asm/. I don't know how they are supposed to be found there. A "git grep generated/" shows a lot of includes.

A "git grep /generated" shows at least one "-Iarch/$(hdr-arch)/include/generated". I can only tell that this may or may not be a kernel bug, or an eclass bug, or an nvidia upstream bug.
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2012-02-06 22:46:11 UTC
We don't support RC kernels. Never have and never will.