
I build GHC from source under cygwin all the time. That is, I'm using a cygwin environment. There are instructions in the building guide. http://www.haskell.org/ghc/docs/latest/building/winbuild.html You do need to install a mingw bundle too, and then point to its C compiler when you do the configure step. See the notes in sect 11.3. Simon | -----Original Message----- | From: David Duke [mailto:D.Duke@bath.ac.uk] | Sent: 07 March 2002 09:59 | To: glasgow-haskell-users@haskell.org | Subject: Build problem under cygwin | | | | I'm trying to build ghc 5.02.2 under cygwin (2.125.2.10), using gcc | rather than an existing Haskell compiler. I'm running with gnu make | version 3.79.1 | | I configured with --prefix=D:/haskell/ghc (where I've installed the | package), and --enable-win32-dlls. | | The make process is failing (ultimately) because the genprimopcode | command is being invoked before (apparently) it has been compiled. | Looking back through the trace, the makefile in genprimcode | is running, | but then failing: should this not have terminated the entire build? | | syslib text -O -c Main.hs -o Main.o | syslib: not found | make[3]: [Main.o] Error 127 (ignored) | o genprimopcode -syslib text -O Main.o | o: not found | make[3]: [genprimopcode] Error 127 (ignored) | M -optdep-f -optdep.depend -osuf o -syslib text -O Main.hs | M: not found | make[3]: [depend] Error 127 (ignored) | | Somehow, it looks like the "syslib" compiler option is being | incorrectly | intrpreted as a make command. Looking further into the make | result, a | number of other commands are also failing with an ignored | error 127, e.g. | | ==fptools== make boot - --unix - --no-print-directory -r; | in /cygdrive/d/haskell/ghc/ghc/utils/hsc2hs | -------------------------------------------------------------- | ---------- | M -optdep-f -optdep.depend -osuf o -package util -cpp -O | Config.hs | KludgedSy | stem.hs Main.hs Config.hs | M: not found | make[3]: [depend] Error 127 (ignored) | | Again, it looks somehow that a command issued from a makefile | is being | truncated. | | I would be grateful for any comments or suggestions. | | thanks, | David Duke | | | -- | Dr. David Duke Email: D.Duke@bath.ac.uk | Department of Computer Science Web: www.bath.ac.uk/~masdad/ | University of Bath Tel: +44 1225 323 407 | Bath, BA2 7AY U.K. Fax: +44 1225 323 493 | | | _______________________________________________ | Glasgow-haskell-users mailing list | Glasgow-haskell-users@haskell.org | http://www.haskell.org/mailman/listinfo/glasgow-| haskell-users |