Buildng ghc-devel from macports

Gregory Wright gwright at
Thu Apr 12 11:07:03 EDT 2007

Hi Chris,

On Apr 12, 2007, at 9:48 AM, C.M.Brown wrote:

> Hello,
> I've been trying to build the ghc-devel package (6.7) from macports.
> However the build seems to fail half through. Specifically when  
> running
> the setup for base-2.1:
> configure: Using compiler: ../../compiler/ghc-inplace
> configure: Compiler flavor: GHC
> configure: Compiler version: 6.7.20070411
> configure: Using package tool: ../../utils/ghc-pkg/ghc-pkg-inplace
> configure: Using ar found on system at: /usr/bin/ar
> configure: Using haddock found on system at: /opt/local/bin/haddock
> configure: Using ld given by user at: /usr/bin/ld
> configure: No pfesetup found
> configure: Using ranlib found on system at: /usr/bin/ranlib
> configure: Using runghc found on system at: /opt/local/bin/runghc
> configure: No runhugs found
> configure: Using tar found on system at: /usr/bin/tar
> configure: Using happy: /opt/local/bin/happy
> configure: Using alex: /opt/local/bin/alex
> configure: Using hsc2hs: ../../utils/hsc2hs/hsc2hs-inplace
> configure: No c2hs found
> configure: No cpphs found
> configure: No greencard found
> Setup: Unrecognised flags:
>  --with-cc=gcc
> make[1]: *** [stamp/] Error 1
> make: *** [stage1] Error 2
> Hope someone can help!
> kind regards,
> Chris.

To tell what's going on I'll need the build.log output of

	> sudo port -dv build ghc-devel > build.log 2>&1

This will be quite long, and you might want to compress it.  You can  
it to me directly (I maintain the macports ghc-devel port) if you'd  

Please remember to run

	> sudo port clean ghc-devel

first to clean out any previous stuff.  Macports can not yet properly
restart an interrupted build.

Best Wishes,

More information about the Glasgow-haskell-users mailing list