Karl Hammar: > For testing purposes, I would like to install older compilers, > e.g. testing with older kernels. > > I have tried to install e.g. gcc-5.4.0-r4, gcc-4.9.4, and > gcc-3.4.6-r2.ebuild (package.unmask is upd. for theese), but it fails.
I have found out that I can install thoose older comilers with: FEATURES="-sandbox -usersandbox" emerge -aqv =sys-devel/gcc-5.4.0-r4 # since ustat.h is no loger with (>=glibc 2.28) according to # https://sourceware.org/git/?p=glibc.git;a=commit;h=cf2478d53ad7071e84c724a986b56fe17f4f4ca7 echo =sys-devel/gcc-4.9.4 -sanitize >> /etc/portage/package.use/gcc eselect gcc set 1 . /etc/profile FEATURES="-sandbox -usersandbox" emerge -aqv =sys-devel/gcc-4.9.4 gcc-3.4.6-r2 still doesn't install though. Regards, /Karl Hammar