On Thu, Jan 6, 2011 at 1:38 PM, KIM WHALEN wrote:

On Wed, Jan 5, 2011 at 6:25 PM, walt wrote:

On 01/05/2011 06:41 AM, KIM WHALEN wrote:
On Wed, Jan 5, 2011 at 8:56 AM, walt wrote:

On 01/04/2011 08:10 AM, KIM WHALEN wrote:
I'm trying to do a new install on an amd64 box and there are a lot of problems somewhere between X, Gnome, and the Graphics card. I'm using genkernel so there shouldn't be too much of a problem there.

The graphics card as identified by the system is: nVidia Corporation NV36 [GeForce FX 5700LE]

The base system and xorg-x11 seems to be set up alright. However, when I run startx as a regular
user I get errors about drm, dri, and dri2 modules and the screen.

Those drm and dri error messages are normal when using the nvidia drivers, but the screen error is not normal. What does it say, exactly? Did you generate your xorg.conf by doing
Xorg -configure? Are you using an xorg.conf file at all?

The nouveau driver is not nearly ready for prime time yet, so I'd stick with nivida-drivers
at least until you have everything else working.

I am not using the xorg.conf file

That's fine for starters. You may need to add one later if your mouse or keyboard don't work. (BTW, you need to emerge the xf86-input-evdev driver for the mouse and keyboard if you don't
have an xorg.conf).

(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jan 5 09:03:31 2011
List of video drivers:
nouveau
nvidia
FATAL: Error inserting nvidia (/lib/modules/2.6.36-gentoo-r5/video/nvidia.ko): No such device

That's definitely a problem. The "no such device" is a bit ambiguous. I'm thinking maybe the nouveau and nvidia drivers are fighting with each other, so neither one can get full
control of the video hardware.

IIRC, if you build the nouveau driver into your kernel, it *will* conflict with the nvidia kernel module. I keep two different kernel config files, one with nouveau, and the other
without nouveau for use with the nvidia.ko module.

Definitely build a kernel without nouveau at least until you get everything else working -- and then *re*emerge nividia-drivers after you boot the new kernel. (Compiling/installing a new kernel will delete all of your existing kernel modules including nvidia.ko!)

I already had the xf86-input-evdev driver installed. I could find anything to take out of the kernel, but added nVidia Framebuffer Support.
Device Drivers
 +> Graphics Support
         +> Support for Framebuffer Devices
                +> nVidia Framebuffer Support

Then I "emerge x11-drivers/nvidia-drivers". That, unfortunately, didn't help; it failed to emerge and the output is below.
# emerge x11-drivers/nvidia-drivers
Calculating dependencies... done!
Verifying ebuild manifests
Emerging (1 of 1) x11-drivers/nvidia-drivers-260.19.29
Failed to emerge x11-drivers/nvidia-drivers-260.19.29, Log file:


'/var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/temp/build.log'
Jobs: 0 of 1 complete, 1 failed Load avg: 0.43, 0.13, 0.04
 * Package:    x11-drivers/nvidia-drivers-260.19.29
 * Repository: gentoo
 * Maintainer: car...@gentoo.org j...@gentoo.org,sp...@gentoo.org
 * USE:  amd64 elibc_glibc gtk kernel_linux multilib userland_GNU
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.36-gentoo-r5/build
 * Found sources for kernel version:
 *     2.6.36-gentoo-r5
 * Checking for MTRR support ...
 [ ok ]
 * ***** WARNING *****
 *
 * You are currently installing a version of nvidia-drivers that is
 * known not to work with a video card you have installed on your
 * system. If this is intentional, please ignore this. If it is not
 * please perform the following steps:
 *
 * Add the following mask entry to /etc/portage/package.mask by
* echo ">=x11-drivers/nvidia-drivers-177.0.0" >> /etc/portage/package.mask
 *
 * Failure to perform the steps above could result in a non-working
 * X setup.
 *
 * For more information please read:
 * http://www.nvidia.com/object/IO_32667.html
Unpacking source...
Unpacking NVIDIA-Linux-x86_64-260.19.29.run to /var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/work Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/work Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/work ...
 * Applying 256.35-unified-arch.patch ...
 [ ok ]
* Converting /kernel/Makefile.kbuild to use M= instead of SUBDIRS= ...
 [ ok ]
Source prepared.
Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/work ...
Source configured.
Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/work ...
 * Preparing nvidia module
make -j2 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=/lib/modules/2.6.36-gentoo-r5/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
Your kernel was configured to include nvidiafb support!

The nvidiafb driver conflicts with the NVIDIA driver, please
reconfigure your kernel and *disable* nvidiafb support, then
try installing the NVIDIA kernel module again.

*** Failed nvidiafb sanity check. Bailing out! ***

make[1]: *** [build-sanity-checks] Error 1
make: *** [module] Error 2
emake failed
 * ERROR: x11-drivers/nvidia-drivers-260.19.29 failed:
* Unable to emake 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=/lib/modules/2.6.36-gentoo-r5/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4183:  Called linux-mod_src_compile
 *   environment, line 3084:  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-260.19.29', * the complete build log and the output of 'emerge -pqv =x11-drivers/nvidia-drivers-260.19.29'. * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/temp/environment'.
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/work/'

 * Messages for package x11-drivers/nvidia-drivers-260.19.29:

 * ***** WARNING *****
 *
 * You are currently installing a version of nvidia-drivers that is
 * known not to work with a video card you have installed on your
 * system. If this is intentional, please ignore this. If it is not
 * please perform the following steps:
 *
 * Add the following mask entry to /etc/portage/package.mask by
* echo ">=x11-drivers/nvidia-drivers-177.0.0" >> /etc/portage/package.mask
 *
 * Failure to perform the steps above could result in a non-working
 * X setup.
 *
 * For more information please read:
 * http://www.nvidia.com/object/IO_32667.html
 * ERROR: x11-drivers/nvidia-drivers-260.19.29 failed:
* Unable to emake 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=/lib/modules/2.6.36-gentoo-r5/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4183:  Called linux-mod_src_compile
 *   environment, line 3084:  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-260.19.29', * the complete build log and the output of 'emerge -pqv =x11-drivers/nvidia-drivers-260.19.29'. * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/temp/environment'.

Sorry, I did
# echo ">=x11-drivers/nvidia-drivers-177.0.0" >> /etc/portage/package.mask
first then tried it again and got the following error.
# emerge x11-drivers/nvidia-driversCalculating dependencies... done!
Verifying ebuild manifests
Starting parallel fetch
Emerging (1 of 2) app-emulation/emul-linux-x86-opengl-20100915
Installing (1 of 2) app-emulation/emul-linux-x86-opengl-20100915
Emerging (2 of 2) x11-drivers/nvidia-drivers-173.14.28
Failed to emerge x11-drivers/nvidia-drivers-173.14.28, Log file:

'/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.28/temp/build.log'
Jobs: 1 of 2 complete, 1 failed Load avg: 0.30, 0.14, 0.05
 * Package:    x11-drivers/nvidia-drivers-173.14.28
 * Repository: gentoo
 * Maintainer: car...@gentoo.org j...@gentoo.org,sp...@gentoo.org
 * USE:  amd64 elibc_glibc gtk kernel_linux multilib userland_GNU
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.36-gentoo-r5/build
 * Found sources for kernel version:
 *     2.6.36-gentoo-r5
 * Checking for MTRR support ...
 [ ok ]
Unpacking source...
Unpacking NVIDIA-Linux-x86_64-173.14.28-pkg2.run to /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.28/work/NVIDIA-Linux-x86_64-173.14.28-pkg2 Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.28/work Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.28/work/NVIDIA-Linux-x86_64-173.14.28-pkg2 ...
 * Applying NVIDIA_glx-defines.patch ...
 [ ok ]
 * Applying NVIDIA_glx-glheader.patch ...
 [ ok ]
* Converting NVIDIA-Linux-x86_64-173.14.28-pkg2/usr/src/nv/Makefile.kbuild to use M= instead of SUBDIRS= ...
 [ ok ]
Source prepared.
Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.28/work/NVIDIA-Linux-x86_64-173.14.28-pkg2 ...
Source configured.
Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.28/work/NVIDIA-Linux-x86_64-173.14.28-pkg2 ...
 * Preparing nvidia module
make -j2 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=/lib/modules/2.6.36-gentoo-r5/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
Your kernel was configured to include nvidiafb support!

The nvidiafb driver conflicts with the NVIDIA driver, please
reconfigure your kernel and *disable* nvidiafb support, then
try installing the NVIDIA kernel module again.

*** Failed nvidiafb sanity check. Bailing out! ***

make[1]: *** [build-sanity-checks] Error 1
make: *** [module] Error 2
emake failed
 * ERROR: x11-drivers/nvidia-drivers-173.14.28 failed:
* Unable to emake 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=/lib/modules/2.6.36-gentoo-r5/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4141:  Called linux-mod_src_compile
 *   environment, line 3051:  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-173.14.28', * the complete build log and the output of 'emerge -pqv =x11-drivers/nvidia-drivers-173.14.28'. * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.28/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.28/temp/environment'. * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.28/work/NVIDIA-Linux-x86_64-173.14.28-pkg2'

 * Messages for package x11-drivers/nvidia-drivers-173.14.28:

 * ERROR: x11-drivers/nvidia-drivers-173.14.28 failed:
* Unable to emake 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=/lib/modules/2.6.36-gentoo-r5/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4141:  Called linux-mod_src_compile
 *   environment, line 3051:  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-173.14.28', * the complete build log and the output of 'emerge -pqv =x11-drivers/nvidia-drivers-173.14.28'. * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.28/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.28/temp/environment'. * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.28/work/NVIDIA-Linux-x86_64-173.14.28-pkg2'

 * GNU info directory index is up-to-date.

 * IMPORTANT: config file '/etc/conf.d/clock' needs updating.

 * IMPORTANT: config file '/etc/rc.conf' needs updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.


 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/work/'

Reply via email to