Amiga & Windows cross-compilers for Linux (64-bit x86)

Portabl E's r6 release allows (64-bit x86) Linux users to cross-compile Amiga & Windows executables using the PEGCC program.  But for that to work you will need to have installed the relevant cross-compilers.  Please let me know about any errors or problems with the instructions below.

Windows

You can install the necessary MingW packages (490MB) using this command:
sudo apt install g++-mingw-w64-i686
But if that fails for some reason, then you can install all of the MingW packages (875MB) using this command:
sudo apt install mingw-w64

AROS

ZeroHero used to provide an AROS cross-compiler for Linux, but sadly that's no-longer available.  Using Apiraino's guide, and thank's to the help of other people, I've been able to build a relatively modern AROS cross-compiler for Linux:
You can only install one.  It should be unpacked to /usr/local , for example:
cd /usr/local
sudo tar --xz -xvf AROS_GCC_v4.6.4.tar.xz
If you don't want to unpack it as root, then you first need to run the following commands:
sudo mkdir -p /usr/local/amiga; sudo chgrp $USER /usr/local/amiga; sudo chmod g+w /usr/local/amiga

Finally you must have /usr/local/amiga/bin in your PATH, by adding the following line at the end of your ~/.bashrc file:
export PATH=/usr/local/amiga/bin:$PATH

MorphOS

BigFoot has provided a MorphOS cross-compiler for Linux.  Simply download morphos-sdk_20220309-2_amd64.deb , open a terminal, cd to the download folder, and then run these commands:
sudo apt-get install morphos-sdk_20220309-2_amd64.deb
sudo mkdir -p /usr/local/amiga; sudo chgrp $USER /usr/local/amiga; sudo chmod g+w /usr/local/amiga
mkdir -p /usr/local/amiga/bin
ls -1 /gg/bin/ppc-morphos-* | xargs -n1 basename | xargs -I {} ln -s /gg/bin/{} /usr/local/amiga/bin/{}
sudo rm -v /usr/local/amiga/ppc-morphos-*
Finally you must have /usr/local/amiga/bin in your PATH, by adding the following line at the end of your ~/.bashrc file:
export PATH=/usr/local/amiga/bin:$PATH

AmigaOS4

ZeroHero's OS4 cross-compiler is still available from Kas1e.  Download both these archives & unpack them into /usr/local : You also need to create the folder SDK in /usr/local/amiga/ppc-amigaos , and then install Hyperion's OS4 SDK within it:

The simplest way is to install SDK_53.34.lha (94MB) or SDK_54.16.lha (346MB) on an AmigaOS4 machine, and then copy the folders clib2, include & local from SDK: into the Linux /usr/local/amiga/ppc-amigaos/SDK folder. 
Beware the "clib2" of SDK_53.34.lha does not work on Linux, so instead you will need to replace it with clib2-1.205-gcc-os4.lha whose unpacked folder should be renamed "clib2", and then placed inside the /usr/local/amiga/ppc-amigaos/SDK folder.

But if you don't have easy access to an OS4 machine, then you can use the following steps:
lha -x clib2-1.205-gcc-os4.lha
lha -x SDK_53.34.lha
for i in base.lha execsg_sdk-54.26.lha MUI-5.0.lha AmiSSL-4.11.lha; do lha -x SDK_Install/$i; done
rsync -a Include/ include/
rsync -a --ignore-existing MUI/C/include/ include/include_h/
sudo mkdir -p /usr/local/amiga; sudo chgrp $USER /usr/local/amiga; sudo chmod g+w /usr/local/amiga
mkdir -p /usr/local/amiga/ppc-amigaos/SDK
mv {include,local} /usr/local/amiga/ppc-amigaos/SDK/
mv clib2-1.205 /usr/local/amiga/ppc-amigaos/SDK/clib2
mkdir -p /usr/local/amiga/ppc-amigaos/SDK/local/common
You can then delete the temporary folder.

Finally, whichever way you install the SDK, you must have /usr/local/amiga/bin in your PATH, by adding the following line at the end of your ~/.bashrc file:
export PATH=/usr/local/amiga/bin:$PATH

Tip:  If GCC gives this error:
/usr/local/amiga/libexec/gcc/ppc-amigaos/4.4.3/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
Then you need to run something like this command:
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.1

Tip:  If GCC gives this error:
/usr/local/amiga/libexec/gcc/ppc-amigaos/4.4.3/cc1: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory
Then you need to run something like this command:
sudo ln -s /usr/lib/x86_64-linux-gnu/libgmp.so.10 /usr/lib/x86_64-linux-gnu/libgmp.so.3

AmigaOS3

ZeroHero's OS3 cross-compiler is still available from Kas1e.  Download both these archives & unpack them into /usr/local :
You also need to install the OS3 SDK, by downloading the following archives & unpacking them into /usr/local :
Or I've combined all the above (inc. the cross-compiler) into the single archive m68k-amigaos.tar.xz which must be unpacked to /usr/local .

If you don't want to unpack it as root, then you first need to run the following commands:
sudo mkdir -p /usr/local/amiga; sudo chgrp $USER /usr/local/amiga; sudo chmod g+w /usr/local/amiga

Finally you must have /usr/local/amiga/bin in your PATH, by adding the following line at the end of your ~/.bashrc file:
export PATH=/usr/local/amiga/bin:$PATH