This bindist tarball was built on 9.3-RELEASE
. But it can be used on the latest releases of the 10.x and 11.x branches as well — that is, it works on 9.3-RELEASE
, 10.3-RELEASE
, and 11.0-RELEASE
. It may work on 12-CURRENT
, but your milage may vary.
In order to be able to install the contents, the following ports or packages should be present on the system:
devel/gmake
(GNU make)lang/perl5
(Perl)lang/gcc
(GCC 4.9 or later, including GMP and binutils
)converters/libiconv
(on all versions, despite that 10.x or later has iconv
in base)configure
Although GHC may work with Clang, it is recommended to use GCC from the Ports Collection until the Clang support receives more testing on FreeBSD.
$ env CC=gcc49 ./configure --with-ld=/usr/local/bin/ld --prefix=$PREFIX
Regarding the LLVM-based code generator, note that the bindist was built with the LLVM tools present but recently the naming of the FreeBSD LLVM ports have changed, so their paths should be set manually in GHC's settings
file (under lib/ghc-X.Y.Z
) according to the version of LLVM installed. That is, llc37
and opt37
for LLVM 3.7 (installed via devel/llvm37
), and so on.
After configure
has completed successfully, just use GNU make(1)
:
$ gmake install
Please report problems directly to .