Hi Ian -

Here's what I've found:

- libraries/haskell-src/Language/Haskell/Parser.hs still exists at the point the build stopped, with the original Oct.15 timestamp.

- the suggested make.rebuild... command fails with the same problem. Console output:

 make rebuild.library.haskell-src
rm -f -f stamp/configure.library.*.haskell-src haskell-src/unbuildable
cd haskell-src && setup/Setup clean
cleaning...
rm -f -rf haskell-src/setup
rm -f haskell-src/GNUmakefile haskell-src/Makefile.local
rm -f -rf haskell-src/setup
mkdir haskell-src/setup
cp haskell-src/Setup.*hs haskell-src/setup
cd haskell-src/setup && /usr/local/bin/ghc -Wall -cpp --make Setup.*hs -o Setup \ -i../../bootstrapping.Cabal -i../../ bootstrapping.filepath
[42 of 42] Compiling Main             ( Setup.hs, Setup.o )
Linking Setup ...
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: *** [haskell-src/GNUmakefile] Error 1


- I couldn't find a Parser.y file in haskell-src/Language/Haskell, but there was a Parser.ly file. When I removed that and reran the make command it ran for a while and eventually completed with:

== Finished recursively making `all' for ways: p ...
Registering haskell-src-1.0.1...
Reading package info from "dist/inplace-pkg-config" ... done.
Saving old package config file... done.
Writing new package config file... done.

which looks like success.

Once that worked, I changed to the main directory (..) and ran make from there to continue the build, and that appears to have completed normally.

Hope that gives you some clues about what to do next.

Thanks

Hal



On Oct 17, 2007, at 11:33 AM, Ian Lynagh wrote:


Hi Hal,

On Tue, Oct 16, 2007 at 09:54:32PM -0700, Hal Perkins wrote:
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)

OK, ghc-6.8.0.20071015-src-extralibs.tar.bz2 definitely includes

    libraries/haskell-src/Language/Haskell/Parser.hs

Preprocessing library haskell-src-1.0.1...
Setup: happy command not found
make[1]: *** [haskell-src/GNUmakefile] Error 1

Does the above file still exist at this point?

If so, does
    cd libraries
    touch haskell-src/Language/Haskell/Parser.hs
    make rebuild.library.haskell-src
work?

If that doesn't do it, what about if you delete
    haskell-src/Language/Haskell/Parser.y
and then try
    make rebuild.library.haskell-src
?


Thanks
Ian



_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to