Hi,

GHC does not build on my system (Mac OS 10.6.4, Xcode 3.2, Fink
0.29.13 (x86_64), Zquartz 2.5.3) out of the box.  Here is how it
fails:

Preprocessing library hpc-0.5.0.3...
In file included from Reflect.hsc:35:
/opt/sw64/src/fink.build/ghc-6.10.4-1/ghc-6.10.4/../ghc-bootstrap/lib/ghc-6.10.4/include/Rts.h:186:17:
 error: gmp.h: No such file or directory
In file included from Reflect.hsc:35:
/opt/sw64/src/fink.build/ghc-6.10.4-1/ghc-6.10.4/../ghc-bootstrap/lib/ghc-6.10.4/include/Rts.h:215:
 error: expected ')' before '*' token
/opt/sw64/src/fink.build/ghc-6.10.4-1/ghc-6.10.4/../ghc-bootstrap/lib/ghc-6.10.4/include/Rts.h:216:
 error: expected ')' before '*' token
compiling dist-bootstrapping/build/Trace/Hpc/Reflect_hsc_make.c failed
command was: /opt/sw64/var/lib/fink/path-prefix-10.6/gcc -c 
-D__GLASGOW_HASKELL__=610 
-I/opt/sw64/src/fink.build/ghc-6.10.4-1/ghc-6.10.4/../ghc-bootstrap/lib/ghc-6.10.4/directory-1.0.0.3/include
 
-I/opt/sw64/src/fink.build/ghc-6.10.4-1/ghc-6.10.4/../ghc-bootstrap/lib/ghc-6.10.4/unix-2.3.2.0/include
 
-I/opt/sw64/src/fink.build/ghc-6.10.4-1/ghc-6.10.4/../ghc-bootstrap/lib/ghc-6.10.4/old-time-1.0.0.2/include
 -I/sw/include 
-I/opt/sw64/src/fink.build/ghc-6.10.4-1/ghc-6.10.4/../ghc-bootstrap/lib/ghc-6.10.4/base-4.1.0.0/include
 
-I/opt/sw64/src/fink.build/ghc-6.10.4-1/ghc-6.10.4/../ghc-bootstrap/lib/ghc-6.10.4/include
 -I/sw/include 
-I/opt/sw64/src/fink.build/ghc-6.10.4-1/ghc-6.10.4/../ghc-bootstrap/lib/ghc-6.10.4/hsc2hs-0.67/../include/
 dist-bootstrapping/build/Trace/Hpc/Reflect_hsc_make.c -o 
dist-bootstrapping/build/Trace/Hpc/Reflect_hsc_make.o
make[1]: *** [bootstrapping.conf] Error 1
make: *** [stage1] Error 2
### execution of /var/tmp/tmp.2.j8A3iP failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/opt/sw64/bin/dpkg-lockwait -r fink-buildlock-ghc-6.10.4-1

It seems that gmp.h cannot be found even if it exists in
/opt/sw64/include (/opt/sw64 being the Fink base directory in my
case), being provided by gmp.  The cause of this appears to be the
-I/sw/include which is incorrect (should be -I/opt/sw64/include).
Indeed, symlinking /sw to /opt64/sw/ appears to fix the build problem,
but this is an extremely ugly fix.

I assume (but I am not sure) that this kind of an issue happens
irrespective of the operating systems as soon as one has Fink
installed in a non-standard location.

Advice on how to do it properly is appreciated.  This is by no means
critical now that I have a working GHC, nonetheless I am willing to
try anything that might be of use for fixing the issue.

Many thanks,
Stefan

-- 
If it was so, it might be; and if it were so, it would be; but as it 
isn't, it ain't.  That's logic.  --Lewis Carroll, Through the Looking-Glass

No HTML emails and proprietary attachments please <http://bruda.ca/email.html>



------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to