#2402: ghc fails sans error message.
----------------------+-----------------------------------------------------
 Reporter:  lpsmith   |          Owner:         
     Type:  bug       |         Status:  new    
 Priority:  normal    |      Milestone:         
Component:  Compiler  |        Version:  6.8.3  
 Severity:  normal    |     Resolution:         
 Keywords:            |     Difficulty:  Unknown
 Testcase:            |   Architecture:  powerpc
       Os:  MacOS X   |  
----------------------+-----------------------------------------------------
Comment (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.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2402#comment:3>
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

Reply via email to