every version of x11-drivers/nvidia-drivers fail to build here if using portage version, it does compile if run from the nvidia package. After putting a proper Module.symvers it also compile copying and pasting the make used by the ebuild in $S/kernel ( make -j1 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/build/239 CC=x86_64-pc-linux-gnu-gcc clean module ) I'll attach also an emerge --debug output # locate Module.symvers /g/tmp/portage/x11-drivers/nvidia-drivers-270.41.19/work/Module.symvers /g/tmp/portage/x11-drivers/nvidia-drivers-270.41.19/work/kernel/Module.symvers /g/tmp/portage/x11-drivers/nvidia-drivers-275.21/work/Module.symvers /g/tmp/portage/x11-drivers/nvidia-drivers-275.21/work/kernel/Module.symvers /usr/src/build/239/Module.symvers # ls -l /g/tmp/portage/x11-drivers/nvidia-drivers-275.21/work/Module.symvers /usr/src/build/239/Module.symvers -rw-r--r-- 1 portage portage 0 30 lug 14.30 /g/tmp/portage/x11-drivers/nvidia-drivers-275.21/work/Module.symvers -rw-r--r-- 1 vivo users 348121 30 lug 14.10 /usr/src/build/239/Module.symvers Reproducible: Always
Created attachment 281565 [details] emerge --debug
Created attachment 281567 [details] emerge
Created attachment 281569 [details] emerge --info
Created attachment 281571 [details] emerge -pqv
The whole mess was caused by /usr/src having bad permissions: drwxr----- 5 user root 4096 30 lug 02.07 /usr/src/ since portage drop privileges it was unable to access the contents of $KV_OUT_DIR. While there is nothing linux-{mod,info}.eclass can do to solve the situation a big fat warning would be apreciated, saving the idio^W user the time to debug this issue.
(In reply to comment #5) > drwx------ 5 user root 4096 30 lug 02.07 /usr/src/ (o700)
Feels like an extreme corner case