This file documents the Linux/x86 and Linux/x86_64 ports.
For the Linux/AArch64 (ARM64) port, see README.Linux-aarch64.md.
For the Linux/PowerPC port, see README.Linux-PPC.md.
For the Linux/Motorola 68000 port, see README.Linux-m68k.md.
(Ports to Linux on other architectures have not yet been attempted, but should not be difficult.)
If you are installing on x86, then also see README.x86.md.
To build a 32-bit Mercury compiler on 64-bit Linux, follow these steps:
-
Ensure that the 32-bit (e.g. i686 etc) packages for the C compiler and libraries are available on the build system.
-
Ensure that you have a working Mercury compiler in your PATH to bootstrap from.
-
Run
./prepare.shand then invokeconfigureas follows:./configure --host=i686-pc-linux-gnu --with-cc="gcc -m32" -
Do
mmake; mmake installas normal.