[Slackbuilds-users] If you really wont to try - the pain with GCC
Peter Dambier
peter at peter-dambier.de
Tue Mar 15 14:16:36 UTC 2022
On Tue, 15 Mar 2022 12:53:26 +0000
Erich Ritz via SlackBuilds-users <slackbuilds-users at slackbuilds.org>
wrote:
> ------- Original Message -------
>
> On Tuesday, March 15th, 2022 at 4:12 AM, Peter Dambier
> <peter at peter-dambier.de> wrote:
>
> > 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,
>
> I would not recommend your method. But to each his own.
>
> gcc5 is available on SBo, as well as avr-gcc. They integrate into
> the system much nicer than your method.
>
> Another option is to do the old "./configure; make; make install" but
> target /opt/gcc<ver> as the DESTDIR. I did this on Slackware 14.2
> with newer versions of GCC for use with MATLAB.
>
> > Peter
> >
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
Erich,
nor do I. I am glad for the new SlackBuild. That makes my workaround
obsolete.
Cheers
Peter
More information about the SlackBuilds-users
mailing list