
Hello, When I tried to build 1.12 (from the sources, on Solaris, with GHC, worked perfectly with 1.10), I got gcc -c -I../Kernel -I/q/pd/nhc/nhc98-1.12/include -D__EXTENSIONS__ -O3 -DHIGH_BYTE_FIRST -o /q/pd/nhc/nhc98-1.12/targets/sparc-solaris2/obj/runtime/Builtin/cFFI.o cFFI.c In file included from cFFI.c:3: HsFFI.h:5: stdint.h: No such file or directory Regards, -- Feliks

Hi Feliks,
* Feliks Kluzniak
When I tried to build 1.12 (from the sources, on Solaris, with GHC, worked perfectly with 1.10), I got gcc -c -I../Kernel -I/q/pd/nhc/nhc98-1.12/include -D__EXTENSIONS__ -O3 -DHIGH_BYTE_FIRST -o /q/pd/nhc/nhc98-1.12/targets/sparc-solaris2/obj/runtime/Builtin/cFFI.o cFFI.c In file included from cFFI.c:3: HsFFI.h:5: stdint.h: No such file or directory
stdint.h is part of the C99 standard, and is not available on older systems, like Solaris and FreeBSD Stable. Use the following patch and it should work. HTH, Olli ----------------------------------------------------------------------------- --- include/HsFFI.h.orig Sun Mar 17 20:52:08 2002 +++ include/HsFFI.h Sun Mar 17 20:54:55 2002 @@ -2,7 +2,7 @@ #define _HSFFI_H #if !defined(INT64_MIN) -#include "stdint.h" +#include "inttypes.h" #endif #define HsChar char ----------------------------------------------------------------------------- -- Department of Computing Science Federal Armed Forces University Munich http://ist.unibw-muenchen.de/People/obraun/

Hi,
stdint.h is part of the C99 standard, and is not available on older systems, like Solaris and FreeBSD Stable. Use the following patch and it should work.
Thanks, that allowed the process to go on quite a bit longer (over 2 hours on Sun Ultra 5, with lots of warnings about Haskell problems in various files). Unfortunately, it then stopped abruptly with /q/pd/nhc/nhc98-1.12/targets/sparc-solaris2/obj/hattools/hatlib.a -d/q/pd/nhc/nhc98-1.12/targets/sparc-solaris2/obj/hattools -lsocket -lnsl Fail: Can't find module FFI in . Or in standard libraries at Asked for by: HatTrace.gc [Check settings of -I or -P flags?] Stop - hmake dependency error. gmake[1]: *** [/q/pd/nhc/nhc98-1.12/lib/sparc-solaris2/hat-observe] Error 1 gmake[1]: Leaving directory `/q/pd/nhc/nhc98-1.12/src/hat/tools' gmake: *** [lib/sparc-solaris2/hat-stack] Error 2 What is it that I am missing? Regards, -- Feliks

Feliks Kluzniak
/q/pd/nhc/nhc98-1.12/targets/sparc-solaris2/obj/hattools/hatlib.a -d/q/pd/nhc/nhc98-1.12/targets/sparc-solaris2/obj/hattools -lsocket -lnsl
Fail: Can't find module FFI in . Or in standard libraries at
Asked for by: HatTrace.gc
This looks like hmake has not been configured correctly. First, check that the file lib/sparc-solaris2/hmakerc exists. If it does, then there should be a section in it corresponding to this: CompilerConfig { compilerStyle = nhc98 , compilerPath = "/q/pd/nhc/nhc98-1.12/script/nhc98" , compilerVersion = "v1.12" , includePaths = ["/q/pd/nhc/nhc98-1.12/include"] , cppSymbols = ["__NHC__"] , extraCompilerFlags = [] , isHaskell98 = True } If any of this is missing, then there has been a problem during configuration. Regards, Malcolm
participants (3)
-
Feliks Kluzniak
-
Malcolm Wallace
-
Oliver Braun