View previous topic :: View next topic |
Author |
Message |
foxprodos n00b
Joined: 12 Jun 2013 Posts: 25
|
Posted: Wed Jul 17, 2013 4:00 pm Post subject: nvidia-drivers error. |
|
|
here is the thing. a few days ago, i typed 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 * [39;49;00mPackage: x11-drivers/nvidia-drivers-304.88
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: jer@gentoo.org xarthisius@gentoo.org
[32;01m * [39;49;00mUSE: X abi_x86_32 acpi consolekit elibc_glibc kernel_linux policykit tools userland_GNU x86
[32;01m * [39;49;00mFEATURES: preserve-libs sandbox
[32;01m*[0m Determining the location of the kernel source code
[32;01m*[0m Found kernel source directory:
[32;01m*[0m /usr/src/linux
[32;01m*[0m Found kernel object directory:
[32;01m*[0m /lib/modules/3.8.13-gentoo/build
[32;01m*[0m Found sources for kernel version:
[32;01m*[0m 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 ...
[32;01m*[0m Converting /kernel/Makefile.kbuild to use M= instead of SUBDIRS= ...
[A[61C [34;01m[ [32;01mok[34;01m ][0m
>>> 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 ...
[32;01m*[0m 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
[31;01m*[0m ERROR: x11-drivers/nvidia-drivers-304.88 failed (compile phase):
[31;01m*[0m emake failed
[31;01m*[0m
[31;01m*[0m If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-304.88'`,
[31;01m*[0m the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-304.88'`.
[31;01m*[0m The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/temp/environment'.
[31;01m*[0m Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/kernel'
[31;01m*[0m S: '/var/tmp/portage/x11-drivers/nvidia-drivers-304.88/work/' |
thanks for your watching,guys. i will appreciate your help... |
|
Back to top |
|
|
phajdan.jr Retired Dev
Joined: 23 Mar 2006 Posts: 1777 Location: Poland
|
Posted: Wed Jul 17, 2013 5:45 pm Post subject: |
|
|
You need kernel sources in /usr/src . Make sure they are installed and configured. _________________ http://phajdan-jr.blogspot.com/ |
|
Back to top |
|
|
foxprodos n00b
Joined: 12 Jun 2013 Posts: 25
|
Posted: Thu Jul 18, 2013 2:23 am Post subject: |
|
|
phajdan.jr wrote: | You need kernel sources in /usr/src . Make sure they are installed and configured. |
Do you mean my kernel sources is also have files missed? |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Jul 18, 2013 2:48 am Post subject: |
|
|
run 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 |
|
|
TomWij Retired Dev
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Thu Jul 18, 2013 9:14 am Post subject: |
|
|
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 |
|
|
Gentling n00b
Joined: 21 Jul 2012 Posts: 16
|
Posted: Fri Jul 19, 2013 2:02 am Post subject: |
|
|
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 |
|
|
|