GHC 6.8.1 Build Failure on Mac OS X Intel 10.4.10

Denis Bueno dbueno at gmail.com
Thu Nov 8 20:24:19 EST 2007


Hi all,

Apologies if this has already been reported, or is a symptom of
something already reported.

I downloaded the GHC source
(http://www.haskell.org/ghc/dist/6.8.1/ghc-6.8.1-src.tar.bz2) and
attempted to build as follows, bootstrapping with GHC 6.6.1:

    ./configure ; make -j3

(The error manifests even without `-j3'.)  This eventually results in
the error [1]:

    ghc-pkg: dependency readline doesn't exist (use --force to override)

But config.log reports:

    configure:2809: checking for ghc-pkg matching /opt/local/bin/ghc
    configure:2821: result: /opt/local/bin/ghc-pkg
    configure:2868: checking whether ghc has readline package
    configure:2879: result: yes

Via MacPorts I have gmp 4.2.2 and readline 5.2.007 installed; I am
using XCode 2.5 and gcc 4.0.1.  The failure also happens if extralibs
is built alongside GHC.  I've checked
http://hackage.haskell.org/trac/ghc/wiki/X86OSXGhc and googled the
error message, but found nothing useful.

If there any more useful information I could provide, let me know.

-- 
                              Denis

[1] Here is more of the erroneous output:

    == Finished recursively making `all' for ways: p  ...
    Registering haskell98-1.0.1.0...
    Reading package info from "dist/inplace-pkg-config" ... done.
    Saving old package config file... done.
    Writing new package config file... done.
    make stage2
    make -C compiler boot stage=2
    ../utils/mkdirhier/mkdirhier stage2
    gcc -E  -undef -traditional -P \
    -DIMPORT_DIR='"/Users/Shared/incoming/ghc-6.8.1/libraries/ghc"' \
    -DLIB_DIR='"/Users/Shared/incoming/ghc-6.8.1/libraries/ghc"' \
    -DINCLUDE_DIR='"/Users/Shared/incoming/ghc-6.8.1/libraries/ghc/include"' \
    -DDATA_DIR='"/Users/Shared/incoming/ghc-6.8.1/libraries/ghc"' \
    -DHTML_DIR='"/Users/Shared/incoming/ghc-6.8.1/libraries/ghc/html"' \
    -DHADDOCK_IFACE='"/Users/Shared/incoming/ghc-6.8.1/libraries/ghc/html/ghc.haddock"'
\
    -DFPTOOLS_TOP_ABS='"/Users/Shared/incoming/ghc-6.8.1"' \
    -x c -DPKG_DEPENDS='hpc bytestring template-haskell readline unix
Cabal base haskell98' -DSTAGE='"2"' -I../includes -Iinclude
-DPACKAGE=ghc -DVERSION=6.8.1
-DPKG_LIBDIR='"/usr/local/lib/ghc-6.8.1"'
-DPKG_DATADIR='"/usr/local/share/ghc-6.8.1"' package.conf.in | \
    grep -v '^#pragma GCC' | \
    sed -e 's/""//g' -e 's/:[       ]*,/: /g' >package.conf.inplace
    mkdir stage2
    ../utils/ghc-pkg/ghc-pkg-inplace update - --force-files
<package.conf.inplace
    for i in utils basicTypes types hsSyn prelude rename typecheck
deSugar coreSyn vectorise specialise simplCore stranal stgSyn simplStg
codeGen main profiling parser cprAnalysis ndpFlatten iface cmm
nativeGen ghci; do \
        ../utils/mkdirhier/mkdirhier stage2/$i; \
    done
    mkdir stage2/utils
    mkdir stage2/basicTypes
    mkdir stage2/types
    mkdir stage2/hsSyn
    Reading package info from stdin ... done.
    ghc-pkg: dependency readline doesn't exist (use --force to override)
    make[2]: *** [../driver/stamp-pkg-conf-ghc] Error 1
    make[2]: *** Waiting for unfinished jobs....
    mkdir stage2/prelude
    mkdir stage2/rename
    mkdir stage2/typecheck
    mkdir stage2/deSugar
    mkdir stage2/coreSyn
    mkdir stage2/vectorise
    mkdir stage2/specialise
    mkdir stage2/simplCore
    mkdir stage2/stranal
    mkdir stage2/stgSyn
    mkdir stage2/simplStg
    mkdir stage2/codeGen
    mkdir stage2/main
    mkdir stage2/profiling
    mkdir stage2/parser
    mkdir stage2/cprAnalysis
    mkdir stage2/ndpFlatten
    mkdir stage2/iface
    mkdir stage2/cmm
    mkdir stage2/nativeGen
    mkdir stage2/ghci
    make[1]: *** [stage2] Error 2
    make: *** [bootstrap2] Error 2


More information about the Glasgow-haskell-users mailing list