On Sun, May 03, 2009 at 03:02:50PM +1000, Jens Petersen wrote: > 2009/5/2 Jens Petersen <[email protected]>: > > 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 _______________________________________________ Glasgow-haskell-users mailing list [email protected] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
