#1958: collect2: ld terminated with signal 10 [Bus error]: Building parsec on a
PPC Mac OS X 10.5 Leopard as part of GHC 6.9
-------------------------+--------------------------------------------------
Reporter: thorkilnaur | Owner: thorkilnaur
Type: bug | Status: new
Priority: high | Milestone: 6.8.3
Component: Compiler | Version: 6.9
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: powerpc
Os: MacOS X |
-------------------------+--------------------------------------------------
Comment (by eelco):
Hi Thorkil,
I encounter the dreaded 'Bus error' also when trying to build GHC 6.8.2 on
PPC OS X 10.5. It fails on the network library when building with
extralibs...
{{{
../../compiler/stage1/ghc-inplace -package-name network-2.1.0.0 -hide-all-
packages -split-objs -i -idist/build/autogen -idist/build -i. -Idist/build
-Iinclude -optc-DCALLCONV=ccall -#include "HsNet.h" -odir dist/build
-hidir dist/build -stubdir dist/build -package base-3.0.1.0 -package
parsec-2.1.0.0 -O -DCALLCONV=ccall -XCPP -idist/build -H16m -O -O -Rghc-
timing -fgenerics -c Network.hs -o dist/build/Network.o -ohi
dist/build/Network.hi
collect2: ld terminated with signal 10 [Bus error]
<<ghc: 99622432 bytes, 16 GCs, 4841188/7994224 avg/max bytes residency (3
samples), 21M in use, 0.00 INIT (0.00 elapsed), 1.03 MUT (5.71 elapsed),
0.42 GC (0.55 elapsed) :ghc>>
make[2]: *** [dist/build/Network.o] Error 1
make[1]: *** [make.library.network] Error 2
make: *** [stage1] Error 2
}}}
... and when trying to link HSghc.o in stage 2 when building without the
extralibs.
{{{
make -C compiler stage=2
/usr/bin/ld -r -x -o HSghc.o stage2/basicTypes/BasicTypes.o
...
make[2]: *** [HSghc.o] Bus error
make[2]: *** Deleting file `HSghc.o'
make[1]: *** [stage2] Error 2
make: *** [bootstrap2] Error 2
}}}
I also tried using ld_classic, simply by running ./configure --with-
ld=/usr/bin/ld_classic before making. Unfortunately, this causes GHC
(stage1) to panic:
{{{
../../compiler/stage1/ghc-inplace -package-name base-3.0.1.0 -hide-all-
packages -split-objs -i -idist/build/autogen -idist/build -i. -Idist/build
-Iinclude -#include "HsBase.h" -odir dist/build -hidir dist/build -stubdir
dist/build -package rts-1.0 -O -fglasgow-exts -package-name base -XCPP
-idist/build -prof -hisuf p_hi -hcsuf p_hc -osuf p_o -H16m -O -O -Rghc-
timing -fgenerics -c GHC/PrimopWrappers.hs -o
dist/build/GHC/PrimopWrappers.p_o -ohi dist/build/GHC/PrimopWrappers.p_hi
ghc-6.8.2: panic! (the 'impossible' happened)
(GHC version 6.8.2 for powerpc-apple-darwin):
lookupVers1 base:GHC.Prim Int#{tc}
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1958#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs