Ticket #2402 (new bug)

Opened 5 months ago

Last modified 3 weeks ago

ghc fails sans error message.

Reported by: lpsmith Assigned to:
Priority: normal Milestone: 6.10.2
Component: Compiler Version: 6.8.3
Severity: normal Keywords:
Cc: Difficulty: Unknown
Test Case: Operating System: MacOS X
Architecture: powerpc

Description

HPDF-1.4, which is available on Hackage, compiles successfully with ghc-6.8.2. However, attempting to compile the same with ghc-6.8.3 fails, but GHC does not produce any kind of error message. By turning up the verbosity, it appears the problem is in the simplification pass:

[11 of 30] Compiling Graphics.PDF.Coordinates ( Graphics/PDF/Coordinates.hs, dist/build/Graphics/PDF/Coordinates.o )
*** Parser:
*** Renamer/typechecker:
*** Desugar:
    Result size = 1147
*** Simplify:
    Result size = 781
    Result size = 769
    Result size = 769
*** Specialise:
    Result size = 769
*** Float out (not lambdas, not constants):
    Result size = 823
*** Float inwards:
    Result size = 823
*** Simplify:
/usr/local/bin/ghc returned ExitFailure 4

This result was obtained on Darwin-PPC. I would check to see if this fails on an Intel box as well, but I don't have convenient access to one at the moment.

Change History

06/30/08 01:05:27 changed by simonpj

  • difficulty set to Unknown.

This sounds bad. Can anyone reproduce it?

Simon

06/30/08 04:36:03 changed by Isaac Dupree

Tested on Linux-PPC GHC 6.8.3, cabal install HPDF, and it installs without a hitch: I can't reproduce there.

06/30/08 13:52:24 changed by lpsmith

I just tested it on Linux-Intel, and it also works fine. I'm curious if it works on Darwin-Intel, and if anybody else can reproduce this problem on Darwin-PCC, or it's just me.

As for the issue, I did a binary install from Christian Maeder's build:

http://www.haskell.org/ghc/dist/6.8.3/maeder/ghc-6.8.3-powerpc-apple-darwin.tar.bz2

I also tried compiling ghc-6.8.3 myself, wondering if perhaps there was some subtle difference between his environment and my own that's at the root of this issue, but the build failed with this message:

../compiler/stage1/ghc-inplace -no-user-package-conf -cpp  stage2/ghc-inplace.c -o stage2/ghc-inplace
/usr/bin/ld: /Users/lpsmith/src/ghc-6.8.3/rts/libHSrts.a(PrimOps.o) has external relocation entries in non-writable section (__TEXT,__text) for symbols:
___gmpn_cmp
___gmpn_gcd_1
___gmpz_fdiv_qr
___gmpz_init
___gmpz_tdiv_qr
___gmpz_com
___gmpz_xor
___gmpz_ior
___gmpz_and
___gmpz_divexact
___gmpz_tdiv_r
___gmpz_tdiv_q
___gmpz_gcd
___gmpz_mul
___gmpz_sub
___gmpz_add
collect2: ld returned 1 exit status
make[2]: *** [stage2/ghc-inplace] Error 1
make[1]: *** [stage2] Error 2
make: *** [bootstrap2] Error 2

It's been a few years since I tried compiling GHC myself, but this is the first time it failed in an obscure manner (to me, anyway) in even longer. I have the GMP.framework installed, though I'm not sure how old it is, and I also have XCode 2.1 installed.

07/01/08 17:05:22 changed by igloo

  • milestone set to 6.10.1.

11/11/08 07:30:12 changed by igloo

  • milestone changed from 6.10.1 to 6.10.2.