e3k Guru
Joined: 01 Oct 2007 Posts: 513 Location: Inner Space
|
Posted: Wed Oct 31, 2012 9:50 am Post subject: cant emerge nvdia-drivers because of a xen kernel? |
|
|
i did emerge the new 3.5.7 kernel. did change the CFFLAGS to:
Code: | CFLAGS="-O2 -pipe -march=bdver1 -mno-movbe -mno-fma -mno-bmi -mno-tbm --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=bdver1" |
when i do emerge nvidia-drivers i get an error: The kernel you are installing for is a Xen kernel!
Code: | # emerge nvidia-drivers
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-295.75
* NVIDIA-Linux-x86_64-295.75.run SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/3.5.7-gentoo/build
* Found sources for kernel version:
* 3.5.7-gentoo
* Checking for MTRR support ... [ ok ]
>>> Unpacking source...
>>> Unpacking NVIDIA-Linux-x86_64-295.75.run to /var/tmp/portage/x11-drivers/nvidia-drivers-295.75/work
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-295.75/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-295.75/work ...
* Converting /kernel/Makefile.kbuild to use M= instead of SUBDIRS= ... [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-295.75/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-295.75/work ...
* Preparing nvidia module
make -j9 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' ARCH=x86_64 IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/3.5.7-gentoo/build CC=x86_64-pc-linux-gnu-gcc clean module
The kernel you are installing for is a Xen kernel!
The NVIDIA driver does not currently work on Xen kernels. If
you are using a stock distribution kernel, please install
a variant of this kernel without Xen support; if this is a
custom kernel, please install a standard Linux kernel. Then
try installing the NVIDIA kernel module again.
*** Failed Xen sanity check. Bailing out! ***
make[1]: *** [build-sanity-checks] Error 1
make: *** [module] Error 2
emake failed
* ERROR: x11-drivers/nvidia-drivers-295.75 failed (compile phase):
* Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=-m elf_x86_64 ARCH=x86_64 IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/3.5.7-gentoo/build CC=x86_64-pc-linux-gnu-gcc clean module
*
* Call stack:
* ebuild.sh, line 85: Called src_compile
* environment, line 3924: Called linux-mod_src_compile
* environment, line 2811: Called die
* The specific snippet of code:
* eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" CROSS_COMPILE=${CHOST}- LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
*
* If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-295.75'`,
* the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-295.75'`.
* The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-295.75/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-295.75/temp/environment'.
* Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-295.75/work/kernel'
* S: '/var/tmp/portage/x11-drivers/nvidia-drivers-295.75/work/'
>>> Failed to emerge x11-drivers/nvidia-drivers-295.75, Log file:
>>> '/var/tmp/portage/x11-drivers/nvidia-drivers-295.75/temp/build.log'
* Messages for package x11-drivers/nvidia-drivers-295.75:
* ERROR: x11-drivers/nvidia-drivers-295.75 failed (compile phase):
* Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=-m elf_x86_64 ARCH=x86_64 IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/3.5.7-gentoo/build CC=x86_64-pc-linux-gnu-gcc clean module
*
* Call stack:
* ebuild.sh, line 85: Called src_compile
* environment, line 3924: Called linux-mod_src_compile
* environment, line 2811: Called die
* The specific snippet of code:
* eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" CROSS_COMPILE=${CHOST}- LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
*
* If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-295.75'`,
* the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-295.75'`.
* The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-295.75/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-295.75/temp/environment'.
* Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-295.75/work/kernel'
* S: '/var/tmp/portage/x11-drivers/nvidia-drivers-295.75/work/' |
but xen kernel is not enabled in my .config.
when i go back to CFLAGS="-O2 -pipe -march=native" recompile kernel, i can emerge nvidia-drivers without problem.
the upper CFFLAGS are taken from http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD#FX-8xxx.2F6xxx.2F4xxx_.28Bulldozer.29 _________________
Flux & Contemplation - Portrait of an Artist in Isolation
|
|