Port-arm archive

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

Re: devel/nss is broken on aarch64 (toolchain problem, help needed)



On Sun, 12 Apr 2020 13:04:36 +0200
Tobias Nygren <tnn%NetBSD.org@localhost> wrote:

> devel/nss is broken when compiling aarch64 crypto accel files.
> (aarch64-gcm.c and aes-armv8.c)
> 
> There are some mystery errors like these from as(1):
> 
> Error: selected processor does not support `aesimc v0.16b,v0.16b'
> Error: selected processor does not support `pmull v6.1q,v0.1d,v20.1d'
> 
> But the required compiler flag (-march=armv8-a+crypto) is definitely
> passed. Is this a problem of too old GCC and/or binutils?
> I thought to use devel/binutils/override-as.mk but it seems pkgsrc
> binutils is also broken on aarch64 so need to fix that first.

Looks like it's a GCC bug. If compiled with "-march=armv8-a+crypto" it
produces an .S file that starts with ".arch armv8-a". Manually editing
this to ".arch arvm8a+crypto" makes as(1) accept the file.
Now the question is why this happens ...

-T


Home | Main Index | Thread Index | Old Index