Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile #617

Open
darkoverlordofdata opened this issue Jun 3, 2023 · 2 comments
Open

Unable to compile #617

darkoverlordofdata opened this issue Jun 3, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@darkoverlordofdata
Copy link

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

  • x86_64

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 darkoverlordofdata added the bug Something isn't working label Jun 3, 2023
@darkoverlordofdata darkoverlordofdata changed the title Unable tp compile Unable to compile Jun 3, 2023
@darkoverlordofdata
Copy link
Author

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants