RE: ghc fails hello world on ppc
I forgot to say that the version is 6.0.1. So... can anyone else reproduce this? Is there a stable version of the compiler which I should be using instead? Is there anything I can do to help fix this bug? [EMAIL PROTECTED] writes: $ uname -a Linux fly 2.4.19-quiet #10 Tue Jan 12 17:02:50 PST 1904 ppc GNU/Linux $ cat test.hs main = do putStr hello\n putStr world\n $ ghc --make test.hs ./a.out Chasing modules from: test.hs Compiling Main ( test.hs, ./test.o ) Linking ... world world That is truly bizarre, but I'm afraid there's not much we can do to help here, not having the hardware to test on. You might want to try mailing Sven Moritz Hallberg [EMAIL PROTECTED] (who did the port) directly, but IIRC he hasn't been active on these lists recently. Cheers, Simon ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: ghc fails hello world on ppc
I forgot to say that the version is 6.0.1. So... can anyone else reproduce this? Is there a stable version of the compiler which I should be using instead? Is there anything I can do to help fix this bug? I've been playing around with PPC Linux a bit on the weekend, and I can't reproduce the problem on my Gentoo installation. The GHC 5.04.3 binary package provided on the GHC download page seems to work perfectly. Cheers, Wolfgang -- +++ GMX - die erste Adresse für Mail, Message, More +++ Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: ghc fails hello world on ppc
I forgot to say that the version is 6.0.1. So... can anyone else reproduce this? Is there a stable version of the compiler which I should be using instead? Is there anything I can do to help fix this bug? [EMAIL PROTECTED] writes: $ uname -a Linux fly 2.4.19-quiet #10 Tue Jan 12 17:02:50 PST 1904 ppc GNU/Linux $ cat test.hs main = do putStr hello\n putStr world\n $ ghc --make test.hs ./a.out Chasing modules from: test.hs Compiling Main ( test.hs, ./test.o ) Linking ... world world On my i386 machine it works correctly: $ ghc --make test.hs ./a.out Chasing modules from: test.hs Compiling Main ( test.hs, ./test.o ) Linking ... hello world Various permutations of the original program produce the same result on the ppc: import System.IO main = do hSetBuffering stdout NoBuffering putStr hello\n putStr world\n import System.IO main = do hSetBuffering stdout NoBuffering putStrLn hello putStrLn world main = do putStrLn hello putStrLn world etc., except that anything with putStrLn prints hello hello instead of world world TIA. Frederik Eaton ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Template Haskell panic
The attached file causes a panic when compiled with ghc6.0 on Linux. # ghc -fglasgow-exts TH.hs -c ghc-6.0.1: panic! (the `impossible' happened, GHC version 6.0.1): nameModule newLen0 {- v a35 -} Please report it as a compiler bug to [EMAIL PROTECTED], or http://sourceforge.net/projects/ghc/. module T where bp :: Int - IO Int bp newLen0 = do let newLen = $( -- work around GHC6 bug if True then [| max 1 newLen0 |] else [| newLen0 |] ) return newLen___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs