View previous topic :: View next topic |
Author |
Message |
Kasumi_Ninja Veteran
Joined: 18 Feb 2006 Posts: 1825 Location: The Netherlands
|
Posted: Wed Nov 15, 2006 2:05 pm Post subject: (SOLVED)gcc-4.1.1-r1 upgrade questions |
|
|
While doing a "emerge -auDN world" I noticed gcc-4.1.1-r1 was among the upgraded packages. I read the "Gentoo GCC Upgrade Guide", however I have some questions left. The guide says you must update your system:
Quote: | Code Listing 2.2: Rebuilding system
# emerge -eav system
# emerge -eav world |
Do I really need to do this? And if don't update the system what are the consequenses? Is it safe to reboot between these two commands? From earlier discussion I learned that the best way to rebuild your toolchain is to issue each command twice:
Code: | # emerge -eav system && emerge -eav system
# emerge -eav world && emerge -eav world |
If this is correct, why does the guide only mention each command one? I know these are lots of questions. I hope you help me broadening my understanding of Gentoo . _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
Last edited by Kasumi_Ninja on Wed Nov 15, 2006 4:47 pm; edited 1 time in total |
|
Back to top |
|
|
DocReedSolomon Guru
Joined: 28 Aug 2006 Posts: 419
|
Posted: Wed Nov 15, 2006 2:08 pm Post subject: |
|
|
what gcc version are you running now? if it is 4.1.1, there is no need to re-emerge world. |
|
Back to top |
|
|
Kasumi_Ninja Veteran
Joined: 18 Feb 2006 Posts: 1825 Location: The Netherlands
|
Posted: Wed Nov 15, 2006 2:14 pm Post subject: |
|
|
DocReedSolomon wrote: | what gcc version are you running now? if it is 4.1.1, there is no need to re-emerge world. |
Don't know if its correct but I used gcc-config -c to tell:
gcc-config -c
Code: | i686-pc-linux-gnu-4.1.1 |
Looks like I don't have to recompile everything . What is a good rule of thumb that I can apply to determine wether I need to upgrade my system?
Edit:
Do I still need to do:
Quote: | # gcc-config i686-pc-linux-gnu-4.1.1-r1
# env-update && source /etc/profile |
Quote: | (Rebuilding libtool)
# emerge --oneshot -av libtool |
_________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
Last edited by Kasumi_Ninja on Wed Nov 15, 2006 2:20 pm; edited 3 times in total |
|
Back to top |
|
|
DocReedSolomon Guru
Joined: 28 Aug 2006 Posts: 419
|
Posted: Wed Nov 15, 2006 2:17 pm Post subject: |
|
|
no need to worry then. -r1, -r2 aso are just minor fixes. |
|
Back to top |
|
|
bnorthcutt n00b
Joined: 03 Apr 2006 Posts: 72
|
Posted: Wed Nov 15, 2006 3:02 pm Post subject: |
|
|
I dont want to sound to dumb here, because the last time I upgraded my machine it completely destroyed it and I have worked pretty hard on this one. So if what is above is correct. If i have gcc-4.1.1 and I do a i emerge gcc-4.1.1-r1. I would follow these steps
Code: |
emerge -avu system (which has the gcc-4.1.1-r1)
gcc-config i686-pc-linux-gnu-4.1.1-r1
env-update && source /etc/profile
emerge --oneshot -av libtool
|
and i do not need to emerge -avu world. Am i correct on this? |
|
Back to top |
|
|
DocReedSolomon Guru
Joined: 28 Aug 2006 Posts: 419
|
Posted: Wed Nov 15, 2006 3:05 pm Post subject: |
|
|
bnorthcutt wrote: | I dont want to sound to dumb here, because the last time I upgraded my machine it completely destroyed it and I have worked pretty hard on this one. So if what is above is correct. If i have gcc-4.1.1 and I do a i emerge gcc-4.1.1-r1. I would follow these steps
|
none steps. if you have 4.1.1 just emerge 4.1.1-r1 and you are done. |
|
Back to top |
|
|
bnorthcutt n00b
Joined: 03 Apr 2006 Posts: 72
|
Posted: Wed Nov 15, 2006 3:18 pm Post subject: |
|
|
Thank you |
|
Back to top |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
|
Back to top |
|
|
bnorthcutt n00b
Joined: 03 Apr 2006 Posts: 72
|
Posted: Wed Nov 15, 2006 4:38 pm Post subject: |
|
|
im just making sure here lol. so when i did a
gcc-config -c
Code: |
i686-pc-linux-gnu-4.1.1
|
its good even though its 4.1.1-r1. i dont need to
gcc-config i686-pc-linux-gnu-4.1.1-r1
i'm just making sure that all is good. i can see it put in the 4.1.1 dir.
Last edited by bnorthcutt on Wed Nov 15, 2006 4:41 pm; edited 2 times in total |
|
Back to top |
|
|
Kasumi_Ninja Veteran
Joined: 18 Feb 2006 Posts: 1825 Location: The Netherlands
|
Posted: Wed Nov 15, 2006 4:38 pm Post subject: |
|
|
drescherjm wrote: | You only have to do a full rebuild if you change major versions. Going from 3.3.X to 3.4.Y or 3.4.X to 4.1.Y is such a change but going from 4.1.X to 4.1.Y is not.
If you change versions consider the script here as it will help with the recompile: https://forums.gentoo.org/viewtopic-t-494331-highlight-.html
John |
Great link, thanks for the additional information. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered |
|
Back to top |
|
|
DocReedSolomon Guru
Joined: 28 Aug 2006 Posts: 419
|
Posted: Wed Nov 15, 2006 4:47 pm Post subject: |
|
|
bnorthcutt wrote: |
i'm just making sure that all is good.
|
it is.
-r1 is the filename for the ebuild. just a patch has been added. your gcc version is still 4.1.1 and that is correct. |
|
Back to top |
|
|
DocReedSolomon Guru
Joined: 28 Aug 2006 Posts: 419
|
Posted: Wed Nov 15, 2006 4:49 pm Post subject: |
|
|
HXC wrote: | drescherjm wrote: | You only have to do a full rebuild if you change major versions. Going from 3.3.X to 3.4.Y or 3.4.X to 4.1.Y is such a change but going from 4.1.X to 4.1.Y is not.
If you change versions consider the script here as it will help with the recompile: https://forums.gentoo.org/viewtopic-t-494331-highlight-.html
John |
Great link, thanks for the additional information. |
sure is (the link) though we are not talking about an gcc update at all here. -r1 is not even a minor update. <sigh>
gcc 4.1.2 would be a minor update
yeah, i am nitpicking, hehe |
|
Back to top |
|
|
bnorthcutt n00b
Joined: 03 Apr 2006 Posts: 72
|
Posted: Wed Nov 15, 2006 4:53 pm Post subject: |
|
|
thank you, that was a cool link. im just making sure all is good thats all. its really cool learning about gcc anyways. |
|
Back to top |
|
|
DocReedSolomon Guru
Joined: 28 Aug 2006 Posts: 419
|
Posted: Wed Nov 15, 2006 4:58 pm Post subject: |
|
|
bnorthcutt wrote: | thank you, that was a cool link. im just making sure all is good thats all. its really cool learning about gcc anyways. |
well, if you feel unsure, i'd always have a full backup handy.
www.sysresccd.org is a good friend doing those.. |
|
Back to top |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Wed Nov 15, 2006 5:42 pm Post subject: |
|
|
Quote: | sure is (the link) though we are not talking about an gcc update at all here. -r1 is not even a minor update. |
For the most point I agree with that. I guess I should have discussed that (patches) a little more but I needed to get to work... _________________ John
My gentoo overlay
Instructons for overlay |
|
Back to top |
|
|
DocReedSolomon Guru
Joined: 28 Aug 2006 Posts: 419
|
Posted: Wed Nov 15, 2006 5:46 pm Post subject: |
|
|
drescherjm wrote: | Quote: | sure is (the link) though we are not talking about an gcc update at all here. -r1 is not even a minor update. |
For the most point I agree with that. I guess I should have discussed that (patches) a little more but I needed to get to work... |
oh, i was not getting at you, sorry!
just nitpicking, hehe.
and just BTW, to make this (my) post a little more usefull.. if you upgrade to glibc 2.5, you do not have to re-emerge anything either.
but thats really an exception |
|
Back to top |
|
|
bnorthcutt n00b
Joined: 03 Apr 2006 Posts: 72
|
Posted: Wed Nov 15, 2006 6:57 pm Post subject: |
|
|
i just went and got that iso. thanks thats pretty cool and since you started the subject i now want emerge glibc-2.5. so that i understand this. i dont have to rebuild anything after the glibc-2.5? also would there ever be a time that i need to re-emerge after upgrading glibc? |
|
Back to top |
|
|
DocReedSolomon Guru
Joined: 28 Aug 2006 Posts: 419
|
Posted: Wed Nov 15, 2006 7:17 pm Post subject: |
|
|
bnorthcutt wrote: | i just went and got that iso. thanks thats pretty cool and since you started the subject i now want emerge glibc-2.5. so that i understand this. i dont have to rebuild anything after the glibc-2.5? also would there ever be a time that i need to re-emerge after upgrading glibc? |
you will not benefit from anything installing glibc2.5, though..
and, yes, usually you might have to rebuild world if you upgrade glibc/gcc.
it just depends..
OTOH: why upgradeing? just "for the sake of it"? too much CPU Power left?
just to get this right: there is usually no need to update *everything* on a dayly basis as long as your system is performing allright.
i understand one likes to upgrade KDE 3.4 -> KDE 3.5, and whatnot, because there are new features. but glibc or gcc? hmm.. |
|
Back to top |
|
|
bnorthcutt n00b
Joined: 03 Apr 2006 Posts: 72
|
Posted: Wed Nov 15, 2006 7:29 pm Post subject: |
|
|
lol.... i totally understand if i dont have to i will not update glibc. the gcc update was apart of my emerge -avu system. i just figured since you mentioned it i would update glibc2. you know, im just wondering. i'm still fairly new to gentoo and still trying to understand it. the whole updating thing can be a bit confusing. |
|
Back to top |
|
|
DocReedSolomon Guru
Joined: 28 Aug 2006 Posts: 419
|
Posted: Wed Nov 15, 2006 7:42 pm Post subject: |
|
|
well, what you should be aware about is "glsa-check" - nice handy tool. AFAIK you have to emerge gentoolkit to benefit from this one.
run "glsa-check -t all" after your dayly "emerge --sync".
and it will tell you about vulnerabilitys aso.. and tells the packages you really really should upgrade!
doesnt tell about kernel and kde vulnerabilitys, though..
everything else you like to update - your choice.
HTH. |
|
Back to top |
|
|
bnorthcutt n00b
Joined: 03 Apr 2006 Posts: 72
|
Posted: Wed Nov 15, 2006 10:19 pm Post subject: |
|
|
thanks, thats pretty cool. i had know idea that gentoolkit did that. i've used it to look at uses flags of packages about that. |
|
Back to top |
|
|
Bones McCracker Veteran
Joined: 14 Mar 2006 Posts: 1611 Location: U.S.A.
|
Posted: Thu Nov 16, 2006 3:25 am Post subject: |
|
|
One more time for good measure...
Do you have to do anything?
No.
You were just making sure everything is alright.
We get it. |
|
Back to top |
|
|
blue_american Tux's lil' helper
Joined: 16 Sep 2005 Posts: 92 Location: Coimbra, Portugal
|
Posted: Thu Nov 16, 2006 11:45 pm Post subject: |
|
|
I'm having problems and I'm getting desperate!
1. Have upgraded from 3.4.6 to 4.1.1
wonder ~ # gcc-config -l
[1] i686-pc-linux-gnu-3.4.6
[2] i686-pc-linux-gnu-3.4.6-hardened
[3] i686-pc-linux-gnu-3.4.6-hardenednopie
[4] i686-pc-linux-gnu-3.4.6-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.6-hardenednossp
[6] i686-pc-linux-gnu-4.1.1 *
4.1.1 is selected.
2. wonder ~ # fix_libtool_files.sh 3.4.6
wonder ~ # fix_libtool_files.sh 3.4.6
* Scanning libtool files for hardcoded gcc library paths...
* [1/9] Scanning /lib ...
* [2/9] Scanning /usr/lib ...
* [3/9] Scanning //usr//lib/opengl/ati/lib ...
* [4/9] Scanning /opt/sun-jdk-1.4.2.12/jre/lib/i386 ...
* [5/9] Scanning /usr/games/lib ..
* [6/9] Scanning /usr/i686-pc-linux-gnu/lib ...
* [7/9] Scanning /usr/kde/3.5/lib ...
* [8/9] Scanning /usr/local/lib ...
* [9/9] Scanning /usr/qt/3/lib ...
3. source /etc/profile
4. emerge libtool
5. emerge --oneshot sys-libs/libstdc++-v3
6. wonder ~ # cat /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.la
cat: /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.la: No such file or directory
What's wrong here? I've have to have libstdc++.la to compile some packages, and I don't have a clue why that library is not in the right place.
Also, revdep rebuild doesn't work because it tries to emerge a package that uses libstdc++.la.
If someone knows anything, please tell me.
Thanks. |
|
Back to top |
|
|
DocReedSolomon Guru
Joined: 28 Aug 2006 Posts: 419
|
Posted: Fri Nov 17, 2006 10:41 am Post subject: |
|
|
blue_american wrote: |
wonder ~ # fix_libtool_files.sh 3.4.6
|
sure? or was that 3.4.6-r2 or -r1 you had? |
|
Back to top |
|
|
blue_american Tux's lil' helper
Joined: 16 Sep 2005 Posts: 92 Location: Coimbra, Portugal
|
Posted: Fri Nov 17, 2006 11:43 am Post subject: |
|
|
A sure it was 3.4.6. I've done it like million times :'( |
|
Back to top |
|
|
|