[SOLVED] installing old version of gcc

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] installing old version of gcc

Postby roti » Oct 16th, '16, 17:47

Hi,

I find myself needing to use an old version of gcc. Is this possible in Mageia (other than building gcc itself from source)?

Razvan
Last edited by roti on Oct 19th, '16, 20:03, edited 1 time in total.
roti
 
Posts: 31
Joined: Nov 7th, '11, 10:05
Location: Bucharest, Romania

Re: installing old version of gcc

Postby doktor5000 » Oct 18th, '16, 03:24

Can you be more specific, how old is old? We still offer 3.3 via the repos: https://madb.mageia.org/package/show/ap ... ame/gcc3.3
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: installing old version of gcc

Postby roti » Oct 18th, '16, 14:13

doktor5000 wrote:Can you be more specific, how old is old? We still offer 3.3 via the repos: https://madb.mageia.org/package/show/ap ... ame/gcc3.3


Yes, I saw those packages. I need 4.6. :)
roti
 
Posts: 31
Joined: Nov 7th, '11, 10:05
Location: Bucharest, Romania

Re: installing old version of gcc

Postby doktor5000 » Oct 18th, '16, 16:48

For what exactly?
Best bet is to either compile it yourself with some custom prefix like /usr/local or /opt or so or to use the src.rpm from an earlier Mageia release and adjust that to install into a custom prefix.
Last mga release that had gcc 4.6 was mga2: http://distrib-coffee.ipsl.jussieu.fr/p ... a2.src.rpm
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: installing old version of gcc

Postby jiml8 » Oct 18th, '16, 18:04

You could also build a virtual machine using a version of Linux that contains the gcc you want. I personally would find this to be easier than building a separate toolchain on my workstation; you might not agree.
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09

Re: installing old version of gcc

Postby roti » Oct 19th, '16, 20:02

doktor5000 wrote:For what exactly?
Best bet is to either compile it yourself with some custom prefix like /usr/local or /opt or so or to use the src.rpm from an earlier Mageia release and adjust that to install into a custom prefix.
Last mga release that had gcc 4.6 was mga2: http://distrib-coffee.ipsl.jussieu.fr/p ... a2.src.rpm


It's strange, I know. I need it to compile an old android version. I thought I might have to go with a VM, but hey, it never hurts to ask. Thanks.
roti
 
Posts: 31
Joined: Nov 7th, '11, 10:05
Location: Bucharest, Romania

Re: [SOLVED] installing old version of gcc

Postby doktor5000 » Oct 20th, '16, 15:19

That's probably your best bet as you may also need some other versions of e.g. binutils or libc compiled with that older gcc ...
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest