Re: compile and run 32bit programs on aarch64eb

Martin Husemann <[email protected]> Thu, 20 Nov 2025 18:05:29 +0100
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <[email protected]>
On Thu, Nov 20, 2025 at 05:33:22PM +0100, Christian Groessler wrote:
> Hi,
> 
> what do I need in order to compile and run armv7eb binaries on an aarch64eb
> system?
> 
> I've built a compiler using "./build.sh -m evbarm -a earmv7hfeb -M /usr/obj
> -T /usr/tools tools", but this compiler misses libraries (and probably
> header files):

You need /usr/include, /lib and /usr/lib from a earmv7hfeb build too.
You could do a full build like above but with s/tools/build/, or download
the prebuild ones and extract only the comp and (if needed) xcomp sets.
Then point the compiler with -sysroot=/your/build/destdir at it.

Martin