Re: "Error: Architecture mismatch"?

Martin Husemann <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc64
Message-ID <[email protected]>
On Wed, Jun 26, 2019 at 05:47:47AM +0000, John Klos wrote:
> I'm updating netb/bind914 from pkgsrc on a system running NetBSD 8.1 with
> nothing extra in mk.conf, and it's failing with:
> 
> libtool: compile:  gcc -I/usr/pkgsrc/net/bind914/work/bind-9.14.3 -I../..
> -I./unix/include -I./pthreads/include -I./include
> -I/usr/pkgsrc/net/bind914/work/bind-9.14.3/lib/dns/include
> -I../../lib/dns/include -O2 -D_FORTIFY_SOURCE=2 -pthread -fPIC -W -Wall
> -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith
> -fno-strict-aliasing -fno-delete-null-pointer-checks -c rwlock.c  -fPIC
> -DPIC -o .libs/rwlock.o
> /var/tmp//ccKVmYBr.s: Assembler messages:
> /var/tmp//ccKVmYBr.s:435: Error: Architecture mismatch on "pause".
> /var/tmp//ccKVmYBr.s:435:  (Requires v9e|v9v|v9m; requested architecture is
> v9a.)

(Without having looked at the pkg:)
this is broken upstream code, you need to patch it. As the assembler tells
you: that instruction is not available for all ultrasparc cpus.
Not sure why they are trying to do their own lock primitives at all, maybe
there are configure options to avoid it?

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.