Help Compiling AROS on ARM Linux

vbrusca · 176

vbrusca

  • Newbie
  • *
    • Posts: 2
    • Karma: +0/-0
on: May 20, 2020, 12:38:58 AM
Hello, I'm trying to compile AROS on Ubuntu Linux, armhf and I'm running into the following error. I'm really new to this OS.
This is the configure command I'm using.

./configure --target=linux-arm --x-includes=/usr/include --enable-includes=/usr/arm-linux-gnueabi/include

I'm getting the following error.

Compiling  arch/all-unix/exec/platform_init.c
Compile failed: /home/odroid/AROS/bin/linux-arm/tools/crosstools/arm-aros-gcc -iquote /home/odroid/AROS/arch/all-unix/exec/ -iquote /home/odroid/AROS/arch/all-unix/exec -iquote .  -O2 -fno-strict-aliasing -fno-omit-frame-pointer -fno-common -fno-asynchronous-unwind-tables -fno-exceptions -Wno-pointer-sign -Wno-parentheses -I/home/odroid/AROS/arch/arm-linux/kernel -I/home/odroid/AROS/arch/all-linux/kernel -I/home/odroid/AROS/arch/all-unix/kernel -I/home/odroid/AROS/arch/arm-all/kernel -I/home/odroid/AROS/rom/kernel -I/home/odroid/AROS/arch/arm-linux/exec -I/home/odroid/AROS/arch/all-linux/exec -I/home/odroid/AROS/arch/all-unix/exec -I/home/odroid/AROS/arch/arm-all/exec -I/home/odroid/AROS/rom/exec -I/home/odroid/AROS/arch/arm-linux/exec -I/home/odroid/AROS/arch/all-linux/exec -I/home/odroid/AROS/arch/all-unix/exec -I/home/odroid/AROS/arch/arm-all/exec -I/home/odroid/AROS/rom/exec -I/home/odroid/AROS/arch/arm-linux/kernel -I/home/odroid/AROS/arch/all-linux/kernel -I/home/odroid/AROS/arch/all-unix/kernel -I/home/odroid/AROS/arch/arm-all/kernel -I/home/odroid/AROS/rom/kernel -isystem /home/odroid/AROS/bin/linux-arm/gen/include -isystem /usr/arm-linux-gnueabihf/include -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/7/include -isystem /usr/lib/gcc/arm-linux-gnueabihf/7/include-fixed -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_PERSONAL -DHOST_OS_linux -I/home/odroid/AROS/bin/linux-arm/gen/rom/exec/exec -include /home/odroid/AROS/bin/linux-arm/gen/rom/exec/exec/include/exec_deflibdefs.h -D__SRCFILENAME__="arch/all-unix/exec/platform_init.c" -c /home/odroid/AROS/arch/all-unix/exec/platform_init.c -o /home/odroid/AROS/bin/linux-arm/gen/rom/exec/exec/arch/platform_init.o
In file included from /home/odroid/AROS/arch/all-unix/exec/platform_init.c:6:0:
/home/odroid/AROS/bin/linux-arm/gen/include/aros/debug.h:22:20: fatal error: string.h: No such file or directory
 #include <string.h>





deadwood

  • AROS Developer
  • Junior Member
  • *****
    • Posts: 83
    • Karma: +5/-0
Reply #1 on: May 20, 2020, 08:05:45 AM
Are you trying to build a hosted flavor of AROS on one of native targets, like RaspbeerryPi?

Here is the configure line I used in the past. Notice that I'm building outside of source tree, while you are trying to build in the source tree. In general this should not matter, but you never know if there is no regression. Also I used this line from x86_64 linux for cross compililation, while you are building native so some paths have to change I guess.

../AROS/configure --target=linux-armhf  --enable-includes=/usr/arm-linux-gnueabihf/include --x-includes=/usr/arm-linux-gnueabihf/include --x-libraries=/usr/arm-linux-gnueabihf/lib



vbrusca

  • Newbie
  • *
    • Posts: 2
    • Karma: +0/-0
Reply #2 on: May 20, 2020, 09:19:04 PM
Thanks. I was trying to build a hosted version for armhf linux on armhf linux. I'll definitely check out your config command and go through the process again. I decided to simplify things a bit and just try to compile the project on x86-64 ubuntu in virtual box. Then I think I'll take a stab at cross compiling or using that knowledge to compile hosted on arm linux. Thanks for the quick response. I'll definitely post any useful information back here.

I'm planning to write some tutorials on how to setup AROS in different environments and this is my first foray into compiling the project. Thanks again!



deadwood

  • AROS Developer
  • Junior Member
  • *****
    • Posts: 83
    • Karma: +5/-0
Reply #3 on: May 20, 2020, 09:55:24 PM
No problem, ask away. Compiling certain AROS targets can be quite challanging at start.



leeg

  • Newbie
  • *
    • Posts: 20
    • Karma: +0/-0
Reply #4 on: May 22, 2020, 06:49:59 PM
FWIW I saw exactly the same error yesterday with missing string.h when building (out of tree) on macOS. I was building the hosted Darwin target.