Port-sparc64 archive

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

Re: "Error: Architecture mismatch"?



In article <20190626055342.GA24277%mail.duskware.de@localhost>,
Martin Husemann  <martin%duskware.de@localhost> wrote:
>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?
>

From /usr/src/external/mpl/dist/bind/dist/lib/isc/rwlock.c
...

// Disable pause, only works on v9
#elif (defined(__sparc) || defined(__sparc__)) && defined(notdef)

christos



Home | Main Index | Thread Index | Old Index