[SOLVED] installing old version of gcc

Posted:
Oct 16th, '16, 17:47
by roti
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
Re: installing old version of gcc

Posted:
Oct 18th, '16, 03:24
by doktor5000
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
Re: installing old version of gcc

Posted:
Oct 18th, '16, 14:13
by roti
Yes, I saw those packages. I need 4.6.

Re: installing old version of gcc

Posted:
Oct 18th, '16, 16:48
by doktor5000
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
Re: installing old version of gcc

Posted:
Oct 18th, '16, 18:04
by jiml8
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.
Re: installing old version of gcc

Posted:
Oct 19th, '16, 20:02
by roti
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.
Re: [SOLVED] installing old version of gcc

Posted:
Oct 20th, '16, 15:19
by doktor5000
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 ...