
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Malcolm Wallace wrote:
Not good. Can you run the program in gdb, and do a "where" when it fails, to give the stack trace. That might give some clues.
I have built successfully on powerpc myself, but with MacOS not Linux.
Okay, starting in a clean directory with that program as Main.hs, $ /home/isaac/install/nhc98/bin/nhc98 Main.hs $ gdb a.out GNU gdb 6.4.90-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "powerpc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run Starting program: /home/isaac/test/nh/a.out "hello" Program received signal SIGSEGV, Segmentation fault. 0x10004e2c in run () (gdb) where #0 0x10004e2c in run () #1 0x10000d0c in main () Isaac -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF5fT6HgcxvIWYTTURAt/wAJ4u4I6C3u/XZuGnswvW6c5P7zmpJgCgjwkn wvSGY2zC3FYbmGSxUcUIXbk= =C5RD -----END PGP SIGNATURE-----