[Haskell-cafe] any idea why binary isn't bulding on OSX

Frerich Raabe raabe at froglogic.com
Mon Jan 13 08:13:29 UTC 2014


On 2014-01-13 09:09, Anatoly Yakovenko wrote:
> src/Data/Binary/Get.hs:423:3:
>
>      error: invalid preprocessing directive
>
>      #-}
>
>       ^
>
>
> src/Data/Binary/Get.hs:511:53:
>
>      warning: missing terminating ' character [-Winvalid-pp-token]
>
> -- host order, host endian form, for the machine you're on. On a 64 
> bit

Do you use OS X 10.9 (Mavericks) and/or Xcode 5 by any chance? If so,
this is a known issue. The issue is that Xcode 5 uses clang as
the C compiler, and the clang preprocessor (which ghc calls) works
slightly differently - that's what's causing the issue.

There's a workaround given on

   http://www.haskell.org/platform/mac.html

In the 'Xcode 5 ^ OS X 10.9 (Mavericks' section.

-- 
Frerich Raabe - raabe at froglogic.com
www.froglogic.com - Multi-Platform GUI Testing


More information about the Haskell-Cafe mailing list