Dominic
Well done for fighting through to success.
| 1. [dom@lhrtbax pcre]$ make
| /usr/local/bin/ghc -fglasgow-exts -fno-prune-tydecls
| -I/home/dom/pcre-2.08/ -L/h
| ome/dom/pcre-2.08/ -lpcre -i../../lib -c Main.lhs -o
| Main.o -osuf o
|
| Main.lhs:10: Could not find valid interface file `RegLib'
Yes, you need a makefile that expresses the dependencies. There's
advice about that in GHC's user manual, under 'separate compilation'.
That applies to your next two steps too.
| 3. [dom@lhrtbax pcre]$ make Pcre
| ../../src/ihc -fhs-to-c -fno-qualified-names
| -fexclude-system-includes -cpp -I/h
| ome/dom/pcre-2.08/ --asf=Pcre.asf -fvoid-typedef-is-abstract
| -finline-synonyms -
| fout-pointers-are-not-refs -c Pcre.idl -o Pcre.hs
| failed
| Reason: /usr/include/bits/types.h:38: Parse error on input:
| unsigned long long
| int __u_quad_t;
|
| make: *** [Pcre.hs] Error 1
This looks like an HDirect problem, so I'm ccing Sigbjorn.
| 5. [dom@lhrtbax pcre]$ make Pcre
| ../../src/ihc -fhs-to-c -fno-qualified-names
| -fexclude-system-includes -cpp -I/h
| ome/dom/pcre-2.08/ --asf=Pcre.asf -fvoid-typedef-is-abstract
| -finline-synonyms -
| fout-pointers-are-not-refs -c Pcre.idl -o Pcre.hs
| /usr/local/bin/ghc -fglasgow-exts -fno-prune-tydecls
| -I/home/dom/pcre-2.08/ -L/h
| ome/dom/pcre-2.08/ -lpcre -i../../lib -c Pcre.hs -o Pcre.o -osuf o
|
| Pcre.hs:51: Module `Int' does not export `toInt'
This is an incompatibility between the version of GHC you are using
and the version of HDirect. I think Sigbjorn is planning to release
a new HDirect shortly.
Simon