GHC - Cygwin Installation and also DirectX
Hi all. I'm having ghc import path problems on NT: ---------------------------------------------------------------------------- ------------------------------ $ ghc -i//c/ghc/ghc-4.08.2/lib/imports/win32 hello.lhs Import path element `/cygdrive/c/ghc/ghc-4.08.2/lib/imports/win32' does not exist, ignor ing. hello.lhs:14: Could not find interface file for `Win32' in the directories /cygdrive/c/ghc/ghc-4.08.2/lib/imports/win32/*.hi ./*.hi C:/ghc/ghc-4.08.2/lib/imports/std/*.hi hello.lhs:15: Could not find interface file for `Addr' in the directories /cygdrive/c/ghc/ghc-4.08.2/lib/imports/win32/*.hi ./*.hi C:/ghc/ghc-4.08.2/lib/imports/std/*.hi Compilation had errors ---------------------------------------------------------------------------- ------------------------------ The Win32 installation instructions say that one should execute "mount -f C: /", but having done that in response to this error it does not fix the problem and it stops bash from starting up correctly (Cygwin is installed in c:\cygwin and GHC in c:\ghc\ghc-4.08.2). (Why am I supposed to do this mount?) Has anyone got a solution? Furthermore, is anyone using Direct X especially Direct Play and Draw with GHC? Cheers Mike Thomas.
The Win32 installation instructions say that one should execute "mount -f C: /", but having done that in response to this error it does not fix the problem and it stops bash from starting up correctly (Cygwin is installed in c:\cygwin and GHC in c:\ghc\ghc-4.08.2). (Why am I supposed to do this mount?)
It helps because it means that Cygwin's UNIX-style paths (starting from /) are also valid Windows paths. However, as you've observed, when installing Cygwin in its default location, it stops other things working, and I've now retracted that piece of advice. Unfortunately, not mounting C: at / messes up other things (though more so when building GHC than when merely using it). Mounting C: at / shouldn't stop bash starting up, though...
Has anyone got a solution?
There should be some hardwired paths in the driver (/ghc/ghc-4.08.2/bin/ghc-4.08.2) and possibly other scripts that start with /cygdrive/c; changing these to C:/ should make things work. If the paths are being generated somewhere, then running them through cygpath -w will convert them into Windows format. I'm working on getting this cleared up in the head, for the upcoming GHC 5.0 release...hopefully Cygwin 1.2 will be out soon, and then things will settle down somewhat. -- http://sc3d.org/rrt/ | computation, n. automated pedantry
At 5:40 pm +1000 6/3/01 you wrote:
The Win32 installation instructions say that one should execute "mount -f C: /", but having done that in response to this error it does not fix the problem and it stops bash from starting up correctly (Cygwin is installed in c:\cygwin and GHC in c:\ghc\ghc-4.08.2). (Why am I supposed to do this mount?)
From painful experience installing GHC under Win2K I can advise you should install Cygwin at root level now, contrary to advice in Cygwin. Also make sure your disks are mounted in binary mode or things go awry. The sed part of the build process will fail first time around but the build will continue and fail later, so build twice (and no I've no idea why sed fails). After that just the usual amount of salt over the shoulder, frogs leg and bat wing broth, etc. should get it going. ;-) Hope that helps. Nigel Nigel Perry, New Zealand
From painful experience installing GHC under Win2K I can advise you should install Cygwin at root level now, contrary to advice in Cygwin. Also make sure your disks are mounted in binary mode or things go awry. The sed part of the build process will fail first time around but the build will continue and fail later, so build twice (and no I've no idea why sed fails). After that just the usual amount of salt over the shoulder, frogs leg and bat wing broth, etc. should get it going. ;-)
Unfortunately, this is all contrary to the advice we currently give: we advise not to install at the root level, and to mount in text mode. We have no experience of sed failing. Of course, you should do whatever works for you, but if you'd like advice from us, please make sure you've followed our recipe! (Even more confusing is that our advice has changed recently, and used to be much more similar to Nigel's...) -- http://sc3d.org/rrt/ | free, a. already paid for (Peyton Jones)
participants (4)
-
Mike Thomas -
Nigel Perry -
Reuben Thomas -
Reuben Thomas