Patronage & Donations
If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons:
Patreon Logo
For regular monthly donations
PayPal Logo
For one time donations
All donations will be gratefully received - thank you!
Toggle theme:Toggle Theme Button
Content of directory's README

This gcc5 package can be installed alongside Slackware's gcc-7 packages.
These version 7 compilers can sometimes be quite a bit more strict about
what they accept as valid code. As a consequence, you will regularly run
into compilation issues with software. Not just the software made with
the scripts on slackbuilds.org, but also some of the software in
the Slackware core distribution requires patches in order to get them
to compile.

Therefore, having the gcc version 5 compilers can sometimes be a lifesaver.
Particulars of the gcc5 package:
- The gcc5 binaries were given a suffix '-5' to make them stand apart
  from Slackware's default compilers.
- The gcc5 package only contains the C, C++ and Java language compilers.
- Only one all-encompassing package is built by the SlackBuild script.
- Profile scripts are added to /etc/profile.d/. You can 'source'
  the profile script to prefer the gcc-5 compilers over gcc-7.
- On 64bit Slackware, the gcc5.SlackBuild will detect an existing gcc
  multilib compiler and will then build a multilib variant of gcc5.
  If you run pure 64bit Slackware, then a pure 64bit gcc5 package is built.

How to use these gcc5 compilers instead of Slackware's default C and C++?
Simple:
In your console or terminal, you 'source' the provided profile script,
like this (a c-shell compatible script is available as well):

  source /etc/profile.d/gcc5.sh

The command 'source' is equivalent to the dot command ' . '.
The profile script will (re-)define the common variables that are used
by make and other programs to determine which binary to run as the compiler:

export CC=gcc-5
export CPP=cpp-5
export CXX=g++-5
export AR=gcc-ar-5
export NM=gcc-nm-5
export RANLIB=gcc-ranlib-5

Nothing else needs to be done after sourcing the profile script.
All you do next is run your compile job as usual in that same console.
Your program will be compiled with the binaries provided by the gcc5 package.

Icon  Name                            Last modified      Size  Description
[<--] Parent Directory - [DIR] fastjar-patches/ 2017-06-17 10:31 - [DIR] patches/ 2018-03-06 13:41 - [DIR] profile.d/ 2017-06-17 10:53 - [!!!] README 2017-07-09 16:42 1.9K [BIN] antlr-runtime-3.4.jar 2011-07-19 17:36 161K [SPT] c89.sh 2017-06-17 10:35 240 [SPT] c99.sh 2017-06-17 10:36 231 [SPT] create_gcj_jvm.sh 2012-01-06 12:37 3.1K [BIN] ecj-4.9.jar 2013-12-10 16:23 1.5M [SPT] ecj.sh 2011-11-29 10:16 124 [URL] ecj.url 2015-08-19 22:31 42 [TAR] fastjar-0.97.tar.xz 2009-01-16 18:32 471K [TAR] gcc-5.5.0.tar.xz 2017-10-10 13:43 68M [TXT] gcc-5.5.0.tar.xz.sig 2017-10-10 13:43 65 [SPT] gcc5.SlackBuild 2019-03-25 19:58 20K [   ] gcc5.info 2018-03-06 13:40 608 [   ] libgcj-5.pc 2017-06-17 10:28 218 [TXT] slack-desc.gcc5 2017-06-17 10:16 852
Server (facade0) bandwidth utilisation
0  Bandwidth graph measuring   0.01 Gbit/s  10 Gbit/s