Building GHC cross-compiler failing on libffi
Hi, I've just followed instructions for "Building a GHC cross-compiler for Apple iOS targets (1)", and I'm getting stuck during "make" while building libffi. Specifically I get errors like "no such instruction" and warnings about junk characters. I was able to build libffi using the build-ios.sh script found in libffi-3.0.13.tar.gz (2), but I noticed a less recent version (3.0.8) was listed in the "tarballs" file of the ghc distribution. Not sure if that makes any difference though. If anyone has suggestions for me, please let me know. Thanks in advance, Thomas (1) http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS (2) ftp://sourceware.org/pub/libffi/libffi-3.0.13.tar.gz
Hi Thomas,
Can you check that “which llc”/“which opt” point to the the LLVM 3.0
versions?
(or just run llc —version to make sure it’s 3.0)
Are you on 10.8 with Xcode 4.6?
Cheers
Luke
On Fri, Sep 13, 2013 at 5:11 PM, thomas burt
Hi,
I've just followed instructions for "Building a GHC cross-compiler for Apple iOS targets (1)", and I'm getting stuck during "make" while building libffi. Specifically I get errors like "no such instruction" and warnings about junk characters.
I was able to build libffi using the build-ios.sh script found in libffi-3.0.13.tar.gz (2), but I noticed a less recent version (3.0.8) was listed in the "tarballs" file of the ghc distribution. Not sure if that makes any difference though.
If anyone has suggestions for me, please let me know.
Thanks in advance, Thomas
(1) http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS (2) ftp://sourceware.org/pub/libffi/libffi-3.0.13.tar.gz
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
Hi,
I get the same errors building GHC head for the simulator as per the instructions. llvm and opt are version 3.0.
Any suggestions are welcome.
Thanks
Pradeep
On 14 Sep 2013, at 02:11, Luke Iannini
Hi Thomas,
Can you check that “which llc”/“which opt” point to the the LLVM 3.0 versions? (or just run llc —version to make sure it’s 3.0)
Are you on 10.8 with Xcode 4.6?
Cheers Luke
On Fri, Sep 13, 2013 at 5:11 PM, thomas burt
wrote: Hi, I've just followed instructions for "Building a GHC cross-compiler for Apple iOS targets (1)", and I'm getting stuck during "make" while building libffi. Specifically I get errors like "no such instruction" and warnings about junk characters.
I was able to build libffi using the build-ios.sh script found in libffi-3.0.13.tar.gz (2), but I noticed a less recent version (3.0.8) was listed in the "tarballs" file of the ghc distribution. Not sure if that makes any difference though.
If anyone has suggestions for me, please let me know.
Thanks in advance, Thomas
(1) http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS (2) ftp://sourceware.org/pub/libffi/libffi-3.0.13.tar.gz
_______________________________________________ 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
It looks like GHC might have just integrated an updated gcc detection
routine. Can you guys try this configure line?
./configure --target=i386-apple-darwin11 --prefix=/usr/local/ghc-ios-sim/
--with-gcc=i386-apple-darwin11-gcc
it should force it to use the correct gcc.
Cheers
Luke
On Sat, Sep 14, 2013 at 6:32 AM, Pradeep Kumar
Hi,
I get the same errors building GHC head for the simulator as per the instructions. llvm and opt are version 3.0.
Any suggestions are welcome.
Thanks Pradeep
On 14 Sep 2013, at 02:11, Luke Iannini
wrote: Hi Thomas,
Can you check that “which llc”/“which opt” point to the the LLVM 3.0 versions? (or just run llc —version to make sure it’s 3.0)
Are you on 10.8 with Xcode 4.6?
Cheers Luke
On Fri, Sep 13, 2013 at 5:11 PM, thomas burt
wrote: Hi,
I've just followed instructions for "Building a GHC cross-compiler for Apple iOS targets (1)", and I'm getting stuck during "make" while building libffi. Specifically I get errors like "no such instruction" and warnings about junk characters.
I was able to build libffi using the build-ios.sh script found in libffi-3.0.13.tar.gz (2), but I noticed a less recent version (3.0.8) was listed in the "tarballs" file of the ghc distribution. Not sure if that makes any difference though.
If anyone has suggestions for me, please let me know.
Thanks in advance, Thomas
(1) http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS (2) ftp://sourceware.org/pub/libffi/libffi-3.0.13.tar.gz
_______________________________________________ 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
On 14 Sep 2013 08:20, "Luke Iannini"
It looks like GHC might have just integrated an updated gcc detection
routine. Can you guys try this configure line?
./configure --target=i386-apple-darwin11 --prefix=/usr/local/ghc-ios-sim/ --with-gcc=i386-apple-darwin11-gcc
it should force it to use the correct gcc.
Cheers Luke
I came upon this same problem and succeeded with the above incantation. --with-gcc=arm-apple-darwin10-gcc was likewise required for the non-sim build. Murray.
Awesome. I've updated the wiki!
Cheers
Luke
On Sat, Sep 14, 2013 at 9:12 AM, Murray Campbell
On 14 Sep 2013 08:20, "Luke Iannini"
wrote: It looks like GHC might have just integrated an updated gcc detection
routine. Can you guys try this configure line?
./configure --target=i386-apple-darwin11 --prefix=/usr/local/ghc-ios-sim/ --with-gcc=i386-apple-darwin11-gcc
it should force it to use the correct gcc.
Cheers Luke
I came upon this same problem and succeeded with the above incantation. --with-gcc=arm-apple-darwin10-gcc was likewise required for the non-sim build.
Murray.
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
It works.
On 14 Sep 2013, at 17:15, Luke Iannini
Awesome. I've updated the wiki! Cheers Luke
On Sat, Sep 14, 2013 at 9:12 AM, Murray Campbell
wrote: On 14 Sep 2013 08:20, "Luke Iannini"
wrote: It looks like GHC might have just integrated an updated gcc detection routine. Can you guys try this configure line? ./configure --target=i386-apple-darwin11 --prefix=/usr/local/ghc-ios-sim/ --with-gcc=i386-apple-darwin11-gcc
it should force it to use the correct gcc.
Cheers Luke
I came upon this same problem and succeeded with the above incantation. --with-gcc=arm-apple-darwin10-gcc was likewise required for the non-sim build.
Murray.
_______________________________________________ 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
Completed all the steps and can get the test app to run on the simulator. Now on to the opengl TestApp.
Thank you
Cheers
Pradeep
On 14 Sep 2013, at 20:45, Pradeep Kumar
It works.
On 14 Sep 2013, at 17:15, Luke Iannini
wrote: Awesome. I've updated the wiki! Cheers Luke
On Sat, Sep 14, 2013 at 9:12 AM, Murray Campbell
wrote: On 14 Sep 2013 08:20, "Luke Iannini"
wrote: It looks like GHC might have just integrated an updated gcc detection routine. Can you guys try this configure line? ./configure --target=i386-apple-darwin11 --prefix=/usr/local/ghc-ios-sim/ --with-gcc=i386-apple-darwin11-gcc
it should force it to use the correct gcc.
Cheers Luke
I came upon this same problem and succeeded with the above incantation. --with-gcc=arm-apple-darwin10-gcc was likewise required for the non-sim build.
Murray.
_______________________________________________ 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
participants (4)
-
Luke Iannini -
Murray Campbell -
Pradeep Kumar -
thomas burt