Hello,
I have installed GHC and cygwin on windows XP and I am trying to build the unix package (required to install HApps)
* When I use .../ghc/gcc as c compiler I receive the following error during the configure
D:\temp\haskell\unix-2.3.0.0>runhaskell Setup configure --ghc --prefix=D:\apps\h-lib
Configuring unix-2.3.0.0...
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
and config.log says that :
ld: crt2.o: No such file: No such file or directory
* When I use the gcc in cygwin : /usr/bin/gcc, the configure phase is ok but the build stop on the following error:
D:\temp\haskell\unix-2.3.0.0>runhaskell Setup build
Preprocessing library unix-2.3.0.0...
In file included from System\Posix\DynamicLinker\Module.hsc:57:0:
include/HsUnix.h:32:23: sys/times.h: No such file or directory
include/HsUnix.h:38:26: sys/resource.h: No such file or directory
include/HsUnix.h:41:22: sys/wait.h: No such file or directory
include/HsUnix.h:62:21: termios.h: No such file or directory
include/HsUnix.h:65:25: sys/utsname.h: No such file or directory
include/HsUnix.h:68:17: pwd.h: No such file or directory
include/HsUnix.h:71:17: grp.h: No such file or directory
include/HsUnix.h:81:17: pty.h: No such file or directory
include/HsUnix.h:84:18: utmp.h: No such file or directory
include/HsUnix.h:87:19: dlfcn.h: No such file or directory
In file included from System\Posix\DynamicLinker\Module.hsc:57:0:
include/HsUnix.h: In function `__hsunix_wifexited':
include/HsUnix.h:103:0:
warning: implicit declaration of function `WIFEXITED'
include/HsUnix.h: In function `__hsunix_wexitstatus':
include/HsUnix.h:104:0:
warning: implicit declaration of function `WEXITSTATUS'
include/HsUnix.h: In function `__hsunix_wifsignaled':
include/HsUnix.h:105:0:
warning: implicit declaration of function `WIFSIGNALED'
include/HsUnix.h: In function `__hsunix_wtermsig':
include/HsUnix.h:106:0:
warning: implicit declaration of function `WTERMSIG'
include/HsUnix.h: In function `__hsunix_wifstopped':
include/HsUnix.h:107:0:
warning: implicit declaration of function `WIFSTOPPED'
include/HsUnix.h: In function `__hsunix_wstopsig':
include/HsUnix.h:108:0:
warning: implicit declaration of function `WSTOPSIG'
include/HsUnix.h: In function `__hsunix_rtldDefault':
include/HsUnix.h:115:0:
error: `RTLD_DEFAULT' undeclared (first use in this function)
include/HsUnix.h:115:0:
error: (Each undeclared identifier is reported only once
include/HsUnix.h:115:0: error: for each function it appears in.)
include/HsUnix.h: In function `__hsunix_lstat':
include/HsUnix.h:134:0:
warning: implicit declaration of function `lstat'
include/HsUnix.h: In function `__hsunix_mknod':
include/HsUnix.h:140:0:
warning: implicit declaration of function `mknod'
compiling dist\build\System\Posix\DynamicLinker\Module_hsc_make.c failed
command was: d:\apps\ghc\bin\ghc.exe -c -package base-3.0.2.0 -package directory-1.0.0.1 -Iinclude dist\build\System\Pos
ix\DynamicLinker\Module_hsc_make.c -o dist\build\System\Posix\DynamicLinker\Module_hsc_make.o
Could someone help me.
Thank you
J-C