Gentoo Archives: gentoo-user

From: karl@××××××××.se
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] emerging older compilers
Date: Thu, 30 May 2019 20:23:57
Message-Id: 20190530202348.0CCBE823E078@turkos.aspodata.se
In Reply to: [gentoo-user] emerging older compilers by karl@aspodata.se
1 Karl Hammar:
2 > For testing purposes, I would like to install older compilers,
3 > e.g. testing with older kernels.
4 >
5 > I have tried to install e.g. gcc-5.4.0-r4, gcc-4.9.4, and
6 > gcc-3.4.6-r2.ebuild (package.unmask is upd. for theese), but it fails.
7
8 I have found out that I can install thoose older comilers with:
9
10 FEATURES="-sandbox -usersandbox" emerge -aqv =sys-devel/gcc-5.4.0-r4
11
12 # since ustat.h is no loger with (>=glibc 2.28) according to
13 # https://sourceware.org/git/?p=glibc.git;a=commit;h=cf2478d53ad7071e84c724a986b56fe17f4f4ca7
14 echo =sys-devel/gcc-4.9.4 -sanitize >> /etc/portage/package.use/gcc
15 eselect gcc set 1
16 . /etc/profile
17 FEATURES="-sandbox -usersandbox" emerge -aqv =sys-devel/gcc-4.9.4
18
19 gcc-3.4.6-r2 still doesn't install though.
20
21 Regards,
22 /Karl Hammar