[fpc-pascal] Debugging a darwin cross-compiler

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Sep 24 17:19:03 CEST 2008


On 24 Sep 2008, at 14:51, Brad Campbell wrote:

> Still on the trail of the serial unit issue. Think I have it working  
> (it's working perfectly on OSX PPC and all my variants of Linux) but  
> I can't seem to generate valid OSX Intel binaries.
>
> I've got a working cross compile setup where I can generate fully  
> functional linux/win32/OSX-PPC binaries and they all work  
> beautifully, but while all the open darwin tools tell me my OSX- 
> Intel binaries are ok, when I actually put them on an Intel Mac and  
> try to run them all I get is :
>
> -bash: ./hello: cannot execute binary file

Open Darwin and Mac OS X/i386 are not entirely equivalent. I've seen  
these kind of results in the past from people who tried this. I don't  
know what the actual difference or workaround is. Maybe it works if  
you can compile cctools from http://www.opensource.apple.com/darwinsource/DevToolsJun2008/

At least when building those on a native Mac OS X, you end up with  
cctools that produce binaries which also run on Mac OS X.


Jonas



More information about the fpc-pascal mailing list