NetBSD-Bugs archive

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

Re: port-sparc/58352: ld: /usr/lib/libubsan.so: undefined reference to `__sync_val_compare_and_swap_8'



The following reply was made to PR port-sparc/58352; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-sparc/58352: ld: /usr/lib/libubsan.so: undefined reference
 to `__sync_val_compare_and_swap_8'
Date: Wed, 19 Jun 2024 16:51:37 +0200

 On Wed, Jun 19, 2024 at 02:45:02PM +0000, Rin Okuyama wrote:
 >  (3) Earliest CPU model satisfy (2) seems `ultrasparc3`, IIUC:
 >  (I'm not familiar to sparc although...)
 
 All ultrasparc CPUs support VIS and can do 64bit atomic ops.
 
 The ultrasparc3 introduced "VIS 2" with additional instructions.
 
 However, for 32bit sparc CPUs we can not assume support (and it is pretty
 lame of ubsan to use it). Can we patch the ubsan code to only require 64bit
 atomics #ifdef _LP64 ?
 
 Martin
 


Home | Main Index | Thread Index | Old Index