View previous topic :: View next topic |
Author |
Message |
Jefklak l33t
Joined: 26 Oct 2003 Posts: 818 Location: Belgium
|
Posted: Mon Sep 13, 2004 11:08 am Post subject: what's all that hassle about gcc 3.4? |
|
|
Is it faster? Compiles it faster? Do your applications compiled with 3.4 run a lot faster? I don't have any idea but I've seen numberous of guys/girls posting things like "is it compatible with gcc 3.4 I don't want to wait 8hours until it compiles for 3.3"?
Isn't 3.4 "very" unstable marked?
What's this "new" version all about - I've been living in a hole these days _________________ {Linux User #333296}
Kernel 2.6.9-nitro4! << hurrah |
|
Back to top |
|
|
chunderbunny Veteran
Joined: 31 May 2004 Posts: 1281 Location: 51°24'27" N, 0°57'15" W
|
Posted: Mon Sep 13, 2004 1:14 pm Post subject: |
|
|
I've only been using it for about a week, but I would say that it compiles a lot faster than 3.3. I managed to do an emerge -e system on my Athlon 2600 and it finished in about 3 - 4 hours. |
|
Back to top |
|
|
thechris Veteran
Joined: 12 Oct 2003 Posts: 1203
|
Posted: Mon Sep 13, 2004 1:21 pm Post subject: |
|
|
in the linux world there are degrees of instability. gcc3.4 may work currently with 90% of builds in portage, but still it isn't a stand alone complier. i have portage wrapper that adds a /etc/portage/package.gcc file that allows me to compile some packages with gcc3.3.3 and others with gcc3.4.1. |
|
Back to top |
|
|
Jefklak l33t
Joined: 26 Oct 2003 Posts: 818 Location: Belgium
|
Posted: Mon Sep 13, 2004 4:16 pm Post subject: |
|
|
But WHY should I want to compile most packages in gcc 3.4? _________________ {Linux User #333296}
Kernel 2.6.9-nitro4! << hurrah |
|
Back to top |
|
|
chunderbunny Veteran
Joined: 31 May 2004 Posts: 1281 Location: 51°24'27" N, 0°57'15" W
|
Posted: Mon Sep 13, 2004 4:59 pm Post subject: |
|
|
Because it's faster? |
|
Back to top |
|
|
Jefklak l33t
Joined: 26 Oct 2003 Posts: 818 Location: Belgium
|
Posted: Mon Sep 13, 2004 6:44 pm Post subject: |
|
|
chunderbunny wrote: | Because it's faster? |
When compiling like you said.
But does it make the compiled applications faster? _________________ {Linux User #333296}
Kernel 2.6.9-nitro4! << hurrah |
|
Back to top |
|
|
thechris Veteran
Joined: 12 Oct 2003 Posts: 1203
|
Posted: Tue Sep 14, 2004 3:45 am Post subject: |
|
|
newer version of GCC generally add new expirimental options, and add old expirimental options into the defaults.
i'm probably gonna move to gcc3.4.1 now that i have a backup compiler and a portage wrapper that will allow me to use gcc3.3.3 for specific packages (so if a gcc3.3.3 only packages shows up in an update i don't fail the update...) |
|
Back to top |
|
|
Halcy0n Developer
Joined: 17 Sep 2003 Posts: 1682 Location: Freehold, NJ
|
Posted: Tue Sep 14, 2004 4:34 am Post subject: |
|
|
Jefklak wrote: | chunderbunny wrote: | Because it's faster? |
When compiling like you said.
But does it make the compiled applications faster? |
http://gcc.gnu.org/gcc-3.4/changes.html
There have been improvements to the optimizations, so yes, it should produce faster and better binaries. I've been using GCC 3.4 for months now, and I haven't had any problems. _________________ Mark Loeser
http://www.halcy0n.com |
|
Back to top |
|
|
Jefklak l33t
Joined: 26 Oct 2003 Posts: 818 Location: Belgium
|
Posted: Tue Sep 14, 2004 9:05 am Post subject: |
|
|
Could somebody explain how that wrapper thing works to eventually use gcc 3.3 instead of 3.4 for important packages? _________________ {Linux User #333296}
Kernel 2.6.9-nitro4! << hurrah |
|
Back to top |
|
|
thechris Veteran
Joined: 12 Oct 2003 Posts: 1203
|
Posted: Tue Sep 14, 2004 3:31 pm Post subject: |
|
|
it is a wrapper that i made for myself. it is a simple bash script on my webstie:
http://www.siue.edu/~cstahl/linux/
note that you must chown root and chmod 700 the file.
also, there may be bugs in the release. it should work, but it is still an early version. |
|
Back to top |
|
|
Halcy0n Developer
Joined: 17 Sep 2003 Posts: 1682 Location: Freehold, NJ
|
Posted: Tue Sep 14, 2004 3:48 pm Post subject: |
|
|
This wrapper should not be needed though. Most packages compile with gcc 3.4 just fine. I did say most though, not all. If you run into something, please check to make sure there is a bug for it on bugs.gentoo.org, and if there isn't file one so it can get fixed. _________________ Mark Loeser
http://www.halcy0n.com |
|
Back to top |
|
|
Jefklak l33t
Joined: 26 Oct 2003 Posts: 818 Location: Belgium
|
Posted: Tue Sep 14, 2004 4:52 pm Post subject: |
|
|
All right, thank you all
I switched to gcc 3.4 and did an emerge system (latest update) but no -e
Eventually I'll upgrade some applications with the new compiler anyway. _________________ {Linux User #333296}
Kernel 2.6.9-nitro4! << hurrah |
|
Back to top |
|
|
thechris Veteran
Joined: 12 Oct 2003 Posts: 1203
|
Posted: Tue Sep 14, 2004 10:06 pm Post subject: |
|
|
the wrapper was actually more for the package specific cflags and use flags. but it also makes the co-existance of multiple compilers easier. that function wasn't at all hard to add, and i figured it was worth it. |
|
Back to top |
|
|
martinm1000 Apprentice
Joined: 17 Apr 2003 Posts: 174 Location: Montréal, Canada
|
Posted: Thu Sep 16, 2004 3:38 am Post subject: |
|
|
If I do:
Code: |
#emerge gcc -p
[ebuild N ] sys-devel/gcc-3.4.1-r2
[ebuild N ] sys-libs/libstdc++-v3-3.3.4
|
Is it normal when it says that gcc isn't installed ? Will it unmerge 3.3 ? |
|
Back to top |
|
|
hiroki Guru
Joined: 29 Jul 2003 Posts: 327 Location: @home in germany
|
Posted: Thu Sep 16, 2004 9:15 am Post subject: |
|
|
martinm1000 wrote: | If I do:
Code: |
#emerge gcc -p
[ebuild N ] sys-devel/gcc-3.4.1-r2
[ebuild N ] sys-libs/libstdc++-v3-3.3.4
|
Is it normal when it says that gcc isn't installed ? Will it unmerge 3.3 ? |
no, it only means you don't have any gcc-3.4.* installed yet. so emerge-ing gcc-3.4.1-r2 will only install it _parallelly_ to your gcc-3.3.*, they will coexist friendly
and if you want to change to another gcc, just use
to view the installed gcc-versions. for example mine:
Code: | io ~ # gcc-config -l
[1] i686-pc-linux-gnu-3.3.3
[2] i686-pc-linux-gnu-3.4.1
|
and if you want to change to one of them, just read the number that is given before the version-number (the first number in the row) and do an if you'd like to select version 3.3.3 again.
that's it. so itwon't unmerge your 3.3.* gcc. |
|
Back to top |
|
|
martinm1000 Apprentice
Joined: 17 Apr 2003 Posts: 174 Location: Montréal, Canada
|
Posted: Thu Sep 16, 2004 1:53 pm Post subject: |
|
|
Wow cool !
I did not know that... I guess I'll try it !
thanks |
|
Back to top |
|
|
hiroki Guru
Joined: 29 Jul 2003 Posts: 327 Location: @home in germany
|
Posted: Thu Sep 16, 2004 3:24 pm Post subject: |
|
|
martinm1000 wrote: | Wow cool !
I did not know that... I guess I'll try it !
thanks |
pas de quoi |
|
Back to top |
|
|
|