View previous topic :: View next topic |
Author |
Message |
bender_pondie n00b
Joined: 02 Aug 2004 Posts: 19
|
Posted: Tue Jan 04, 2005 4:03 pm Post subject: "emerge world" after a stage3 install |
|
|
I recently did a new stage3 install and got most everything on my system up and running. My problem is I started running into compile errors when I tried to emerge different programs. My best guess as to why is I left my "USE" tags is the make.conf blank and just used the system defaults. I went through all the USE variables and updated the make.conf with about 20 or so USE tags. I am about to do an emerge world to recompile everything on my system with the updated gcc compile options. I didn't want to do this until I got some type of feedback because I don't know if I'm about to F up my system something awful. Any advice would be very useful. Thank you in advance for any and all help provided.
(o_
//\
V_/_ |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Jan 04, 2005 4:29 pm Post subject: |
|
|
emerge -e world would be maybe a better idea Of course, with a -pv too, to get a quick visual.
Also, if I were you I'd first download all the distfiles, just in case, via emerge -fe world.
And to ensure a clean toolchain it's a good idea to first emerge -e system.
So, to sum it up: Code: | emerge -pve world
emerge -fe world
emerge -e system
emerge -e world |
This will give you a clean system.
However if you're using linux26-headers and a recent glibc snapshot you may want to wait for a few hours until this bug gets fixed. You can safely download the distfiles meanwhile. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
GuidoJ Guru
Joined: 24 Dec 2002 Posts: 444 Location: Netherlands
|
Posted: Tue Jan 04, 2005 4:32 pm Post subject: |
|
|
If you just changed teh USE flags, you should specify the "--newuse" option to emerge. That will probably save you several hours of recompiling.
OTOH I suggest you also have a look at the CFLAGS. Keep their setting conservative though, since high optimizations might result in runtime errors. If you change the CFLAGS, you should recompile everything for them to take effect (emerge -e world).
In general, you should not have to worry about doing a recompilation of everything you have installed. Many gentoo users have done it more than once. |
|
Back to top |
|
|
bender_pondie n00b
Joined: 02 Aug 2004 Posts: 19
|
Posted: Tue Jan 04, 2005 4:41 pm Post subject: |
|
|
Thanks for the advice. I have an AMD64 system and just left the CFLAGS flag as default and don't plan on changing them. Normally I just use the "emerge -av" command when I install new programs. Should I start using different emerge switches by default? I was a slackware user for several years so dealing with portage is a new concept for me but I am starting to enjoy it. |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Jan 04, 2005 4:52 pm Post subject: |
|
|
-av is more interactive - so I guess it's a matter of taste.
-e means "recompile all packages from scratch, pretending no packages were installed". Takes a while, depending on your machine.
The above is usual procedure I follow when having upgraded glibc, gcc, binutils, or some important low-level static library like zlib (I'm referring to emerge -fe world, emerge -e system, emerge -e world).
The first emerge -e system causes the toolchain to be upgraded. The second emerge -e world includes an emerge -e system actually, which causes the toolchain to be recompiled yet again but this time cleanly using itself, thus ensuring any linked-in static libraries have been compiled by a clean toolchain. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
|