GLIBC support for Xtensa

Testing

https://sourceware.org/glibc/wiki/Release/2.26

https://fossies.org/linux/glibc/math/README.libm-test

Testsuite results

Testsuite may be run natively (on linux system running on hardware or in system emulation) or on linux-user emulation. First is very accurate, but slow. Second is fast (10h wall clock for all tests) but not so accurate.

Native test failures

FAIL: conform/POSIX2008/fcntl.h/linknamespace

FAIL: conform/POSIX2008/mqueue.h/linknamespace

FAIL: conform/POSIX2008/sys/stat.h/conform

FAIL: conform/XOPEN2K8/fcntl.h/linknamespace

FAIL: conform/XOPEN2K8/mqueue.h/linknamespace

FAIL: conform/XOPEN2K8/sys/stat.h/conform

FAIL: conform/XOPEN2K/fcntl.h/linknamespace

FAIL: conform/XOPEN2K/mqueue.h/linknamespace

FAIL: debug/backtrace-tst

FAIL: debug/tst-backtrace2

FAIL: debug/tst-backtrace3

FAIL: debug/tst-backtrace4

FAIL: debug/tst-backtrace5

FAIL: debug/tst-backtrace6

FAIL: debug/tst-longjmp_chk2

FAIL: dlfcn/default

output looks good, works if run manually

FAIL: iconvdata/mtrace-tst-loading

FAIL: iconvdata/tst-loading

FAIL: io/bug-ftw2

FAIL: io/ftwtest

FAIL: io/test-stat2

FAIL: io/test-utime

FAIL: io/tst-fts

FAIL: localedata/mtrace-tst-leaks

FAIL: localedata/tst-leaks

FAIL: malloc/tst-dynarray-fail

FAIL: malloc/tst-dynarray-fail-mem

FAIL: malloc/tst-mallocstate

FAIL: misc/tst-clone3

bad test?: futex syscall should have 6 arguments

FAIL: nptl/tst-backtrace1

FAIL: nptl/tst-cancel21

timeout; works if run manually

FAIL: nptl/tst-cancel7

FAIL: nptl/tst-cancelx21

timeout; works if run manually

FAIL: nptl/tst-cancelx7

FAIL: nptl/tst-stack4

Timeout, too many threads

FAIL: posix/tst-getaddrinfo5

FAIL: stdio-common/bug22

bad test?: expected exit status should be 1

FAIL: stdlib/tst-strtod-round

FAIL: string/tst-cmp

FAIL: wcsmbs/tst-wcstod-round

Linux-user test failures

FAIL: conform/POSIX2008/fcntl.h/linknamespace

FAIL: conform/POSIX2008/mqueue.h/linknamespace

FAIL: conform/POSIX2008/sys/stat.h/conform

FAIL: conform/XOPEN2K/fcntl.h/linknamespace

FAIL: conform/XOPEN2K/mqueue.h/linknamespace

FAIL: conform/XOPEN2K8/fcntl.h/linknamespace

FAIL: conform/XOPEN2K8/mqueue.h/linknamespace

FAIL: conform/XOPEN2K8/sys/stat.h/conform

FAIL: debug/backtrace-tst

[+ glibc bug] FAIL: debug/tst-backtrace2

[+ glibc bug] FAIL: debug/tst-backtrace3

[+ glibc bug] FAIL: debug/tst-backtrace4

[+ glibc bug] FAIL: debug/tst-backtrace5

[+ glibc bug] FAIL: debug/tst-backtrace6

FAIL: debug/tst-chk1

FAIL: debug/tst-chk2

FAIL: debug/tst-chk3

FAIL: debug/tst-chk4

FAIL: debug/tst-chk5

FAIL: debug/tst-chk6

FAIL: debug/tst-lfschk1

FAIL: debug/tst-lfschk2

FAIL: debug/tst-lfschk3

FAIL: debug/tst-lfschk4

FAIL: debug/tst-lfschk5

FAIL: debug/tst-lfschk6

FAIL: debug/tst-longjmp_chk2

FAIL: dirent/list

FAIL: dirent/tst-scandir

FAIL: dlfcn/default

FAIL: elf/check-abi-libc

FAIL: elf/check-execstack

FAIL: elf/check-localplt

FAIL: elf/tst-_dl_addr_inside_object

FAIL: elf/tst-audit1

FAIL: elf/tst-audit11

FAIL: elf/tst-audit12

FAIL: elf/tst-audit2

FAIL: elf/tst-audit8

FAIL: elf/tst-audit9

UNSUPPORTED: elf/tst-env-setuid

UNSUPPORTED: elf/tst-env-setuid-tunables

FAIL: elf/tst-pie2

FAIL: elf/tst-prelink-cmp

XPASS: elf/tst-protected1a

XPASS: elf/tst-protected1b

FAIL: elf/tst-ptrguard1

FAIL: elf/tst-ptrguard1-static

FAIL: elf/tst-stackguard1

FAIL: elf/tst-stackguard1-static

FAIL: elf/tst-unused-dep

FAIL: elf/tst-unused-dep-cmp

FAIL: elf/vismain

FAIL: inet/test_ifindex

[+] FAIL: io/bug-ftw2

[+] FAIL: io/ftwtest

[+] FAIL: io/test-stat2

[+] FAIL: io/test-utime

[+] FAIL: io/tst-fallocate64

[+] FAIL: io/tst-fts

[+] FAIL: io/tst-fts-lfs

[- openat (“/dev/shm”, O_TMPFILE | O_RDWR): Permission denied] FAIL: io/tst-open-tmpfile

FAIL: malloc/tst-dynarray-at-fail

FAIL: malloc/tst-dynarray-fail

FAIL: malloc/tst-malloc-thread-exit

FAIL: malloc/tst-malloc-thread-fail

FAIL: malloc/tst-malloc-usable-tunables

FAIL: malloc/tst-mallocstate

FAIL: math/check-abi-libm

FAIL: math/test-double-finite-fma

FAIL: math/test-double-fma

UNSUPPORTED: math/test-fesetexcept-traps

UNSUPPORTED: math/test-fexcept-traps

FAIL: math/test-float-finite-fma

FAIL: math/test-float-fma

FAIL: math/test-idouble-fma

FAIL: math/test-ifloat-fma

UNSUPPORTED: math/test-nearbyint-except

UNSUPPORTED: math/test-nearbyint-except-2

FAIL: math/test-tgmath

FAIL: math/test-tgmath2

[- QEMU bug: mincore] FAIL: misc/test-errno-linux

FAIL: misc/tst-clone2

FAIL: misc/tst-clone3

[+ QEMU bug preadv/pwritev] FAIL: misc/tst-preadvwritev64

FAIL: nptl/test-cond-printers

FAIL: nptl/test-condattr-printers

FAIL: nptl/test-mutex-printers

FAIL: nptl/test-mutexattr-printers

FAIL: nptl/test-rwlock-printers

FAIL: nptl/test-rwlockattr-printers

FAIL: nptl/tst-align-clone

FAIL: nptl/tst-backtrace1

[+- QEMU feature: FUTEX_UNLOCK_PI]FAIL: nptl/tst-cond-except

FAIL: nptl/tst-cond24

FAIL: nptl/tst-cond25

FAIL: nptl/tst-create-detached

[+ QEMU bug] FAIL: nptl/tst-eintr1

[- QEMU feature: no vfork] FAIL: nptl/tst-exec1

[- QEMU feature: no vfork] FAIL: nptl/tst-exec5

FAIL: nptl/tst-getpid1

FAIL: nptl/tst-robust-fork

[- QEMU feature] FAIL: nptl/tst-robust1

[- QEMU feature] FAIL: nptl/tst-robust2

[- QEMU feature] FAIL: nptl/tst-robust3

[- QEMU feature] FAIL: nptl/tst-robust4

[- QEMU feature] FAIL: nptl/tst-robust5

[- QEMU feature] FAIL: nptl/tst-robust6

[- QEMU feature] FAIL: nptl/tst-robust7

[- QEMU feature] FAIL: nptl/tst-robust8

[- QEMU feature] FAIL: nptl/tst-robust9

FAIL: nptl/tst-setuid3

FAIL: nptl/tst-spin2

FAIL: nptl/tst-stack4

FAIL: nptl/tst-stackguard1

FAIL: nptl/tst-stackguard1-static

[- QEMU feature: do_getsockopt] FAIL: posix/test-errno

FAIL: posix/tst-getaddrinfo5

[+ QEMU bug] FAIL: posix/tst-posix_fadvise

[+ QEMU bug] FAIL: posix/tst-posix_fadvise64

FAIL: posix/tst-posix_spawn-setsid

FAIL: posix/tst-spawn

FAIL: posix/tst-spawn-static

FAIL: posix/tst-spawn2

FAIL: posix/tst-spawn3

UNSUPPORTED: posix/tst-sysconf-empty-chroot

UNSUPPORTED: resolv/tst-resolv-res_init

UNSUPPORTED: resolv/tst-resolv-res_init-thread

UNSUPPORTED: resolv/tst-resolv-threads

[+ QEMU feature: clock_settime] FAIL: rt/tst-clock2

[+ QEMU bug] FAIL: rt/tst-mqueue2

[- QEMU feature: mq_notify] FAIL: rt/tst-mqueue3

[- QEMU feature: mq_notify] FAIL: rt/tst-mqueue5

[- QEMU feature: mq_notify] FAIL: rt/tst-mqueue6

[- QEMU feature: mq_notify] FAIL: rt/tst-mqueue7

FAIL: stdio-common/bug22

FAIL: stdio-common/test-vfprintf

[+] FAIL: stdio-common/tst-vfprintf-width-prec

[+ GLIBC bug] FAIL: stdlib/tst-makecontext

[+ GLIBC bug] FAIL: stdlib/tst-setcontext3

FAIL: string/tst-cmp

UNSUPPORTED: sunrpc/tst-svc_register

FAIL: sunrpc/tst-udp-error

[+ QEMU bug] FAIL: sysvipc/test-sysvsem

[+ QEMU bug] FAIL: sysvipc/test-sysvshm

[- Cannot allocate memory] FAIL: timezone/tst-tzset