Re: bus error when linking 64-bit app in Xcode 3.1
Re: bus error when linking 64-bit app in Xcode 3.1
- Subject: Re: bus error when linking 64-bit app in Xcode 3.1
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 17 Oct 2008 17:25:00 +0200
Le 17 oct. 08 à 17:08, Chinh Nguyen a écrit : The answer to my questions will probably be file a bug but I thought I'd ask anyway.
Our app is a cross platform statistical software package that supports Mac, Windows, and Unix. All platforms share common code for everything but obviously the GUI. We already have 64-bit Windows and Unix versions of our app (and I've already built a 64-bit Mac console version of our app).
I've been working on porting our Carbon app to Cocoa for some time now and I've finally got enough of the Carbon code rewritten/removed where I can try building a 64-bit version of our app. The x86 Cocoa version compiles and links just fine with no warnings about deprecated functions. When I switch over to the x86_64 build, it all compiles fine (again, no warnings about deprecated functions) but I get a bus error from gcc when it tries to link (collect2: ld terminated with signal 10 [Bus error] -- not a very helpful message). I've tried both gcc 4.2 and 4.0 with Xcode 3.1 and get the same result. The odd thing is I tried a ppc64 build and it compiled and linked just fine! I switched back to Xcode 3.0 and the x86_64 build compiled and linked just fine with gcc 4.0. I'm using the 10.5 sdk and 10.5 for deployment and just the Cocoa framework.
I created a sample project with Xcode 3.1 and built a 64-bit version with no issues so I don't think it's a problem with my setup.
Maybe the ld crashlog may give you some hints about the issue. (not only the error message but the log generated in ~/Library/Logs/CrashReporter)
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden