#1843: ghc 6.8.1 broken on Mac OS X Leopard PPC
----------------------+-----------------------------------------------------
 Reporter:  guest     |          Owner:         
     Type:  bug       |         Status:  new    
 Priority:  high      |      Milestone:  6.8.2  
Component:  Compiler  |        Version:  6.8.1  
 Severity:  critical  |     Resolution:         
 Keywords:            |     Difficulty:  Unknown
 Testcase:            |   Architecture:  powerpc
       Os:  MacOS X   |  
----------------------+-----------------------------------------------------
Comment (by ChrisKuklewicz):

 I installed the binary distribution prepared by
 [http://www.haskell.org/ghc/download_ghc_681.html#macosxppc Greg
 Heartsfield] on OS X 10.5 on a G4 powerbook.

 ghci starts (hooray).  The compiler does not segfault.

 I am compiling the simplest test.hs which contains "main = return ()" or
 "main = undefined".  I am compiling with "ghc -v5 -fasm test.hs" and "ghc
 -v5 -fvia-C test.hs" .  The same error occurs with both options.

 The ghc compiler needs the linker (ld64) from gcc (the version from XCode
 3.0) in the guise of the "/usr/libexec/gcc/powerpc-apple-
 darwin9/4.0.1/collect2" binary.  This program is the one that prints the
 "unknown scattered relocation type 4" error.

 A search of google has this "unknown scattered relocation" in the google
 cache for the code for /ld64/src/Readers/ObjectFileMachO.cpp

 So I would say the error is definitely due to the upgrading of gcc and the
 linker.
 If there is any diagnostic that I could do that would help, let me know at
 < haskell @at@ list .dot. mightyreason .dot. com >

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