Re: Problem installing nhc98 1.16 using bootstrap-from-C method
Malcolm Wallace <[email protected]> Thu, 10 Apr 2003 10:03:29 +0100
| Newsgroups | gmane.comp.lang.haskell.nhc.user |
|---|---|
| Organization | Dept of Computer Science, University of York |
| Message-ID | <[email protected]> |
"David Bakin" <[email protected]> writes: > I'm having trouble building nhc98 using bootstrap-from-C - the following > shows the error I'm getting. It is actually executing in hmake3.config > > I/O error: > action : openFile ReadMode > on file: /cygdrive/c/TEMP\hmakeconfig.tmp > gave : ENOENT (No such file or directory) I believe the problem here is the mixture of directory separators. When compiled by ghc the mix doesn't matter, but it does matter in a pure C-under-cygwin build, which likes to pretend to be Unix as much as possible. In src/hmake/RunAndReadStdout.hs, try changing tmpfile root = ... if windows then (tmp++"\\"++root++".tmp") to then (tmp++"/"++root++".tmp") Then, because you are bootstrapping via C, you will need to re-generate the .hc file from this source before continuing with the build: ( cd src/hmake && ../../script/nhc98 -C RunAndReadStdout.hs ) make Regards, Malcolm