Linux Compiling

Tweaker · 907

Tweaker

  • Newbie
  • *
    • Posts: 5
    • Karma: +1/-0
  • Only Amiga Makes It Possible!
    • AmigaBuntu
on: April 18, 2023, 04:26:07 PM
Hello! Not sure if i am even doing this right... My goal is to install the required packages necessary to run amiga and aros applications inside a linux installation. So far what i tried is using git to recieve the git directory for aros. After I ran ./co figure and recieved a few dependancy issues, which i resolved, and was able to run the command without error. However, when I tried to make, i got an error after a while. Like i said, i may be doing this wrong, i may not require everytjing, I really don't know. I have a screenshot but it was too large to attach, so I have put it externally here https://pasteboard.co/EtKGgxlkcKGX.jpg    I can provide the full output in text form when I get home if needed.

Thank you!!!!

Oderus Urungus
Sub-Op: Reign of Fire BBS
call.rofbbs.com:6800
Only Amiga Makes It Possible.

______________________________
.:           Reign of Fire BBS            :.
.:        call.rofbbs.com:6800        :.
 °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°


ncafferkey

  • Junior Member
  • **
    • Posts: 84
    • Karma: +34/-0
Reply #1 on: April 18, 2023, 05:27:36 PM
It looks like you made the same mistake I did just yesterday! I neglected to run this command to get the language catalogs:

git submodule update --init --recursive

This is from the build instructions at https://aros.sourceforge.io/documentation/developers/git.php



Tweaker

  • Newbie
  • *
    • Posts: 5
    • Karma: +1/-0
  • Only Amiga Makes It Possible!
    • AmigaBuntu
Reply #2 on: April 18, 2023, 07:15:51 PM
thank you kindly for the speedy reply. I shall take a look, and then try again!
Thanks!
« Last Edit: April 18, 2023, 07:20:58 PM by Tweaker »

______________________________
.:           Reign of Fire BBS            :.
.:        call.rofbbs.com:6800        :.
 °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°


Tweaker

  • Newbie
  • *
    • Posts: 5
    • Karma: +1/-0
  • Only Amiga Makes It Possible!
    • AmigaBuntu
Reply #3 on: April 18, 2023, 08:04:53 PM
Alright i followed the directions there, and am now getting a different error heh

Compiling  arch/all-linux/hostdisk/geometry.c
Compile failed: /media/amiga/Extra/AROS/bin/linux-x86_64/tools/crosstools/x86_64-aros-gcc -iquote /media/amiga/Extra/AROS/arch/all-linux/hostdisk/ -iquote /media/amiga/Extra/AROS/arch/all-hosted/devs/hostdisk -iquote /media/amiga/Extra/AROS/arch/all-linux/hostdisk -iquote .  -m64 -mcmodel=large -mno-red-zone -mno-ms-bitfields -O2 -fno-omit-frame-pointer -fno-common -Wno-pointer-sign -Wno-parentheses -I/media/amiga/Extra/AROS/arch/all-unix/devs/hostdisk -I/media/amiga/Extra/AROS/arch/all-hosted/devs/hostdisk -isystem /media/amiga/Extra/AROS/bin/linux-x86_64/gen/include -isystem /usr/include -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/12/include -isystem /usr/include/x86_64-linux-gnu -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_PERSONAL -DHOST_OS_linux -DHOST_OS_ -I/media/amiga/Extra/AROS/bin/linux-x86_64/gen/arch/all-hosted/devs/hostdisk/hostdisk -include /media/amiga/Extra/AROS/bin/linux-x86_64/gen/arch/all-hosted/devs/hostdisk/hostdisk/include/hostdisk_deflibdefs.h -D__SRCFILENAME__="arch/all-linux/hostdisk/geometry.c" -c /media/amiga/Extra/AROS/arch/all-linux/hostdisk/geometry.c -o /media/amiga/Extra/AROS/bin/linux-x86_64/gen/arch/all-hosted/devs/hostdisk/hostdisk/arch/geometry.o
In file included from /media/amiga/Extra/AROS/arch/all-linux/hostdisk/geometry.c:21:0:
/media/amiga/Extra/AROS/arch/all-hosted/devs/hostdisk/hostdisk_host.h:6:2: warning: #warning hostdisk.device functionality is not implemented on this platform [-Wcpp]
 #warning hostdisk.device functionality is not implemented on this platform
  ^~~~~~~
/media/amiga/Extra/AROS/arch/all-linux/hostdisk/geometry.c: In function 'Host_DeviceGeometry':
/media/amiga/Extra/AROS/arch/all-linux/hostdisk/geometry.c:35:26: error: dereferencing pointer to incomplete type 'struct HostInterface'
     ret = hdskBase->iface->ioctl(file, HDIO_GETGEO, &geo);
                          ^~
/media/amiga/Extra/AROS/arch/all-linux/hostdisk/geometry.c: In function 'deviceProbe':
/media/amiga/Extra/AROS/arch/all-linux/hostdisk/geometry.c:88:19: error: storage size of 'st' isn't known
     struct stat64 st;
                   ^~
make[1]: *** [mmakefile:150: /media/amiga/Extra/AROS/bin/linux-x86_64/gen/arch/all-hosted/devs/hostdisk/hostdisk/arch/geometry.o] Error 1
[MMAKE] make --no-print-directory TOP=/media/amiga/Extra/AROS SRCDIR=/media/amiga/Extra/AROS CURDIR=arch/all-linux/hostdisk TARGET=workbench-devs-hostdisk-linux --file=mmakefile workbench-devs-hostdisk-linux failed: 512
[MMAKE] Error: Error while running make in arch/all-linux/hostdisk: No such file or directory
make: *** [Makefile:121: all] Error 10

______________________________
.:           Reign of Fire BBS            :.
.:        call.rofbbs.com:6800        :.
 °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°


deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #4 on: April 18, 2023, 11:59:42 PM
Hi,

If you are looking to build ABIv0 AROS (the one from which applications are available on AROS Archives and Aminet), here are the instructions:

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



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #5 on: April 19, 2023, 04:49:45 AM



Tweaker

  • Newbie
  • *
    • Posts: 5
    • Karma: +1/-0
  • Only Amiga Makes It Possible!
    • AmigaBuntu
Reply #6 on: April 19, 2023, 08:47:29 AM
Hi,

If you are looking to build ABIv0 AROS (the one from which applications are available on AROS Archives and Aminet), here are the instructions:

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


I suppose therein lies the problem. What is the ABIv0? Is this what is required to run amiga os and aros applications under linux? I am very sorry, I am very new to the AROS world, but i'm a quick study.My goal is to install the required packages necessary to run amiga and aros applications inside a linux installation, in my case, a customized kubuntu installation. I don't know if this is even possible, but it seems plausable.
« Last Edit: April 19, 2023, 09:44:18 AM by Tweaker »

______________________________
.:           Reign of Fire BBS            :.
.:        call.rofbbs.com:6800        :.
 °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°


deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #7 on: April 19, 2023, 10:03:35 AM
I can't help with amiga os part - for that you probably need an emulator.

For AROS, it is possible to run it under Linux - it's called AROS-hosted. You don't have to build it yourself, to start you can download pre-build packages:

https://axrt.org/downloads-aros
https://www.axrt.org/download/aros/v0/AROS-20201110-2-linux-i386-system.tar.bz2

This is base system package. No fancy applications added. For those you have to consult AROS-Archives: https://archives.aros-exec.org/

Alternativelly you can start with getting a distribution (AROSOne or Icaros) and run it in VM (VirtualBox, VMWare). This should give you basic experience with system.



Tweaker

  • Newbie
  • *
    • Posts: 5
    • Karma: +1/-0
  • Only Amiga Makes It Possible!
    • AmigaBuntu
Reply #8 on: April 19, 2023, 10:44:20 AM
Thanks very much, I shall explore both options. I was hoping to be able to run aros/amiga os code inside linux, like WINE, but ruinning amiga/aros apps instead.


I can't help with amiga os part - for that you probably need an emulator.

For AROS, it is possible to run it under Linux - it's called AROS-hosted. You don't have to build it yourself, to start you can download pre-build packages:

https://axrt.org/downloads-aros
https://www.axrt.org/download/aros/v0/AROS-20201110-2-linux-i386-system.tar.bz2

This is base system package. No fancy applications added. For those you have to consult AROS-Archives: https://archives.aros-exec.org/

Alternativelly you can start with getting a distribution (AROSOne or Icaros) and run it in VM (VirtualBox, VMWare). This should give you basic experience with system.

______________________________
.:           Reign of Fire BBS            :.
.:        call.rofbbs.com:6800        :.
 °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°


pixie

  • Junior Member
  • **
    • Posts: 83
    • Karma: +2/-4
Reply #9 on: April 20, 2023, 03:51:28 AM
Thanks very much, I shall explore both options. I was hoping to be able to run aros/amiga os code inside linux, like WINE, but ruinning amiga/aros apps instead.
There's no need, hosted run it as is, it's not a wrapper, it is the real deal



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #10 on: April 20, 2023, 07:19:29 AM
Just compile the hosted Linux version so you can launch the applications AROS and CO Janus-UAE "The emulator" Start Amiga M68K applications :)