
On Sat, Oct 02, 2010 at 08:25:53PM +0200, Karel Gardas wrote:
step which fails with:
gmake -r --no-print-directory -f ghc.mk phase=0 just-makefiles "" configure --with-ghc="/export/home/karel/vcs/ghc-target/" --with-ghc-pkg="/export/home/karel/vcs/ghc-target/" --with-gcc="/usr/bin/gcc" --configure-option=--with-cc="/usr/bin/gcc" --ghc-option=-DOMIT_NATIVE_CODEGEN --ghc-option=-DNO_REGS --flags=stage2 --ghc-option=-DSTAGE=2 --disable-library-for-ghci --with-hscolour="/usr/local/bin/HsColour" --configure-option=CFLAGS="-g -O0 -DNO_REGS -DUSE_MINIINTERPRETER -D__GLASGOW_HASKELL__=613 -Iincludes " --configure-option=LDFLAGS=" " -- stage2 compiler /bin/sh: line 1: : cannot execute [Is a directory] gmake[1]: *** [compiler/stage2/package-data.mk] Error 126 gmake: *** [all_ghc_stage2] Error 2
It's trying to create/update compiler/stage2/package-data.mk with ghc-cabal (but you don't have ghc-cabal, so it's running ""), but it should be using the file that already exists. Does the file exist? If so, "make -dr all_ghc_stage2" should show why make thinks it's out of date, which should point to the problem.
Also I'm not sure I've detected correctly mentioned "unimportant build failures in the RTS" as I've got one which looks like:
rts/Linker.c: In function `do_Elf_Rel_relocations':
Failures in compiling C files are fine. It's the Haskell/cmm files we need to compile, so that we get .hc files that can be built on the target. Thanks Ian