ghc-6.4 on OS X Tiger

Gregory Wright gwright at comcast.net
Sat Apr 30 16:21:06 EDT 2005


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-GC.c
Type: application/octet-stream
Size: 550 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20050430/ae4b259b/patch-GC.obj
-------------- next part --------------




More information about the Glasgow-haskell-bugs mailing list