
Hello GHC users,
I've attempted to build an installation of GHC which uses
unregisterised libraries, but have not had much success. I am new to
GHC's build system and would be grateful for some advice.
I'm trying to build the 6.4.2 source distribution on an x86 linux
machine, using GHC 6.4.2 (the "Generic Linux with glibc2.3" version on
the download page.) The target is the same machine.
I've created a mk/build.mk file containing just the line:
GhcUnregisterised = YES
which, according to the comment in mk/config.mk, ought to build the
unregisterised libraries that I'm after (and use them by default.)
I run configure as follows:
./configure --prefix="$HOME"/ghc_u
and then simply "make".
After some time, the build fails with the following:
------------------------------------------------------------------------
==fptools== make all -wr;
in /mnt/raid/home/jeremyrw/src/src/ghc-6.4.2/libraries/base
------------------------------------------------------------------------
../../ghc/compiler/ghc-inplace -H16m -O -fglasgow-exts -cpp -Iinclude
-"#include" HsBase.h -funbox-strict-fields -ignore-package base -O
-Rghc-timing -fgenerics -fgenerics -split-objs -c GHC/Err.lhs-boot
-o GHC/Err.o-boot -ohi GHC/Err. hi-boot
<

On Wed, Sep 13, 2006 at 09:43:03PM +1000, Jeremy Wazny wrote:
I've attempted to build an installation of GHC which uses unregisterised libraries, but have not had much success. I am new to GHC's build system and would be grateful for some advice.
I'm trying to build the 6.4.2 source distribution on an x86 linux machine, using GHC 6.4.2 (the "Generic Linux with glibc2.3" version on the download page.) The target is the same machine.
I've created a mk/build.mk file containing just the line:
GhcUnregisterised = YES
which, according to the comment in mk/config.mk, ought to build the unregisterised libraries that I'm after (and use them by default.)
For my unregisterised builds I use: GhcUnregisterised=YES GhcWithNativeCodeGen=NO GhcWithInterpreter=NO SplitObjs=NO The "SplitObjs=NO" will solve the problem you are seeing. Thanks Ian
participants (2)
-
Ian Lynagh
-
Jeremy Wazny