BigBrownBuild /

Filename Size Date modified Message
63.9 KB
1.0 KB
1.3 KB
23.1 KB
4.1 KB
10.1 KB

What is this

A collection of brown scripts that build brown compilers and libaries for the Atari ST series of computers.

Notable features

  • link-time whole-program optimisation (inter-module calls & inlining)

  • improved optimiser

  • C++14, C++17 support

  • named section support via C and asm

  • proper C++ initialise/finalise sequence

  • GST extended symbols

  • can preview code generation in Godbolt/68k (try it live at

  • path open for future gcc releases


The script will attempt to auto-fetch the required gcc/binutils/mintlib packages. If something goes wrong you'll have to modify the fetch URLs.

Make sure you have installed the following libraries and tools.


  • GMP (dev)

  • MPFR (dev)

  • MPC (dev)

  • bison-bin

  • flex-bin

  • flex-dev

GMP/MPFR/MPC are required for building gcc, flex and bison for building MiNTlib.


Use Macports and install:

  • gmp

  • mpfr

  • libmpc

  • bison

  • flex

  • gsed

  • gnutar


Before running the script it is advised to open it and go through the "User definable stuff" settings. In brief they are:


Set this to A if you want a completely automated run.


Set this to 1 to build Fortran, anything else to skip building Fortran.


Set this to 1 to download prerequisite libs such as MPC and MPFR automatically (without having to install them on the host machine) via the contrib/download_prerequisites script inside each gcc. Not tested extensively but it seems to work with gcc 4.6.4.


Which gccs to build. 1=Build, anything else=Don't build. Can be toggled individually.


Should we run this as an administrator or user? Administrator mode will install the compiler in the system's folders and will require root priviledges.


Only set this to nonzero when you do want to build mintlib. Note that if you don't build mintlib then libstdc++v3 will also fail to build, so you are advised to keep this on.


The actual names of the compilers used to build our set of gccs. The names aretuned for ubuntu 17.10 so your mileage may vary!

Also you might be able to build all gcc versions using one compiler. In Ubuntu 17.10 so many problems were encountered in Ubuntu (including Internal Compiler Errors) that this is now in full pendantic mode. Again, your mileage may vary!

Other notes

The script will install things to $INSTALL_PREFIX and might need root privileges. Also it'll use $JMULT cores while building. If this is not to your liking then edit this script and change INSTALL_PREFIX to the path you would like to install to (including home folder) and SUDO to nothing if you don't need root rights. Also JMULT for number of build cores. Examples are inside the script's comments


Inside the folder barebones there exist test projects to verify that your gcc installation is sane. Just type make on installations that have make installed or run build.bat under Windows (especially if you built the toolchain(s) using MinGW).

This is a work-in-progress script. Currently it cannot build GEMlib properly. Patches welcome!

This is a work-in-progress script. Currently it cannot build GEMlib properly. Patches welcome!

Note for MinGW users

Be warned that the compilation can take a very very VERY long time! If you can spare the RAM, we really recommend using a RAM drive! Our tests have shown that imdisk ( works fine. Of course take notice that you're doing this on your own, we won't accept any liability if something goes wrong with that!!!!


The bulk of the script was written by George 'GGN' Nakos, with enhancements from:

  • Douglas 'DML' Little
  • Patrice 'PMANDIN' Mandin
  • Troed 'TROED' SĂ„ngberg