You are not logged in.

#1 2017-06-02 14:13:56

TheHadoopBandwagon
Member
Registered: 2017-03-20
Posts: 5

How to downgrade to gcc 6.x.x

So, today I upgraded all my package and it seems that g++&gcc are now version 7.1.1.

This is sadly enough in conflict with some of the shit libraries my projects used and I still need to compile with g++6.3.1. However I don't see any 6.x versions of gcc in the aur or in the pacman repositories. How does one go about downgrading gcc or installing a separate gcc version without just compiling it from scratch (.e.g either downloading a pre compiled or a PKGBUILD)

Offline

#2 2017-06-02 14:41:20

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: How to downgrade to gcc 6.x.x

You can downgrade using the Arch Linux Archive but it's not recommended.  You would be better off setting up a container/changeroot/vm/whatever to maintain your projects. If you do downgrade your system, downgrade everything to the same timepoint. Also note that the system is no longer supported if you do.

You may find ala-config with the "--date" option useful for this. It's in the alatools package.


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

#3 2017-06-02 17:10:03

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: How to downgrade to gcc 6.x.x

Or create your own gcc6 package which uses the same PKGBUILD as the old version of the [core]/gcc pkgbase, adjusted to install as /usr/bin/gcc6 alongside the main gcc package. You can see how a couple different gcc4* packages in the AUR do it.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#4 2017-06-02 17:36:20

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: How to downgrade to gcc 6.x.x

you can see if there's a compatible version in your pacman cache, but remember that downgrading, especially a library, means that you'll likely end up with some breakage

Last edited by HiImTye (2017-06-02 17:36:34)

Offline

#5 2017-06-03 12:02:58

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: How to downgrade to gcc 6.x.x

Use containers/sandboxes when working on shitty projects that depends on outdated stuff. That way you can have a stable working enviroment that doesn't break on every update.

Last edited by Mr.Elendig (2017-06-03 12:03:21)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2017-06-03 12:33:52

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,673
Website

Re: How to downgrade to gcc 6.x.x

Or just install gcc5 from the repos if that works...

Offline

#7 2017-06-05 12:35:16

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: How to downgrade to gcc 6.x.x

I temporarily installed GCC 6 from my local cache, to apply a patch and recompile a new version of conky. There's currently an open issue in conky stating that it doesn't compile with GCC 7... roll

Offline

#8 2017-06-07 00:00:44

annoying_daniel
Member
Registered: 2017-04-08
Posts: 9

Re: How to downgrade to gcc 6.x.x

.

Last edited by annoying_daniel (2017-06-07 04:45:50)

Offline

#9 2017-06-07 00:27:06

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How to downgrade to gcc 6.x.x

This is a GCC thread, not a conky one: https://wiki.archlinux.org/index.php/Co … _hijacking


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB