You are not logged in.

#1 2021-11-04 00:57:12

tomsmith
Member
Registered: 2021-11-04
Posts: 4

[SOLVED]Is it possible to install multiple gcc toolchains with pacman?

For some reasons, I need to compile different software with different gcc toolchains, some are really old.
I have tried downgrade, but sadly, for most old package like gcc 8.3,I got errors as this:

error: '/var/cache/pacman/pkg/gcc-8.3.0-1-x86_64.pkg.tar.xz': invalid or corrupted package (PGP signature)

The oldest version I could take is about 10.1,does it mean I can't install older gcc toolchains with pacman?

Last edited by tomsmith (2021-11-04 04:24:25)

Offline

#2 2021-11-04 01:04:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,497
Website

Re: [SOLVED]Is it possible to install multiple gcc toolchains with pacman?

Do not downgrade these packages.  Previous versions are in the AUR and can be installed along-side the current version.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2021-11-04 01:07:01

loqs
Member
Registered: 2014-03-06
Posts: 18,996

Re: [SOLVED]Is it possible to install multiple gcc toolchains with pacman?

For instance gcc8.

Offline

#4 2021-11-04 01:38:53

tomsmith
Member
Registered: 2021-11-04
Posts: 4

Re: [SOLVED]Is it possible to install multiple gcc toolchains with pacman?

Many thanks. I know with apt-get I could select muliple gcc toolchains with apt-get install gcc7 as so on. But I can't find a way to go with pacman.

Offline

#5 2021-11-04 01:43:28

loqs
Member
Registered: 2014-03-06
Posts: 18,996

Re: [SOLVED]Is it possible to install multiple gcc toolchains with pacman?

Have you read AUR?

Offline

#6 2021-11-04 01:49:48

tomsmith
Member
Registered: 2021-11-04
Posts: 4

Re: [SOLVED]Is it possible to install multiple gcc toolchains with pacman?

Sorry, just read it. Great, I am going to try it.
Many thanks.

Offline

#7 2021-11-04 04:24:46

tomsmith
Member
Registered: 2021-11-04
Posts: 4

Re: [SOLVED]Is it possible to install multiple gcc toolchains with pacman?

It works. Thanks.

Offline

Board footer

Powered by FluxBB