Thanks again for your help with building GHC, folks.

I downloaded Xcode 2.4, following Mathew's suggestion; I now have gcc 4.0.1. I also made a mk/build.mk file, following Malcolm's suggestion to look at the HACKING file. It got a bit further this time, but still gave up - last few lines in the shell window are below.

I suspect I've done something silly here. This was from typing "make", which (I thought) shouldn't try installing - so why is it looking in /usr/local/{lib,share}/ghc-6.4.2 ? There are no such directories...

Any hints greatly appreciated!

Jeremy

gcc -E  -undef -traditional -P -DINSTALLING \
-DIMPORT_DIR='"/usr/local/lib/ghc-6.4.2/imports"' \
-DLIB_DIR='"/usr/local/lib/ghc-6.4.2"' \
-DINCLUDE_DIR='"/usr/local/lib/ghc-6.4.2/include"' \
-DDATA_DIR='"/usr/local/share/ghc-6.4.2"' \
-DHTML_DIR='"/usr/local/share/ghc-6.4.2/html/libraries/readline"' \
-DHADDOCK_IFACE='"/usr/local/share/ghc-6.4.2/html/libraries/readline/ readline.haddock"' \ -x c -DLibsReadline='"readline","ncurses"' -I../../ghc/includes - Iinclude -DPACKAGE=readline -DVERSION=1.0 -DPKG_LIBDIR='"/usr/local/ lib/ghc-6.4.2"' -DPKG_DATADIR='"/usr/local/share/ghc-6.4.2"' package.conf.in | \
grep -v '^#pragma GCC' | \
sed -e 's/""//g' -e 's/:[       ]*,/: /g' >package.conf.installed
../../ghc/utils/ghc-pkg/ghc-pkg-inplace --force --update-package <package.conf.inplace
Reading package info from stdin ... done.
cannot find libHSreadline.a on library path (ignoring)
Saving old package config file... done.
Writing new package config file... done.
../../ghc/utils/ghc-pkg/ghc-pkg-inplace -f ../../ghc/driver/ package.conf --force --update-package <package.conf.installed
Reading package info from stdin ... done.
/usr/local/lib/ghc-6.4.2/imports doesn't exist or isn't a directory (ignoring)
/usr/local/lib/ghc-6.4.2 doesn't exist or isn't a directory (ignoring)
/usr/local/lib/ghc-6.4.2/include doesn't exist or isn't a directory (ignoring)
cannot find libHSreadline.a on library path (ignoring)
Saving old package config file... done.
Writing new package config file... done.
../../ghc/utils/hsc2hs/hsc2hs-inplace -Iinclude -I. System/Console/ Readline.hsc
Readline.hsc: In function 'main':
Readline.hsc:677: error: 'UNDO_DELETE' undeclared (first use in this function) Readline.hsc:677: error: (Each undeclared identifier is reported only once
Readline.hsc:677: error: for each function it appears in.)
Readline.hsc:678: error: 'UNDO_INSERT' undeclared (first use in this function) Readline.hsc:679: error: 'UNDO_BEGIN' undeclared (first use in this function) Readline.hsc:680: error: 'UNDO_END' undeclared (first use in this function) Readline.hsc:1021: error: 'MULT_MATCH' undeclared (first use in this function) Readline.hsc:1044: error: 'SINGLE_MATCH' undeclared (first use in this function)
make[2]: *** [System/Console/Readline.hs] Error 1
make[1]: *** [boot] Error 1
make[1]: Leaving directory `/Users/jg/Documents/research/conferences/ icfp2006/ghc-hackathon/ghc-6.4.2/libraries'
make: *** [build] Error 1




[EMAIL PROTECTED]
  Oxford University Computing Laboratory,    TEL: +44 1865 283508
  Wolfson Building, Parks Road,              FAX: +44 1865 273839
  Oxford OX1 3QD, UK.
  URL: http://www.comlab.ox.ac.uk/oucl/people/jeremy.gibbons.html


_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to