#1 Header File Location Wrong for GHC 6.4

open
Haskell (1)
5
2006-03-23
2006-03-23
Craig Blake
No

I am attempting to build on OSX 10.4 with GHC 6.4 and have run into a
configure problem:

checking for Rts.h... no
configure: error: cannot find Rts.h in /usr/local/lib/ghc-6.4/

Discussion

  • Craig Blake
    Craig Blake
    2006-03-23

    Logged In: YES
    user_id=814224

    I found the trouble. GHC 6.4 on my box by default looks for two packages:

    Glasgow Haskell Compiler, Version 6.4, for Haskell 98, compiled by GHC
    version 6.4
    Using package config file: /usr/local/lib/ghc-6.4/package.conf
    Using package config file: /Users/username/.ghc/powerpc-darwin-6.4/
    package.conf
    Hsc static flags: -static
    *** Deleting temp files
    Deleting:
    ghc-6.4: no input files
    Usage: For basic information, try the `--help' option.

    So changing the configure script to use only the first one worked around the
    error:

    HC_INCDIR=`${HC} -v 2>&1 | tr '\\\' / | sed -n -e 's|^Using package config
    file: \(.*/\).*$|\1| p' | head -n 1`include