Skip to content

6.8.2: Cannot configure under Cygwin

There is no GHC compiler available for Cygwin (Linux like environment). The following attempt failed.

ENVIRONMENT

$ echo $SHELL
/bin/sh

$ /bin/sh --version
GNU bash, version 3.2.49(23)-release (i686-pc-cygwin)

$  type pwd
pwd is a shell builtin

$ ld --version
GNU ld (GNU Binutils) 2.19.51.20090704

$ gcc --version
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)

CONFIGURE

~/cygwin/7/ghc6/ghc-6.8.2/$ '''./configure --build i686-pc-cygwin --host i686-pc-cygwin --prefix=/usr --without-ghc'''
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
Canonicalised to: i386-unknown-cygwin32
checking version of ghc... unknown
./configure: line 2209: test: unknownunknown: integer expression expected
./configure: line 2210: test: unknownunknown: integer expression expected
./configure: line 2211: test: unknownunknown: integer expression expected
./configure: line 2212: test: unknownunknown: integer expression expected
./configure: line 2213: test: unknownunknown: integer expression expected
checking for ghc-pkg matching no... no
checking for ghc-pkg... no
checking whether ghc has readline package... no
checking for nhc... no
checking for nhc98... no
checking for hbc... no
checking for ld... /usr/bin/ld
checking for path to top of build tree... ./configure: line 2651: no: command not found
./configure: line 2655: utils/pwd/pwd: No such file or directory
configure: error: cannot determine current directory

The error line 2651-55 are:

   2644 
   2645 if test ! -f utils/pwd/pwd && test ! -f utils/pwd/pwd.exe; then
   2646   cd utils/pwd
   2647   rm -f *.o
   2648   rm -f *.hi
   2649   rm -f pwd
   2650   rm -f pwd.exe
   2651   $WithGhc -v0 --make pwd -o pwd
   2652   cd ../..
   2653 fi
   2654 
   2655 hardtop=`utils/pwd/pwd forwardslash`

I used following mk/build.mk file:

XMLDocWays := html
HADDOCK_DOCS := YES
GhcRTSWays += debug_p thr_debug thr_debug_p
XSLTPROC_OPTS += --nonet
GhcUnregisterised=YES
GhcWithNativeCodeGen=NO
GhcWithInterpreter=NO
SplitObjs=NO
GhcRTSWays := $(shell echo $(GhcRTSWays) | sed "s/\<[a-z_]*thr[a-z_]*\>//g")
GhcNotThreaded=YES
bindir  := ${libdir}/bin
docdir  := $(datarootdir)/doc/ghc6-doc
htmldir := $(docdir)
dvidir  := $(docdir)
pdfdir  := $(docdir)
psdir   := $(docdir)
Trac metadata
Trac field Value
Version 6.8.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information