Sorry to revive a dead horse, but there's still a bit of a problem with building ghc on os x because of missing files that need to be created by happy. I downloaded the current stable sources yesterday (ghc-6.8.0.20071015-src.tar.bz2 and ghc-6.8.0.20071015-src- extralibs.tar.bz2) and tried building them on a powerbook G4 running OS X 10.4.10 with ghc 6.1.1 and the latest apple developer tools installed. If I build just the basic package, that works fine. But when I unpacked the basic package into a new directory and then unpacked the extralibs on top of it, the resulting build failed with the following at the end of the transcript:

Reading package info from "dist/inplace-pkg-config" ... done.
Saving old package config file... done.
Writing new package config file... done.
rm -f -f stamp/configure.library.*.haskell-src haskell-src/unbuildable
( cd haskell-src && setup/Setup configure \
            --enable-library-profiling --enable-split-objs \
           --prefix=/NONEXISTANT \
           --bindir=/NONEXISTANT \
           --libdir=/NONEXISTANT \
           --libsubdir='$pkgid' \
           --libexecdir=/NONEXISTANT \
           --datadir=/NONEXISTANT \
           --docdir=/NONEXISTANT \
           --htmldir=/NONEXISTANT \
           --with-compiler=../../compiler/stage1/ghc-inplace \
           --with-hc-pkg=../../utils/ghc-pkg/ghc-pkg-inplace \
           --with-hsc2hs=../../utils/hsc2hs/hsc2hs-inplace \
           --with-ld=/usr/bin/ld \
           --haddock-options="--use-contents=../index.html \
                           --use-index=../doc-index.html" \
              \
           --configure-option=--with-cc=gcc ) \
&& touch stamp/configure.library.build-profiling- splitting.haskell-src || touch haskell-src/unbuildable
Configuring haskell-src-1.0.1...
rm -f haskell-src/GNUmakefile
cp Makefile.local haskell-src
if ifBuildable/ifBuildable haskell-src; then \
   cd haskell-src && setup/Setup makefile -f GNUmakefile; \
fi
Preprocessing library haskell-src-1.0.1...
Setup: happy command not found
make[1]: *** [haskell-src/GNUmakefile] Error 1
make: *** [stage1] Error 2


This isn't a huge deal since at least the core package builds, but it would be nice to fix it if possible before 6.8.x is released. Thanks.
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to