Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia-drivers error.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
foxprodos
n00b
n00b


Joined: 12 Jun 2013
Posts: 25

PostPosted: Wed Jul 17, 2013 4:00 pm    Post subject: nvidia-drivers error. Reply with quote

here is the thing. a few days ago, i typed
Code:
sudo rm -r /usr
with careless, now my system is broken,many files

missed,but it still working. now i want rebuild my nvidia-drivers, the error occuped.

here is the build.log

Quote:
[32;01m * Package: x11-drivers/nvidia-drivers-304.88
 * Repository: gentoo
 * Maintainer: jer@gentoo.org xarthisius@gentoo.org
 * USE: X abi_x86_32 acpi consolekit elibc_glibc kernel_linux policykit tools userland_GNU x86
 * FEATURES: preserve-libs sandbox
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/3.8.13-gentoo/build
* Found sources for kernel version:
* 3.8.13-gentoo
>>> Unpacking source...
>>> Unpacking NVIDIA-Linux-x86-304.88.run to /var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work ...
* Converting /kernel/Makefile.kbuild to use M= instead of SUBDIRS= ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work ...
* Preparing nvidia module
make -j3 HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= ARCH=i386 IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/3.8.13-gentoo/build CC=i686-pc-linux-gnu-gcc clean module
NVIDIA: calling KBUILD...
make -C /lib/modules/3.8.13-gentoo/build \
KBUILD_SRC=/usr/src/linux-3.8.13-gentoo \
KBUILD_EXTMOD="/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel" -f /usr/src/linux-3.8.13-gentoo/Makefile \
modules
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 ; \
/bin/false)

ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

mkdir -p /var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/.tmp_versions ; rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/.tmp_versions/*
make -f /usr/src/linux-3.8.13-gentoo/scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel
(cat /dev/null; echo kernel//var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/nvidia.ko;) > /var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/modules.order
i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/.nv.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/include -I/usr/src/linux-3.8.13-gentoo/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-3.8.13-gentoo/include -Iinclude -I/usr/src/linux-3.8.13-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.8.13-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.8.13-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mno-red-zone -mcmodel=kernel -maccumulate-outgoing-args -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fomit-frame-pointer -DCC_HAVE_ASM_GOTO -I/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.88\" -Wno-unused-function -Wuninitialized -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/nv.c
i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/.nv-acpi.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/include -I/usr/src/linux-3.8.13-gentoo/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-3.8.13-gentoo/include -Iinclude -I/usr/src/linux-3.8.13-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.8.13-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.8.13-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mno-red-zone -mcmodel=kernel -maccumulate-outgoing-args -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fomit-frame-pointer -DCC_HAVE_ASM_GOTO -I/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.88\" -Wno-unused-function -Wuninitialized -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_acpi)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/nv-acpi.o /var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/nv-acpi.c
i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/.nv-chrdev.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/include -I/usr/src/linux-3.8.13-gentoo/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-3.8.13-gentoo/include -Iinclude -I/usr/src/linux-3.8.13-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.8.13-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.8.13-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mno-red-zone -mcmodel=kernel -maccumulate-outgoing-args -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fomit-frame-pointer -DCC_HAVE_ASM_GOTO -I/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.88\" -Wno-unused-function -Wuninitialized -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_chrdev)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/nv-chrdev.o /var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/nv-chrdev.c
/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/nv.c:1:0: error: CPU you selected does not support x86-64 instruction set
make[4]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/nv.o] Error 1
make[4]: *** Waiting for unfinished jobs....
/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/nv-acpi.c:1:0: error: CPU you selected does not support x86-64 instruction set
/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/nv-chrdev.c:1:0: error: CPU you selected does not support x86-64 instruction set
make[4]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/nv-acpi.o] Error 1
make[4]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel/nv-chrdev.o] Error 1
make[3]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
* ERROR: x11-drivers/nvidia-drivers-304.88 failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-304.88'`,
* the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-304.88'`.
* The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/temp/environment'.
* Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel'
* S: '/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/'


thanks for your watching,guys. i will appreciate your help... :o
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Wed Jul 17, 2013 5:45 pm    Post subject: Reply with quote

You need kernel sources in /usr/src . Make sure they are installed and configured. :wink:
_________________
http://phajdan-jr.blogspot.com/
Back to top
View user's profile Send private message
foxprodos
n00b
n00b


Joined: 12 Jun 2013
Posts: 25

PostPosted: Thu Jul 18, 2013 2:23 am    Post subject: Reply with quote

phajdan.jr wrote:
You need kernel sources in /usr/src . Make sure they are installed and configured. :wink:


Do you mean my kernel sources is also have files missed?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Thu Jul 18, 2013 2:48 am    Post subject: Reply with quote

run
Code:
ls /usr/src/linux
and find out
sudo rm -r /usr should have removed every directory and file under and including /usr one at a time asking you each time if you wanted to remove
_________________
Defund the FCC.
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Thu Jul 18, 2013 9:14 am    Post subject: Reply with quote

Fixing up your /usr, even in small bits, should not be too hard to do; you can run and continue any time you feel like your /usr should be fixed up further. For the sake of integrity, let the whole thing run.

emerge app-portage/portage-utils
for p in $(grep --include='CONTENTS' -r '^\(dir\|obj\|sym\) /usr' /var/db/pkg | sed 's:/var/db/pkg/\(.*\)/CONTENTS\:.*:\1:g' | uniq) ; do qcheck -Bp --skip-protected ${p} ; done | emerge -1

If you want to see which packages it would do, remove | emerge -1 at the end.
Back to top
View user's profile Send private message
Gentling
n00b
n00b


Joined: 21 Jul 2012
Posts: 16

PostPosted: Fri Jul 19, 2013 2:02 am    Post subject: Reply with quote

Keep in mind any version of kernel sources will work (ok, well it might not if you were to emerge some ancient kernel sources, I'm not sure) it's just it has to be your current version if you're going to recompile your kernel (if you're like me you'll forget something important, necessitating a redo).

This will bring in the newest sources
Code:
emerge gentoo-sources

Or you can bring in your current kernel version
Code:
emerge gentoo-sources-version

It might be a good idea to protect your sources when you emerge, putting them in the world file
Code:
emerge --noreplace gentoo-sources-version

One more thing to be wary of is emerge --depclean will remove your sources unless they're proteced
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum