开发者

arm-apple-darwin9-g++ Bus error problem

I want to create a mobilesubstrate plugin for iPhone OS 3.2 or I tried to setup toolchain on the iPad device. I have installed the iphone-gcc_4.2-20090304-1-9_iphoneos-arm package and all the relevant packages from Cydia, but when it comes to compiling the simplest source file shows the following error:

arm-apple-darwin9-g++ -I /var/toolchain/sys/ -c -dynamiclib ExampleHookLibrary.mm -o ExampleHookLibrary.o
arm-apple-darwin9-g++: Internal error: Bus error (开发者_Go百科program cc1objplus)
Please submit a full bug report.
See <URL:http://developer.apple.com/bugreporter> for instructions.
make: *** [ExampleHookLibrary.o] Error 1

Is it because the iphone-gcc doesn't yet support this device or am I missing anything here? Thanks.


Try iPhone 3.0 Toolchain from TheWorm repository (http://cydia.theworm.tw/), it works for me like a charm. You'll also need the headers from iOS SDK 3.0...3.2.2, and the binary frameworks (extensionless dylib's) also from the SDK.


Bus error is a different form of a segmentation fault. The toolchain is broken in some way.


This script automatically setup iphone toolchain for you, runs on Mac OS X, thanks to @rpetrich. http://gist.github.com/403608

First, remember to apt-get remove iphone-gcc before running this thing on your mac, if you don't want to collect headers files from iphone sdk, follow the Darwin arm part of the script and I think you should be good.


try "iphone 2.0 toolchain" form bigboss

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜