From owner-freebsd-hackers Sun Sep 12 2:35:21 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.skylink.it (ns.skylink.it [194.177.113.1]) by hub.freebsd.org (Postfix) with ESMTP id A56C415017 for ; Sun, 12 Sep 1999 02:35:17 -0700 (PDT) (envelope-from hibma@skylink.it) Received: from heidi.plazza.it (va-132.skylink.it [194.185.55.132]) by ns.skylink.it (8.9.1/8.8.8) with ESMTP id LAA23105; Sun, 12 Sep 1999 11:35:22 +0200 Received: from localhost (localhost [127.0.0.1]) by heidi.plazza.it (8.9.3/8.8.5) with ESMTP id JAA18643; Sun, 12 Sep 1999 09:35:48 GMT X-No-Spam: Neither the receipients nor the senders email address(s) are to be used for Unsolicited (Commercial) Email without the explicit written consent of either party; as a per-message fee is incurred for inbound and outbound traffic to the originator. Posted-Date: Sun, 12 Sep 1999 09:35:48 GMT Date: Sun, 12 Sep 1999 11:35:48 +0200 (CEST) From: Nick Hibma X-Sender: n_hibma@heidi.plazza.it Reply-To: Nick Hibma To: Simon Marlow Cc: "'hackers@freebsd.org'" Subject: Re: How to go about making a compiler port In-Reply-To: <8B57882C41A0D1118F7100805F9F68B51232C0E2@RED-MSG-45> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG What about providing a package (binary only distribution) and a port? And the port could include the possibility to bootstrap the installation. See the handbook on how to build a package. Nick On Sun, 12 Sep 1999, Simon Marlow wrote: > [originally sent to ports, resending to hackers at the suggestion of someone > on that list.] > > Hi Folks, > > I'd like to make a port for our Haskell compiler, GHC (see > http://research.microsoft.com/users/t-simonm/ghc). There are some subtle > problems with this: > > - GHC depends on itself. That is, you need GHC > installed in order to build GHC. > > - GHC depends on Happy, our parser generator. > > - Happy depends on GHC (it's written in Haskell). > > So, one solution would be to provide a binary port, say ghc-bin, which would > install a binary distribution. I checked the modula-3 port, and it doesn't > seem to have a binary port, so what's the accepted way of doing this? > > It's possible to bootstrap GHC from intermediate C files, but it's a bit > fiddly and I'd prefer not to do this if possible. However, one thing that > occurs to me is that the port could bootstrap itself from C if you say 'make > BOOTSTRAP=YES', and otherwise attempt to build using an installed GHC. > > Any thoughts greatly appreciated. > > I'm not on this list, BTW. > > Cheers, > Simon > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > > -- e-Mail: hibma@skylink.it To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message