View previous topic :: View next topic |
Author |
Message |
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
Posted: Tue Mar 05, 2013 10:31 pm Post subject: |
|
|
package.use should look like:
Code: | x11-base/xorg-server udev
x11-libs/libdrm -libkms |
Each package and the use flags you activate go on a Separate line.
Please repost:
Code: | emerge -pv nvidia-kernel && emerge -v nvidia-kernel
uname -a |
_________________ The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper |
|
Back to top |
|
|
Jblue n00b
Joined: 28 Feb 2013 Posts: 35
|
Posted: Wed Mar 06, 2013 1:24 am Post subject: |
|
|
Fixed package.use, rebooted, and emerge nvidia-drivers failed again, same errors as before:
Quote: |
*** Unable to determine the target kernel version. ***
make: *** [select_makefile] Error 1
* ERROR: x11-drivers/nvidia-drivers-313.18 failed (compile phase):
* emake failed
|
complete output: http://bpaste.net/show/81761/
and on emerge -pv nvidia-drivers, can see output here: http://bpaste.net/show/81762/
Checked and /etc/portage/package.use has:
Quote: |
x11-base/xorg-server udev
x11-libs/libdrm -libkms
|
uname -a: 3.7.9-gentoo #1 SMP .... x86_64 Intel(R) Core(TM)2 cpu 6300 @ 1.86ghz GenuineIntel GNU/Linux |
|
Back to top |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
Posted: Wed Mar 06, 2013 1:33 am Post subject: |
|
|
Jblue wrote: | uname -a: 3.7.9-gentoo #1 SMP .... x86_64 Intel(R) Core(TM)2 cpu 6300 @ 1.86ghz GenuineIntel GNU/Linux |
This is WRONG?!? What happened to 3.6.11-r1?
Post the output of:
Code: | emerge -Cp sys-kernel/gentoo-sources
eselect kernel list
eselect kernel set <insert number for 3.6.11-r1 here>
|
If and ONLY if kernel = 3.6.11-r1
Code: | genkernel --menuconfig --clean --mountboot all |
_________________ The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper |
|
Back to top |
|
|
Jblue n00b
Joined: 28 Feb 2013 Posts: 35
|
Posted: Wed Mar 06, 2013 4:29 am Post subject: |
|
|
emerge -Cp sys-kernel/gentoo-sources
Quote: |
* This action can remove important packages! In order to be safer, use
* `emerge -pv --depclean <atom>` to check for reverse dependencies before
* removing packages.
>>> These are the packages that would be unmerged:
sys-kernel/gentoo-sources
selected: 3.6.11-r1 3.7.9 3.7.10
protected: none
omitted: none
All selected packages: sys-kernel/gentoo-sources-3.6.11-r1 sys-kernel/gentoo-sources-3.7.9 sys-kernel/gentoo-sources-3.7.10
>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.
|
eselect kernel list
Quote: |
Available kernel symlink targets:
[1] linux-3.6.11-gentoo-r1
[2] linux-3.7.9-gentoo *
[3] linux-3.7.10-gentoo
|
changed to [1], and now
Quote: |
Available kernel symlink targets:
[1] linux-3.6.11-gentoo-r1 *
[2] linux-3.7.9-gentoo
[3] linux-3.7.10-gentoo
|
okay, running 'genkernel --menuconfig --clean --mountboot all'.
and after reboot,
uname -a still gives 3.7.9-gentoo.
editing /boot/grub/grub.conf, and rebooting
okay, now uname -a gives 3.6.11-gentoo-r1
Trying
Code: |
emerge -pv nvidia-drivers
|
Quote: |
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild N ~] x11-drivers/nvidia-drivers-313.18 USE="X acpi (multilib) tools -pax_kernel" 0 kB
|
now doing
Code: |
emerge -v nvidia-drivers
|
--> looks like that worked alright. output: bpaste.net/show/81795/
now
Code: |
eselect opengl set nvidia
|
and rebooting...
now trying
Code: |
emerge -e --keep-going system
|
and I get
Quote: |
The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
#required by media-libs/mesa-9.0.1[-gbm,xorg], required by x11-base/xorg-server-1.13.1[-minimal], required by x11-drivers/nvidia-drivers-313.18[X], required by x11-base/xorg-drivers-1.13[video_cards_nvidia]
=x11-libs/libdrm-2.4.40 libkms
|
so it looks like we need mesa and libkms, which won't emerge (mesa) and we took out (libkms)...
so I tried emerge'ing mesa and I see that libkms is necessary for that too...
on doing 'nvidia-xconfig' I get:
Quote: |
WARNING: Unable to locate/open X configuration file.
New X configuration file written to '/etc/X11/xorg.conf'
|
then on reboot I get the funky login screen that won't log me in. So it looks like X is working somewhat. startx gives me a few terminal windows as well.
And what do we do now? |
|
Back to top |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
|
Back to top |
|
|
Jblue n00b
Joined: 28 Feb 2013 Posts: 35
|
Posted: Wed Mar 06, 2013 4:53 am Post subject: |
|
|
/etc/portage/make.conf:
Quote: |
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="bindist mmx sse sse2 X dbus consolekit policykit udev udisks bzip2 ipv6 truetype nptl suid xorg libkms minizip"
VIDEO_CARDS="nvidia nv"
#VIDEO_CARDS="nouveau"
INPUT_DEVICES="evdev"
|
emerge -pv mesa xorg-server nvidia-drivers libdrm
-->bpaste.net/show/81801/ |
|
Back to top |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
|
Back to top |
|
|
Jblue n00b
Joined: 28 Feb 2013 Posts: 35
|
|
Back to top |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
Posted: Wed Mar 06, 2013 5:24 am Post subject: |
|
|
Code: | nano -w /etc/make.conf |
Remove the USE= line after taking note of the flags you have there. An Easy way to do this is to Comment it out, like so:
#USE="bindist mmx sse sse2 X dbus consolekit policykit udev udisks bzip2 ipv6 truetype nptl suid xorg libkms minizip"
Then repost:
Code: | eselect profile list
emerge -C sys-kernel/gentoo-sources-3.7.10
emerge -pvuDN world |
Make sure profile is set to 13/desktop/kde
By Commenting out USE we are forcing your System to rebuild itself using only the flags inherited from your profile that we set/verified above. Your base still isn't clean We are almost there though _________________ The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper |
|
Back to top |
|
|
Jblue n00b
Joined: 28 Feb 2013 Posts: 35
|
|
Back to top |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
Posted: Wed Mar 06, 2013 5:50 am Post subject: |
|
|
Code: | emerge -C sys-kernel/gentoo-sources-3.7.9
emerge -pvuDN world |
After I approve this paste, remove the p:
, and we are both off to bed... I'll show you how to add all your flags back and more, with an interesting old tool, but we need to rebuild these 1st. In case you couldn't tell I APPROVE. Get to building these _________________ The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Last edited by eyoung100 on Wed Mar 06, 2013 5:56 am; edited 1 time in total |
|
Back to top |
|
|
Jblue n00b
Joined: 28 Feb 2013 Posts: 35
|
|
Back to top |
|
|
Jblue n00b
Joined: 28 Feb 2013 Posts: 35
|
Posted: Wed Mar 06, 2013 6:02 am Post subject: |
|
|
okay, it's going. Wow, it's been a long day. Thanks for sticking with it all this time. Talk to you tomorrow |
|
Back to top |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
Posted: Wed Mar 06, 2013 6:03 am Post subject: |
|
|
Code: | ls -al /usr/src/
rm -vR /usr/src/<insert Directory Name for 3.7.9 sources here> should be linux-3.7.9-gentoo
emerge -vuDN world |
I approve, and v is for verbose R is for Recursive _________________ The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper |
|
Back to top |
|
|
Jblue n00b
Joined: 28 Feb 2013 Posts: 35
|
Posted: Wed Mar 06, 2013 3:27 pm Post subject: |
|
|
emerge -vuDN world
Quote: |
Making all in mesa
gmake[2]: Entering directory `/var/tmp/portage/media-libs/mesa-9.0.1/work/Mesa-9.0.1/src/mesa'
GEN main/api_exec_es1_dispatch.h
GEN main/api_exec_es1_remap_helper.h
GEN main/api_exec_es1.c
Error: unable to dicide the max size of params in Fogxv
Error: unable to dicide the max size of params in GetLightxv
Error: unable to dicide the max size of params in GetMaterialxv
Error: unable to dicide the max size of params in GetTexEnvxv
Error: unable to dicide the max size of params in GetTexGenivOES
No base converter for type 'GLint' found. Ignoring.
Error: unable to dicide the max size of params in GetTexGenxvOES
Error: unable to dicide the max size of params in GetTexParameterxv
Error: unable to dicide the max size of params in LightModelxv
Error: unable to dicide the max size of params in Lightxv
Error: unable to dicide the max size of params in Materialxv
Error: unable to dicide the max size of params in PointParameterxv
Error: unable to dicide the max size of params in TexEnvxv
No base converter for type 'GLint' found. Ignoring.
Error: unable to dicide the max size of params in TexGenivOES
No base converter for type 'GLint' found. Ignoring.
Error: unable to dicide the max size of params in TexGenxvOES
Error: unable to dicide the max size of params in TexParameterxv
|
complete output [28MB]: http://www.mediafire.com/?gcgxv0zr38qugvv
Not sure if I should continue with rm -vR /usr/src/linux-3.7.9-gentoo yet...
gotta run, and will be away from comps all morning, and will get back this afternoon. Thanks e |
|
Back to top |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
Posted: Wed Mar 06, 2013 3:49 pm Post subject: |
|
|
Jblue wrote: | emerge -vuDN world
Quote: |
Making all in mesa
gmake[2]: Entering directory `/var/tmp/portage/media-libs/mesa-9.0.1/work/Mesa-9.0.1/src/mesa'
GEN main/api_exec_es1_dispatch.h
GEN main/api_exec_es1_remap_helper.h
GEN main/api_exec_es1.c
Error: unable to dicide the max size of params in Fogxv
Error: unable to dicide the max size of params in GetLightxv
Error: unable to dicide the max size of params in GetMaterialxv
Error: unable to dicide the max size of params in GetTexEnvxv
Error: unable to dicide the max size of params in GetTexGenivOES
No base converter for type 'GLint' found. Ignoring.
Error: unable to dicide the max size of params in GetTexGenxvOES
Error: unable to dicide the max size of params in GetTexParameterxv
Error: unable to dicide the max size of params in LightModelxv
Error: unable to dicide the max size of params in Lightxv
Error: unable to dicide the max size of params in Materialxv
Error: unable to dicide the max size of params in PointParameterxv
Error: unable to dicide the max size of params in TexEnvxv
No base converter for type 'GLint' found. Ignoring.
Error: unable to dicide the max size of params in TexGenivOES
No base converter for type 'GLint' found. Ignoring.
Error: unable to dicide the max size of params in TexGenxvOES
Error: unable to dicide the max size of params in TexParameterxv
|
complete output [28MB]: http://www.mediafire.com/?gcgxv0zr38qugvv
Not sure if I should continue with rm -vR /usr/src/linux-3.7.9-gentoo yet...
gotta run, and will be away from comps all morning, and will get back this afternoon. Thanks e |
Get used to those, that's normal, just looked at your outfile, and saw:
Quote: | >>> Installing (26 of 26) net-misc/openssh-5.9_p1-r4 |
which means it finished successfully. The only thing we need to worry about now (if you want to use KDE, while rebuilding it) is making sure KDE starts:
Quote: | * WARNING! Your system configuration contains neither "kde-base/kdebase-runtime-meta"
* nor "kde-base/kdebase-startkde". You need one of above.
* With this setting you are unsupported by KDE team.
* All missing features you report for misc packages will be probably ignored or closed as INVALID. |
What is the output of:
Code: | emerge -avt kde-meta
lspci
cat /etc/X11/xorg.conf |
The First Command Tells me if all of KDE installed. The Second will list all your pci devices so I can see if nvidia drivers are really what yoou have, since you said you tried to login and saw garbled lines. The Third tells me howX is configured. It's OK to manually delete the Kernel source because if we need it again we unmask and emerge it. _________________ The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper |
|
Back to top |
|
|
Jblue n00b
Joined: 28 Feb 2013 Posts: 35
|
Posted: Wed Mar 06, 2013 9:28 pm Post subject: |
|
|
emerge -avt kde-meta
http://bpaste.net/show/81966/
lspci
Quote: |
01:00.0 VGA compatible controller: NVIDIA Corporation G96 [GeForce 9400 GT] (rev a1)
|
complete output: http://bpaste.net/show/81969/
xorg.conf:
http://bpaste.net/show/81968/
What was weird about the login was that it had a login/pass sequence and then the screen went black for a half second and then it returned to the login screen again, as if I'd messed up my password or something. Also, it's a graphical login, but certainly not kde or gnome. No garbled lines though. |
|
Back to top |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
Posted: Wed Mar 06, 2013 10:53 pm Post subject: |
|
|
UFED is the Gentoo Use Flag EDitor, catchy name Using this tool we are going to slowly add back all the flags we took out, until the system is Completely customized the way you want it. A small explanation is in order here, but it's easier to explain by doing than by telling, so before you "activate" the code blocks below:
Start ufed by typing ufed as root
Type X, it should search for all Flags starting with X of which there is only 1.
There should be a + Next to X. This plus signifies that a Use Flag is being inherited from your build profile, set with eselect profile. Hitting spacebar should add another +, and the entry will now look like ++X. This is redundant, as the first + is a user enabled Flag, and the second + is explained in the previous sentence. Hitting spacebar again changes your user flag to a -, since X is inherited from your profile, setting a minus here would override the default profile. A speccial note on -*:
-* sets all flags inherited by a profile to off, meaning that you must set the inherited Flags as user flags. Some people do this and some people don't. I happen to fall in the camp that doesn't, unless I'm troubleshooting a particular package. Hit Esc. When asked to save, hit N, and now start the code blocks. Once saved, /etc/make.conf is written to with your changes.
Code: | mv -v /etc/X11/xorg.conf /etc/X11/xorg.conf.old
nano -w /etc/X11/xorg.conf
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
(Save) |
Code: | /etc/init.d/xdm stop
rc-update del xdm default
emerge -v ufed
ufed
type script, hit space to enable
Esc once Y to save |
Code: | eselect opengl set nvidia
emerge avt kde-meta
startx
rm -v /etc/X11/xorg.conf.old |
The First Code Block gives us a default xorg.conf file with only the binary driver installed. This Prepares us for KDE later on. The Second Code Block adds the flag required by PyQt in order to emerge kde-meta and removes the Gui from the Auto Boot at startup so we can see if it still crashes using plain startx in the Third Code Block, which actually emerges all of KDE. _________________ The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper |
|
Back to top |
|
|
Jblue n00b
Joined: 28 Feb 2013 Posts: 35
|
Posted: Thu Mar 07, 2013 4:14 am Post subject: |
|
|
emerge ufed, installed without error (feels kinda weird)
It looks like they don't use two +'s any longer. Now they change from (+) to [+]. Anyway, hitting Esc brings up "Cancel? Y/N" and so I assume you mean 'Y' here as in yes, cancel, and no, don't save.
mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old
/etc/X11/xorg.conf:
Quote: |
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
|
emerge -v ufed (already done. not doing again)
ufed
(+) script
"Enter/Return" to save.
emerge -avt kde-meta
and I just got that started, so I'll check back tomorrow when it's finished.
Okay, would you mind trying to give me the big picture of what's happened here? What went wrong, how did we fix it, and how are we going to continue?
Also, if I were for any reason to try to install again from scratch, including kde, what would I need to do?
I'm mostly just curious, so if it's too much trouble then don't worry about it. And thanks again. |
|
Back to top |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
Posted: Thu Mar 07, 2013 5:14 am Post subject: |
|
|
Jblue wrote: | Okay, would you mind trying to give me the big picture of what's happened here? What went wrong, how did we fix it, and how are we going to continue?
Also, if I were for any reason to try to install again from scratch, including kde, what would I need to do?
I'm mostly just curious, so if it's too much trouble then don't worry about it. And thanks again. |
Sure I don't mind explaining the big picture, but I'm logical so it's in the form of a list.
- Mesa was blocked by Libdrm due to a useflag misconfiguration.
- Libdrm wouldnt build with the flag in #1, b/c Nouveau drivers require Kernel Mode Setting.
- KMS was disabled in your kernel config, causing the build error.
- You were suffering from the dreaded udev block
Donahue and I solved these steps from the bottom up That's the quickest way to properly remove udev I've seen to date. I solved the KMS error by skipping KMS setup altogether by switching you to nvidia-drivers. I had no idea that nvidia-drivers doesn't support kernels >3.6, so that stretched out the post. I "cheated" by having you use genkernel so we wouldn't waste time deciding on drivers etc. For an explanation of why I prefer genkernel see:Initial RAM Disk HOWTO. When I wrote that post, I was still building kernels by hand, following the handbook. What I've learned since then is that a genkerneled kernel provides a responsive system, more so than hours of tweaking my own config. This is of course personal preference. Moving on...
Because I decided to abandon nouveau in favor of nvidia-drivers, I had to establish a working baseline before I added stuff that didn't work. I did that by:
- Having removed the need for libdrm in the new kernel, I removed all use flags to prevent compile issues with KDE.
- Barring compile issues, kde-meta will give you a full running desktop
You'll notice that if any of the above or below steps fail, you have a working system that's able to compile because the circular dependencies have been removed. Logic dictates that if we make a mistake, we go in reverse to the listed 2 items above, and start over.
From now on/System Maintenance and Upkeep
- Using ufed is the proper way to add them back for many reasons. These reasons include typo prevention, you can read what the flag actually does and what package it affects before enabling it.
- As you add flags using ufed, only add a few at a time to prevent issues like the udev blocker earlier. You'll find that some flags require other flags. Flag Stacking is what causes the nasty dependencies like we solved between libdrm and mesa
- After adding flags, proper use of emerge should be followed. Proper use dictates the use of the N flag to catch packages affected by the flags you set. Best Practice is:
When switching or updating profiles, unless otherwise noted in a HOWTO always use the --emptytree option -e for short. This rebuilds every package on the system up to the package being emerged. Most people don't use -e with a package but with the world set:
will rebuild every installed package in the proper order. It is the parent of -uDN
If you have any other questions feel free to ask. _________________ The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper |
|
Back to top |
|
|
Jblue n00b
Joined: 28 Feb 2013 Posts: 35
|
Posted: Thu Mar 07, 2013 5:13 pm Post subject: |
|
|
Nice! Just ran startx, and kde is up! and it's beautiful.
messages from emerge -avt kde-meta:
Quote: |
Messages for package kde-misc/kde-gtk-config-2.1.1:
WARNING! Your system configuration contains neither "kde-base/kdebase-runtime-meta" nor "kde-base/kdebase-startkde". You need one of the above.
Messages for package kde-base/kdm-4.9.5:
You have compiled 'kdm' with consolekit support. If you want to use kdm, make sure consolekit daemon is running and started at login time
rc-update add consolekit default && /etc/init.d/consolekit start
|
This was just a couple of the more important-looking ones.
and /etc/X11/xorg.conf.old was removed.
alright, what next? |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Mar 07, 2013 5:51 pm Post subject: |
|
|
Good work the two of you.
Code: | rc-update add consolekit default && /etc/init.d/consolekit start | if you want nice features like cd's automounting _________________ Defund the FCC. |
|
Back to top |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
Posted: Thu Mar 07, 2013 6:09 pm Post subject: |
|
|
Add Consolekit support as donahue suggested and YOU ARE FINISHED Can you believe it Thought of something else. Be sure and add the nvidia kernel module to your autoload file. I cant remember the name for the new kernel versions but the old one was /etc/modules.autoload.d/kernel-x.y. I think the new one is /etc/conf.d/modules.autoload _________________ The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper |
|
Back to top |
|
|
Jblue n00b
Joined: 28 Feb 2013 Posts: 35
|
Posted: Thu Mar 07, 2013 8:13 pm Post subject: |
|
|
Perfect, I think I can take it from here. Thanks a million eyoung and donahue. |
|
Back to top |
|
|
|