This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
Failing tests in glibc
- To: libc-alpha@cygnus.com
- Subject: Failing tests in glibc
- From: Kars de Jong <jongk@cs.utwente.nl>
- Date: Tue, 17 Nov 1998 15:25:13 +0100
>Submitter-Id: net
>Originator: Kars de Jong
>Organization:
>Confidential: no
>Synopsis: glibc fails math tests
>Severity: serious
>Priority: medium
>Category: libc
>Class: sw-bug
>Release: libc-2.0.102
>Environment:
Host type: m68k-unknown-linux-gnu
System: Linux rincewind 2.1.127 #2 Mon Nov 16 21:51:19 CET 1998 m68k unknown
Architecture: m68k
CPU: 68060 with FPU and MMU
Addons: crypt linuxthreads
Build CFLAGS: -pipe -O2 -m68060
Build CC: egcs
Compiler version: egcs-2.91.57 19980901 (egcs-1.1 release)
Kernel headers: 2.1.127
Symbol versioning: yes
Build static: yes
Build shared: yes
Build pic-default: no
Build profile: no
Build omitfp: no
Build bounded: no
Build static-nss: no
Stdio: libio
>Description:
'make check' on Linux/m68k fails many tests in the math directory.
Here's a log of it:
make -C math tests
make[1]: Entering directory `/usr/src/lib/glibc-2.0.102/math'
../elf/ld.so.1 --library-path ..:.:../elf:../nss:../nis:../db2:../rt:../resolv:../linuxthreads ./test-float > test-float.out
make[1]: *** [test-float.out] Error 1
Contents of test-float.out:
testing float (without inline functions)
Fail: atan2 (0.4,0.0003) == 1.57004...
Fail: imag(clog(0.7 + i 1.2)) == 1.04272...
Fail: imag(clog10(0.7 + i 1.2)) == 0.45284...
Fail: imag(cacosh(0.7 + i 1.2)) == 1.13518...
Fail: imag(casinh(-2 - i 3)) == -0.96465...
Fail: real(catanh(0.7 + i 1.2)) == 0.26007...
Test suite completed:
2157 test cases plus 2145 tests for exception flags executed.
6 errors occured.
../elf/ld.so.1 --library-path ..:.:../elf:../nss:../nis:../db2:../rt:../resolv:../linuxthreads ./test-double > test-double.out
make[1]: *** [test-double.out] Error 1
Contents of test-double.out:
testing double (without inline functions)
Fail: imag(cexp(0.7 + i 1.2)) == 1.87689...
Fail: imag(clog(0.7 + i 1.2)) == 1.04272...
Test suite completed:
2164 test cases plus 2152 tests for exception flags executed.
2 errors occured.
../elf/ld.so.1 --library-path ..:.:../elf:../nss:../nis:../db2:../rt:../resolv:../linuxthreads ./test-ldouble > test-ldouble.out
__erfl not implemented
__erfcl not implemented
__ieee754_lgammal_r not implemented
__ieee754_lgammal_r not implemented
__ieee754_lgammal_r not implemented
make[1]: *** [test-ldouble.out] Error 1
Contents of test-ldouble.out:
testing long double (without inline functions)
Fail: log (2) == M_LN2
Fail: real(cexp(-2 - i 3)) == -0.13398...
Fail: imag(cacosh(-2 - i 3)) == 2.14144...
Fail: real(cpow (2 + i0), (10 + i0)) == 1024
Test suite completed:
2126 test cases plus 2104 tests for exception flags executed.
4 errors occured.
../elf/ld.so.1 --library-path ..:.:../elf:../nss:../nis:../db2:../rt:../resolv:../linuxthreads ./test-ildoubl > test-ildoubl.out
__erfl not implemented
__erfcl not implemented
__ieee754_lgammal_r not implemented
__ieee754_lgammal_r not implemented
__ieee754_lgammal_r not implemented
make[1]: *** [test-ildoubl.out] Error 1
Contents of test-ildoubl.out:
testing long double (inline functions)
Fail: log (2) == M_LN2
Fail: real(cexp(-2 - i 3)) == -0.13398...
Fail: imag(cacosh(-2 - i 3)) == 2.14144...
Fail: real(cpow (2 + i0), (10 + i0)) == 1024
Test suite completed:
2010 test cases plus 1992 tests for exception flags executed.
4 errors occured.
../elf/ld.so.1 --library-path ..:.:../elf:../nss:../nis:../db2:../rt:../resolv:../linuxthreads ./test-ifloat > test-ifloat.out
make[1]: *** [test-ifloat.out] Error 1
Contents of test-ifloat.out:
testing float (inline functions)
Fail: atan2 (0.4,0.0003) == 1.57004...
Fail: imag(clog(0.7 + i 1.2)) == 1.04272...
Fail: imag(clog10(0.7 + i 1.2)) == 0.45284...
Fail: imag(cacosh(0.7 + i 1.2)) == 1.13518...
Fail: imag(casinh(-2 - i 3)) == -0.96465...
Fail: real(catanh(0.7 + i 1.2)) == 0.26007...
Test suite completed:
2041 test cases plus 2033 tests for exception flags executed.
6 errors occured.
../elf/ld.so.1 --library-path ..:.:../elf:../nss:../nis:../db2:../rt:../resolv:../linuxthreads ./test-idouble > test-idouble.out
make[1]: *** [test-idouble.out] Error 1
Contents of test-idouble.out:
testing double (inline functions)
Fail: imag(cexp(0.7 + i 1.2)) == 1.87689...
Fail: imag(clog(0.7 + i 1.2)) == 1.04272...
Test suite completed:
2048 test cases plus 2040 tests for exception flags executed.
2 errors occured.
And in the posix directory:
(it does say (ignored) here so this might not be a real failure):
./annexc 'egcs' \
'-I../include -I.. -I../sysdeps/m68k/elf -I../crypt/sysdeps/unix -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/m68k -I../linuxthreads/sysdeps/pthread/cmpxchg -I../sysdeps/unix/sysv/linux/m68k -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/m68k/m68020 -I../sysdeps/m68k/fpu -I../sysdeps/m68k -I../sysdeps/wordsize-32 -I../sysdeps/ieee754 -I../sysdeps/libm-ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic' > annexc.out
make[1]: [tests] Error 1 (ignored)
Contents of annexc.out:
The following identifiers will be ignored since the compiler defines them
by default:
linux
mc68000
mc68020
unix
Tested files:
=== aio.h ===
* invalid macro `SIGVTALRM'
* invalid macro `gid_t'
* invalid macro `SIGUNUSED'
* invalid macro `SIGCLD'
* invalid macro `CLOCKS_PER_SEC'
* invalid macro `SIGSTKFLT'
* invalid macro `F_SETLKW64'
* invalid macro `F_SHLCK'
* invalid macro `SIGIOT'
* invalid macro `CLK_TCK'
* invalid macro `SIGPWR'
* invalid macro `SIGPOLL'
* invalid macro `SIGURG'
* invalid macro `SIGPROF'
* invalid macro `F_EXLCK'
* invalid macro `off_t'
* invalid macro `O_NDELAY'
* invalid macro `SIGWINCH'
* invalid macro `SIGIO'
* invalid macro `dev_t'
* invalid macro `SIGTRAP'
* invalid macro `SIGXCPU'
* invalid macro `uid_t'
* invalid macro `SIGXFSZ'
* invalid macro `F_GETLK64'
* invalid macro `F_SETLK64'
* invalid macro `nlink_t'
* invalid macro `pid_t'
* invalid macro `ino_t'
* invalid macro `NULL'
* invalid macro `O_FSYNC'
* invalid macro `mode_t'
* invalid macro `ssize_t'
* invalid macro `O_ASYNC'
** macro `O_DSYNC' not defined
** macro `O_RSYNC' not defined
** macro `SIGEV_NONE' not defined
** macro `SIGEV_SIGNAL' not defined
** macro `SIGEV_SIGNAL' not defined
** macro `SIGEV_THREAD' not defined
** macro `SI_ASYNCIO' not defined
** macro `SI_MESGQ' not defined
** macro `SI_QUEUE' not defined
** macro `SI_TIMER' not defined
** macro `SI_USER' not defined
=== assert.h ===
=== ctype.h ===
=== dirent.h ===
* invalid macro `d_fileno'
=== errno.h ===
=== fcntl.h ===
* invalid macro `gid_t'
* invalid macro `F_SETLKW64'
* invalid macro `F_SHLCK'
* invalid macro `F_EXLCK'
* invalid macro `off_t'
* invalid macro `O_NDELAY'
* invalid macro `dev_t'
* invalid macro `uid_t'
* invalid macro `F_GETLK64'
* invalid macro `F_SETLK64'
* invalid macro `nlink_t'
* invalid macro `pid_t'
* invalid macro `ino_t'
* invalid macro `O_FSYNC'
* invalid macro `mode_t'
* invalid macro `ssize_t'
* invalid macro `O_ASYNC'
** macro `O_DSYNC' not defined
** macro `O_RSYNC' not defined
=== float.h ===
=== grp.h ===
=== limits.h ===
* invalid macro `AIO_PRIO_DELTA_MAX'
* invalid macro `SSIZE_MAX'
** macro `_POSIX_CLOCKRES_MAX' not defined
** macro `_POSIX_THREAD_DESTRUCTOR_ITERATIONS' not defined
** macro `PAGESIZE' not defined
=== locale.h ===
=== math.h ===
=== mqueue.h ===
!! not available
=== pthread.h ===
** macro `PTHREAD_PRIO_INHERIT' not defined
** macro `PTHREAD_PRIO_NONE' not defined
** macro `PTHREAD_PRIO_PROTECT' not defined
** macro `CLOCK_REALTIME' not defined
** macro `TIMER_ABSTIME' not defined
=== pwd.h ===
=== sched.h ===
=== semaphore.h ===
* invalid macro `ARG_MAX'
* invalid macro `gid_t'
* invalid macro `SHRT_MAX'
* invalid macro `AIO_PRIO_DELTA_MAX'
* invalid macro `SHRT_MIN'
* invalid macro `OPEN_MAX'
* invalid macro `SSIZE_MAX'
* invalid macro `MAX_INPUT'
* invalid macro `RTSIG_MAX'
* invalid macro `PTHREAD_THREADS_MAX'
* invalid macro `MB_LEN_MAX'
* invalid macro `CHAR_BIT'
* invalid macro `off_t'
* invalid macro `MAX_CANON'
* invalid macro `UINT_MAX'
* invalid macro `CHAR_MAX'
* invalid macro `CHAR_MIN'
* invalid macro `LONG_MAX'
* invalid macro `PTHREAD_STACK_MIN'
* invalid macro `LONG_MIN'
* invalid macro `SEM_VALUE_MAX'
* invalid macro `SCHAR_MAX'
* invalid macro `SCHAR_MIN'
* invalid macro `dev_t'
* invalid macro `USHRT_MAX'
* invalid macro `uid_t'
* invalid macro `PIPE_BUF'
* invalid macro `LINK_MAX'
* invalid macro `nlink_t'
* invalid macro `pid_t'
* invalid macro `PTHREAD_DESTRUCTOR_ITERATIONS'
* invalid macro `NGROUPS_MAX'
* invalid macro `ino_t'
* invalid macro `INT_MAX'
* invalid macro `INT_MIN'
* invalid macro `mode_t'
* invalid macro `NAME_MAX'
* invalid macro `PATH_MAX'
* invalid macro `ssize_t'
* invalid macro `CHILD_MAX'
* invalid macro `UCHAR_MAX'
* invalid macro `ULONG_MAX'
* invalid macro `PTHREAD_KEYS_MAX'
=== setjmp.h ===
=== signal.h ===
* invalid macro `SIGVTALRM'
* invalid macro `SIGUNUSED'
* invalid macro `SIGCLD'
* invalid macro `SIGSTKFLT'
* invalid macro `SIGIOT'
* invalid macro `SIGPWR'
* invalid macro `SIGPOLL'
* invalid macro `SIGURG'
* invalid macro `SIGPROF'
* invalid macro `SIGWINCH'
* invalid macro `SIGIO'
* invalid macro `SIGTRAP'
* invalid macro `SIGXCPU'
* invalid macro `SIGXFSZ'
** macro `SIGEV_NONE' not defined
** macro `SIGEV_SIGNAL' not defined
** macro `SIGEV_THREAD' not defined
** macro `SI_ASYNCIO' not defined
** macro `SI_MESGQ' not defined
** macro `SI_QUEUE' not defined
** macro `SI_TIMER' not defined
** macro `SI_USER' not defined
=== stdarg.h ===
=== stddef.h ===
=== stdio.h ===
** macro `STREAM_MAX' not defined
** macro `stderr' not defined
** macro `stdin' not defined
** macro `stdout' not defined
=== stdlib.h ===
=== string.h ===
=== sys/mman.h ===
=== sys/stat.h ===
* invalid macro `stat64'
* invalid macro `lstat64'
* invalid macro `lstat'
* invalid macro `fstat64'
** macro `S_TYPEISMQ' not defined
** macro `S_TYPEISSEM' not defined
** macro `S_TYPEISSHM' not defined
=== sys/times.h ===
=== sys/types.h ===
* invalid macro `gid_t'
* invalid macro `off_t'
* invalid macro `dev_t'
* invalid macro `uid_t'
* invalid macro `nlink_t'
* invalid macro `pid_t'
* invalid macro `ino_t'
* invalid macro `mode_t'
* invalid macro `ssize_t'
=== sys/utsname.h ===
=== sys/wait.h ===
=== termios.h ===
* invalid macro `CSTOPB'
* invalid macro `ONLCR'
* invalid macro `ONOCR'
* invalid macro `B57600'
* invalid macro `IMAXBEL'
* invalid macro `IUCLC'
* invalid macro `VT0'
* invalid macro `VT1'
* invalid macro `VLNEXT'
* invalid macro `VDISCARD'
* invalid macro `IXANY'
* invalid macro `B230400'
* invalid macro `B460800'
* invalid macro `TCION'
* invalid macro `VREPRINT'
* invalid macro `B115200'
* invalid macro `ONLRET'
* invalid macro `VTDLY'
* invalid macro `OFDEL'
* invalid macro `OCRNL'
* invalid macro `OFILL'
* invalid macro `VSWTC'
* invalid macro `VWERASE'
* invalid macro `OLCUC'
* invalid macro `VEOL2'
* invalid macro `INLCR'
** macro `CSTOPN' not defined
** macro `INCLR' not defined
=== time.h ===
** macro `CLOCK_REALTIME' not defined
** macro `TIMER_ABSTIME' not defined
=== unistd.h ===
* invalid macro `ssize_t'
=== utime.h ===
And finally in the io directory:
/bin/sh -e ftwtest-sh ../ ftwtest
ftwtest: error in loading shared libraries: ftwtest: cannot open shared object file: No such file or directory
cmp: EOF on /tmp/ftwtest.out
>How-To-Repeat:
running 'make check' on a Linux/m68k system.
>Fix:
Nope, sorry. It has been failing these tests (at least the math ones) ever
since I started testing glibc snapshots (2.0.95 or something).
--
------------------------------------------------------------------------------
Kars de Jong Signaalkamp rules the waves! Turrican@Discworld
--------======]**-----| jongk@cs.utwente.nl |-----**[======---------