From starocean.wx at gmail.com Sun May 27 04:33:03 2007 From: starocean.wx at gmail.com (pierric) Date: Sun May 27 04:29:02 2007 Subject: [nhc-users] I failed in compiling with gcc Message-ID: Hi, everyone. I have just checked out the latest version from darcs, and try to build it. First I build it with ghc6.6, everything goes well. Then I try to build nhc from bootstrap with gcc. But I got the following error message: ..... make[1]: `nhc98heap' is up to date. make[1]: Leaving directory `/home/pierric/haskell/nhc98/src/runtime' touch targets/ix86-Linux/runtime make: *** No rule to make target `src/prelude/Array/*.hc', needed by `targets/ix86-Linux/prelude-gcc'. Stop. I also find there's no .hc files in src/prelude/array/. Are they generated automatically? thanks very much -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.haskell.org/pipermail/nhc-users/attachments/20070527/656114c8/attachment.htm From Malcolm.Wallace at cs.york.ac.uk Sun May 27 05:53:04 2007 From: Malcolm.Wallace at cs.york.ac.uk (Malcolm Wallace) Date: Sun May 27 05:49:01 2007 Subject: [nhc-users] I failed in compiling with gcc In-Reply-To: References: Message-ID: <20070527105304.1ca06c32.Malcolm.Wallace@cs.york.ac.uk> pierric writes: > Hi, everyone. I have just checked out the latest version from darcs, > and try to build it. First I build it with ghc6.6, everything goes well. Beware that, over the next few days, the darcs version will be a little bit unstable until the recent re-arrangement of the libraries packages settles down a bit. > Then I try to build nhc from bootstrap with gcc. > make: *** No rule to make target `src/prelude/Array/*.hc', needed by > `targets/ix86-Linux/prelude-gcc'. Stop. The .hc bootstrapping files are not stored in the repository, because they are generated files, not hand-modifiable. If you want to create them, then (after at least a 'make basic'), you can ask for 'make srcDist', which will also conveniently package up a tarfile containing everything that is needed. Regards, Malcolm From starocean.wx at gmail.com Sun May 27 10:58:37 2007 From: starocean.wx at gmail.com (pierric) Date: Sun May 27 10:54:33 2007 Subject: [nhc-users] Trying to port nhc to a mobile platform Message-ID: Hi. Everyone. Recently an idea came up to my mind that I want to port nhc to my nds(a handheld game console). There is a already a tiny linux system on it. So the problem now is to cross compile the nhc on my laptop. Comparing with other three haskell system, I think nhc is the most lightweight, and it can be built from bootstrap. But sadly I don't know where to begin. Can someone give any help? some detail steps or maybe some key points that I must know. thanks very much. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.haskell.org/pipermail/nhc-users/attachments/20070527/39c870a2/attachment.htm From Malcolm.Wallace at cs.york.ac.uk Mon May 28 09:13:16 2007 From: Malcolm.Wallace at cs.york.ac.uk (Malcolm Wallace) Date: Mon May 28 09:14:01 2007 Subject: [nhc-users] Trying to port nhc to a mobile platform In-Reply-To: References: Message-ID: <20070528141316.421e6aa4.Malcolm.Wallace@cs.york.ac.uk> pierric wrote: > Hi. Everyone. Recently an idea came up to my mind that I want to port > nhc to my nds(a handheld game console). There is a already a tiny > linux system on it. So the problem now is to cross compile the nhc on > my laptop. Sounds like a fun project. I assume that the Linux system on your Nintendo includes at least the Gnu C compiler, a filesystem, and a few shell utilities? (If not, then you won't get very far.) And actually, you are unlikely to need your laptop to prepare the build for NDS, at least if nothing goes wrong. > Comparing with other three haskell system, I think nhc is > the most lightweight, and it can be built from bootstrap. Yes, it should be fairly straightforward. > But sadly I > don't know where to begin. Can someone give any help? some detail > steps or maybe some key points that I must know. The easiest place to begin is by downloading a tarfile distribution from http://haskell.org/nhc98/download.html Transfer it onto your DS machine, unpack it, then follow the usual installation instructions: cd nhc98-1.18 ./configure --buildwith=gcc make basic If there are any errors during the build, then ask for more help on this list (or the nhc-bugs@ list). The most likely thing to break is that the CPU type is unknown, in which case a few tweaks to some C preprocessor conditionals is all that is usually required to fix it.) Regards, Malcolm