Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
what's all that hassle about gcc 3.4?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Jefklak
l33t
l33t


Joined: 26 Oct 2003
Posts: 818
Location: Belgium

PostPosted: Mon Sep 13, 2004 11:08 am    Post subject: what's all that hassle about gcc 3.4? Reply with quote

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
View user's profile Send private message
chunderbunny
Veteran
Veteran


Joined: 31 May 2004
Posts: 1281
Location: 51°24'27" N, 0°57'15" W

PostPosted: Mon Sep 13, 2004 1:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
thechris
Veteran
Veteran


Joined: 12 Oct 2003
Posts: 1203

PostPosted: Mon Sep 13, 2004 1:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jefklak
l33t
l33t


Joined: 26 Oct 2003
Posts: 818
Location: Belgium

PostPosted: Mon Sep 13, 2004 4:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
chunderbunny
Veteran
Veteran


Joined: 31 May 2004
Posts: 1281
Location: 51°24'27" N, 0°57'15" W

PostPosted: Mon Sep 13, 2004 4:59 pm    Post subject: Reply with quote

Because it's faster?
Back to top
View user's profile Send private message
Jefklak
l33t
l33t


Joined: 26 Oct 2003
Posts: 818
Location: Belgium

PostPosted: Mon Sep 13, 2004 6:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
thechris
Veteran
Veteran


Joined: 12 Oct 2003
Posts: 1203

PostPosted: Tue Sep 14, 2004 3:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Halcy0n
Developer
Developer


Joined: 17 Sep 2003
Posts: 1682
Location: Freehold, NJ

PostPosted: Tue Sep 14, 2004 4:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Jefklak
l33t
l33t


Joined: 26 Oct 2003
Posts: 818
Location: Belgium

PostPosted: Tue Sep 14, 2004 9:05 am    Post subject: Reply with quote

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
View user's profile Send private message
thechris
Veteran
Veteran


Joined: 12 Oct 2003
Posts: 1203

PostPosted: Tue Sep 14, 2004 3:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Halcy0n
Developer
Developer


Joined: 17 Sep 2003
Posts: 1682
Location: Freehold, NJ

PostPosted: Tue Sep 14, 2004 3:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jefklak
l33t
l33t


Joined: 26 Oct 2003
Posts: 818
Location: Belgium

PostPosted: Tue Sep 14, 2004 4:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
thechris
Veteran
Veteran


Joined: 12 Oct 2003
Posts: 1203

PostPosted: Tue Sep 14, 2004 10:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
martinm1000
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 174
Location: Montréal, Canada

PostPosted: Thu Sep 16, 2004 3:38 am    Post subject: Reply with quote

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
View user's profile Send private message
hiroki
Guru
Guru


Joined: 29 Jul 2003
Posts: 327
Location: @home in germany

PostPosted: Thu Sep 16, 2004 9:15 am    Post subject: Reply with quote

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
Code:
gcc-config -l
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
Code:
gcc-config 1
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
View user's profile Send private message
martinm1000
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 174
Location: Montréal, Canada

PostPosted: Thu Sep 16, 2004 1:53 pm    Post subject: Reply with quote

Wow cool !

I did not know that... I guess I'll try it !

thanks
Back to top
View user's profile Send private message
hiroki
Guru
Guru


Joined: 29 Jul 2003
Posts: 327
Location: @home in germany

PostPosted: Thu Sep 16, 2004 3:24 pm    Post subject: Reply with quote

martinm1000 wrote:
Wow cool !

I did not know that... I guess I'll try it !

thanks


pas de quoi :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum