runghc failing sometimes on Linux/ppc?

Jens Petersen petersen at haskell.org
Sat May 2 07:53:42 EDT 2009


2009/5/1 Jens Petersen <petersen at haskell.org>:
> 2009/4/26 Ian Lynagh <igloo at earth.li>:
>> Are you using a registerised build? If so, then as PPC/Linux isn't a
>> tier 1 platform, it could well have bitrotted.

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

but this failed with:

make -C ../ghc stage=2
make[3]: Entering directory `/builddir/build/BUILD/ghc-6.10.2/ghc'
/builddir/build/BUILD/ghc-6.10.2/libraries/cabal-bin /usr/bin/ghc
/builddir/build/BUILD/ghc-6.10.2/libraries/bootstrapping.conf 1.6.0.3
configure --distpref dist-stage2         \
	                   --prefix=/NONEXISTENT --bindir=/NONEXISTENT
--libdir=/NONEXISTENT --libexecdir=/NONEXISTENT --datadir=/NONEXISTENT
--docdir=/NONEXISTENT --haddockdir=/NONEXISTENT --htmldir=/NONEXISTENT
\
	                   --flags=ghci
--with-compiler=/builddir/build/BUILD/ghc-6.10.2/ghc/stage1-inplace/ghc
--with-hc-pkg=/builddir/build/BUILD/ghc-6.10.2/utils/ghc-pkg/install-inplace/bin/ghc-pkg
   --ghc-option=-O2      \
	                   --libsubdir='$pkgid' --with-gcc=gcc
--with-ld=/usr/bin/ld  --with-happy="/usr/bin/happy"
--configure-option='--prefix=/usr'
--configure-option='--exec-prefix=/usr'
--configure-option='--bindir=/usr/bin'
--configure-option='--sbindir=/usr/sbin'
--configure-option='--sysconfdir=/etc'
--configure-option='--datadir=/usr/share'
--configure-option='--includedir=/usr/include'
--configure-option='--libdir=/usr/lib'
--configure-option='--libexecdir=/usr/libexec'
--configure-option='--localstatedir=/var'
--configure-option='--sharedstatedir=/var/lib'
--configure-option='--mandir=/usr/share/man'
--configure-option=--with-cc="gcc"
--with-hsc2hs=/builddir/build/BUILD/ghc-6.10.2/utils/hsc2hs/install-inplace/bin/hsc2hs
      \
	                   --libsubdir=.                   \
	                   --datadir='$libdir'            \
	                   --datasubdir=.
Configuring ghc-bin-6.10.2...
/builddir/build/BUILD/ghc-6.10.2/libraries/cabal-bin /usr/bin/ghc
/builddir/build/BUILD/ghc-6.10.2/libraries/bootstrapping.conf 1.6.0.3
build     --distpref dist-stage2 --ghc-option=-H32m --ghc-option=-O
--ghc-option=-H32m  --ghc-option=-O
Preprocessing executables for ghc-bin-6.10.2...
Building ghc-bin-6.10.2...
[1 of 1] Compiling Main             ( Main.hs,
dist-stage2/build/ghc/ghc-tmp/Main.o )
Linking dist-stage2/build/ghc/ghc ...
/usr/lib/gcc/ppc64-redhat-linux/4.4.0/../../../../lib/crt1.o: In
function `_start':
(.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'
/usr/lib/gcc/ppc64-redhat-linux/4.4.0/crtend.o:(.init+0x0): relocation
truncated to fit: R_PPC_REL24 against `.text'
/usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
(.text+0x54): relocation truncated to fit: R_PPC_PLTREL24 against
symbol `_init' defined in .init section in
/usr/lib/gcc/ppc64-redhat-linux/4.4.0/../../../../lib/crti.o+8000
collect2: ld returned 1 exit status
make[3]: *** [build.stage.2] Error 1
make[3]: Leaving directory `/builddir/build/BUILD/ghc-6.10.2/ghc'
make[2]: Leaving directory `/builddir/build/BUILD/ghc-6.10.2/compiler'
make[2]: *** [build.stage.2] Error 2
make[1]: *** [stage2] Error 2
make[1]: Leaving directory `/builddir/build/BUILD/ghc-6.10.2'
make: *** [bootstrap2] Error 2

see http://koji.fedoraproject.org/koji/getfile?taskID=1332447&name=build.log
for the full buildlog.


More information about the Glasgow-haskell-users mailing list