I've updated the instructions on win32 building, but they havn't got to the web site yet. You have to say ./configure --host=i386-unknown-mingw32 --with-gcc=/mingw/bin/gcc Without this, things go badly arwy. For the --with-gcc part you need to install a mingwin bundle from http://www.mingw.org Simon | -----Original Message----- | From: Manuel M. T. Chakravarty [mailto:chak@cse.unsw.edu.au] | Sent: 11 February 2002 03:24 | To: glasgow-haskell-users@haskell.org | Cc: brk@jenkon.com | Subject: GHC on Win32 strangeness | | | Hi! | | Bryn <brk@jenkon.com> is trying to compile C->Haskell with | GHC on Win32, but ran into some problems. Firstly, | configure says, | | $ ./configure | loading cache ./config.cache | checking host system type... i686-pc-cygwin | checking target system type... i686-pc-cygwin | checking build system type... i686-pc-cygwin | checking for Cygwin environment... (cached) no | checking for gcc... (cached) gcc | [..] | | So, it says no Cygwin, but identifies the system as | i686-pc-cygwin. AFAIK, GHC uses mingw32 these days, doesn't | it? How can this be reliably tested for? (To exclude | -package posix on that platform.) | | Secondly, are there any issues with symlinks? I append a | sequence of commands that seems to indicate that GHC doesn't | find a file, because it is symlinked. | | Any ideas? | | Cheers, | Manuel | | -=- | | Administrator@BRK ~/hipar/build/ghc5/base/admin | $ file BaseVersion.hs | BaseVersion.hs: symbolic link to ../../../../base/admin/BaseVersion.hs | | So, change it to an absolute: | | Administrator@BRK ~/hipar/build/ghc5/base/admin | $ ln -s /home/hipar/base/admin/BaseVersion.hs BaseVersion.hs | | Administrator@BRK ~/hipar/build/ghc5/base/admin | $ ls | BaseVersion.hs Common.hs Config.hs Makefile | | Administrator@BRK ~/hipar/build/ghc5/base/admin | $ file BaseVersion.hs | BaseVersion.hs: symbolic link to /home/hipar/base/admin/BaseVersion.hs | | The build fails the same way, copy the command line and | restrict it to just the file we changed, to be sure: | | Administrator@BRK ~/hipar/build/ghc5/base | $ ghc -M -syslib lang -optdep-f -optdep.depend -iadmin | -ierrors -igeneral -igra phs -istate -isyms -isyntax -isysdep | admin/BaseVersion.hs | ghc.exe: file `admin/BaseVersion.hs' does not exist | _______________________________________________ | Glasgow-haskell-users mailing list | Glasgow-haskell-users@haskell.org | http://www.haskell.org/mailman/listinfo/glasgow-| haskell-users |
participants (1)
-
Simon Peyton-Jones