AROS cross-compiler that runs on Linux?

PortablE · 80

PortablE

  • Newbie
  • *
    • Posts: 7
    • Karma: +47/-0
    • The homepage of Chris Handley
on: August 14, 2022, 07:47:24 PM
Does anyone know where I can find a version of GCC/G++ compiler for Linux that will cross-compile for AROS? 

ZeroHero used to provide one, but his website is down, and no-one seems to have saved his AROS (nor MorphOS) versions:
http://www.zerohero.se/cross/aros.html (no-longer exists)

ChrisH
--
Author of the PortablE programming language.


deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1064
    • Karma: +104/-0
Reply #1 on: August 14, 2022, 07:56:41 PM
Hi,

If you follow these instructions: https://github.com/deadw00d/AROS/blob/alt-abiv0/INSTALL.md

You will get a local build of AROS together with local cross-compiler. For using the cross-compiler outside of AROS build-system, you need to add --sysroot switch pointing to Development directory inside of AROS build.



PortablE

  • Newbie
  • *
    • Posts: 7
    • Karma: +47/-0
    • The homepage of Chris Handley
Reply #2 on: August 16, 2022, 10:09:16 PM
Thanks for the pointer - but I was hoping for a pre-compiled version that would avoid me having to install subversion & the huge number of other dependencies needed to build AROS.  (That may not be a show-stopper, but it will at least greatly delay anything AROS-related that I do, as I don't want to have all that 'junk' installed onto my main Linux system.  Possibly I can use chroot or toolbox to keep it entirely separate, but I have not used either of them yet, and they will probably be more complicated than I hope.)

I hadn't realised that GCC/etc from the Linux-hosted version of AROS could be run outside of AROS (on Linux itself), so it seems I need to look for a pre-compiled version of the Linux-hosted AROS & it's developer tools (if that even exists).

ChrisH
--
Author of the PortablE programming language.


magorium

  • Senior Member
  • ****
    • Posts: 471
    • Karma: +54/-0
  • Convicted non contributor
Reply #3 on: Today at 12:05:47 AM
I hadn't realised that GCC/etc from the Linux-hosted version of AROS could be run outside of AROS (on Linux itself),
Unfortunately it can't.

Quote
... so it seems I need to look for a pre-compiled version of the Linux-hosted AROS & it's developer tools (if that even exists).
Pre compiled versions of AROS ABIv0 Linux hosted can be found at https://axrt.org/index.php?tab=download-aros

And as always has been the case you can use the contrib archive to 'obtain' the development directory which contains the /native/ AROS gcc compiler and tools.

What deadwood wrote is that when you build AROS as described that it automatically builds the AROS cross-compiler for you.

That compiler is used to build AROS itself but can be used outside the AROS build process by providing --sysroot with indicated directory to cross compile for AROS.

Quote
Thanks for the pointer - but I was hoping for a pre-compiled version that would avoid me having to install subversion & the huge number of other dependencies needed to build AROS.  (That may not be a show-stopper, but it will at least greatly delay anything AROS-related that I do, as I don't want to have all that 'junk' installed onto my main Linux system.  Possibly I can use chroot or toolbox to keep it entirely separate, but I have not used either of them yet, and they will probably be more complicated than I hope.)
I have no idea about your setup but in case you do have a development machine that has enough free ram (> 8 GB, Unfortunately I do not have an exact figure) then there is no need for a (permanent) installation.

The build instructions as indicated will build everything outside your current system setup. If your setup is able to accomplish that in ram (ramdisk) then you could zip/tarball the directories that you require/desire and re-use those at your disposal (to avoid having to build the whole AROS tree over and over again). Not an ideal solution but it might perhaps be able to address some of your concerns.

But perhaps deadwood has a quicker/better solution as I am not very familiar with AROS' build system.


miker1264

  • Legendary Member
  • *****
    • Posts: 1294
    • Karma: +82/-2
Reply #4 on: Today at 12:18:03 AM
Not sure if it helps but I use the AROS 64bit Developer VMWare setup provided by Palone some time ago. It has all the prerequisites already installed in Ubuntu 18.04.

At first I used the VMWare Build System for compiling ABIv1 x86-64. But then I made a copy of the VM to compile AROS 68k. More recently I made two more copies - one to compile ABIv11 x86-64 & one to compile ABV0 x86.

These VM's are all running in VMWare Workstation. That way they don't clutter another workspace or interfere with each other. The Build Systems run well & sufficiently fast inside respective VM's.




AMIGASYSTEM

  • Legendary Member
  • *****
    • Posts: 2124
    • Karma: +48/-1
  • AROS One
    • AROS One
Reply #5 on: Today at 12:45:12 AM
Without any doubt VMWare is the best solution to work with AROS x86, and very fast, works very well Network, Audio and Video.


deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1064
    • Karma: +104/-0
Reply #6 on: Today at 08:24:12 AM
Thanks for the pointer - but I was hoping for a pre-compiled version that would avoid me having to install subversion & the huge number of other dependencies needed to build AROS.  (That may not be a show-stopper, but it will at least greatly delay anything AROS-related that I do, as I don't want to have all that 'junk' installed onto my main Linux system.  Possibly I can use chroot or toolbox to keep it entirely separate, but I have not used either of them yet, and they will probably be more complicated than I hope.)

I generally use VMs for such tasks, not to clutter my main system with "temporary" things.

I hadn't realised that GCC/etc from the Linux-hosted version of AROS could be run outside of AROS (on Linux itself), so it seems I need to look for a pre-compiled version of the Linux-hosted AROS & it's developer tools (if that even exists).

There are two compilers: one is a cross-compiler that is built based on instructions above and is a Linux-native program. Second is a AROS-native compiler that comes from "contrib" and is part of distributions. I was refererring to the first compiler, the cross-compiler. AROS-native compiler won't work under Linux.