[ please cc me any reply since I'm not (yet?) on this mailing list ]
I'm trying to install ghc on AIX (having read the note saying that 2.05 works):
I did
> gtar zxf ghc-2.05-src.tar.gz
> cd fptools
> gtar zxf ghc-2.05-hc.tar.gz
> gtar zxf ghc-2.05-hi.tar.gz
> ./configure --with-hc=c --prefix=/some/where
> echo GhcWithHscBuiltViaC=YES >>mk/config.mk
> gmake boot
... works fine ...
> gmake all
... fails, so I retry, logging the error for your convenience ...
> gmake all |& make.log
... pukes when trying to use compiler/hsc, see attachment ...
By the way, is "GhcWithHscBuiltViaC=YES" supposed to be in mk/config.mk
or in the non-existant build.mk (but mentioned by the html page) ?
Also where is "--with-hc=c" documented ? Does it replace
GhcWithHscBuiltViaC=YES" ?
Stefan
PS: Am I the only one who thinks it's annoying to wait for makeindex, gmp and
other such external code to be compiled since they might already be (and are
in my case) installed on the system. It's especially annoying because makeindex
is not too cleanly written (from what I've seen until now) which increases the
risk of the compilation failing. And it's also annoying because I'd like to
take advantage of my effort to make a shared-lib version of gmp (especially
since gmp is most likely already in memory when I use ghc since I login via
SSH). Why was perl deemed "prerequisite" but not gmp ? Couldn't you package gmp
in the same source file, but tell people "compile it first if you haven't
done it yet" so that the normal compilation of ghc just tries to find gmp
in the "system" libs ?
------------------------------------------------------------------------
===fptools== Recursively making `all' in glafp-utils literate ghc hslibs ...
PWD = /scratch/monnier/fptools
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/glafp-utils
------------------------------------------------------------------------
------------------------------------------------------------------------
===fptools== Recursively making `all' in mkdependC fastmake lndir ltx mkdirhier
runstdtest ...
PWD = /scratch/monnier/fptools/glafp-utils
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/glafp-utils/mkdependC
------------------------------------------------------------------------
gmake[2]: Nothing to be done for `all'.
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/glafp-utils/fastmake
------------------------------------------------------------------------
gmake[2]: Nothing to be done for `all'.
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/glafp-utils/lndir
------------------------------------------------------------------------
gmake[2]: Nothing to be done for `all'.
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/glafp-utils/ltx
------------------------------------------------------------------------
gmake[2]: Nothing to be done for `all'.
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/glafp-utils/mkdirhier
------------------------------------------------------------------------
gmake[2]: Nothing to be done for `all'.
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/glafp-utils/runstdtest
------------------------------------------------------------------------
gmake[2]: Nothing to be done for `all'.
------------------------------------------------------------------------
===fptools== Finished making `all' in mkdependC fastmake lndir ltx mkdirhier
runstdtest ...
PWD = /scratch/monnier/fptools/glafp-utils
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/literate
------------------------------------------------------------------------
------------------------------------------------------------------------
===fptools== Recursively making `all' in lit-deatify texi2html info-utils ...
PWD = /scratch/monnier/fptools/literate
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/literate/lit-deatify
------------------------------------------------------------------------
gmake[2]: Nothing to be done for `all'.
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/literate/texi2html
------------------------------------------------------------------------
gmake[2]: Nothing to be done for `all'.
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/literate/info-utils
------------------------------------------------------------------------
gmake[2]: Nothing to be done for `all'.
------------------------------------------------------------------------
===fptools== Finished making `all' in lit-deatify texi2html info-utils ...
PWD = /scratch/monnier/fptools/literate
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc
------------------------------------------------------------------------
------------------------------------------------------------------------
===fptools== Recursively making `all' in utils driver includes runtime docs lib
compiler ...
PWD = /scratch/monnier/fptools/ghc
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/utils
------------------------------------------------------------------------
------------------------------------------------------------------------
===fptools== Recursively making `all' in hp2ps hscpp hstags mkdependHS parallel
stat2resid ugen unlit ...
PWD = /scratch/monnier/fptools/ghc/utils
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/utils/hp2ps
------------------------------------------------------------------------
gmake[3]: Nothing to be done for `all'.
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/utils/hscpp
------------------------------------------------------------------------
gmake[3]: Nothing to be done for `all'.
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/utils/hstags
------------------------------------------------------------------------
gmake[3]: Nothing to be done for `all'.
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/utils/mkdependHS
------------------------------------------------------------------------
gmake[3]: Nothing to be done for `all'.
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/utils/parallel
------------------------------------------------------------------------
gmake[3]: Nothing to be done for `all'.
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/utils/stat2resid
------------------------------------------------------------------------
gmake[3]: Nothing to be done for `all'.
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/utils/ugen
------------------------------------------------------------------------
gmake[3]: Nothing to be done for `all'.
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/utils/unlit
------------------------------------------------------------------------
gmake[3]: Nothing to be done for `all'.
------------------------------------------------------------------------
===fptools== Finished making `all' in hp2ps hscpp hstags mkdependHS parallel
stat2resid ugen unlit ...
PWD = /scratch/monnier/fptools/ghc/utils
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/driver
------------------------------------------------------------------------
gmake[2]: Nothing to be done for `all'.
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/includes
------------------------------------------------------------------------
gmake[2]: Nothing to be done for `all'.
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/runtime
------------------------------------------------------------------------
------------------------------------------------------------------------
===fptools== Recursively making `all' in gmp ...
PWD = /scratch/monnier/fptools/ghc/runtime
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/runtime/gmp
------------------------------------------------------------------------
gmake[3]: Nothing to be done for `all'.
------------------------------------------------------------------------
===fptools== Finished making `all' in gmp ...
PWD = /scratch/monnier/fptools/ghc/runtime
------------------------------------------------------------------------
------------------------------------------------------------------------
===fptools== Recursively making `all' for ways: p ...
PWD = /scratch/monnier/fptools/ghc/runtime
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake way=p all;
PWD = /scratch/monnier/fptools/ghc/runtime
------------------------------------------------------------------------
gmake[3]: Nothing to be done for `all'.
------------------------------------------------------------------------
===fptools== Finished recursively making `all' for ways: p ...
PWD = /scratch/monnier/fptools/ghc/runtime
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/docs
------------------------------------------------------------------------
------------------------------------------------------------------------
===fptools== Recursively making `all' in users_guide ...
PWD = /scratch/monnier/fptools/ghc/docs
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/docs/users_guide
------------------------------------------------------------------------
------------------------------------------------------------------------
===fptools== Recursively making `all' for ways: p ...
PWD = /scratch/monnier/fptools/ghc/docs/users_guide
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake way=p all;
PWD = /scratch/monnier/fptools/ghc/docs/users_guide
------------------------------------------------------------------------
gmake[4]: Nothing to be done for `all'.
------------------------------------------------------------------------
===fptools== Finished recursively making `all' for ways: p ...
PWD = /scratch/monnier/fptools/ghc/docs/users_guide
------------------------------------------------------------------------
------------------------------------------------------------------------
===fptools== Finished making `all' in users_guide ...
PWD = /scratch/monnier/fptools/ghc/docs
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/lib
------------------------------------------------------------------------
rm -f ghc/PrelBase.o ; if [ ! -d ghc/PrelBase ]; then mkdir ghc/PrelBase ; else exit
0; fi; find ghc/PrelBase -name '*.o' -print | xargs rm -f __rm_food;
../../ghc/driver/ghc -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing -split-objs
-odir ghc/PrelBase -H8m -c ghc/PrelBase.lhs -o ghc/PrelBase.o -osuf o
Warning: GENERATE_SPECS pre-processing pragma ignored:
{-# GENERATE_SPECS subtract
a{Int#,Double#,Int,Double,Complex(Double#),Complex(Double)} #-}
Warning: GENERATE_SPECS pre-processing pragma ignored:
{-# GENERATE_SPECS (.) a b c #-}
Warning: GENERATE_SPECS pre-processing pragma ignored:
{-# GENERATE_SPECS data a :: Lift a #-}
Warning: GENERATE_SPECS pre-processing pragma ignored:
{-# GENERATE_SPECS showList__ a #-}
sh: /homes/graduates/monnier/scratch/fptools/ghc/driver/../compiler/hsc: not found
gmake[2]: *** [ghc/PrelBase.o] Error 1
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/ghc/compiler
------------------------------------------------------------------------
rm -f parser/U_binding.hc
ghc-0.29 -DOMIT_NATIVE_CODEGEN -cpp -fhaskell-1.3 -fglasgow-exts -DCOMPILING_GHC
-Rghc-timing -I. -IcodeGen -InativeGen -Iparser -iutils -ibasicTypes -itypes -ihsSyn
-iprelude -irename -itypecheck -ideSugar -icoreSyn -ispecialise -isimplCore -istranal
-istgSyn -isimplStg -icodeGen -iabsCSyn -imain -ireader -iprofiling -iparser
-fomit-derived-read -fomit-reexported-instances -DOMIT_DEFORESTER -fvia-C
'-#include"hspincl.h"' -C parser/U_binding.hs -o parser/U_binding.hc
gmake[2]: ghc-0.29: Command not found
gmake[2]: *** [parser/U_binding.hc] Error 127
gmake[1]: *** [all] Error 2
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/hslibs
------------------------------------------------------------------------
------------------------------------------------------------------------
===fptools== Recursively making `all' in posix ghc hbc contrib ...
PWD = /scratch/monnier/fptools/hslibs
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/hslibs/posix
------------------------------------------------------------------------
rm -f src/PosixUtil.o ; if [ ! -d src/PosixUtil ]; then mkdir src/PosixUtil ; else
exit 0; fi; find src/PosixUtil -name '*.o' -print | xargs rm -f __rm_food;
../../ghc/driver/ghc -split-objs -odir src/PosixUtil -recomp -isrc -cpp -fvia-C
-fglasgow-exts -dcore-lint '-#include"cbits/libposix.h"' -monly-3-regs -c
src/PosixUtil.lhs -o src/PosixUtil.o -osuf o
sh: /homes/graduates/monnier/scratch/fptools/ghc/driver/../compiler/hsc: not found
gmake[2]: *** [src/PosixUtil.o] Error 1
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/hslibs/ghc
------------------------------------------------------------------------
rm -f ../posix/src/PosixUtil.o ; if [ ! -d ../posix/src/PosixUtil ]; then mkdir
../posix/src/PosixUtil ; else exit 0; fi; find ../posix/src/PosixUtil -name '*.o'
-print | xargs rm -f __rm_food;
../../ghc/driver/ghc -split-objs -odir . -recomp -isrc:../posix/src -cpp -fvia-C
-fglasgow-exts -c ../posix/src/PosixUtil.lhs -o ../posix/src/PosixUtil.o -osuf o
sh: /homes/graduates/monnier/scratch/fptools/ghc/driver/../compiler/hsc: not found
gmake[2]: *** [../posix/src/PosixUtil.o] Error 1
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/hslibs/hbc
------------------------------------------------------------------------
rm -f src/Algebra.o ; if [ ! -d src/Algebra ]; then mkdir src/Algebra ; else exit 0;
fi; find src/Algebra -name '*.o' -print | xargs rm -f __rm_food;
../../ghc/driver/ghc -split-objs -odir src/Algebra -recomp -hi-diffs -isrc -cpp
-fvia-C -fglasgow-exts -dcore-lint -c src/Algebra.hs -o src/Algebra.o -osuf o
sh: /homes/graduates/monnier/scratch/fptools/ghc/driver/../compiler/hsc: not found
gmake[2]: *** [src/Algebra.o] Error 1
------------------------------------------------------------------------
==fptools== gmake all;
in /scratch/monnier/fptools/hslibs/contrib
------------------------------------------------------------------------
rm -f src/Adams_Bashforth_Approx.o ; if [ ! -d src/Adams_Bashforth_Approx ]; then
mkdir src/Adams_Bashforth_Approx ; else exit 0; fi; find src/Adams_Bashforth_Approx
-name '*.o' -print | xargs rm -f __rm_food;
../../ghc/driver/ghc -split-objs -odir src/Adams_Bashforth_Approx -recomp -hi-diffs
-isrc -cpp -fvia-C -fglasgow-exts -dcore-lint -c src/Adams_Bashforth_Approx.hs -o
src/Adams_Bashforth_Approx.o -osuf o
sh: /homes/graduates/monnier/scratch/fptools/ghc/driver/../compiler/hsc: not found
gmake[2]: *** [src/Adams_Bashforth_Approx.o] Error 1
gmake[1]: *** [all] Error 2
gmake: *** [all] Error 2