<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 08/21/2015 04:00 PM, Erik de Castro
Lopo wrote:<br>
</div>
<blockquote
cite="mid:20150822080055.ac53c1ce4fe8711fcbd2e34a@mega-nerd.com"
type="cite">
<pre wrap="">Ben Burdette wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I've been trying to get going with ghc 7.10.2 on armv7 debian, problem
is described here:
<a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/32124334/ghc-armv7-binary-cabal-illegal-instruction">http://stackoverflow.com/questions/32124334/ghc-armv7-binary-cabal-illegal-instruction</a>
</pre>
</blockquote>
<pre wrap="">
I suspect your problem may be related to this one:
<a class="moz-txt-link-freetext" href="https://ghc.haskell.org/trac/ghc/ticket/10375">https://ghc.haskell.org/trac/ghc/ticket/10375</a>
which I started work on, got stuck and haven't had time to return to.
Erik
</pre>
</blockquote>
<br>
That does seem to be the case. I was able to duplicate their ghci
error:<br>
<br>
<i>GHCi, version 7.10.2: <a class="moz-txt-link-freetext" href="http://www.haskell.org/ghc/">http://www.haskell.org/ghc/</a> :? for help</i><i><br>
</i><i>Prelude> data Planet = Mercury | Venus deriving Eq</i><i><br>
</i><i>Prelude> Mercury == Mercury</i><i><br>
</i><i>Illegal instruction</i><i><br>
</i><i>bburdette@jessie-rpi:~$ </i><i><br>
</i><br>
And my hello world program:<br>
<i><br>
main = do<br>
putStrLn "hello"<br>
<br>
</i>The results:<br>
<i><br>
</i><i>bburdette@jessie-rpi:~$ ghc hello.hs </i><i><br>
</i><i>[1 of 1] Compiling Main ( hello.hs, hello.o )</i><i><br>
</i><i>Linking hello ...</i><i><br>
</i><i>bburdette@jessie-rpi:~$ ls</i><i><br>
</i><i>bin ghc-7.10.2-arm-unknown-linux.tar.xz hello.hi hello.o</i><i><br>
</i><i>code hello hello.hs</i><i><br>
</i><i>bburdette@jessie-rpi:~$ ./hello </i><i><br>
</i><i>Illegal instruction</i><i><br>
</i><i>bburdette@jessie-rpi:~$ ghc -O2 hello.hs</i><i><br>
</i><i>bburdette@jessie-rpi:~$ ./hello </i><i><br>
</i><i>Illegal instruction</i><i><br>
</i><i>bburdette@jessie-rpi:~$ </i><i><br>
</i><i><br>
</i>Ok, thx for the help - I'll follow progress on the bug. Let me
know if there's anything else you'd like be to try. <br>
<br>
Ben<br>
<br>
</body>
</html>