aros-development-team / AROS

Main AROS repository for active development. Contains the main Operating System components and Build System.
http://www.aros.org
Other
368 stars 60 forks source link

Unable to compile #617

Open darkoverlordofdata opened 1 year ago

darkoverlordofdata commented 1 year ago

Describe the bug The repository does not compile

To Reproduce Steps to reproduce the behavior:

git clone https://github.com/aros-development-team/AROS.git cd AROS git clone https://github.com/aros-development-team/contrib.git ./configure --target=linux-i386 make

Expected behaviour It will compile

Architecture Linux Ubuntu 22.04

CPU

Additional context I'm following instructions at http://www.aros.org/documentation/developers/compiling.php. I'm on ubuntu 22.04. I'm looking at the botton section "Compiling HowTos", as it's what I'm trying to do, with one difference - this talks about using ubuntu 18.04, which is past EOL, I'm using a current version.

When I enter make it runs for over an hour and then get's a compile error:

Compiling  arch/all-linux/hostdisk/geometry.c 
Compile failed: /home/darko/Documents/GitHub/AROS/bin/linux-x86_64/tools/crosstools/i386-aros-gcc -iquote /home/darko/Documents/GitHub/AROS/arch/all-linux/hostdisk/ -iquote /home/darko/Documents/GitHub/AROS/arch/all-hosted/devs/hostdisk -iquote /home/darko/Documents/GitHub/AROS/arch/all-linux/hostdisk -iquote .  -m32 -march=i486 -mno-ms-bitfields -O2 -fno-common -Wno-pointer-sign -Wno-parentheses -fno-ipa-cp -I/home/darko/Documents/GitHub/AROS/arch/all-unix/devs/hostdisk -I/home/darko/Documents/GitHub/AROS/arch/all-hosted/devs/hostdisk -isystem /home/darko/Documents/GitHub/AROS/bin/linux-i386/gen/include -isystem /usr/include -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/11/include -isystem /usr/include/i386-linux-gnu -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_PERSONAL -DHOST_OS_linux -DHOST_OS_ -I/home/darko/Documents/GitHub/AROS/bin/linux-i386/gen/arch/all-hosted/devs/hostdisk/hostdisk -include /home/darko/Documents/GitHub/AROS/bin/linux-i386/gen/arch/all-hosted/devs/hostdisk/hostdisk/include/hostdisk_deflibdefs.h -D__SRCFILENAME__="arch/all-linux/hostdisk/geometry.c" -c /home/darko/Documents/GitHub/AROS/arch/all-linux/hostdisk/geometry.c -o /home/darko/Documents/GitHub/AROS/bin/linux-i386/gen/arch/all-hosted/devs/hostdisk/hostdisk/arch/geometry.o
In file included from /home/darko/Documents/GitHub/AROS/arch/all-linux/hostdisk/geometry.c:21:0:
/home/darko/Documents/GitHub/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
  ^~~~~~~
/home/darko/Documents/GitHub/AROS/arch/all-linux/hostdisk/geometry.c: In function 'Host_DeviceGeometry':
/home/darko/Documents/GitHub/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);
                          ^~
/home/darko/Documents/GitHub/AROS/arch/all-linux/hostdisk/geometry.c: In function 'deviceProbe':
/home/darko/Documents/GitHub/AROS/arch/all-linux/hostdisk/geometry.c:88:19: error: storage size of 'st' isn't known
     struct stat64 st;
                   ^~
make[1]: *** [mmakefile:150: /home/darko/Documents/GitHub/AROS/bin/linux-i386/gen/arch/all-hosted/devs/hostdisk/hostdisk/arch/geometry.o] Error 1
[MMAKE] make --no-print-directory TOP=/home/darko/Documents/GitHub/AROS SRCDIR=/home/darko/Documents/GitHub/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:125: all] Error 10
darkoverlordofdata commented 1 year ago

I should add that I was able to compile the 64bit version with no problem. But my goal is to cross compile to Icaros 32bit.

deadwood2 commented 1 year ago

FYI, if you are looking to compile for 32-bit Icaros, then you need so called ABIv0 branch. It is not hosted in this repository. Please check my profile for repository containing ABIv0 and instructions to build it.