cross compiling on OS4 from Linux

4 posts / 0 new
Last post
billt
billt's picture
Offline
Last seen: 2 years 2 months ago
Joined: 2011-02-04 18:54
cross compiling on OS4 from Linux

I'm trying to follow the setup docs for gcc cross compiler on Linux for OS4-ppc target, so I can try some stuff on my PC laptop. (When oh when will we get a high-end Amiga laptop?!)

Following Nico's Utilitybase doc as linked to by ZeroHero's howto page for installing Hyperion SDK 53.20 which is current at the moment, and I suppose different in this way from whatever version was current at the time they wrote about this.

ZeroHero says to get clib2-1.205 from sourceforge but there is a clib-1.204 in the current Hyperion SDK. Is the slightly newer rev from Sourceforge better, or should I use what's in Hyperion's SDK?

The Utilitybase doc talks about extracting SDK_Install/clibs.lha from Hyperions SDK archive. This file does not seem to be present in current SDK from Hyperion. Is that OK, or do I need it from an old SDK archive? Or ust use the clib2 file (either Hyperion or Sourceforge) and newlib-53.9 from current Hyperion SDK?

Anyone have any other advice on cross-compiling from Linux-x86?

salass00
salass00's picture
Offline
Last seen: 7 months 2 weeks ago
Joined: 2011-02-03 11:27
Easiest way IMO is to just

Easiest way IMO is to just install the SDK on an Amiga running AmigaOS 4.x using the install script and then copy over the relevant drawers to your cross compiler setup (SDK:newlib, SDK:clib2, SDK:local/newlib, SDK:local/common, SDK:local/clib2).

billt
billt's picture
Offline
Last seen: 2 years 2 months ago
Joined: 2011-02-04 18:54
That may be, but it's hard to

That may be, but it's hard to do with Amiga stuff buried in storage. All I have to use these days is my laptop until we are able to make time and parse the storage room and offsite storage facility into a workable office/hobby room. Amiga stuff is at least in the house, I think, mostly anyway, but I don't have any place to put or set it up just now.

OK, how about a weirdish question then. I know I can't run the OS4 gcc in winuae, but would the install script and stuff run well enough in 3.9 under emulation, and I can copy dirs as you say that way? And once they are copied, remove the SDK from 3.9? Or would 3.9 installer not work with OS4 SDK install script to give me something to copy over to Linux?

kas1e
kas1e's picture
Offline
Last seen: 4 months 1 week ago
Joined: 2010-11-30 15:30
The easy way (i do it like

The easy way (i do it like this for my winxp/cygwin setup), its just create directory /usr/local/amiga/ppc-amigaos/SDK/ And just unarchive every archive from SDK archive manually to that directory. Thne just install cross-compiler env (all those gcc ,etc), and add to .bashrc export PATH=/usr/local/amiga/bin:$PATH. No need to worry about all that auto-installs, all will works without as well (i do not remember, maybe there still will be some issues, but as far as i remember none).

Log in or register to post comments