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 <aeyakovenko@gmail.com> написал(а):
>
> 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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe