This bindist tarball was built on 8.4-RELEASE
. But it can be used on the latest releases of the 9.x and 10.x branches as well -- that is, it works both on 9.2-RELEASE
and 10.0-RELEASE
. It may work on 11-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-5.16
(Perl)lang/gcc
(GCC 4.6 or later, including GMP and binutils)misc/compat8x
(only on 9.x and 10.x)converters/libiconv
(on all versions, despite that 10.x has iconv
in base)configure
Although GHC 7.8 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=gcc46 ./configure --with-gcc=gcc46 --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-7.8.0.20140228
) according to the version of LLVM installed. That is, llc34
and opt34
for LLVM 3.4 (installed via devel/llvm34
) and so on.
After configure
has completed successfully, just use GNU make:
$ gmake install
Please report the problems directly to .