Build failure on OS X Mountain Lion
On my OS X Mountain Lion machine, while building HEAD with GHC 7.4.2 as the bootstrapping compiler, the build eventually fails like so:
$ make
===--- building phase 0
/usr/bin/make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds
make[1]: Nothing to be done for `phase_0_builds'.
===--- building phase 1
/usr/bin/make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds
make[1]: Nothing to be done for `phase_1_builds'.
===--- building final phase
/usr/bin/make -r --no-print-directory -f ghc.mk phase=final all
HC [stage 2] libraries/vector/dist-install/build/Data/Vector/Fusion/Stream/Monadic.o
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... ghc-stage2: internal error: Invalid Mach-O file:Address out of bounds while relocating object file
(GHC version 7.7.20120804 for x86_64_apple_darwin)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
This is from a checkout from Friday, August 3rd 2012. It looks like a bug in the DIY linker. Initially I thought it might be fixed by Luite's patch in #7040 (closed), but it is not. The build is also completely littered with warnings during compilation from the assembler:
/var/folders/6x/2_5h95jx2kqgpbnk0cpg1vd00000gn/T/ghc67149_0/ghc67149_0.s:970:0:
section difference relocatable subtraction expression, "_dphzmprimzmseqzm0zi6zi0zi1_DataziArrayziParallelziUnliftedziArrayArray_MutableArrayArray_info" minus "_dphzmprimzmseqzm0zi6zi0zi1_DataziArrayziParallelziUnliftedziArrayArray_MutableArrayArray_info_dsp" using a symbol at the end of section will not produce an assembly time constant
I imagine this is due to some unforseen toolchain updates in XCode 4.5. I'll look into supressing these warnings with a patch.
Trac metadata
Trac field | Value |
---|---|
Version | 7.4.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |