global register variable follows a function definition
Simon Marlow
simonmar at microsoft.com
Thu Sep 2 08:46:52 EDT 2004
On 02 September 2004 02:59, Donald Bruce Stewart wrote:
> Another problem building HEAD on OpenBSD:
>
> ../../ghc/compiler/ghc-inplace -optc-O -optc-Wall -optc-W
> -optc-Wstrict-prototypes -optc-Wmissing-prototypes
> -optc-Wmissing-declarations -optc-Winline
> -optc-Waggregate-return -optc-Wbad-function-cast
> -optc-I../includes -optc-I. -optc-Iparallel
> -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -H16m -O -O2
> -static -#include Prelude.h -#include Rts.h -#include RtsFlags.h
> -#include RtsUtils.h -#include StgRun.h -#include Schedule.h
> -#include Printer.h -#include Sanity.h -#include Storage.h -#include
> SchedAPI.h -#include Timer.h -#include Itimer.h -#include ProfHeap.h
> -#include LdvProfile.h -#include Profiling.h -#include Apply.h
> -fvia-C -dcmm-lint -c StgCRun.c -o StgCRun.o In file included
> from ../includes/Stg.h:327, from StgCRun.c:68:
> ../includes/Regs.h:319: global register variable follows a function
> definition ../includes/Regs.h:328: global register variable follows a
> function definition gmake: *** [StgCRun.o] Error 1
>
> Fixed by shifting up the occurence of Regs.h in Stg.h. Seem
> reasonable?
> And, why isn't this occuring on the linux build machines?
I've fixed this, I hope. Your fix disabled the registers, BTW.
Cheers,
Simon
More information about the Cvs-ghc
mailing list