
Aha. It seems that the libraries tree is not independent of the 'ghc'
tree; this is because the 'base/GHC/' subtree is absolutely GHC
specific.
The quickest workaround is to check out ghc/ as well as libraries/, and
say 'make boot' in the ghc tree. Don't forget to do the 'configure'
stuff.
Also, compiling the libraries tree probably assumes that you want to use
the ghc in the same tree. You may need to add 'HC=ghc' to your 'make'
calls.
Simon
| -----Original Message-----
| From: Dominic Steinitz [mailto:dominic.steinitz@blueyonder.co.uk]
| Sent: 12 April 2003 12:09
| To: Simon Marlow; Simon Peyton-Jones
| Cc: libraries-request@haskell.org; glasgow-haskell-users@haskell.org
|
| I've tried building the libraries tree but got the following. Can
anyone
| help?
|
| I'm not sure what name to give the proposed crypto library. Should it
be
| Data.Crypto?
|
| [dom@tility libraries]$ make boot
|
------------------------------------------------------------------------
| ===fptools== Recursively making `boot' in base haskell98 network
haskell-src
| ...
| PWD = /home/dom/fptools/libraries
|
------------------------------------------------------------------------
|
------------------------------------------------------------------------
| ==fptools== make boot -r;
| in /home/dom/fptools/libraries/base
|
------------------------------------------------------------------------
| make[1]: *** No rule to make target `/prelude/primops.txt', needed by
| `GHC/PrimopWrappers.hs'. Stop.
| make: *** [boot] Error 1
| [dom@tility libraries]$
|
| Dominic Steinitz
| ----- Original Message -----
| From: "Simon Marlow"

Simon,
Thanks.
I checked out as follows:
[dom@tility fptools]$ cvs -d :pserver:anoncvs@glass.cse.ogi.edu:/cvs
checkout -r
ghc-5-04-2 ghc hslibs libraries
But got the following. I'm not sure what it's telling me.
configure: creating ./config.status
config.status: creating mk/config.mk
config.status: creating mk/config.h
config.status: executing default commands
configure: configuring in ghc
configure: running /bin/sh
/configure --prefix=/usr/local --cache-file=/dev/null --srcdir=.
./configure: ./configure: No such file or directory
configure: error: /bin/sh ./configure failed for ghc
[dom@tility fptools]$
On the assumption this wasn't serious I then tried
1004 cd ../glafp-utils/
1005 make boot
1006 make
1007 cd ../ghc
1008 make boot
[dom@tility ghc]$
but got the following:
/usr/bin/ghc -M -optdep-f -optdep.depend -osuf
o -ldl -cpp -DPKG_TOOL -DWANT_PRETTY -package lang -package util -package
text -O Main.hs Package.hs ParsePkgConfLite.hs
make all
/usr/bin/ghc -o ghc-pkg.bin -ldl -cpp -DPKG_TOOL -DWANT_PRETTY -package
lang -package util -package text -O Main.o Package.o
ParsePkgConfLite.o
/usr/bin/ld: cannot find -lreadline
collect2: ld returned 1 exit status
make[3]: *** [ghc-pkg.bin] Error 1
make[2]: *** [boot] Error 2
make[1]: *** [boot] Error 1
make: *** [boot] Error 1
[dom@tility ghc]$
Dominic Steinitz
----- Original Message -----
From: "Simon Peyton-Jones"
participants (2)
-
Dominic Steinitz
-
Simon Peyton-Jones