Building GHC on AIX
Starting with GHC 8.0 it is possible again to build GHC on IBM AIX
This page documents which hoops to jump through to make this happen and what the current limitations are.
- GNU Make
- GCC (known to work: GCC 4.8.3, other versions may work as well though)
- GMP (unless
- libiconv-1.14 (compiled with
- binutils (for
The AIX Open Source Packages repository is a convenient source to get the prerequisites.
A consequence of this is that building a GHC crosscompiler targetting AIX is quite difficult.
Sadly (at the time of writing),
ld has only partial support for AIX. IBM's
ld must be used. Also, IBM's
ar is recommended over
Having said that, IBM's
as has deficiencies which cause problems when compiling GHC. So
binutils is recommended for building GHC.