#1843: ghc 6.8.1 broken on Mac OS X Leopard
------------------------+---------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.8.1 | Severity: critical
Keywords: | Testcase:
Architecture: powerpc | Os: MacOS X
------------------------+---------------------------------------------------
File fail.hs:
{{{
import Data.Word
import Data.Binary.Put
import qualified Data.ByteString.Lazy as B
main = B.putStrLn (runPut (putWord8 0x32))
}}}
{{{
[EMAIL PROTECTED] ~/P/growlnet> ghc -o fail fail.hs --make -O ; ./fail
Linking fail ...
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
unknown scattered relocation type 4
fish: Job 1, “./fail” terminated by signal SIGSEGV (Address boundary
error)
}}}
(note, 'fish' is the shell I use... http://fishshell.org/)
Also fails without -O, with -fasm, and with -fvia-c
The GHC I'm using was built by scsibug, available at http://scsibug.com/
on #haskell, everyone else reports that this code works correctly for them
(different architectures)
-Nick Burlett
[EMAIL PROTECTED]
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1843>
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