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

Raspberry Pi 5: libm.so.6: ELF load command address/offset not page-aligned #912

Open
sundhaug92 opened this issue Dec 14, 2023 · 8 comments

Comments

@sundhaug92
Copy link

Raspberry Pi OS 64-bit

LSB

Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

uname: Linux raspberrypi 6.1.0-rpi7-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux

Happens when running test01, or steam

@ptitSeb
Copy link
Owner

ptitSeb commented Dec 14, 2023

You are probably using a 16K pagesize OS. Note that mostly nothing will work with 16K pagesize, at least not wine.

But you'll have to gives more detail if you are interrested in a fix, because I don't have a PI5 so I cannot reproduce anything on my side.

@sundhaug92
Copy link
Author

You are probably using a 16K pagesize OS. Note that mostly nothing will work with 16K pagesize, at least not wine.

But you'll have to gives more detail if you are interrested in a fix, because I don't have a PI5 so I cannot reproduce anything on my side.

Yeah after looking at the error for box64 I googled it and noticed that at least on rpi5 Raspberry OS is 16K pages

@StrikeNP
Copy link

StrikeNP commented Dec 16, 2023

I can second that I'm also running into this issue with the Raspberry Pi 5. It was also an issue with Box64 until I ran it as DRPI5ARM64PS16K, but it would appear that that's not an option on Box 86.

It would appear that either the RP5 kernel needs to be recompiled with 4K pages or box86 needs to add support for the RP5's 16K. I tried manually adding the compiler flags in the CMakeLists.txt file, but to no surprise it threw an error during compilation and failed. I've attached the compile log for anyone who's curious.
compile_log.txt

@StrikeNP
Copy link

StrikeNP commented Dec 16, 2023

I recompiled my kernel to 4K using the guide here:
https://www.raspberrypi.com/documentation/computers/linux_kernel.html#building-the-kernel-locally
While it did get my box86 past it's error, it did not resolve the issue documented of libc not being detected with box64

@StrikeNP
Copy link

It would appear logging out and back in after running install_steam.sh helped me get past some issues, but now when I got to launch steam it just hangs.

@sundhaug92
Copy link
Author

I can second that I'm also running into this issue with the Raspberry Pi 5. It was also an issue with Box64 until I ran it as DRPI5ARM64PS16K, but it would appear that that's not an option on Box 86.

It would appear that either the RP5 kernel needs to be recompiled with 4K pages or box86 needs to add support for the RP5's 16K. I tried manually adding the compiler flags in the CMakeLists.txt file, but to no surprise it threw an error during compilation and failed. I've attached the compile log for anyone who's curious. compile_log.txt

Yeah I wrote the RPI5ARM64(PS16K) stuff after noticing this. One option is to for now use Ubuntu (which uses 4K pages on RPi5)

@theofficialgman
Copy link
Contributor

@sundhaug92 kernel recompilation is not necessary on piOS. both 16k and 4k pagesize kernels are included, you can switch between the two with an option in config.txt raspberrypi/bookworm-feedback#107 (comment)

@MichaIng
Copy link
Contributor

Since there is no dedicated RPi 5 target yet, did you use -DRPI4=1 or just -DARM_DYNAREC=1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants