syntax error in `sh start`

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 darcs get http://darcs.haskell.org/nhc98/ cd nhc98/ sh start At various times it outputs, [: 24: ==: unexpected operator sometimes followed by "Invalid repository: (whatever)" The line in the 'start' script if [ "$pkgname" == "$package" ] should be if [ "$pkgname" = "$package" ] (at least, changing it like that made it work for me, as it should, seeing `man [`.) P.S. It seems my darcs (1.0.8 (release)) sometimes hangs on partial gets and has to be kill -9'ed or equivalent -- I had to restart it for HaXML here (earlier I gave up on --partial for ghc repo)... I hope to be able to verify the "easy to install" claim made on http://www.haskell.org/nhc98/ ... given my architecture(powerpc) and my OS(ubuntu linux, currently), there were no binaries/automatic installation, and last time I tried compiling it from source (version 1.18 I think) I got some errors (real ones, rather than GCC's regularly crashing non-reproducibly on my machine)... When the build is over I guess I'll report on the results :) Isaac -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF5L7BHgcxvIWYTTURAl8MAJ0etfMGGOGF34oYA09HrpLyxQHwKACfRtcy rCV5YfrzeYVTTUPjqahNSFg= =t/cq -----END PGP SIGNATURE-----

Isaac Dupree
darcs get http://darcs.haskell.org/nhc98/ cd nhc98/ sh start
At various times it outputs, [: 24: ==: unexpected operator
Yes, I discovered this the other day, on a sparc machine. There must be compatibility differences between /bin/sh and /bin/bash. Will push a fix.
I hope to be able to verify the "easy to install" claim made on ... When the build is over I guess I'll report on the results :)
I look forward to receiving your bug reports :-). Regards, Malcolm

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Malcolm Wallace wrote:
Isaac Dupree
writes: I hope to be able to verify the "easy to install" claim made on ... When the build is over I guess I'll report on the results :)
I look forward to receiving your bug reports :-).
Intermediate report: I had to interrupt the build to shut down my computer for the night, and it seems nhc98 is now repeating its work on compiling its libraries (the ones it had already finished yesterday, that is). I think it'll finish by the end of today... Isaac -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF5WOIHgcxvIWYTTURAhncAKC84gbqqZht1NCKr+i0Q0NTjSt+5wCfeuhU JU/e8zcHIEEo/m+b+lGtwv8= =/eBS -----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Isaac Dupree wrote:
Malcolm Wallace wrote:
Isaac Dupree
writes: I hope to be able to verify the "easy to install" claim made on ... When the build is over I guess I'll report on the results :) I look forward to receiving your bug reports :-).
Okay, now I have it pretty much working... All my trivial programs such as module Main (main) where main = print "hello" work, except that at the end of running, outputting "hello", they then give the message Segmentation fault (core dumped) Isaac -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF5e+SHgcxvIWYTTURAiihAKCWiENm+5ctqeYjkLHMnrovgdnLfgCfSHEx pRNP7H4W3GguByscogA9+w4= =7eIH -----END PGP SIGNATURE-----

Isaac Dupree
Okay, now I have it pretty much working... All my trivial programs work, except that at the end of running, outputting "hello", they then give the message
Segmentation fault (core dumped)
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. Regards, Malcolm

-----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-----
participants (2)
-
Isaac Dupree
-
Malcolm Wallace