From isaacdupree at charter.net Fri Oct 5 12:13:07 2007 From: isaacdupree at charter.net (Isaac Dupree) Date: Fri Oct 5 12:12:39 2007 Subject: [jhc] how to use jhc Message-ID: <47066293.8050802@charter.net> I'm trying to run Jhc again, following docs/using.txt. "(g)make" works. make install PREFIX=/Users/me/programming/instjhc/ complains install -d "/Users/me/programming/instjhc//bin" install jhc "/Users/me/programming/instjhc//bin" ln -sf "/Users/me/programming/instjhc//bin/jhc" "/Users/me/programming/instjhc//bin/jhci" install -d "/Users/me/programming/instjhc//lib/jhc-0.1" install base-1.0.hl haskell98-1.0.hl "/Users/me/programming/instjhc//lib/jhc-0.1" real_install: cannot stat `base-1.0.hl': No such file or directory real_install: cannot stat `haskell98-1.0.hl': No such file or directory make: *** [install] Error 1 so I tried compiling something without installing Compiling Main.hs 'main=putStrLn"hello"' with any combination of JHCPATH and JHCLIBPATH I tried, errors like this: jhc -vvvv Main.hs jhc 0.1 20071005 (obderaty+0) Compiling [Right "Main.hs"] Loading libraries: ["base","haskell98"] user error (LibraryMap: Library base not found!) Isaac From john at repetae.net Fri Oct 5 19:12:58 2007 From: john at repetae.net (John Meacham) Date: Fri Oct 5 19:11:43 2007 Subject: [jhc] how to use jhc In-Reply-To: <47066293.8050802@charter.net> References: <47066293.8050802@charter.net> Message-ID: <20071005231258.GA19810@momenergy.repetae.net> On Fri, Oct 05, 2007 at 01:13:07PM -0300, Isaac Dupree wrote: > I'm trying to run Jhc again, following docs/using.txt. "(g)make" works. > real_install: cannot stat `base-1.0.hl': No such file or directory > real_install: cannot stat `haskell98-1.0.hl': No such file or directory This is because by default jhc won't build the libraries from scratch because it takes a whole lot of time to do so and most systems arn't beefy enough, you can do a 'make fetch-libs' and it should grab them from the web. or if you want to build them from scratch, you can do a 'make libs'. I believe the pre-compiled ones on the site should work with the latest development tree, if not, that is a bug. I have been working on getting more of the test cases for the 'nobench' suite compiling out of the box so that when it switches back to comparing compilers, jhc should be green across the board. If someone wants to help out, testing a few and figuring out why/if they don't work would be a useful thing to do. A lot of the issues I have encountered so far are straightforward library things that are easy to fix without touching jhc at all. John -- John Meacham - ?repetae.net?john? From isaacdupree at charter.net Sat Oct 6 20:23:41 2007 From: isaacdupree at charter.net (Isaac Dupree) Date: Sat Oct 6 20:22:38 2007 Subject: [jhc] how to use jhc In-Reply-To: <20071005231258.GA19810@momenergy.repetae.net> References: <47066293.8050802@charter.net> <20071005231258.GA19810@momenergy.repetae.net> Message-ID: <4708270D.6030306@charter.net> John Meacham wrote: > On Fri, Oct 05, 2007 at 01:13:07PM -0300, Isaac Dupree wrote: >> I'm trying to run Jhc again, following docs/using.txt. "(g)make" works. >> real_install: cannot stat `base-1.0.hl': No such file or directory >> real_install: cannot stat `haskell98-1.0.hl': No such file or directory > > This is because by default jhc won't build the libraries from scratch > because it takes a whole lot of time to do so and most systems arn't > beefy enough, you can do a 'make fetch-libs' and it should grab them > from the web. or if you want to build them from scratch, you can do a > 'make libs'. I believe the pre-compiled ones on the site should work > with the latest development tree, if not, that is a bug. > > I have been working on getting more of the test cases for the 'nobench' > suite compiling out of the box so that when it switches back to > comparing compilers, jhc should be green across the board. > > If someone wants to help out, testing a few and figuring out why/if they > don't work would be a useful thing to do. > > A lot of the issues I have encountered so far are straightforward > library things that are easy to fix without touching jhc at all. > > John > okay, (the instruction that you need to (`make fetch-libs` || `make libs`) should be in docs/using.txt) This finally worked for me, after trying a few things: JHCLIBPATH=/Users/me/programming/instjhc/lib/jhc-0.1 ../../instjhc/bin/jhc -vvvv Main.hs docs/using.txt also needs to be more explicit about JHCLIBPATH needing to be set, and what it needs to be set to (not prefix, not prefix/lib, but prefix/lib/jhc-[version] !) or possibly say something about JHCPATH, but I don't know if JHCPATH means anything nor, if so, what. BTW. my hello world program 'main=putStrLn"hello"' ran correctly using this jhc. Isaac From naesten at gmail.com Sat Oct 6 22:09:19 2007 From: naesten at gmail.com (Samuel Bronson) Date: Sat Oct 6 22:08:02 2007 Subject: [jhc] how to use jhc In-Reply-To: References: <47066293.8050802@charter.net> <20071005231258.GA19810@momenergy.repetae.net> <4708270D.6030306@charter.net> Message-ID: Oops. I've forgotten how to use mailing lists! Here goes again ;-). On 10/6/07, Isaac Dupree wrote: > BTW. my hello world program 'main=putStrLn"hello"' ran correctly using > this jhc. I seem to remember getting hell.hs working before, so that's not too surprising ;-). A copy of hell.hs reproduced from http://paste.lisp.org/display/42132 is attached. -------------- next part -------------- A non-text attachment was scrubbed... Name: hell.hs Type: application/octet-stream Size: 328 bytes Desc: not available Url : http://www.haskell.org/pipermail/jhc/attachments/20071006/a814422b/hell.obj From ganesh.narayan at gmail.com Sun Oct 7 19:03:39 2007 From: ganesh.narayan at gmail.com (Ganesh Narayan) Date: Sun Oct 7 19:02:19 2007 Subject: [jhc] parse error FrontEnd/Representation.hs Message-ID: <4816a32d0710071603m554aafe4w36e19cb67cb2732e@mail.gmail.com> Hi, I pulled jhc sources (jhc, doc, haskell98, QuickCheck) from darcs and tried building jhc. But the build exits with the following error: jhc$ make ghc -O -ignore-package lang -pgmF drift-ghc -F -W -fno-warn-unused-matches -i. -iFrontEnd -package mtl -package unix -package QuickCheck -fwarn-type-defaults -fallow-undecidable-instances -fglasgow-exts -fallow-overlapping-instances --make Main.hs -o jhc --snip-- . . . --snip-- /home/haskell/DrIFT/bin/DrIFT DerivingDrift/StandardRules.hs -o /tmp/ghc12711_0/ghc12711_151.hspp /home/haskell/DrIFT/bin/DrIFT E/LambdaLift.hs -o /tmp/ghc12711_0/ghc12711_159.hspp [ 60 of 162] Compiling Info.Binary[boot] ( Info/Binary.hs-boot, nothing ) [ 95 of 162] Compiling DataConstructors[boot] ( DataConstructors.hs-boot, nothing ) [110 of 162] Compiling Representation ( FrontEnd/Representation.hs, FrontEnd/Representation.o ) FrontEnd/Representation.hs:350:8: parse error on input `instance' jhc$ am using 6.6.1 ghc, happy is 1.16 and DrIFT version is 2.2.3; would really appreciate if you could let me know what went wrong. thanks -ganesh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.haskell.org/pipermail/jhc/attachments/20071008/e0dcb868/attachment.htm From isaacdupree at charter.net Mon Oct 8 10:35:50 2007 From: isaacdupree at charter.net (Isaac Dupree) Date: Mon Oct 8 10:35:05 2007 Subject: [jhc] parse error FrontEnd/Representation.hs In-Reply-To: <4816a32d0710071603m554aafe4w36e19cb67cb2732e@mail.gmail.com> References: <4816a32d0710071603m554aafe4w36e19cb67cb2732e@mail.gmail.com> Message-ID: <470A4046.6000904@charter.net> Ganesh Narayan wrote: > am using 6.6.1 ghc, happy is 1.16 same with me, who was successful > DrIFT version is 2.2.3 I thought the latest version of DrIFT was 2.2.1, based on http://repetae.net/john/computer/haskell/DrIFT/drop/ however http://repetae.net/dw/darcsweb.cgi?r=DrIFT;a=summary has a 2.2.2 tag. But I still don't see any 2.2.3 and google searches don't help me find any other place there might be DrIFT. I'm confused. Isaac From ganesh.narayan at gmail.com Mon Oct 8 16:12:38 2007 From: ganesh.narayan at gmail.com (Ganesh Narayan) Date: Mon Oct 8 16:11:17 2007 Subject: [jhc] parse error FrontEnd/Representation.hs In-Reply-To: <470A4046.6000904@charter.net> References: <4816a32d0710071603m554aafe4w36e19cb67cb2732e@mail.gmail.com> <470A4046.6000904@charter.net> Message-ID: <4816a32d0710081312x3ad37038l9bac4fd44d9871b2@mail.gmail.com> Issac, thanks; DrIFT 2.2.1 works fine indeed! 2.2.3 is the developmental DrIFT tree, pulled using darcs. -ganesh On 10/8/07, Isaac Dupree wrote: > > Ganesh Narayan wrote: > > am using 6.6.1 ghc, happy is 1.16 > > same with me, who was successful > > > DrIFT version is 2.2.3 > > I thought the latest version of DrIFT was 2.2.1, based on > http://repetae.net/john/computer/haskell/DrIFT/drop/ > > however > http://repetae.net/dw/darcsweb.cgi?r=DrIFT;a=summary > has a 2.2.2 tag. But I still don't see any 2.2.3 > > and google searches don't help me find any other place there might be > DrIFT. I'm confused. > > Isaac > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.haskell.org/pipermail/jhc/attachments/20071009/798d90d1/attachment-0001.htm From john at repetae.net Mon Oct 8 19:06:05 2007 From: john at repetae.net (John Meacham) Date: Mon Oct 8 19:04:43 2007 Subject: [jhc] parse error FrontEnd/Representation.hs In-Reply-To: <4816a32d0710081312x3ad37038l9bac4fd44d9871b2@mail.gmail.com> References: <4816a32d0710071603m554aafe4w36e19cb67cb2732e@mail.gmail.com> <470A4046.6000904@charter.net> <4816a32d0710081312x3ad37038l9bac4fd44d9871b2@mail.gmail.com> Message-ID: <20071008230605.GA25906@momenergy.repetae.net> On Tue, Oct 09, 2007 at 01:42:38AM +0530, Ganesh Narayan wrote: > Issac, thanks; DrIFT 2.2.1 works fine indeed! 2.2.3 is the developmental > DrIFT tree, pulled using darcs. Ah, I must have introduced a bug. You can run DrIFT on the file directly to view what it is trying to produce. John -- John Meacham - ?repetae.net?john?