Hi,

There seem to be a few bugs in building from source under OS X Tiger.

Wolfgang's patches to the mangler get the build to go all the way to the
in-place compiler.

gcc-4.0 seems a good deal stricter with its error checking; it revealed an
apparently erroneous static declaration of StgClosure* static_objects
(also referred to in includes/Storage.h). I made removed the static declaration,
but perhaps you meant for static_objects not to reference in Storage.h.
A patch is attached.

The build now fails in PrimOps.cmm with

../../ghc/compiler/ghc-inplace -H16m -O -I/opt/local/include -L/usr/ lib -L/opt/local/lib -O2 -static -I. -#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 STM.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 PrimOps.cmm -o PrimOps.o
pprC.pprBBlock: curious empty code block for _ccn
/tmp/ghc2126.hc: In function 'gcdIntegerIntzh_fast':
/tmp/ghc2126.hc:1041: error: address of global register variable 'R1' requested
/tmp/ghc2126.hc:1041: warning: target of assignment not really an lvalue; this will be a hard error in the future
[address=4bff2955 pc=00062c80]
/tmp/ghc2126.hc:1041: confused by earlier errors, bailing out
gmake[2]: *** [PrimOps.o] Error 1
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/Users/gwright/src/darwinports/dports/ lang/ghc/work/ghc-6.4/ghc'
gmake: *** [build] Error 1


I'll give it a try with gcc-3.3 instead of gcc-4.0. If anyone has any good ideas,
I be happy to try them,

Best Wishes,
Greg



Attachment: patch-GC.c
Description: Binary data



_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to