[Haskell-iPhone] Compilation failure

Luke Iannini lukexipd at gmail.com
Fri Dec 13 23:36:48 UTC 2013


Hi Schell,

Happy to help!

Most everything looks good, but if I had to guess it would be that your gcc
is *actually* gcc, rather than the fake gcc that modern OS X/Xcode
provides. Have you perhaps installed one with brew or otherwise?

Here I've got:

lukexi at thopminkingscape:~$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.78) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
lukexi at thopminkingscape:~$ which gcc
/usr/bin/gcc

We've set the build system up to expect the Xcode-installed
gcc-which-is-actually-clang so if you can get that one to be primary in the
PATH that should get you past this.

Cheers
Luke


On Fri, Dec 13, 2013 at 1:35 PM, Schell Scivally <efsubenovex at gmail.com>wrote:

> Hi guys, after wanting for months to try out ghc-ios I finally have some
> time to do it. First off thanks for all the work you've done, I can't wait
> to get up and running. I seem to be running into a problem early on during
> make:
>
> gcc -E  -undef -traditional -Wno-invalid-pp-token -Wno-unicode
> -Wno-trigraphs -P -Iincludes -Iincludes/dist
> -Iincludes/dist-derivedconstants/header
> -Iincludes/dist-ghcconstants/header  -x c compiler/parser/Parser.y.pp |
> grep -v '^#pragma GCC' > compiler/stage1/build/Parser.y
>
> cc1: error: unrecognized command line option "-Wno-invalid-pp-token"
>
> cc1: error: unrecognized command line option "-Wno-unicode"
>
> make[1]: *** [compiler/stage1/build/Parser.y] Error 1
>
> make[1]: *** Deleting file `compiler/stage1/build/Parser.y'
>
> make: *** [all] Error 2
>
>
> My configure line:
>
> ./configure --target=i386-apple-darwin11
> --with-gcc=i386-apple-darwin11-clang
> --with-ghc=/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/bin/ghc
>
>
> Which produces http://lpaste.net/96946.
>
>
> ghc --info: http://lpaste.net/96947
>
>
> Thanks again.
>
> --
> Schell Scivally
> http://blog.efnx.com
> http://github.com/schell
> http://twitter.com/schellsan
>
> _______________________________________________
> iPhone mailing list
> iPhone at haskell.org
> http://www.haskell.org/mailman/listinfo/iphone
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/iphone/attachments/20131213/dfdb7ee1/attachment.html>


More information about the iPhone mailing list