On Mon, Nov 09, 2009 at 10:53:18AM +0000, Simon Marlow wrote:
> >Sun Nov 8 12:02:25 CET 2009 Matthias Kilian<[email protected]>
> > * When booting from HC files, search includes for headers
>
> ifeq "$(BootingFromHc)" "YES"
> -SRC_CC_OPTS += -DNO_REGS -DUSE_MINIINTERPRETER
> -D__GLASGOW_HASKELL__=$(ProjectVersionInt)
> +SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR) -DNO_REGS -DUSE_MINIINTERPRETER
> -D__GLASGOW_HASKELL__=$(ProjectVersionInt)
> endif
>
>
> I have a bad feeling about this: it looks like the wrong place to put a
> -I option. Do you have a record of the failure that you get without
> that option? Perhaps we can find a better place to put it.
It happens very early in the build, on hschooks.c:
gmake -r --no-print-directory -f ghc.mk all_ghc_stage2
Creating includes/ghcautoconf.h...
Done.
"inplace/bin/mkdirhier" ghc/stage2/build/
"/usr/bin/gcc" -DNO_REGS -DUSE_MINIINTERPRETER -D__GLASGOW_HASKELL__=612
-Iincludes -x c -c ghc/./Main.hc -o ghc/stage2/build/Main.o
"inplace/bin/mkdirhier" ghc/stage2/build/
"/usr/bin/gcc" -DNO_REGS -DUSE_MINIINTERPRETER -D__GLASGOW_HASKELL__=612
-c ghc/hschooks.c -o ghc/stage2/build/hschooks.o
ghc/hschooks.c:7:17: Rts.h: No such file or directory
ghc/hschooks.c:12:19: HsFFI.h: No such file or directory
ghc/hschooks.c: In function `defaultsHook':
ghc/hschooks.c:23: error: `RtsFlags' undeclared (first use in this function)
ghc/hschooks.c:23: error: (Each undeclared identifier is reported only once
ghc/hschooks.c:23: error: for each function it appears in.)
ghc/hschooks.c:23: error: `BLOCK_SIZE' undeclared (first use in this function)
ghc/hschooks.c:24: error: `W_' undeclared (first use in this function)
ghc/hschooks.c:25: error: `COLLECT_GC_STATS' undeclared (first use in this
function)
ghc/hschooks.c:26: error: `stderr' undeclared (first use in this function)
ghc/hschooks.c: In function `StackOverflowHook':
ghc/hschooks.c:36: error: `stderr' undeclared (first use in this function)
Ciao,
Kili
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc