GHC and Panther (Mac OS X 10.3)
ozone at algorithm.com.au
ozone at algorithm.com.au
Thu Nov 20 16:03:09 EST 2003
On 20/11/2003, at 12:06 PM, Thomas Davie wrote:
> Hi,
> I've just upgraded to OS X 10.3 and have been having some problems
> with ghc.
>
> ...
>
> ghc -DUSE_READLINE=1 -L/sw/lib/ -lreadline -I/sw/include -package
> lang -c -cpp -o
> /Users/tatd100/Documents/Work/Project/Tools/hmake-3.08/targets/
> powerpc-Darwin7/obj/hmake/Compat.o Compat.hs
> Compat.hs:1: parse error on input `#'
> make[1]: ***
> [/Users/tatd100/Documents/Work/Project/Tools/hmake-3.08/targets/
> powerpc-Darwin7/obj/hmake/Compat.o] Error 1
> make: *** [targets/powerpc-Darwin7/hmake-ghc] Error 2
>
> I'm guessing that there's some binary compatibility issues here...
> Could it be panther using gcc3.3?
This looks very much like a bug that a few other people have
encountered with GHC and Panther; try adding
-pgmP "gcc3 -E -traditional"
to your commandline, which will use the gcc 3.1 pre-processor.
(Apple's cpp-3.3 adds some extra line and debugging information to the
output, which is harmless in C but interacts badly with Haskell
syntax.)
--
% Andre Pang : trust.in.love.to.save
More information about the Haskell-Cafe
mailing list