bug#70978: test suite failures on NetBSD

Bruno Haible <[email protected]> Thu, 16 May 2024 15:08:01 +0200
Newsgroups gmane.comp.gnu.libtool.bugs
Message-ID <10155361.L8ug28u51p@nimes>
Hi,

An automated test of the current libtool HEAD [1] exhibits
test failures on NetBSD 10.0/x86_64.

testsuite: 61 169 failed

The relevant test, AFAIK, is test 61. Find attached the file
tests/testsuite.dir/061/testsuite.log.

Bruno

[1] https://github.com/gnu-libtool/ci-check/actions
testsuite.log (text/x-log, 2.9 KB)
#                             -*- compilation -*-
61. flags.at:24: testing passing CXX flags through libtool ...
../../tests/flags.at:24: { test -n "$CXX" && test "X$CXX" != Xno; } || (exit 77)
../../tests/flags.at:24: test g++ != "$CXX" || (g++ -v >/dev/null 2>&1) || (exit 77)
enable shared libraries
../../tests/flags.at:24: $LIBTOOL --tag=CXX --mode=compile $compile -c $source
stderr:
stdout:
libtool: compile:  g++ -I/usr/pkg/include -Wall -g -O2 -c a.cpp  -fPIC -DPIC -o .libs/a.o
libtool: compile:  g++ -I/usr/pkg/include -Wall -g -O2 -c a.cpp -o a.o >/dev/null 2>&1
../../tests/flags.at:24: $LIBTOOL -n --tag=CXX --mode=compile $compile 	     $flag-foo -c $source
stderr:
stdout:
libtool: compile:  g++ -I/usr/pkg/include -Wall -g -foo -O2 -c a.cpp  -fPIC -DPIC -o .libs/a.o
libtool: compile:  g++ -I/usr/pkg/include -Wall -g -foo -O2 -c a.cpp -o a.o >/dev/null 2>&1
../../tests/flags.at:24: $FGREP " -foo" stdout
stdout:
libtool: compile:  g++ -I/usr/pkg/include -Wall -g -foo -O2 -c a.cpp  -fPIC -DPIC -o .libs/a.o
libtool: compile:  g++ -I/usr/pkg/include -Wall -g -foo -O2 -c a.cpp -o a.o >/dev/null 2>&1
../../tests/flags.at:24: $LIBTOOL -n --tag=CXX --mode=link $link 	   -o program$EXEEXT a.lo $flag-foo
stderr:
stdout:
libtool: link: g++ -g -O2 -o program .libs/a.o -foo  -L/usr/pkg/lib 
../../tests/flags.at:24: $FGREP " $flag_prefix_prog-foo" stdout
stdout:
libtool: link: g++ -g -O2 -o program .libs/a.o -foo  -L/usr/pkg/lib 
../../tests/flags.at:24: $LIBTOOL -n --tag=CXX --mode=link $link 	     -o $output a.lo -rpath /nowhere $flag-foo
stderr:
libtool: warning: Linker path does not have real file for library -lgcc.
libtool: warning: I have the capability to make that library automatically link in when
libtool: warning: you link to this library.  But I can only do this if you have a
libtool: warning: shared version of the library, which you do not appear to have
libtool: warning: because I did check the linker path looking for a file starting
libtool: warning: with libgcc and none of the candidates passed a file format test
libtool: warning: using a regex pattern. Last file checked: /usr/lib/libgcc.a
stdout:
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.
libtool: link: ar cr .libs/library.a  a.o
libtool: link: ranlib .libs/library.a
libtool: link: ( cd ".libs" && rm -f "library.la" && ln -s "../library.la" "library.la" )
../../tests/flags.at:24: $FGREP " $flag_prefix_lib-foo" stdout
stdout:
../../tests/flags.at:24: exit code was 1, expected 0
61. flags.at:24: 61. passing CXX flags through libtool (flags.at:24): FAILED (flags.at:24)