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