Gentoo Archives: gentoo-user

From: KIM WHALEN <dhkuhl@×××××××××.net>
To: gentoo-user@l.g.o
Cc: gentoo-user@l.g.o
Subject: RE: [gentoo-user] Re: New Install Problems with X
Date: Thu, 06 Jan 2011 18:40:24
Message-Id: 29381260.980408.1294339120988.JavaMail.dhkuhl@mail.srv.lgcyny1.cv.net
1 On Wed, Jan 5, 2011 at 6:25 PM, walt wrote:
2
3 > On 01/05/2011 06:41 AM, KIM WHALEN wrote:
4 >> On Wed, Jan 5, 2011 at 8:56 AM, walt wrote:
5 >>
6 >>> On 01/04/2011 08:10 AM, KIM WHALEN wrote:
7 >>>> I'm trying to do a new install on an amd64 box and there are a lot
8 >>>> of problems somewhere between X, Gnome, and the Graphics card. I'm
9 >>>> using genkernel so there shouldn't be too much of a problem there.
10 >>>>
11 >>>> The graphics card as identified by the system is: nVidia
12 >>>> Corporation NV36 [GeForce FX 5700LE]
13 >>>>
14 >>>> The base system and xorg-x11 seems to be set up alright. However,
15 >>>> when I run startx as a regular
16 >>>> user I get errors about drm, dri, and dri2 modules and the screen.
17 >>>
18 >>> Those drm and dri error messages are normal when using the nvidia
19 >>> drivers, but the screen
20 >>> error is not normal. What does it say, exactly? Did you generate
21 >>> your xorg.conf by doing
22 >>> Xorg -configure? Are you using an xorg.conf file at all?
23 >>>
24 >>> The nouveau driver is not nearly ready for prime time yet, so I'd
25 >>> stick with nivida-drivers
26 >>> at least until you have everything else working.
27 >
28 >> I am not using the xorg.conf file
29 >
30 > That's fine for starters. You may need to add one later if your mouse
31 > or keyboard don't work.
32 > (BTW, you need to emerge the xf86-input-evdev driver for the mouse and
33 > keyboard if you don't
34 > have an xorg.conf).
35 >
36 >> (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jan 5 09:03:31 2011
37 >> List of video drivers:
38 >> nouveau
39 >> nvidia
40 >> FATAL: Error inserting nvidia
41 >> (/lib/modules/2.6.36-gentoo-r5/video/nvidia.ko): No such device
42 >
43 > That's definitely a problem. The "no such device" is a bit ambiguous.
44 > I'm thinking maybe
45 > the nouveau and nvidia drivers are fighting with each other, so
46 > neither one can get full
47 > control of the video hardware.
48 >
49 > IIRC, if you build the nouveau driver into your kernel, it *will*
50 > conflict with the nvidia
51 > kernel module. I keep two different kernel config files, one with
52 > nouveau, and the other
53 > without nouveau for use with the nvidia.ko module.
54 >
55 > Definitely build a kernel without nouveau at least until you get
56 > everything else working --
57 > and then *re*emerge nividia-drivers after you boot the new kernel.
58 > (Compiling/installing
59 > a new kernel will delete all of your existing kernel modules including
60 > nvidia.ko!)
61
62 I already had the xf86-input-evdev driver installed. I could find
63 anything to take out of the kernel, but added nVidia Framebuffer
64 Support.
65 Device Drivers
66 +> Graphics Support
67 +> Support for Framebuffer Devices
68 +> nVidia Framebuffer Support
69
70 Then I "emerge x11-drivers/nvidia-drivers". That, unfortunately, didn't
71 help; it failed to emerge and the output is below.
72 # emerge x11-drivers/nvidia-drivers
73 Calculating dependencies... done!
74 >>> Verifying ebuild manifests
75 >>> Emerging (1 of 1) x11-drivers/nvidia-drivers-260.19.29
76 >>> Failed to emerge x11-drivers/nvidia-drivers-260.19.29, Log file:
77 >>>
78 >>> '/var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/temp/build.log'
79 >>> Jobs: 0 of 1 complete, 1 failed Load avg: 0.43,
80 >>> 0.13, 0.04
81 * Package: x11-drivers/nvidia-drivers-260.19.29
82 * Repository: gentoo
83 * Maintainer: cardoe@g.o jer@g.o,spock@g.o
84 * USE: amd64 elibc_glibc gtk kernel_linux multilib userland_GNU
85 * Determining the location of the kernel source code
86 * Found kernel source directory:
87 * /usr/src/linux
88 * Found kernel object directory:
89 * /lib/modules/2.6.36-gentoo-r5/build
90 * Found sources for kernel version:
91 * 2.6.36-gentoo-r5
92 * Checking for MTRR support ...
93 [ ok ]
94 * ***** WARNING *****
95 *
96 * You are currently installing a version of nvidia-drivers that is
97 * known not to work with a video card you have installed on your
98 * system. If this is intentional, please ignore this. If it is not
99 * please perform the following steps:
100 *
101 * Add the following mask entry to /etc/portage/package.mask by
102 * echo ">=x11-drivers/nvidia-drivers-177.0.0" >>
103 /etc/portage/package.mask
104 *
105 * Failure to perform the steps above could result in a non-working
106 * X setup.
107 *
108 * For more information please read:
109 * http://www.nvidia.com/object/IO_32667.html
110 >>> Unpacking source...
111 >>> Unpacking NVIDIA-Linux-x86_64-260.19.29.run to
112 >>> /var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/work
113 >>> Source unpacked in
114 >>> /var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/work
115 >>> Preparing source in
116 >>> /var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/work ...
117 * Applying 256.35-unified-arch.patch ...
118 [ ok ]
119 * Converting /kernel/Makefile.kbuild to use M= instead of SUBDIRS= ...
120 [ ok ]
121 >>> Source prepared.
122 >>> Configuring source in
123 >>> /var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/work ...
124 >>> Source configured.
125 >>> Compiling source in
126 >>> /var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/work ...
127 * Preparing nvidia module
128 make -j2 HOSTCC=x86_64-pc-linux-gnu-gcc
129 CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1
130 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.36-gentoo-r5/build
131 HOST_CC=x86_64-pc-linux-gnu-gcc clean module
132 Your kernel was configured to include nvidiafb support!
133
134 The nvidiafb driver conflicts with the NVIDIA driver, please
135 reconfigure your kernel and *disable* nvidiafb support, then
136 try installing the NVIDIA kernel module again.
137
138 *** Failed nvidiafb sanity check. Bailing out! ***
139
140 make[1]: *** [build-sanity-checks] Error 1
141 make: *** [module] Error 2
142 emake failed
143 * ERROR: x11-drivers/nvidia-drivers-260.19.29 failed:
144 * Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc
145 CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1
146 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.36-gentoo-r5/build
147 HOST_CC=x86_64-pc-linux-gnu-gcc clean module
148 *
149 * Call stack:
150 * ebuild.sh, line 56: Called src_compile
151 * environment, line 4183: Called linux-mod_src_compile
152 * environment, line 3084: Called die
153 * The specific snippet of code:
154 * eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"
155 CROSS_COMPILE=${CHOST}- LDFLAGS=\"$(get_abi_LDFLAGS)\"
156 ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable
157 to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}-
158 LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS}
159 ${BUILD_TARGETS}";
160 *
161 * If you need support, post the output of 'emerge --info
162 =x11-drivers/nvidia-drivers-260.19.29',
163 * the complete build log and the output of 'emerge -pqv
164 =x11-drivers/nvidia-drivers-260.19.29'.
165 * The complete build log is located at
166 '/var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/temp/build.log'.
167 * The ebuild environment file is located at
168 '/var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/temp/environment'.
169 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/work/'
170
171 * Messages for package x11-drivers/nvidia-drivers-260.19.29:
172
173 * ***** WARNING *****
174 *
175 * You are currently installing a version of nvidia-drivers that is
176 * known not to work with a video card you have installed on your
177 * system. If this is intentional, please ignore this. If it is not
178 * please perform the following steps:
179 *
180 * Add the following mask entry to /etc/portage/package.mask by
181 * echo ">=x11-drivers/nvidia-drivers-177.0.0" >>
182 /etc/portage/package.mask
183 *
184 * Failure to perform the steps above could result in a non-working
185 * X setup.
186 *
187 * For more information please read:
188 * http://www.nvidia.com/object/IO_32667.html
189 * ERROR: x11-drivers/nvidia-drivers-260.19.29 failed:
190 * Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc
191 CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1
192 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.36-gentoo-r5/build
193 HOST_CC=x86_64-pc-linux-gnu-gcc clean module
194 *
195 * Call stack:
196 * ebuild.sh, line 56: Called src_compile
197 * environment, line 4183: Called linux-mod_src_compile
198 * environment, line 3084: Called die
199 * The specific snippet of code:
200 * eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"
201 CROSS_COMPILE=${CHOST}- LDFLAGS=\"$(get_abi_LDFLAGS)\"
202 ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable
203 to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}-
204 LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS}
205 ${BUILD_TARGETS}";
206 *
207 * If you need support, post the output of 'emerge --info
208 =x11-drivers/nvidia-drivers-260.19.29',
209 * the complete build log and the output of 'emerge -pqv
210 =x11-drivers/nvidia-drivers-260.19.29'.
211 * The complete build log is located at
212 '/var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/temp/build.log'.
213 * The ebuild environment file is located at
214 '/var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/temp/environment'.
215 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-260.19.29/work/'