Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5034

Troubleshooting • Re: Running a 32bit app on piOS64

$
0
0
Ok, I thought I'd try something quickly. This was on a mostly default install of Raspios 12 Full 64-bit on a Pi4B, that I'd never knowingly tried to install or run armhf binaries on in the past. After observing that "dpkg --print-foreign-architectures" listed armhf, I picked at random zsync from "apt list" (for something I didn't already have installed, looked small, and had both arm64 and armhf variants of the package), and just did "apt install zsync:armhf". APT happily installed it, pulling in a small set of armhf libraries to support it, and the binary just worked. No prior configuration or preparation, just default Raspios 12 64-bit and straight to apt install.

Obviously, your app has come from an outside source, rather than APT, but you could maybe try installing something random and small from APT and see if it works. If it does, see what file has to say about it, compared to your problem app. Also, curiously, ldd doesn't seem to work for 32-bit binaries, at least by default; not sure exactly what/why/etc that is, but you can see the expected output below.

Code:

murph@raspberrypi:~ $ file /usr/bin/zsync /usr/bin/bash/usr/bin/zsync: ELF 32-bit LSB pie executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=289e9f3ef435bef4ccd5d249d7fc92df80c53763, for GNU/Linux 3.2.0, stripped/usr/bin/bash:  ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=e25dd173d9a058cd90ef74ce621abd6271673b26, for GNU/Linux 3.7.0, strippedmurph@raspberrypi:~ $ ldd /usr/bin/zsync        not a dynamic executablemurph@raspberrypi:~ $

Just gave this a go with zsync and a few others I installed via

Code:

apt install example:armhf
All of them gave a segmentation fault when trying to execute them.

I started with the liteOS, so I’ll try it will a fresh version of the fullOS in the morning.

Statistics: Posted by Id92 — Wed Sep 04, 2024 4:00 am



Viewing all articles
Browse latest Browse all 5034

Trending Articles