runghc failing sometimes on Linux/ppc?
Ian Lynagh
igloo at earth.li
Sat May 23 12:26:56 EDT 2009
On Sun, May 03, 2009 at 03:02:50PM +1000, Jens Petersen wrote:
> 2009/5/2 Jens Petersen <petersen at haskell.org>:
> > So I tried doing an unregisterised ppc build with:
> >
> > echo "GhcUnregisterised=YES" >> mk/build.mk
> > echo "GhcWithNativeCodeGen=NO" >> mk/build.mk
> > echo "SplitObjs=NO" >> mk/build.mk
>
> Are these the right build config settings?
Yes.
> > but this failed with:
> :
> > Linking dist-stage2/build/ghc/ghc ...
> :
> > (.text+0x20): relocation truncated to fit: R_PPC_REL24 against symbol
> > `__libc_start_main@@GLIBC_2.0' defined in .glink section in
> > /usr/lib/gcc/ppc64-redhat-linux/4.4.0/../../../../lib/crt1.o
> > /usr/lib/gcc/ppc64-redhat-linux/4.4.0/crtbegin.o:(.fini+0x0):
> > relocation truncated to fit: R_PPC_REL24 against `.text'
Does using -mlongcall help? e.g.:
SRC_CC_OPTS += -mlongcall
SRC_HC_OPTS += -optc-mlongcall
(you can probably get away with something rather more specific, but
hopefully this will work).
Thanks
Ian
More information about the Glasgow-haskell-users
mailing list