GCC for Aros in Aros 68k?

OlafS3 · 691

OlafS3

  • Legendary Member
  • *****
    • Posts: 544
    • Karma: +50/-8
on: January 03, 2022, 09:47:46 AM
Is it possible to setup a environment GCC to compile Aros 68k software from within Aros 68k? And how to do ir?

I know the files in contrib (developer) but is there a manual how to make it working?



deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #1 on: January 03, 2022, 11:27:46 AM
In theory if you copy the contents of contrib archive into AROS directory, compiler should run out of the box - it should be alredy correctly configured. At least that's how it works on x86_64. To be on a safe side, set 128MB RAM and 512KB stack for gcc/g++ to work.



OlafS3

  • Legendary Member
  • *****
    • Posts: 544
    • Karma: +50/-8
Reply #2 on: January 03, 2022, 11:58:41 AM
thanks

will try



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3740
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #3 on: January 03, 2022, 12:21:33 PM
In theory if you copy the contents of contrib archive into AROS directory, compiler should run out of the box - it should be alredy correctly configured. At least that's how it works on x86_64. To be on a safe side, set 128MB RAM and 512KB stack for gcc/g++ to work.

Theoretically it should work if you do the Assign to GCC, I tried it, but there is a problem if you try to run GCC the system says it is not an executable, it is an ELF, but it is not an AROS X86 file.


OlafS3

  • Legendary Member
  • *****
    • Posts: 544
    • Karma: +50/-8
Reply #4 on: January 03, 2022, 01:19:53 PM
In theory if you copy the contents of contrib archive into AROS directory, compiler should run out of the box - it should be alredy correctly configured. At least that's how it works on x86_64. To be on a safe side, set 128MB RAM and 512KB stack for gcc/g++ to work.

Theoretically it should work if you do the Assign to GCC, I tried it, but there is a problem if you try to run GCC the system says it is not an executable, it is an ELF, but it is not an AROS X86 file.

yes that is what I was wondering too

no assigns needed?



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3740
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #5 on: January 03, 2022, 02:47:33 PM
I believe that this software should be used in Linux environment, the Assigns should be done in the Package-Startup as for AROS x86.

Assign BIN: Developer:bin
Path ADD Developer:bin

Assign GCC: SYS:Developer
Assign USR: GCC:
Assign LIB: GCC:lib
Path GCC:bin add