Skip to content
Stefan "Bebbo" Franke edited this page Aug 5, 2018 · 12 revisions

Welcome to Amiga-Gcc

This project provides you a configuration to download, configur and build a cross-compiler toolchain for the classic AmigaOS with 68k based cpus.

Supported Plattforms

It's known to build properly on Centos 7.5 64 bit, Cygwin 32/64bit, Linux Mint 17.10, Ubuntu 17.*/18.* and OSX. Guess more plattforms will do.

Centos

sudo yum install gcc gcc-c++ python git perl-Pod-Simple gperf patch autoconf automake make makedepend bison flex ncurses-devel gmp-devel mpfr-devel libmpc-devel gettext-devel texinfo

Ubuntu

sudo apt install make git gcc g++ lhasa libgmp-dev libmpfr-dev libmpc-dev flex gettext texinfo

Windows with Cygwin

Install cygwin via setup.exe and add wget. Then open cygwin shell and run:

wget https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg
install apt-cyg /bin
apt-cyg install gcc-core gcc-g++ python git perl-Pod-Simple gperf patch automake make makedepend bison flex libncurses-devel python-devel gettext-devel libgmp-devel libmpc-devel libmpfr-devel

How to build/update

git pull
make update -j
make all -j4

To clean run

make clean clean-prefix -j

What libraries are provided?

At time of writing you may select one of 3 libraries to create your programs:

Library newlib libnix clib2
switch -noixemul or -mcrt=nix20 -mcrt=clib2
supports Kickstart 1.3 no yes -mcrt=nix13 no
code size larger smaller dunno
status quite new stable stable
-lsocket no yes yes

Quality of the libs

There is a project with tests for libc: git://git.musl-libc.org/libc-testsuite Here are some results of its tests.

A number is the count of errors, - is not built, -1 test does not run properly

Test newlib libnix clib2
basename - 6 0
dirname - - 0
env - - -
fcntl - -1 -
fnmatch - 9 -
fscanf - -1 -
fwscanf 18 - 27
mbc 0 - -
memstream 1 - -
popen - 2 -
qsort 0 0 0
snprintf 3 21 12
sscanf 7 7 10
string 0 0 0
strtod 19 101 101
strtol 4 3 5
swprintf 5 - -
ungetc 0 0 6
wcstol 4 - 26
Clone this wiki locally