basically configure the build with ./configure --with-gcc=clang and you
should be set then, right?
On Fri, Dec 13, 2013 at 6:36 PM, Luke Iannini
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@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@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
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@haskell.org http://www.haskell.org/mailman/listinfo/iphone
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone