[Slackbuilds-users] If you really wont to try - the pain with GCC

Peter Dambier peter at peter-dambier.de
Tue Mar 15 09:12:49 UTC 2022


Hi fello SlackBuilders

if you know a little C and if you cherish on old SlackBuild ...

you might get overwhelmed with some nessages from gcc-11 that
really do not make sense, actually!

E.g. gcc-11 can no longer compile avr-gcc.

If you are daring enoguh you might want to switch between gcc-5
and gcc-11.

Here is how I did it.

get from good old Slackware 14.2 in one directory - dont install yet!

binutils-2.26-x86_64-3.txz
gcc-5.3.0-x86_64-3.txz
gcc-g++-5.3.0-x86_64-3.txz
gcc-gfortran-5.3.0-x86_64-3.txz
gcc-gnat-5.3.0-x86_64-3.txz
gcc-go-5.3.0-x86_64-3.txz
gcc-java-5.3.0-x86_64-3.txz
gcc-objc-5.3.0-x86_64-3.txz
gettext-0.19.8.1-x86_64-1.txz
gmp-6.1.1-x86_64-1.txz
libmpc-1.0.3-x86_64-1.txz
mpfr-3.1.4-x86_64-1.txz

Do the same for Slackware 15.0 in a different directory:

binutils-2.37-x86_64-1.txz
gcc-11.2.0-x86_64-2.txz
gcc-brig-11.2.0-x86_64-2.txz
gcc-g++-11.2.0-x86_64-2.txz
gcc-gdc-11.2.0-x86_64-2.txz
gcc-gfortran-11.2.0-x86_64-2.txz
gcc-gnat-11.2.0-x86_64-2.txz
gcc-go-11.2.0-x86_64-2.txz
gcc-objc-11.2.0-x86_64-2.txz
gettext-0.21-x86_64-3.txz
gmp-6.2.1-x86_64-3.txz
libmpc-1.2.1-x86_64-3.txz
mpfr-4.1.0-x86_64-3.txz

This may be overkill, depending on what you want to do.

Do not removepkg anything!
cd into the gcc-5 directory and installpkg *.txz.
cd into your SlackBuild. SlackBuild and installpkg
cd into the gcc-11 directory and installpkg *.txz

Programmes built with gcc-5 will need some librararies ...
They do coexist with those from gcc-11 but building is another Story.

This is not for the faint of heart.
Is it worth the hassle? You decide. I guess 3 from 15 SlackBuilds I
was able to rescue with this.

The Source is with You.
Peter


More information about the SlackBuilds-users mailing list