patch applied (ghc): Do not #include external header files when compiling via C

Ian Lynagh igloo at earth.li
Fri Apr 4 19:46:11 EDT 2008


On Thu, Apr 03, 2008 at 09:41:58AM -0700, Simon Marlow wrote:
> Tue Apr  1 22:14:12 PDT 2008  Simon Marlow <simonmar at microsoft.com>
>   * Do not #include external header files when compiling via C

This patch breaks validate for me:

../compiler/ghc-inplace -Werror -H64m -Onot -fasm -optc-O2 -I../includes -I. -Iparallel -Ism -DCOMPILING_RTS -package-name rts -fvia-C -static  -I../gmp/gmpbuild -I. -dcmm-lint     -c Apply.cmm -o Apply.o
In file included from ../includes/Stg.h:155,

                 from /tmp/ghc17183_0/ghc17183_0.hc:3:0: 
/tmp/ghc17183_0/ghc17183_0.hc: In function ‘stg_PAP_apply’:

/tmp/ghc17183_0/ghc17183_0.hc:189:0:
     error: ‘stg_ap_stack_entries’ undeclared (first use in this function)

/tmp/ghc17183_0/ghc17183_0.hc:189:0:
     error: (Each undeclared identifier is reported only once

/tmp/ghc17183_0/ghc17183_0.hc:189:0:
     error: for each function it appears in.)
/tmp/ghc17183_0/ghc17183_0.hc: In function ‘stg_AP_entry’:

/tmp/ghc17183_0/ghc17183_0.hc:246:0:
     error: ‘stg_ap_stack_entries’ undeclared (first use in this function)
/tmp/ghc17183_0/ghc17183_0.hc: In function ‘stg_AP_NOUPD_entry’:

/tmp/ghc17183_0/ghc17183_0.hc:301:0:
     error: ‘stg_ap_stack_entries’ undeclared (first use in this function)
make[1]: *** [Apply.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [stage1] Error 1


Thanks
Ian



More information about the Cvs-ghc mailing list