CPP Help (was Re: Latest Template Haskell Breaks Package)

Brandon Allbery allbery.b at gmail.com
Tue Dec 23 16:14:57 UTC 2014


On Tue, Dec 23, 2014 at 11:10 AM, Dominic Steinitz <dominic at steinitz.org>
wrote:

> How very clever of you and thank you very much. Changing ‘ to 1 does fix
> the problem.
>
> I would have thought this would work
>
> cabal install --with-gcc=gcc-4.9
>
>
> But sadly I still got the same error.
>

I think that changes the gcc cabal uses to compile C code, but does not
affect how ghc invokes cpp. Or put otherwise, there are too many ways that
a C compiler can be dragged into the build pipeline (building C code
explicitly [via cabal or via ghc foo.c, two different cases], wrapped FFI
calls in ghc, -fvia-C, CPP, ...).

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20141223/7c9d317c/attachment.html>


More information about the Glasgow-haskell-users mailing list