Hi all,
I'm having problems building GHC cleanly from the tarballs on
darcs.haskell.org.
I've tried this 3 times now, following the instructions on the wiki
word-for-word. I can get the compiler proper to build, but the first
error message makes me think the build tree hasn't configured properly...
On Linux:
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.8.3
$ bzip2 -dc ghc-HEAD-2008-08-17-ghc-corelibs-testsuite.tar.bz2 |tar xf -
$ cd ghc
$ darcs pull -a
$ ./darcs-all get
$ ./darcs-all pull -a
$ cp mk/build.mk/sample mk/build.mk
$ vi mk/build.mk
# uncomment BuildFlavour = devel1
$ sh boot
$ ./configure
$ make stage1
--------------------------------------------
-- it runs for a while then gives:
--------------------------------------------
checking for strspn... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating rdoff/Makefile
creating doc/Makefile
touch stamp.ffi
cp build/include/ffi.h .
cp: cannot stat `build/include/ffi.h': No such file or directory
make[1]: *** [ffi.h] Error 1
make[1]: Leaving directory `/home/benl/devel/ghc/ghc/libffi'
make: *** [stage1] Error 2
--------------------------------------------
-- so I try and repair it:
--------------------------------------------
$ cd libffi/build
$ ls include
Makefile.am Makefile.in ffi.h.in ffi_common.h
$ ./configure
... looks ok
$ cd ../..
$ make stage1
--------------------------------------------
-- now its building GHC proper
-- built stage1-inplace/ghc ok
-- building RTS..
--------------------------------------------
Now dies with:
creating rdoff/Makefile
creating doc/Makefile
if ifBuildable/ifBuildable /home/benl/devel/ghc/ghc/packages base; then \
cd base && \
cmp -s /home/benl/devel/ghc/ghc/libraries/Makefile.local
Makefile.local || cp /home/benl/devel/ghc/ghc/libraries/Makefile.local .; \
mv GNUmakefile GNUmakefile.tmp; \
/home/benl/devel/ghc/ghc/libraries/cabal-bin
/home/benl/software/ghc-6.8.3/bin/ghc
/home/benl/devel/ghc/ghc/libraries/bootstrapping.conf makefile -f
GNUmakefile; \
cmp -s GNUmakefile GNUmakefile.tmp && mv GNUmakefile.tmp
GNUmakefile; \
make -wr && \
/home/benl/devel/ghc/ghc/libraries/cabal-bin
/home/benl/software/ghc-6.8.3/bin/ghc
/home/benl/devel/ghc/ghc/libraries/bootstrapping.conf register --inplace; \
fi
mv: cannot stat `GNUmakefile': No such file or directory
Preprocessing library base-4.0...
In file included from CPUTime.hsc:37:
include/HsBase.h:12:26: error: HsBaseConfig.h: No such file or directory
In file included from CPUTime.hsc:37:
include/HsBase.h: In function '__hscore_o_binary':
include/HsBase.h:295: error: 'CONST_O_BINARY' undeclared (first use in
this function)
include/HsBase.h:295: error: (Each undeclared identifier is reported
only once
include/HsBase.h:295: error: for each function it appears in.)
include/HsBase.h:412:2: error: #error at least ftruncate or _chsize
functions are required to build
include/HsBase.h: In function '__hscore_end_of_dir':
include/HsBase.h:486: error: 'READDIR_ERRNO_EOF' undeclared (first use
in this function)
compiling dist/build/System/CPUTime_hsc_make.c failed
command was: /usr/bin/gcc -c -D__GLASGOW_HASKELL__=609 -Iinclude
-I/home/benl/devel/ghc/ghc/includes -I/home/benl/devel/ghc/ghc/rts
-I/home/benl/devel/ghc/ghc/gmp/gmpbuild
dist/build/System/CPUTime_hsc_make.c -o dist/build/System/CPUTime_hsc_make.o
make[2]: Entering directory `/home/benl/devel/ghc/ghc/libraries/base'
cd rdoff; make all
make[3]: Entering directory `/home/benl/devel/ghc/ghc/libraries/base/rdoff'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/benl/devel/ghc/ghc/libraries/base/rdoff'
make[2]: Leaving directory `/home/benl/devel/ghc/ghc/libraries/base'
Registering base-4.0...
Reading package info from "dist/inplace-pkg-config" ... done.
ghc-pkg: cannot find libHSbase-4.0.a on library path (use --force to
override)
make[1]: *** [make.library.base] Error 1
make[1]: Leaving directory `/home/benl/devel/ghc/ghc/libraries'
make: *** [stage1] Error 2
------------------------------------------
-- Investigating further back up the log:
-----------------------------------------
Linking Setup ...
./Setup configure --prefix=/NONEXISTENT --bindir=/NONEXISTENT
--libdir=/NONEXISTENT --libexecdir=/NONEXISTENT --datadir=/NONEXISTENT
--docdir=/NONEXISTENT --haddockdir=/NONEXISTENT --htmldir=/NONEXISTENT
--with-compiler=/home/benl/devel/ghc/ghc/ghc/stage1-inplace/ghc
--with-hc-pkg=/home/benl/devel/ghc/ghc/utils/ghc-pkg/install-inplace/bin/ghc-pkg
--libsubdir=$pkgid --with-gcc=gcc --with-ld=/usr/bin/ld
--with-alex=/home/benl/software/alex-2.0.1/alex/src/alex
--with-haddock=/home/benl/software/haddock-0.7/bin/haddock
--with-happy=/home/benl/software/happy-1.15/bin/happy
--configure-option=--with-cc=gcc
--with-hsc2hs=/home/benl/devel/ghc/ghc/utils/hsc2hs/install-inplace/bin/hsc2hs
--haddock-options=--use-contents=../index.html --use-index=../doc-index.html
Configuring ghc-prim-0.1...
if ifBuildable/ifBuildable /home/benl/devel/ghc/ghc/packages ghc-prim;
then \
cd ghc-prim && \
cmp -s /home/benl/devel/ghc/ghc/libraries/Makefile.local
Makefile.local || cp /home/benl/devel/ghc/ghc/libraries/Makefile.local .; \
mv GNUmakefile GNUmakefile.tmp; \
/home/benl/devel/ghc/ghc/libraries/cabal-bin
/home/benl/software/ghc-6.8.3/bin/ghc
/home/benl/devel/ghc/ghc/libraries/bootstrapping.conf makefile -f
GNUmakefile; \
cmp -s GNUmakefile GNUmakefile.tmp && mv GNUmakefile.tmp
GNUmakefile; \
make -wr && \
/home/benl/devel/ghc/ghc/libraries/cabal-bin
/home/benl/software/ghc-6.8.3/bin/ghc
/home/benl/devel/ghc/ghc/libraries/bootstrapping.conf register --inplace; \
fi
mv: cannot stat `GNUmakefile': No such file or directory
./Setup makefile -f GNUmakefile
Preprocessing library ghc-prim-0.1...
Generating Makefile ghc-prim-0.1...
???
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc