Subject: GNU grep 3.5 has 2 failed tests on Solaris 10 sparc

From: Dennis Clarke <[email-masked]>
Date: Mon, 28 Sep 2020 02:43:15 -0400

Using the Oracle Studio 12.6 C99 compiler and very strict flags we get
 two tests fail :

alpha$
alpha$ cat gnulib-tests/test-suite.log
===============================================
   GNU grep 3.5: gnulib-tests/test-suite.log
===============================================

# TOTAL: 192
# PASS:  179
# SKIP:  11
# XFAIL: 0
# FAIL:  2
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

SKIP: test-exclude2.sh
======================

++ initial_cwd_=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests
gt-test-exclude2.sh.XXXX
+++ case $# in
+++ destdir_=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests
+++ template_=gt-test-exclude2.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++
destdir_slash_=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/
+++ case $template_ in
++++ unset TMPDIR
+++
d=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude2.sh.aOGq
+++ case $d in
+++ :
+++ test -d
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude2.sh.aOGq
++++ ls -dgo
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude2.sh.aOGq
+++ perms='drwx------   2       2 Sep 28 06:27
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude2.sh.aOGq'
+++ case $perms in
+++ :
+++ echo
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude2.sh.aOGq
+++ return
++
test_dir_=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude2.sh.aOGq
++ cd
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude2.sh.aOGq
++ case $srcdir in
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_='
'
++ IFS='
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ trap remove_tmp_ 0
+ path_prepend_ .
+ test 1 '!=' 0
+ path_dir_=.
+ case $path_dir_ in
+ abs_path_dir_=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/.
+ case $abs_path_dir_ in
+
PATH=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/.:./src:/opt/bw/bin:/opt/bw/sbin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:/usr/jdk/latest/bin:/opt/developerstudio12.6/bin:/sbin:/bin:/usr/bin:/usr/sbin:/usr/dt/bin:/usr/openwin/bin:/usr/X11/bin:/opt/schily/bin
+ create_exe_shims_
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/.
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ cat
+ cat
+ test-exclude -casefold in -- foo 'foo*' bar foobar baz bar/qux
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests
+ chmod -R u+rwx
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude2.sh.aOGq
+ rm -rf
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude2.sh.aOGq
+ exit 77
SKIP test-exclude2.sh (exit status: 77)

SKIP: test-exclude5.sh
======================

++ initial_cwd_=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests
gt-test-exclude5.sh.XXXX
+++ case $# in
+++ destdir_=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests
+++ template_=gt-test-exclude5.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++
destdir_slash_=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/
+++ case $template_ in
++++ unset TMPDIR
+++
d=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude5.sh.a4Yq
+++ case $d in
+++ :
+++ test -d
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude5.sh.a4Yq
++++ ls -dgo
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude5.sh.a4Yq
+++ perms='drwx------   2       2 Sep 28 06:27
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude5.sh.a4Yq'
+++ case $perms in
+++ :
+++ echo
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude5.sh.a4Yq
+++ return
++
test_dir_=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude5.sh.a4Yq
++ cd
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude5.sh.a4Yq
++ case $srcdir in
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_='
'
++ IFS='
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ trap remove_tmp_ 0
+ path_prepend_ .
+ test 1 '!=' 0
+ path_dir_=.
+ case $path_dir_ in
+ abs_path_dir_=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/.
+ case $abs_path_dir_ in
+
PATH=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/.:./src:/opt/bw/bin:/opt/bw/sbin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:/usr/jdk/latest/bin:/opt/developerstudio12.6/bin:/sbin:/bin:/usr/bin:/usr/sbin:/usr/dt/bin:/usr/openwin/bin:/usr/X11/bin:/opt/schily/bin
+ create_exe_shims_
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/.
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ cat
+ cat
+ test-exclude -leading_dir in -- bar bar/qux barz foo/bar
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests
+ chmod -R u+rwx
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude5.sh.a4Yq
+ rm -rf
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-exclude5.sh.a4Yq
+ exit 77
SKIP test-exclude5.sh (exit status: 77)

SKIP: test-mbscasecmp.sh
========================

Skipping test: no turkish Unicode locale is installed
SKIP test-mbscasecmp.sh (exit status: 77)

FAIL: test-nl_langinfo-mt
=========================

FAIL test-nl_langinfo-mt (exit status: 139)

FAIL: test-stdalign
===================

test-stdalign.c:98: assertion '(uintptr_t) &(static_char_alignas) %
TEST_ALIGNMENT == 0' failed
FAIL test-stdalign (exit status: 134)

SKIP: test-vc-list-files-cvs.sh
===============================

++ initial_cwd_=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests
gt-test-vc-list-files-cvs.sh.XXXX
+++ case $# in
+++ destdir_=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests
+++ template_=gt-test-vc-list-files-cvs.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++
destdir_slash_=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/
+++ case $template_ in
++++ unset TMPDIR
+++
d=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-vc-list-files-cvs.sh.aaut
+++ case $d in
+++ :
+++ test -d
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-vc-list-files-cvs.sh.aaut
++++ ls -dgo
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-vc-list-files-cvs.sh.aaut
+++ perms='drwx------   2       2 Sep 28 06:27
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-vc-list-files-cvs.sh.aaut'
+++ case $perms in
+++ :
+++ echo
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-vc-list-files-cvs.sh.aaut
+++ return
++
test_dir_=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-vc-list-files-cvs.sh.aaut
++ cd
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-vc-list-files-cvs.sh.aaut
++ case $srcdir in
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_='
'
++ IFS='
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ trap remove_tmp_ 0
+ path_prepend_ .
+ test 1 '!=' 0
+ path_dir_=.
+ case $path_dir_ in
+ abs_path_dir_=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/.
+ case $abs_path_dir_ in
+
PATH=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/.:./src:/opt/bw/bin:/opt/bw/sbin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:/usr/jdk/latest/bin:/opt/developerstudio12.6/bin:/sbin:/bin:/usr/bin:/usr/sbin:/usr/dt/bin:/usr/openwin/bin:/usr/X11/bin:/opt/schily/bin
+ create_exe_shims_
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/.
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ tmpdir=vc-cvs
++ pwd
+
repo=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-vc-list-files-cvs.sh.aaut/vc-cvs/repo
+ fail=0
+ for i in with-cvsu without
+ test with-cvsu = without
+ ok=0
+ mkdir vc-cvs
+ cd vc-cvs
+ skip_ 'cvs not found in PATH'
+ warn_ 'test-vc-list-files-cvs.sh: skipped test: cvs not found in PATH'
+ case $IFS in
+ printf '%s\n' 'test-vc-list-files-cvs.sh: skipped test: cvs not found
in PATH'
test-vc-list-files-cvs.sh: skipped test: cvs not found in PATH
+ test 2 = 2
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests
+ chmod -R u+rwx
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-vc-list-files-cvs.sh.aaut
+ rm -rf
/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests/gt-test-vc-list-files-cvs.sh.aaut
+ exit 77
SKIP test-vc-list-files-cvs.sh (exit status: 77)

SKIP: test-wcrtomb-w32-1.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-1.sh (exit status: 77)

SKIP: test-wcrtomb-w32-2.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-2.sh (exit status: 77)

SKIP: test-wcrtomb-w32-3.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-3.sh (exit status: 77)

SKIP: test-wcrtomb-w32-4.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-4.sh (exit status: 77)

SKIP: test-wcrtomb-w32-5.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-5.sh (exit status: 77)

SKIP: test-wcrtomb-w32-6.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-6.sh (exit status: 77)

SKIP: test-wcrtomb-w32-7.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-7.sh (exit status: 77)

alpha$

The env vars and CFLAGS etc looked like :

alpha$
alpha$ env | sort
AR=/usr/ccs/bin/ar
AS=/usr/ccs/bin/as
AUTOCONF=/opt/bw/bin/autoconf
AUTOHEADER=/opt/bw/bin/autoheader
AUTOMAKE=/opt/bw/bin/automake
AWK=/opt/bw/bin/gawk
BISON=/opt/bw/bin/bison
BUILD=/opt/bw/build
CC=/opt/developerstudio12.6/bin/c99
CFLAGS=-Xc -m64 -xarch=sparc -g -errfmt=error -errshort=full -xstrconst
-xildoff -xmemalign=8s -xnolibmil -xcode=pic32 -xregs=no%appl -xlibmieee
-mc -ftrap=%none -xbuiltin=%none -xunroll=1 -xs -xdebugformat=dwarf
-errtags=yes -errwarn=%none -erroff=%none
COLUMNS=192
CONFIG_SHELL=/opt/bw/bin/bash
CPPFLAGS=-I/opt/bw/include -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
-D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=600
CXXFLAGS=-m64 -xarch=sparc -dalign -erroff=%none -errtags=yes
-ftrap=%none -g -xcode=pic32 -m64 -mc -xunroll=1 -xbuiltin=%none
-xdepend=no -xnolibmopt -xlinkopt=0 -xnolibmil -xregs=no%appl -xs
-D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE
-L/opt/bw/lib -R/opt/bw/lib
CXX=/opt/developerstudio12.6/bin/CC
DISPLAY=localhost:10.0
EDITOR=/usr/xpg6/bin/vi
FORTRAN=/opt/developerstudio12.6/bin/f90
GREP=/opt/bw/bin/grep
HOME=/export/home/dclarke
JAVA_HOME=/usr/jdk/latest
JRE_HOME=/usr/jdk/latest/jre
LANG=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LD_FLAGS=-L/opt/bw/lib
LDFLAGS=-L/opt/bw/lib
LD_OPTIONS=-64 -R/opt/bw/lib -L/opt/bw/lib
LD_RUN_PATH=/opt/bw/lib
LD=/usr/ccs/bin/sparcv9/ld
LIBS=-lrt
LIBTOOL_M4=/opt/bw/share/aclocal/libtool.m4
LINES=48
LOGNAME=dclarke
M4=/opt/bw/bin/m4
MAIL=/usr/mail/dclarke
MAKE=/opt/bw/bin/gmake
NM=/usr/xpg4/bin/nm -p
OLDPWD=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002/gnulib-tests
OPENSSL=/opt/bw/bin/openssl
PAGER=/usr/xpg4/bin/more
PATH=/opt/bw/bin:/opt/bw/sbin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:/usr/jdk/latest/bin:/opt/developerstudio12.6/bin:/sbin:/bin:/usr/bin:/usr/sbin:/usr/dt/bin:/usr/openwin/bin:/usr/X11/bin:/opt/schily/bin
PCRE_CONFIG=/opt/bw/bin/pcre-config
PERL=/opt/bw/bin/perl
PKG_CONFIG_PATH=/opt/bw/lib/pkgconfig
POSIXLY_CORRECT=1
PWD=/opt/bw/build/grep-3.5_sunos5.10_sparcv9.002
PYTHON=/opt/bw/bin/python3
SED=/opt/bw/bin/sed
SHELL=/opt/bw/bin/bash
SHLVL=0
SSH_CLIENT=99.253.170.241 39901 22
SSH_CONNECTION=99.253.170.241 39901 66.225.151.252 22
SSH_TTY=/dev/pts/1
SSL_CERT_DIR=/opt/bw/ssl/certs
TERMINFO=/usr/share/lib/terminfo
TERM=xterm
TMPDIR=/var/tmp/dclarke
TZ=GMT0
USER=dclarke
_=/usr/xpg4/bin/env
VISUAL=/usr/xpg6/bin/vi
XTERM_LOCALE=en_US.UTF-8
YACC=/opt/bw/bin/yacc
alpha$

-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional