any idea why binary isn't bulding on OSX

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 ^ 12 warnings and 1 error generated. Failed to install binary-0.7.1.0 cabal: Error: some packages failed to install: JuicyPixels-3.1.2 depends on binary-0.7.1.0 which failed to install. binary-0.7.1.0 failed during the building phase. The exception was: ExitFailure 1

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@froglogic.com www.froglogic.com - Multi-Platform GUI Testing

There's a workaround given on
http://www.haskell.org/platform/mac.html
In the 'Xcode 5 ^ OS X 10.9 (Mavericks' section.
Thanks, that worked. Anatoly

Installing gcc 4.2 from MacPorts (and port selecting it) helped with this problem. Gcc 4.8 didn't. Отправлено с iPhone
13 янв. 2014 г., в 12:09, Anatoly Yakovenko
написал(а): 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
^
12 warnings and 1 error generated.
Failed to install binary-0.7.1.0
cabal: Error: some packages failed to install:
JuicyPixels-3.1.2 depends on binary-0.7.1.0 which failed to install.
binary-0.7.1.0 failed during the building phase. The exception was:
ExitFailure 1 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

That because you need to make sure the GCC in your path points to it , AND you need to edit your ghc settings file, because ghc has a hard coded path to the GCC that it was built with by default. On Monday, January 13, 2014, MigMit wrote:
Installing gcc 4.2 from MacPorts (and port selecting it) helped with this problem. Gcc 4.8 didn't.
Отправлено с iPhone
13 янв. 2014 г., в 12:09, Anatoly Yakovenko
javascript:;> написал(а): 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
^
12 warnings and 1 error generated.
Failed to install binary-0.7.1.0
cabal: Error: some packages failed to install:
JuicyPixels-3.1.2 depends on binary-0.7.1.0 which failed to install.
binary-0.7.1.0 failed during the building phase. The exception was:
ExitFailure 1 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org javascript:; http://www.haskell.org/mailman/listinfo/haskell-cafe
Haskell-Cafe mailing list Haskell-Cafe@haskell.org javascript:; http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (5)
-
anatoly yakovenko
-
Anatoly Yakovenko
-
Carter Schonwald
-
Frerich Raabe
-
MigMit