Hello. I've read plenty about setting up an OS4 cross compiler on Linux x86 and possibly Windows. But what about PPC?
I's like to set up cross compiling on my X1000 Ubuntu setup. I'm running into trouble trying to compile natively on OS4. And it's been suggested (by MickJT) to use an OS with proper support for all the POSIX tools used when building. IOW cross compile.
It's sad that the OS4 SDK and extra tools are still not in a state to port Linux software easily. Extra tools have to be installed and the simple fact is they are still running on AmigaDOS even with a virtual bash shell interface to run them on.
Is there a Linux PPC cross compile setup ready to go or do I have to create it myself? Duplicating the x86 setup.
@Hypex
Since nobody has responded and you are apparently using Linux, you might try checking out the code at https://github.com/sba1/adtools if you haven't already done so. Maybe the code can be configured to produce a Linux PPC cross-compiler. Some of the coreutils from the updated GCC compiler at OS4Depot (addtools.lha) had bugs, so you may not want to install the coreutils if you can compile your own cross-compiler from the adtools project.
X1000 - OS 4.1FE
Thanks for the hint. I recalled the adtools project. I tried downloading adtools and gild from Git, which everybody wants to use now, but got lost at that point. There is no Makefile in the root folder except to generate a readme so looks like I have to do some more researching on it.
I need to go back to the build instructions. And see if I missed something. Likely since I'm not familiar with it.
I also downloaded a large archive from the SF.net site. Will see what it contains.
I didn't realise there was an OS4 native build but is this useful for compiling to AROS and MOS in parallel?
There is an AMD64 deb package for adtools so it would be good if there was a PPC32/64 one provided as well. Being the work being put into X1000 and other Linux builds at the moment. Encouraging the use Linux cross compiling would also be good. :-)
It's a ppc-amigaos hosted compiler that builds for ppc-amigaos target. Also known as a native compiler since it builds for the same platform that it runs on.
I fail to see why you think it has anything to do with AROS or MOS...
I read something about SDI includes. And also because it seemed funny to build it on OS4 when the SDK already includes a native compiler. But I read it can't be built on OS4.
Mostly because I thought the point of cross compiling was to compile on a foreign host which isn't needed on the target platform if a working compiler exists.
Well so far I installed the packages to my Linux x64 to test them out and it broke.
I also downloaded the SF archive and got some things compiled on Linux PPC but that broke eventually. Seems gcc-build is missing files or something.
@hypex
The gcc 4.2.4 compiler that is in the SDK is from the adtools project. Where else did you think it came from?
The developers of mainline gcc do not accept ppc-amigaos patches (probably because they consider AmigaOS too obscure) so the patched gcc sources have to be kept separately which is where the adtools project comes in.
IIRC it was hoped originally that maintainers of gcc for other AmigaOS-like platforms would also add their patches into adtools and that there would be some collaboration but this did not happen.
Also the adtools project is not just about gcc but also hosts other development files and tools like the SDI includes, clib2, abc-shell, flexcat, ...
Well I thought by now that when a new SDK was compiled it could be compiled natively on OS4. So includes updated. New GCC source imported. And configured then compiled for our system. If this isn't the case then it's still a wonder why there isn't any type of download that works out of the box. Like for Linux. Like any other Amiga project it seems to be left behind the rest of the world or only works on the particular system it came from. And needs messing around on any other.