AROS pc x86_64 sdk

el-topo · 3366

el-topo

  • Newbie
  • *
    • Posts: 8
    • Karma: +1/-0
on: January 14, 2019, 02:44:42 AM
Hi!

I wanted to play around with the AROS 64-bit sdk on Linux so I installed it and all went fine. However, when I try to compile a hello world program the linker indicates that some stuff is missing, "-lposixc, -lstdcio, -lstdc, -lcodesets ..." and so on. I read a guide on Sourceforge that indicated I should get some i386-all stuff but is that information still accurate and does it work with my 64-bit system?



trekiej

  • Member
  • ***
    • Posts: 190
    • Karma: +5/-0
Reply #1 on: February 15, 2019, 08:25:06 PM
I wish I could help.



HenryCase

  • Newbie
  • *
    • Posts: 5
    • Karma: +0/-0
Reply #2 on: February 18, 2019, 03:23:11 PM
el-topo, have you tried the gimmearos script?

http://archives.aros-exec.org/index.php?function=showfile&file=development/cross/scripts.zip

It might not support the x86-64 AROS build, but it should hopefully help in setting up a development environment.



aGGreSSor

  • Member
  • ***
    • Posts: 184
    • Karma: +25/-0
    • russian transit
Reply #3 on: July 22, 2020, 05:24:41 PM
el-topo, have you tried the gimmearos script?

http://archives.aros-exec.org/index.php?function=showfile&file=development/cross/scripts.zip

It might not support the x86-64 AROS build, but it should hopefully help in setting up a development environment.

I'm not el-topo, but here is what i get when following this link:
Quote
You have tried to access a file that doesn't exist on this server.
The file you are looking for might have changed places or it might have been removed.
Please contact the referer to get the link updated.

In the whole http://archives.aros-exec.org doen't exist x86_64 toolchains for MS Windows or Linux, except one: i386 AROS cross-gcc for MinGW64/x86-64
The problem is that this toolchain is incomplete:

Code: [Select]
$ ls /usr/local/amiga/i386-aros/bin/
c++.exe  collect-aros.exe  g++.exe  gcc.exe

$ ls /usr/local/amiga/bin/ | grep aros
i386-aros-c++.exe
i386-aros-cpp.exe
i386-aros-g++.exe
i386-aros-gcc.exe
i386-aros-gcc-4.5.2.exe
i386-aros-gccbug
i386-aros-gcov.exe

example for comparison:
Code: [Select]
$ ls /usr/local/amiga/bin/ | grep ppc-amigaos
ppc-amigaos-addr2line.exe
ppc-amigaos-ar.exe
ppc-amigaos-as.exe
ppc-amigaos-c++.exe
ppc-amigaos-c++filt.exe
ppc-amigaos-cpp.exe
ppc-amigaos-elfedit.exe
ppc-amigaos-g++.exe
ppc-amigaos-gcc.exe
ppc-amigaos-gcc-8.4.0.exe
ppc-amigaos-gcc-ar.exe
ppc-amigaos-gcc-nm.exe
ppc-amigaos-gcc-ranlib.exe
ppc-amigaos-gcov.exe
ppc-amigaos-gcov-dump.exe
ppc-amigaos-gcov-tool.exe
ppc-amigaos-gprof.exe
ppc-amigaos-ld.bfd.exe
ppc-amigaos-ld.exe
ppc-amigaos-nm.exe
ppc-amigaos-objcopy.exe
ppc-amigaos-objdump.exe
ppc-amigaos-ranlib.exe
ppc-amigaos-readelf.exe
ppc-amigaos-size.exe
ppc-amigaos-strings.exe
ppc-amigaos-strip.exe

Therefore local compilation for AROS isn't possible, since there are no files i386-aros-as.exe, i386-aros-ld.exe at least. No one needs to install virtual machines or docker for themselves. And there is no documentation. There was one article that was written well, this "A pre-configured development machine for AROS", but her main link is broken. Nothing like "How to build AmigaOS4 cross-compiler (Binutils 2.23.2 & GCC 8.3.0) on CYGWIN". I noticed that even http://amidevcpp.amiga-world.de is dead.  :o I have not kept this distribution.  :(

It's clear that no one is personally to blame for this. However not everyone will compile from github, when apparently x86_64 is simply not supported.  :(


amigamia

  • Administrator
  • Member
  • *****
    • Posts: 134
    • Karma: +49/-0
    • AROS World
Reply #4 on: July 23, 2020, 06:32:51 AM
You are right, the link to amidevcpp IDE is dead but you can still download the install file from the web archive:

https://web.archive.org/web/20160531103718if_/http://amidevcpp.amiga-world.de/AmiDevCpp/AmiDevCpp_graceful_Bulldozer_v098_Setup.exe

If you are on Windows or Linux with Wine this is probably the fastest and working setup to develop apps for AROS x86 ABIv0. At least I was able to compile a hello world without much fuss and tested no problem on the hosted env.


aGGreSSor

  • Member
  • ***
    • Posts: 184
    • Karma: +25/-0
    • russian transit
Reply #5 on: July 23, 2020, 07:59:13 AM
You are right, the link to amidevcpp IDE is dead but you can still download the install file from the web archive:

https://web.archive.org/web/20160531103718if_/http://amidevcpp.amiga-world.de/AmiDevCpp/AmiDevCpp_graceful_Bulldozer_v098_Setup.exe
Thank you! I think it's useful.

If you are on Windows or Linux with Wine this is probably the fastest and working setup to develop apps for AROS x86 ABIv0. At least I was able to compile a hello world without much fuss and tested no problem on the hosted env.

I also remember that it worked, but.. I download and extracted this archive.
Code: [Select]
$ cd AmiDevCpp_graceful_Bulldozer_v098_Setup/usr/local/amiga/bin
$ file x86_64-aros-gcc.exe
x86_64-aros-gcc.exe: PE32 executable (console) Intel 80386, for MS Windows

very nice
Code: [Select]
$ cat AmiDevCpp_graceful_Bulldozer_v098_Setup/examples/Aros(x86)/ElizaAI/Eliza.readme | grep Submitter
aGGreSSor^tPA

and yet it works. just copy /usr/local/amiga from AmiDevCpp to directory /usr/local/amiga in modern cygwin64
There just are dll-libraries from the old cygwin32 in /usr/local/amiga/bin.
Code: [Select]
$ i386-aros-gcc.exe --version
i386-aros-gcc (GCC) 4.2.2
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Not so bad.  :)


paolone

  • Legendary Member
  • *****
    • Posts: 568
    • Karma: +90/-0
Reply #6 on: July 28, 2020, 05:38:22 AM
There was one article that was written well, this "A pre-configured development machine for AROS", but her main link is broken.


Now it's fixed. Thanks for pointing this and sorry for takeing so much time.


aGGreSSor

  • Member
  • ***
    • Posts: 184
    • Karma: +25/-0
    • russian transit
Reply #7 on: October 11, 2020, 04:47:48 PM
Now it's fixed. Thanks for pointing this and sorry for takeing so much time.
Thank you!

I think (thoughts out loud), what is the nonsense going on with the naming of distributions of programs for aros.
How should the user understand the prefix .x86_64-aros ? This is ABI_V0 or ABI_WIP?
And why ABI_V1 actually called ABI_WIP in About window?


deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #8 on: October 14, 2020, 01:29:12 AM
And why ABI_V1 actually called ABI_WIP in About window?

To show that this ABI is not stable. V1 is ment to represent a stable ABI, which current ABI for x86_64 is not declared to be.