[Haskell-cafe] ghc-HEAD: build succeeds, but install fails with linker errors?

Reid Barton rwbarton at math.harvard.edu
Thu Jun 26 03:00:27 EDT 2008

I'm trying to install GHC from the darcs repository for the first
time, so I'm hoping someone here can tell me if I'm doing something
wrong before I bother cvs-ghc.

I'm currently running ghc 6.8.2 on Debian x86 Linux.  Following the
instructions on the wiki, I put the following in a file and ran it:

darcs get --partial http://darcs.haskell.org/ghc
cd ghc
chmod +x darcs-all
./darcs-all get
sh boot
./configure --prefix=$HOME/ghc-HEAD
make install

but during the "make install" step I get the error

../../compiler/stage1/ghc-inplace -no-user-package-conf -o ghc-pkg.bin -H32m -O  -cpp -Wall -fno-warn-name-shadowing -fno-warn-unused-matches -package Cabal -Rghc-timing  -package unix -package containers       Main.o Version.o CRT_noglob.o  
Main.o: In function `s7AP_info':
(.text+0x1d): undefined reference to `prettyzm1zi0zi0zi0_TextziPrettyPrintziHughesPJ_Str_con_info'
{- hundreds of similar errors (not all from the pretty package, some from base and others as well) -}
collect2: ld returned 1 exit status
<<ghc: 50428432 bytes, 6 GCs, 131072/131072 avg/max bytes residency (1 samples), 31M in use, 0.00 INIT (0.00 elapsed), 0.07 MUT (0.55 elapsed), 0.02 GC (0.02 elapsed) :ghc>>
make[2]: *** [ghc-pkg.bin] Error 1
Failed making install in ghc-pkg: 1
make[1]: *** [install] Error 1
make: *** [install] Error 1

Have I got some of the steps wrong?

Reid Barton

More information about the Haskell-Cafe mailing list