AROS Vanilla x86-64

miker1264 · 7252

Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #30 on: March 05, 2023, 11:54:15 PM
if I have a makefile like for example in games what should I write in the terminal, now I'm creating the toolchain-x86_64, I know how to compile with make but not in the cross environment for aros



deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #31 on: March 06, 2023, 03:38:14 AM
Cross-compiling is always tricky. Since you already have Linux, why not use AROS hosted and use GCC and make under AROS hosted - this will make things much easier.



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #32 on: March 06, 2023, 04:51:16 AM
i thought i was compiling in the source tree, however i got an error compiling core-linux on ubuntu 22.04



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #33 on: March 06, 2023, 06:04:02 AM
It's quite possible that it won't work under Ubuntu 18.04. There were some changes in Linux C library which you might have stumbled upon. Best to use 22.04.

After I update Ubuntu to 22.04 do I need to build the tool chain again? Or just try make again?



deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #34 on: March 06, 2023, 06:11:22 AM
It's quite possible that it won't work under Ubuntu 18.04. There were some changes in Linux C library which you might have stumbled upon. Best to use 22.04.

After I update Ubuntu to 22.04 do I need to build the tool chain again? Or just try make again?

Hard to say. In theory the toolchain should work, but in practice who knows. I think it is better to re-build the toolchain on new installation to avoid some hard to debug problems with it later on.



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #35 on: March 06, 2023, 06:23:47 AM
pc-core succesifull compiled



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #36 on: March 06, 2023, 09:44:42 AM
pc-core succesifull compiled

Congratulations! Welcome to the club.  ;D

I'm attempting to do an in-place upgrade at the linux commandline from 18.04 Bionic Bunny to 20.04 Focal Fossa.
So far all the available packages have been installed.

If all goes well I will do a make to see if it works. Then I will go back to rebuild the toolchain (again!) then make again.

Easy breezy! (I like AROS much better than Linux)



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #37 on: March 06, 2023, 11:35:41 AM
AROS is designed for desktop users like the Amiga Workbench :)
« Last Edit: March 06, 2023, 11:45:44 AM by Amiwell »



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #38 on: March 06, 2023, 11:50:29 AM
AROS is designed for desktop users like the Amiga Workbench :)

@Amiwell

Are you using Ubuntu in VMWare for your ABIv11 Build System?

I can help you with compiling some small programs.

Once the Build System is setup it's not difficult to compile.




magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #39 on: March 06, 2023, 12:01:30 PM
AROS is designed for desktop users like the Amiga Workbench :)
I personally disagree  :P

One of the charmes for me is the shell, albeit is showing its age these days. It still has (plugin) features compared to other OS terminals/shells that is unmatched.

But, that is the fun of Amiga OS (and derivatives), you can use it any which way you like. If you are a big Magellan, Scalos, Wanderer fan then you can use that. If you prefer a bourne compatible shell/terminal then you can use that as well. Being able to cherry pick is a nice thing.


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #40 on: March 06, 2023, 12:25:00 PM
I suppose I'm the only one who is Linux incompetent?

Why won't it allow me to configure & make AROS for ABIv11 x86-64 ? I built the toolchain for x86-64 successfully.

I have no idea why this isn't working & I'm very busy with other things ATM.  I don't think it was this difficult before. >:(
« Last Edit: March 06, 2023, 12:37:04 PM by miker1264 »



magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #41 on: March 06, 2023, 12:37:39 PM
Not sure what your order of events is but here are build instruction for ABIv11.

In case you use a cross compiler setup to cross compile small programs then you need to supply a parameter (If i remember correctly it is) named --with-sysroot=/path/to/sysroot

edit: oh it is sysroot (not with-sysroot).

I do not know from memory but if the buildscript does not rerun automatically then start it again using the other preferred selection (you need to build things in the correct order, afaik the script will not do that for you).
« Last Edit: March 06, 2023, 12:55:31 PM by magorium »



miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #42 on: March 06, 2023, 03:14:05 PM
Not sure what your order of events is but here are build instruction for ABIv11.

In case you use a cross compiler setup to cross compile small programs then you need to supply a parameter (If i remember correctly it is) named --with-sysroot=/path/to/sysroot

edit: oh it is sysroot (not with-sysroot).

I do not know from memory but if the buildscript does not rerun automatically then start it again using the other preferred selection (you need to build things in the correct order, afaik the script will not do that for you).

Thanks. Later I will delete my old sources then start from the beginning.



magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #43 on: March 06, 2023, 04:04:54 PM
I just verified the build with doing the following:

Code: [Select]
$ cd /media/ramdisk
$ mkdir work
$ cd work
$ mkdir arosbuilds
$ cd arosbuilds
$ git clone https://github.com/deadw00d/AROS.git AROS
$ cp ./AROS/scripts/rebuild.sh .
$ /usr/bin/time --format='%C took %e seconds' ./rebuild.sh

The shell presents a menu:
Code: [Select]
rebuild v1.9, select an option:
    0)  exit
    1)  toolchain-core-x86_64
    2)  core-linux-x86_64 (DEBUG)
    3)  core-pc-x86_64
    4)  core-contrib-x86_64
    5)  core-linux-x86_64
    11) toolchain-core-m68k
    12) core-amiga-m68k
    13) core-amiga-m68k (SERIAL DEBUG)
    14) core-contrib-m68k
    21) toolchain-core-armhf
    22) core-linux-armhf (DEBUG)

Because I wanted to verify the build for x86_64, I selected option 1.

After a while that returned:
Code: [Select]
blah blah from build
./rebuild.sh took 969.47 seconds

And got me a prompt again.

Then I re-ran the rebuild script
Code: [Select]
$ /usr/bin/time --format='%C took %e seconds' ./rebuild.sh

Again the menu is prompted.

This time we need to select what we want to build (still x86_64).
- for a Linux hosted AROS build, select either 2 or 5
- for building a native 64 bit AROS, select 3

I opted for option 2.

After a while that returned:
Code: [Select]
blah blah from build
./rebuild.sh took 899.22 seconds

That is where I left things but you could also opt for re-running the rebuild script to try build the x86_64 core contrib.

... Or re-run the rebuild script and select any of the other options that you wish to build for ofc.

Gist of it is you can use the rebuild script to let it build things for you or read the script (and other scripts that it includes) in order to determine the exact process of how AROS is build for a particular target.

If that worked for you then you have a full working standalone AROS cross-compiler and generated the Linux hosted version of x86_64 AROS.

In case wondering: the results are from a 64 bit machine, native running debian testing (bookworm) and rebuild script compiled on/to a 12GB ramdisk. The end result seem to occupies 3.7 GB of files (donwloaded, extracted and/or compiled). Depending on your network connection the time it takes to build may vary.


Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #44 on: March 06, 2023, 05:29:51 PM
AROS is designed for desktop users like the Amiga Workbench :)

@Amiwell

Are you using Ubuntu in VMWare for your ABIv11 Build System?

I can help you with compiling some small programs.

Once the Build System is setup it's not difficult to compile.

Miker ok I reinstall the system :D, @magorium i have to compile first toolchain-x86_64 then core-pc-x86_64 and core-contrib-pc-x86_64, core-linux-x86_64 (DEBUG) it gives me an error
« Last Edit: March 06, 2023, 05:35:18 PM by Amiwell »