[openbeos] Re: openbeos Digest V2 #59

Last night I think I managed to get bintools compiled on my Intel BeOS 5 PE
box to target PPC. I did this with a target of powerpc-apple-beos, which
seemed to work. Is this correct?
Only if that target means ELF executables. Remember, BeOS PPC ran on PEF binaries not ELF. It was discussed on this list a couple of weeks ago that OBOS PPC should break compatibility and move to ELF.

However, my compile of gcc 2.95.3 failed while building (said it couldn't
find limits.h). And I also tried gcc 3.0, but the configure script
complained about not knowing what to do for a host of i586-pc-beos.
Stick with 2.95.3 which is what I believe OBOS is being developed on. 3.0 breaks the ABI which for PPC is no big deal since were switching to ELF but, its good to keep in synch with everyone else.

The goal is to be able to cross-compile the OBOS kernel (and other stuff)
from my Intel machine. Am I going about this the right way? I've never
done cross-compiling stuff before. :-)
I'm not sure since I've never built a cross compiler myself. However, Travis posted ppc tool chains for cygwin, sh, and free bsd on the newos sourceforge page.


I'm going to go looking for BeOS patches now, but I figured I'd fire off a
question to the list in case someone has more experience with this sort of
thing. Also, if you have anything to add regarding the cross-compiling
issue (perhaps I'm using the wrong target, too? and what else needs to be
done?), please share!
I'm going to be getting a Linux PPC installation going in the next week or so which will eliminate the need for a cross compiler. In the mean time I'm going to try the cygwin cross compiler. I'll let you know how it goes.

Tony


Other related posts: