LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-14-2002, 02:02 PM   #1
wrc1944
Member
 
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139

Rep: Reputation: 15
gcc 3.1 compiler question


In Mandrake 8.2, is it possible, and if so, how would one go about installing and using the gcc 3.1 compiler. From what I've been reading, gcc 3.1 has expanded and improved specific optimization for the AMD Athlon XP cpus and their chipset platforms, thus generates faster code. This is very interesting to me, as I'm disappointed with linux performance on AMD systems.
Specifically, are there problems involved with having 2.92 and 3.0.4 compilers already in Mandrake 8.2, and then trying to add gcc 3.1? If it can be done, how does one set which compiler to use when you compile a tarball? Do the programs compiled with gcc 3.1 on an Athlon/i686 system work along side other progs compiled with the other compilers?

My objective is to get as much out of my relatively high-end hardware, but I'm very new at this stuff.Can I just install the gcc 3.1 compiler, then select to use it, and then go ahead and do the usual procedure and have everything work without breaking my system? What sort of problems or incompatibilities would I be likely to run into?
Thanks,
wrc1944
 
Old 08-14-2002, 03:40 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
how about gcc 3.2.0? http://rpmfind.net//linux/RPM/cooker...2mdk.i586.html

doubt it'll work along side any other 3.x version, but you prbably know already that 3.x and 2.9.6 can be side by side easily enough
 
Old 08-14-2002, 04:21 PM   #3
wrc1944
Member
 
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139

Original Poster
Rep: Reputation: 15
3.2 rpm looks like the way to go for an amateur like myself. Has anybody done it successfully? I'd sure like to hear some feedback before I break my system. Since I have an Athlon/i686 system, would it be wise to recompile the source rpm with the i686 flags before installing the 3.2 rpm? If anybody has some links for good info on all this (I've already looked at all the gcc website pages) I'd like to know about them.
Thanks,
wrc1944
 
Old 08-14-2002, 04:23 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
there is nothing to worry about, it is a perfectly normal rpm, just upgrade to it. no risk involved.
 
Old 08-14-2002, 04:54 PM   #5
wrc1944
Member
 
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139

Original Poster
Rep: Reputation: 15
Sounds great, but when I try and download the srpm, the i586 rpm, or even the two required packages for gcc 3.2.0, it says it doesn't exist.
 
Old 08-15-2002, 01:39 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it? what is "it"?
 
Old 08-15-2002, 02:35 AM   #7
wrc1944
Member
 
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139

Original Poster
Rep: Reputation: 15
"It" is the final pop-up dialog box that comes up when I click the final time to begin the download in Konqueror after reaching the gcc 3.2 page from the link you posted. Same thing happens with the .src.rpm link on that page. The page also says gcc-cpp 3.2 and libgcc 3.2 (among a few other things) are required, and those files don't exist either. I guess they took them all off the server.
 
Old 08-15-2002, 03:07 AM   #8
dai
Member
 
Registered: May 2002
Location: Wales
Distribution: Slack 8.1, Gentoo 1.3a, Red Hat 7.3, Red Hat 7.2, Manrake 8.2
Posts: 328

Rep: Reputation: 30
try getting a source tarball, its easier as you compile the program yourself and its setup specifically for your machine.

Very simple: -

1. Put tarball in /usr/local (or where you want it)

2. at command line type tar zxvf tarballname.tar.gz
if the tarball is of type tarball.tar.bz2 then type
tar jxvf tarballname.tar.bz2
3.now cd ./tar directory name

4. ./configure

5. make

6. make install

hey presto you now have a new gcc compiler installed
 
Old 08-15-2002, 03:28 AM   #9
wrc1944
Member
 
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139

Original Poster
Rep: Reputation: 15
Haven't been able to find a tarball yet ( I've done lots of those before). I did find an .src.rpm at:

ftp://ftp.sunet.se/pub/Linux/distrib...l/cooker/SRPMS

I'm wondering if the gcc 3.2.0 src.rpm is going to contain the other gcc 3.2.0 packages that the other page said were required. So far, I can't find those either. Might wind up in a cascading dependency hell.
 
Old 08-15-2002, 04:27 AM   #10
dai
Member
 
Registered: May 2002
Location: Wales
Distribution: Slack 8.1, Gentoo 1.3a, Red Hat 7.3, Red Hat 7.2, Manrake 8.2
Posts: 328

Rep: Reputation: 30
try this site its the mirrors from the gcc.gnu.org, according to them 3.2 hasnt been released yet (I dont think the page has been updated) either way check these mirrors for 3.1.1 or 3.2

http://gcc.gnu.org/mirrors.html

hope this helps
 
Old 08-15-2002, 12:07 PM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
just install the i586 file ON A COMMAND LINE, none of this sil;ly GUI crap..
rpm -Uvh gcc3-3.2...rpm
 
Old 08-16-2002, 04:50 AM   #12
wrc1944
Member
 
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139

Original Poster
Rep: Reputation: 15
Won't rpm -Uvh gcc3-3.2...rpm replace 3.0.4, which I might not want to do?

Also, can somebody please specify how you select which compiler will be used? Is it done globally, like withing a file /etc/xxx, or in a file within each extracted tarball? Or will any ./configure command autmatically know which one to use?
wrc1944
 
Old 08-16-2002, 12:44 PM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why would you not want to do it? it is just an upgrade.. that's the point of that sort of thing...
 
Old 08-16-2002, 03:21 PM   #14
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
wrc1944, probably the new rpm will overwrite the old one.
Configure script (and make) finds the one gcc which is started using gcc. 'gcc' (in my system in /usr/bin ) is usually a symlink, so you can make it poing to any compiler you like.
 
Old 08-16-2002, 03:30 PM   #15
wrc1944
Member
 
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139

Original Poster
Rep: Reputation: 15
I guess the main reason is I've been advised to keep 3.0.4 on another forum, and I figured that was wise until I see if 3.2.0 doesn't have major problems on my system. Just seemed prudent to me, as I probably would have trouble repairing any damage I caused. When newbies get contradictory advice, it's pretty confusing.

Can somebody please clue me in on the other point, about how to select which compiler to use for a specific run? Or is the plan to just use the latest one as your default, and there's really no need for keeping the others? I've looked in the extracted files of some tarballs, and sometimes they refer to using a specific compiler, so I wonder if that compiler is mandatory, or maybe I need to edit that file if I want to use a different compiler.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc compiler canyon289 Linux - Software 3 10-23-2004 10:22 PM
GCC compiler aviceda Linux - Newbie 5 08-13-2004 06:55 AM
GCC Compiler HELP Otaking Linux - Newbie 5 04-08-2004 06:17 PM
GCC Compiler Question? Gerardoj Programming 3 09-22-2003 05:06 AM
GCC compiler...? ph0tik Linux - Newbie 4 04-22-2003 03:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration