Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

compile and run 32bit programs on aarch64eb




To: port-arm%netbsd.org@localhost

Subject: compile and run 32bit programs on aarch64eb

From: Christian Groessler <chris%groessler.org@localhost>

Date: Thu, 20 Nov 2025 17:33:22 +0100


Hi,

what do I need in order to compi
le 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):

[raspi3eb:~/
tmp/interworking]$ armv7eb--netbsdelf-eabihf-gcc  -Wl,--no-warn-execstack -mcpu=Cortex-A53 -mthumb-interwork main.c  sub-arm.o -o t-arm /usr/tools/lib/gcc/armv7eb--netbsdelf-eabihf/14.3.0/../../../../armv7eb--netbsdelf-eabihf/bin/ld:  cannot find crt0.o: No such file or directory /usr/tools/lib/gcc/armv7eb--netbsdelf-eabihf/14.3.0/../../../../armv7eb--netbsdelf-eabihf/bin/ld:  cannot find crtbegin.o: No such file or directory /usr/tools/lib/gcc/armv7eb--netbsdelf-eabihf/14.3.0/../../../../armv7eb--netbsdelf-eabihf/bin/ld:  cannot find -lgcc_s: No such file or directory /usr/tools/lib/gcc/armv7eb--netbsdelf-eabihf/14.3.0/../../../../armv7eb--netbsdelf-eabihf/bin/ld:  cannot find -lgcc: No such file or directory /usr/tools/lib/gcc/armv7eb--netbsdelf-eabihf/14.3.0/../../../../armv7eb--netbsdelf-eabihf/bin/ld:  cannot find -lc: No such file or directory /usr/tools/lib/gcc/armv7eb--netbsdelf-eabihf/14.3.0/../../../../armv7eb--netbsdelf-eabihf/bin/ld:  cannot find -lgcc_s: No such file or directory /usr/tools/lib/gcc/armv7eb--netbsdelf-eabihf/14.3.0/../../../../armv7eb--netbsdelf-eabihf/bin/ld:  cannot find -lgcc: No such file or directory /usr/tools/lib/gcc/armv7eb--netbsdelf-eabihf/14.3.0/../../../../armv7eb--netbsdelf-eabihf/bin/ld:  cannot find crtend.o: No such file or directory
collect2: error: ld returned 1 exit status
[raspi3eb:~/tmp/interworking]$


[raspi3eb:~/tmp/interworking]$ uname -ap
NetB
SD raspi3eb.groessler.org 11.99.3 NetBSD 11.99.3 (GENERIC64) #0: Tue  Nov  4 12:25:30 CET 2025  chris%raspi3eb.groessler.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC64  evbarm aarch64eb
[raspi3eb:~/tmp/interworking]$


regards,
chris




Follow-Ups:

Re: compile and run 32bit programs on aarch64eb
From: Martin Husemann




Prev by Date: Call for testers: new DTS from Linux 6.12

Next by Date: Re: compile and run 32bit programs on aarch64eb

Previous by Thread: Call for testers: new DTS from Linux 6.12

Next by Thread: Re: compile and run 32bit programs on aarch64eb

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index