-
Notifications
You must be signed in to change notification settings - Fork 596
Closed
Labels
Description
Module: POSIX
Description
During make test
a tan
test inext/POSIX/t/math.t
fails if perl was compiled with -Duselongdouble
. Seems to happen only with FreeBSD/arm64, not with FreeBSD/amd64. Linux/arm64 is also not affected.
not ok 40 - tan(1) == -tan(-1)
# Failed test 'tan(1) == -tan(-1)'
# at ext/POSIX/t/math.t line 52.
# got: 1.55740772465490223050697480745836
# expected: 1.55740772465490223050697480745836
Steps to Reproduce
./perl -Ilib ext/POSIX/t/math.t
Perl configuration
Summary of my perl5 (revision 5 version 40 subversion 0) configuration:
Platform:
osname=freebsd
osvers=14.1-stable
archname=aarch64-freebsd-ld
uname='freebsd cloud9.bbbike.org 14.1-stable freebsd 14.1-stable stable14-n268370-b37a6d41a046 generic arm64 '
config_args='-ds -e -Dprefix=/usr/perl5.40.0D -Duselongdouble -Dcf_email=srezic@cpan.org -Doptimize=-O2 -pipe'
hint=recommended
useposix=true
d_sigaction=define
useithreads=undef
usemultiplicity=undef
use64bitint=define
use64bitall=define
uselongdouble=define
usemymalloc=n
default_inc_excludes_dot=define
Compiler:
cc='cc'
ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DNO_POSIX_2008_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
optimize='-O2 -pipe'
cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DNO_POSIX_2008_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
ccversion=''
gccversion='FreeBSD Clang 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=16
longdblkind=1
ivtype='long'
ivsize=8
nvtype='long double'
nvsize=16
Off_t='off_t'
lseeksize=8
alignbytes=16
prototype=define
Linker and Libraries:
ld='cc'
ldflags ='-Wl,-E -fstack-protector-strong -L/usr/local/lib'
libpth=/usr/lib /usr/local/lib /usr/lib/clang/18/lib
libs=-lpthread -lgdbm -ldl -lm -lcrypt -lutil -lc
perllibs=-lpthread -ldl -lm -lcrypt -lutil -lc
libc=
so=so
useshrplib=false
libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=so
d_dlsymun=undef
ccdlflags=' '
cccdlflags='-DPIC -fPIC'
lddlflags='-shared -L/usr/local/lib -fstack-protector-strong'
Characteristics of this binary (from libperl):
Compile-time options:
HAS_LONG_DOUBLE
HAS_STRTOLD
HAS_TIMES
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_SIPHASH13
PERL_HASH_USE_SBOX32
PERL_MALLOC_WRAP
PERL_OP_PARENT
PERL_PRESERVE_IVUV
PERL_USE_SAFE_PUTENV
USE_64_BIT_ALL
USE_64_BIT_INT
USE_LARGE_FILES
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_LONG_DOUBLE
USE_PERLIO
USE_PERL_ATOF
Built under freebsd
Compiled at Aug 4 2024 05:20:26
%ENV:
PERLDOC="-MPod::Perldoc::ToTextOverstrike"
@INC:
lib
/usr/perl5.40.0D/lib/site_perl/5.40.0/aarch64-freebsd-ld
/usr/perl5.40.0D/lib/site_perl/5.40.0
/usr/perl5.40.0D/lib/5.40.0/aarch64-freebsd-ld
/usr/perl5.40.0D/lib/5.40.0