Fwd: GHC for Solaris

Christian Maeder maeder at tzi.de
Mon Jul 10 05:07:48 EDT 2006


Greetings from Canada,

I installed Christian Maeder's binary package for the Glasgow Haskell
Compiler (ghc-6.4.1-sparc-sun-solaris2.tar.gz) which I downloaded from

http://www.haskell.org/ghc/docs/6.4.1/html/users_guide/release-6-4-1.html

When I compiled a simple program, I got an error.

ghc -o hello hello.hs
In file included from /usr/local/lib/ghc-6.4.1/include/RtsAPI.h:16,
                 from /usr/local/lib/ghc-6.4.1/include/RtsExternal.h:14,
                 from /usr/local/lib/ghc-6.4.1/include/Stg.h:161,
                 from /tmp/ghc25804.hc:3:
/usr/local/lib/ghc-6.4.1/include/HsFFI.h:32:20: stdint.h: No such file or
	directory

A bunch of config files in /usr/local/lib/ghc-6.4.1/include defined
HAVE_STDINT_H which does not work on Solaris. I replaced the offending
definition with the following.

/* #undef HAVE_STDINT_H */

Recompiled without error and the program runs. All seems well.

Thanks.

-- 
Claude Marinier, Information Technology
Defence Research & Development Canada (Ottawa)
claude.marinier at drdc-rddc.gc.ca
http://www.ottawa.drdc-rddc.gc.ca
Telephone: (613) 998-4901


More information about the Glasgow-haskell-users mailing list