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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-09-2015, 11:52 AM
|
#1
|
LQ Newbie
Registered: May 2015
Posts: 10
Rep:
|
Is there a way to compile gcc with an older version or build gcc manually?
Is there a way to buid gcc manually or to upgrade from a rather old version to the latest from source code? (I'm not looking for any apt or yum or any installing from repos I'm talking about straight from source code.)
|
|
|
05-09-2015, 12:10 PM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Welcome to LQ.
Which gcc version do you have ? ? And which gcc version do you want ? Which OS ?
Example : gcc-5.1.0 compiles with no issues by using gcc-4.9.2 .
-
Last edited by knudfl; 05-10-2015 at 01:17 AM.
|
|
|
05-09-2015, 02:07 PM
|
#3
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,639
|
How OLD ???
gcc 2 or gcc 3 ?
|
|
|
05-09-2015, 08:39 PM
|
#4
|
LQ Newbie
Registered: May 2015
Posts: 10
Original Poster
Rep:
|
The goal is to be able to build gcc for https://github.com/mathwhiz1212/auto...g-for-everyone so pretty much as old version of gcc as possible, how hard is really of no object although easier would be nicer.
P.S. The OS indicator is off, I don't use windows.
Last edited by anon002; 05-09-2015 at 08:41 PM.
|
|
|
05-09-2015, 09:22 PM
|
#5
|
Senior Member
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524
|
You don't need an old version of gcc to compile gnupg.
|
|
|
05-09-2015, 10:53 PM
|
#6
|
LQ Newbie
Registered: May 2015
Posts: 10
Original Poster
Rep:
|
This https://gcc.gnu.org/install/ looks like it will work for my purpose and if anybody comes up with a better/easier solution than please tell us what you've found.
|
|
|
05-10-2015, 02:03 PM
|
#7
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,639
|
???????
your first post is about USING a "rather OLD" version of gcc ( guessing 2 or 3 ) to build a NEW version of gcc ( guessing 4 or 5 )
Quote:
is there a way to buid gcc manually or to upgrade from a rather old version to the latest from source code?
|
HOW is that related to building GnuPG from a git hub page
|
|
|
05-10-2015, 04:46 PM
|
#8
|
LQ Newbie
Registered: May 2015
Posts: 10
Original Poster
Rep:
|
What I want to accomplish currently is to compile gcc 5 from gcc 2 preferably gcc 2.95, Do I have to compile any versions in between or can I do it directly?
The script I currently have compiles GnuPG which currently the script installs gcc through apt-get and I want to make it universal of operating systems so the only requirement to run my script is gcc 2 or later.
Last edited by anon002; 05-10-2015 at 04:51 PM.
Reason: Mistakes
|
|
|
05-10-2015, 05:41 PM
|
#9
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Re #8.
GCC-5.1.0 can be compiled with gcc-4.1.2 (theoretically), if I remember right.
An OS with gcc-2.95 / g++-2.95 :
Nothing at all will be usable for a contemporary gcc :
An OS that can handle gcc/g++ -2.95 has a glibc etc. etc. libs that are too early for any new gcc !
-
|
|
|
05-10-2015, 11:35 PM
|
#10
|
Senior Member
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524
|
You may be able to compile gcc-2.95 with recent stable gcc compiler as it requires only a gnu89 capable compiler.
|
|
|
05-11-2015, 01:05 AM
|
#11
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,639
|
gcc 2.95 ?
i have not seen that since 2002
is this a unsupported RHEL4 install or a even older RHEL3 or the almost antique RHEL2 install
if any of those three
NO NEW software will even build on it
you are stuck with software from 2002 to 2005
|
|
|
All times are GMT -5. The time now is 10:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|