Compile programs ABI v.0 hosted

nikos · 1800

nikos

  • Senior Member
  • ****
    • Posts: 298
    • Karma: +8/-2
    • aspireos
on: December 21, 2020, 03:50:48 PM
Hi, I know this been discussed before and there are some outdated manuals online.

Is it possible to get some help with this?

I like to try to compile VICE 3.4 using Linux to get a AROS v.0 i386 exe. I can use AROS hosted if that is more easy.
At least that is what I will use to test my .exe if there will ever be one ;)

https://vice-emu.sourceforge.io/

The link to cross compiler is not correct.

https://aros.sourceforge.io/documentation/developers/app-dev/introduction.php#compiling-on-linux-or-windows-with-a-cross-compiler

« Last Edit: December 21, 2020, 05:09:00 PM by nikos »



salvo

  • Legendary Member
  • *****
    • Posts: 933
    • Karma: +13/-4
  • Invalid Civil
Reply #1 on: December 21, 2020, 06:27:33 PM
i wanted to try to compile something too i installed the sdk but then i couldn't do anything

TinyAros Laptop MSI EX-600 Intel Core Duo 1.8 Ghz, 4 Gb Ram, SSD Samsung 860 EVO 250 Gb, Geforce 8400m "Vesa 15"

http://tinyaros.flazio.com/home


braincure

  • Newbie
  • *
    • Posts: 25
    • Karma: +2/-0
Reply #2 on: December 21, 2020, 06:41:28 PM
one question.
linux drivers were considered to be transferred to Aros?



magorium

  • Senior Member
  • ****
    • Posts: 253
    • Karma: +7/-0
  • Convicted non contributor
Reply #3 on: December 21, 2020, 07:08:53 PM
The link to cross compiler is not correct.
It hasn't been correct for ages now (while it was good).

If you do not have any idea on how to patch your buildsystem manually then you should  perhaps make use of the gimmearos script (afairc provided by mazze) that can be found in the AROS source-tree (here) and that is able to setup a complete (cross) development environment for AROS and allows you to compile AROS itself as well..

You should be able to find a similar script inside the source-tree of deadwood (for both abiv0/abiv1 as deadwoods tree is from before 'the split' ).

The script(s) should be able to install everything needed (and patch them as well, in case required).


magorium

  • Senior Member
  • ****
    • Posts: 253
    • Karma: +7/-0
  • Convicted non contributor
Reply #4 on: December 21, 2020, 07:17:39 PM
one question.
linux drivers were considered to be transferred to Aros?
Sorry but that question "does not compute" for me  :-[


What exactly do you mean by that ? That it was considered to port linux drivers to AROS ? In case you are then you should have a google at the words "Anubis OS" and/or "ARIX"  ;)


If not then i am confused about the question as AROS makes use of something named HIDDS (hardware independent device driver's), and yes there is an occasional peek at how some hardware is addressed on other Operating Systems as there are sometimes quite a few quirks with regards to certain hardware. A HIDD can't be compared to a 'regular' driver (for whatever operating system).

edit: Having said that, i now realised that perhaps you are familiar with projects such as nouveau , mesa and mplayer. Those are ported to AROS.
« Last Edit: December 21, 2020, 11:48:16 PM by magorium »



deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 326
    • Karma: +22/-0
Reply #5 on: December 21, 2020, 07:27:20 PM
@nikos

Here you have instructions on how to setup you linux and build a cross compiler:

https://github.com/deadw00d/AROS/blob/alt-abiv0/INSTALL.md




salvo

  • Legendary Member
  • *****
    • Posts: 933
    • Karma: +13/-4
  • Invalid Civil
Reply #6 on: December 21, 2020, 07:48:00 PM
ok deadwood but then in the source of the program that one wants to bring the makefile must be present, if it is not present how to proceed?

TinyAros Laptop MSI EX-600 Intel Core Duo 1.8 Ghz, 4 Gb Ram, SSD Samsung 860 EVO 250 Gb, Geforce 8400m "Vesa 15"

http://tinyaros.flazio.com/home


deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 326
    • Karma: +22/-0
Reply #7 on: December 21, 2020, 08:17:13 PM
How to compile an application differs from application to application, so there is no one-size-fits-all answer. What I provided will be enough to build a cross compiler and you  have to do development work to compile the application itself.



magorium

  • Senior Member
  • ****
    • Posts: 253
    • Karma: +7/-0
  • Convicted non contributor
Reply #8 on: December 21, 2020, 11:19:12 PM
@deadwood: Noted. Thank you for the correction.


nikos

  • Senior Member
  • ****
    • Posts: 298
    • Karma: +8/-2
    • aspireos
Reply #9 on: December 22, 2020, 12:12:26 PM
@nikos

Here you have instructions on how to setup you linux and build a cross compiler:

https://github.com/deadw00d/AROS/blob/alt-abiv0/INSTALL.md

Thank you Deadwood. This is what I was looking for :)
I will try to follow the manual and don't be surprised if I got questions ;)


deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 326
    • Karma: +22/-0
Reply #10 on: December 22, 2020, 12:42:15 PM
No worries, the more people try it, the more feedback they provide and the easier the manual becomes for more people to try.



salvo

  • Legendary Member
  • *****
    • Posts: 933
    • Karma: +13/-4
  • Invalid Civil
Reply #11 on: December 22, 2020, 01:00:49 PM
How to compile an application differs from application to application, so there is no one-size-fits-all answer. What I provided will be enough to build a cross compiler and you  have to do development work to compile the application itself.

ok :)

TinyAros Laptop MSI EX-600 Intel Core Duo 1.8 Ghz, 4 Gb Ram, SSD Samsung 860 EVO 250 Gb, Geforce 8400m "Vesa 15"

http://tinyaros.flazio.com/home


nikos

  • Senior Member
  • ****
    • Posts: 298
    • Karma: +8/-2
    • aspireos
Reply #12 on: December 23, 2020, 07:31:43 AM
I got here:

Querying target compiler features...
checking for x86_64-pc-linux-gnu-gcc...  /var/www/svn/myrepo/toolchain-alt-abiv0-i386/i386-aros-gcc --sysroot /var/www/svn/myrepo/alt-abiv0-pc-i386/bin/pc-i386/AROS/Development
checking whether the C compiler works... no
features: error: in `/var/www/svn/myrepo/alt-abiv0-pc-i386/config':
features: error: C compiler cannot create executables
See `config.log' for more details
Makefile:76: recipe for target '/var/www/svn/myrepo/alt-abiv0-pc-i386/config/features.status' failed
make[1]: *** [/var/www/svn/myrepo/alt-abiv0-pc-i386/config/features.status] Error 77
Makefile:229: recipe for target 'bootiso' failed
make: *** [bootiso] Error 2
niko@niko-Latitude-D520 /var/www/svn/myrepo $ dir
alt-abiv0-pc-i386  AROS  rebuild.sh  toolchain-alt-abiv0-i386
niko@niko-Latitude-D520 /var/www/svn/myrepo $


deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 326
    • Karma: +22/-0
Reply #13 on: December 23, 2020, 07:39:14 AM
Have you first selected "toolchain-alt-abiv0-i386" in ./rebuild.sh script?
Do you have  /var/www/svn/myrepo/toolchain-alt-abiv0-i386/ directory?



nikos

  • Senior Member
  • ****
    • Posts: 298
    • Karma: +8/-2
    • aspireos
Reply #14 on: December 23, 2020, 04:22:01 PM
Have you first selected "toolchain-alt-abiv0-i386" in ./rebuild.sh script?
Do you have  /var/www/svn/myrepo/toolchain-alt-abiv0-i386/ directory?

Yes, I have that directory. I did something wrong. I selected nr. 2 and not nr. 1 cause I got this error.

I followed your manual:

$ mkdir myrepo
$ cd myrepo
$ git clone https://github.com/deadw00d/AROS.git AROS
$ cd AROS
$ git checkout alt-abiv0
$ cd ..
$ cp ./AROS/scripts/rebuild.sh .
$ ./rebuild.sh

After that I get this.

niko@niko-Latitude-D520 /var/www/svn/myrepo/toolchain-alt-abiv0-i386/myrepo $ ./rebuild.sh
rebuild.sh v1.2, select an option:
    0) exit
    1) toolchain-alt-abiv0-i386
    2) alt-abiv0-pc-i386
    3) alt-abiv0-linux-i386 (DEBUG)
    4) alt-abiv0-linux-i386
    5) alt-abiv0-mingw32-i386

Toolchain : /var/www/svn/myrepo/toolchain-alt-abiv0-i386/myrepo/toolchain-alt-abiv0-i386
Build : /var/www/svn/myrepo/toolchain-alt-abiv0-i386/myrepo/toolchain-alt-abiv0-i386-build
Ports sources : /var/www/svn/myrepo/toolchain-alt-abiv0-i386/myrepo/portssources
mkdir: klarte ikke ć opprette mappa «/var/www/svn/myrepo/toolchain-alt-abiv0-i386/myrepo/toolchain-alt-abiv0-i386-build»: Ikke tilgang
mkdir: klarte ikke ć opprette mappa «/var/www/svn/myrepo/toolchain-alt-abiv0-i386/myrepo/toolchain-alt-abiv0-i386»: Ikke tilgang
./rebuild.sh: linje 71: cd: /var/www/svn/myrepo/toolchain-alt-abiv0-i386/myrepo/toolchain-alt-abiv0-i386-build: Fila eller mappa finnes ikke
./rebuild.sh: linje 72: ../AROS/configure: Fila eller mappa finnes ikke
make: *** No rule to make target 'crosstools'.  Stop.

Using sudo to get access I get this.

Toolchain directory not set. Exiting