You are not logged in.
Pages: 1
I am trying to install some older versions of gcc to build some software projects that require older versions. Whenever I want to get one of the older versions of gcc, what is the best way to do this? using "downgrade" from AUR only goes back to gcc-8, and this is not really ideal because I want to be able to have multiple versions installed at once. When I install gcc-8 https://aur.archlinux.org/packages/gcc8, it compiles and takes ages (upwards of 5 hours). Am I really expected to wait over 5 hours to get a different version of gcc/g++? As a previous Ubuntu user, I love arch linux, but this is so annoying when on Ubuntu I can just install a bunch of gcc versions without compiling and I have them right away.
Offline
If you need to use AUR packages, yes you are. You can generally speed up the compilation process if you use multiple cores https://wiki.archlinux.org/title/Makepk … pile_times
If that's insufficient of an answer you can check for third party repos that provide old releases/AUR builds and use those I occasionally used the chaotic-aur repo for example that provides packages for almost the entire AUR (however I'd strongly advise against just dumping it in your config, chances are high you accidentally install packages that you rather want from the repos from there, what I do is have two separate pacman configs and explicitly point to the one containing the chaotic-aur repo to install specific packages)
Offline
Very old gcc versions (those that are still written in C, i.e. gcc 4.7) can be built relatively quickly. The newer the gcc release, the longer it takes.
I would strongly suggest to steer clear from third-party repos like chaotic-aur, separate config or not. They add random unvetted packages to their repos, and include packages for other distributions that overwrite base system files.
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
Pages: 1