Re: NetBSD/earmv4: "Error: selected processor does not support `bx lr' in ARM mode"

Martin Husemann <[email protected]>
Newsgroups gmane.os.netbsd.devel.packages,gmane.os.netbsd.ports.arm
Message-ID <[email protected]>
On Mon, Jul 07, 2025 at 04:51:42PM +0000, John Klos wrote:
> Hi, all,
> 
> I forget how this is fixed.
> 
> On my earmv4 build machines, all of the php8 from pkgsrc fail with:
> 
> make_arm_aapcs_elf_gas.S: Assembler messages:
> make_arm_aapcs_elf_gas.S:71: Error: selected processor does not support `bx
> lr' in ARM mode
> gmake: *** [Makefile:1261: Zend/asm/make_arm_aapcs_elf_gas.lo] Error 1
> *** Error code 2
> 
> Does anyone remember / know how to fix this?

Look at src/sys/arch/arm/include/asm.h for the RET macro.

Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.