Is there a way to compile gcc with an older version or build gcc manually?
Linux - SoftwareThis 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.
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.
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.)
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.
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.
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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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 !
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.