NetBSD Problem Report #57881

From www@netbsd.org  Sat Jan 27 15:35:30 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 324E91A9239
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 27 Jan 2024 15:35:30 +0000 (UTC)
Message-Id: <20240127153430.8E6E11A923A@mollari.NetBSD.org>
Date: Sat, 27 Jan 2024 15:34:30 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: vax libm is missing various symbols
X-Send-Pr-Version: www-1.0

>Number:         57881
>Category:       port-vax
>Synopsis:       vax libm is missing various symbols
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-vax-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 27 15:40:01 +0000 2024
>Last-Modified:  Thu May 09 12:20:02 +0000 2024
>Originator:     Taylor R Campbell
>Release:        current, 10, ...
>Organization:
The NetLibm Foundation
>Environment:
vax
>Description:
vax libm is missing various symbols including llround and rintf.

I mechanically compared amd64 libm and vax libm.  The following symbols are in amd64 libm but not in vax libm (possibly missing, or possibly not applicable to vax -- I didn't put any further thought into this):

acoshf
acoshl
acosl
asinhf
asinhl
asinl
atan2l
atanhl
atanl
cabsf
coshl
cosl
dremf
erfcl
erfl
exp2l
expl
expm1l
fabsf
fabsl
fdim
fdimf
fdiml
feclearexcept
fedisableexcept
feenableexcept
fegetenv
fegetexcept
fegetexceptflag
fegetround
feholdexcept
feraiseexcept
fesetenv
fesetexceptflag
fesetround
fetestexcept
feupdateenv
fma
fmaf
fmal
fminl
frexp
frexpf
frexpl
gamma_r
gammaf
gammaf_r
ilogbl
isinff
j0f
j1f
jnf
lgamma_r
lgammaf
lgammaf_r
lgammal
llrintl
llround
llroundf
llroundl
log10l
log1pl
log2l
logl
lrintl
lroundl
matherr
modf
modff
nearbyint
nearbyintf
nearbyintl
nextafter
nextafterf
nextafterl
nexttoward
nexttowardf
nexttowardl
remainder
remainderf
remainderl
remquo
remquof
remquol
rintf
rintl
scalbf
scalbln
scalblnf
scalblnl
significand
significandf
sincosl
sinhl
sinl
tanhl
tanl
tgamma
tgammaf
tgammal
y0f
y1f
ynf

Also, the following symbols are in vax libm but not in amd64 libm (possibly only relevant on vax, or possibly extraneous internal symbols that shouldn't have been exposed):

d_cbrt
d_sqrt
dcbrt_
infnan
z_abs
>How-To-Repeat:
build mesa
>Fix:
Yes, please!

>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57881 CVS commit: src/tests/lib/libm
Date: Sun, 5 May 2024 14:29:38 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Sun May  5 14:29:38 UTC 2024

 Modified Files:
 	src/tests/lib/libm: t_next.c

 Log Message:
 tests/lib/libm/t_next: Disable this test on VAX.

 But leave a replacement xfail test that fails unconditionally, to
 leave a reminder in the tests of PR 57881: vax libm is missing
 various symbols.


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_next.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57881 CVS commit: src/lib/libm/arch/vax
Date: Mon, 6 May 2024 15:33:04 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Mon May  6 15:33:04 UTC 2024

 Modified Files:
 	src/lib/libm/arch/vax: n_sincos.S n_tan.S

 Log Message:
 libm: Expose sinl, cosl, tanl on vax.

 While here, make sin, cos, and tan be weak aliases for internal
 symbols _sin, _cos, and _tan; likewise sinf, cosf, tanf.

 PR 57881


 To generate a diff of this commit:
 cvs rdiff -u -r1.9 -r1.10 src/lib/libm/arch/vax/n_sincos.S
 cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/vax/n_tan.S

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57881 CVS commit: src/lib/libm/noieee_src
Date: Mon, 6 May 2024 15:52:53 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Mon May  6 15:52:53 UTC 2024

 Modified Files:
 	src/lib/libm/noieee_src: n_sincos1.c

 Log Message:
 libm: Expose sincosl on vax.

 PR 57881


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 src/lib/libm/noieee_src/n_sincos1.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57881 CVS commit: src/lib/libm/arch/vax
Date: Tue, 7 May 2024 15:49:34 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Tue May  7 15:49:33 UTC 2024

 Modified Files:
 	src/lib/libm/arch/vax: n_atan2.S

 Log Message:
 libm/arch/vax: Expose atan2l.

 PR port-vax/57881: vax libm is missing various symbols


 To generate a diff of this commit:
 cvs rdiff -u -r1.10 -r1.11 src/lib/libm/arch/vax/n_atan2.S

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57881 CVS commit: src/lib/libm
Date: Wed, 8 May 2024 02:08:11 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Wed May  8 02:08:11 UTC 2024

 Modified Files:
 	src/lib/libm: m.vax.expsym
 	src/lib/libm/noieee_src: n_floor.c

 Log Message:
 libm: Add rintl, rintf to non-IEEE754 architectures.

 While here, delete #ifdef to handle ns32k -- I don't think that's
 gonna be relevant any time soon; in case you hadn't noticed, the
 world has moved on from ns32k to vax by now.

 PR 57881


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.vax.expsym
 cvs rdiff -u -r1.8 -r1.9 src/lib/libm/noieee_src/n_floor.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57881 CVS commit: src/lib/libm/noieee_src
Date: Thu, 9 May 2024 12:18:48 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Thu May  9 12:18:48 UTC 2024

 Modified Files:
 	src/lib/libm/noieee_src: n_ilogb.c

 Log Message:
 libm: Define ilogbl as alias for ilogb on vax.

 PR 57881


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 src/lib/libm/noieee_src/n_ilogb.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.