Subject: bug#10139: [GNU Libtool 2.4.2.135-aa59c] testsuite: 67 70 113 114 115 116 117 149 150 failed, 144 passed unexpectedly (Cygwin 1.2.25)

From: Stefano Lattarini <[email-masked]>
Date: Sat, 26 Nov 2011 09:23:58 +0100

I've run the testsuite of libtool on a Cygwin 1.5.25 on WinXP (no Fortran
compiler installed), with the patch series posted here applied:

  <http://lists.gnu.org/archive/html/libtool-patches/2011-11/msg00160.html>

Since I only have remote access to this windows system, and since the libtool
testsuite is very slow on Cygwin, I've used the following command run to build
and test libtool, so the the testsuite could continue to run without me having
to remain logged in the whole time:

  $ (nohup sh -c './configure && make && make check') &

Attached are the generated output (nohup.out), and the `config.log' and
`tests/testsuite.log' files.

Regards,
  Stefano
## ----------------------------------- ##
## Configuring libtool 2.4.2.135-aa59c ##
## ----------------------------------- ##

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
configure: autobuild project... GNU Libtool
configure: autobuild revision... 2.4.2.135-aa59c
configure: autobuild hostname... pusillus
configure: autobuild mode... default
configure: autobuild timestamp... 20111125T200948Z
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for Minix Amsterdam compiler... no
checking for ar... ar
checking for ranlib... ranlib
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking how to convert i686-pc-cygwin file names to i686-pc-cygwin format... func_convert_file_noop
checking how to convert i686-pc-cygwin file names to toolchain format... func_convert_file_noop
checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib_fallback
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for as... as
checking for dlltool... (cached) dlltool
checking for objdump... (cached) objdump
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking which extension is used for runtime loadable modules... .dll
checking which variable specifies run-time module search path... PATH
checking for the default library search path... /lib /usr/lib
checking for library containing dlopen... none required
checking for dlerror... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking whether cygwin_conv_path is declared... no
checking for dld_link in -ldld... no
checking for _ prefix in compiled symbols... yes
checking whether we have to add an underscore for dlsym... unknown
checking whether deplibs are loaded by dlopen... unknown
checking for argz.h... yes
checking for error_t... yes
checking for argz_add... yes
checking for argz_append... yes
checking for argz_count... yes
checking for argz_create_sep... yes
checking for argz_insert... yes
checking for argz_next... yes
checking for argz_stringify... yes
checking if argz actually works... yes
checking whether libtool supports -dlopen/-dlpreopen... yes
checking for unistd.h... (cached) yes
checking for dl.h... no
checking for sys/dl.h... no
checking for dld.h... no
checking for mach-o/dyld.h... no
checking for dirent.h... yes
checking for closedir... yes
checking for opendir... yes
checking for readdir... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgfortran... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgfortran... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking whether we are using the GNU Fortran compiler... no
checking whether  accepts -g... no
checking for gccgo... no
checking for gcj... gcj
checking if gcj supports -fno-rtti -fno-exceptions... (cached) no
checking for gcj option to produce PIC... 
checking if gcj static flag -static works... no
checking if gcj supports -c -o file.o... yes
checking if gcj supports -c -o file.o... (cached) yes
checking whether the gcj linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking for windres... windres
checking whether make supports order-only prerequisites... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing tests/atconfig commands
config.status: executing depfiles commands
config.status: executing libtool commands
  GEN    libtoolize
make  all-recursive
make[1]: Entering directory `/home/slattarini/tmp/lt/libtool-2.4.2.135-aa59c'
Making all in .
make[2]: Entering directory `/home/slattarini/tmp/lt/libtool-2.4.2.135-aa59c'
  CC     libltdl/loaders/libltdl_libltdl_la-preopen.lo
  CC     libltdl/libltdl_libltdl_la-lt__alloc.lo
  CC     libltdl/libltdl_libltdl_la-lt_dlloader.lo
  CC     libltdl/libltdl_libltdl_la-lt_error.lo
  CC     libltdl/libltdl_libltdl_la-ltdl.lo
  CC     libltdl/libltdl_libltdl_la-slist.lo
  CC     libltdl/loaders/dlopen.lo
  CCLD   libltdl/dlopen.la
  CC     libltdl/loaders/loadlibrary.lo
  CCLD   libltdl/loadlibrary.la
  CCLD   libltdl/libltdl.la
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
Creating library file: libltdl/.libs/libltdl.dll.a
make[2]: Leaving directory `/home/slattarini/tmp/lt/libtool-2.4.2.135-aa59c'
make[1]: Leaving directory `/home/slattarini/tmp/lt/libtool-2.4.2.135-aa59c'
  GEN    public-submodule-commit
make  check-recursive
make[1]: Entering directory `/home/slattarini/tmp/lt/libtool-2.4.2.135-aa59c'
  GEN    tests/defs
Making check in .
make[2]: Entering directory `/home/slattarini/tmp/lt/libtool-2.4.2.135-aa59c'
make  check-TESTS check-local
make[3]: Entering directory `/home/slattarini/tmp/lt/libtool-2.4.2.135-aa59c'
make[4]: Entering directory `/home/slattarini/tmp/lt/libtool-2.4.2.135-aa59c'
PASS: tests/link.test
PASS: tests/link-2.test
PASS: tests/nomode.test
PASS: tests/objectlist.test
PASS: tests/quote.test
PASS: tests/suffix.test
PASS: tests/tagtrace.test
==================
All 7 tests passed
==================
make[4]: Leaving directory `/home/slattarini/tmp/lt/libtool-2.4.2.135-aa59c'
  CC     libltdl/loaders/libltdl_libltdlc_la-preopen.lo
  CC     libltdl/libltdl_libltdlc_la-lt__alloc.lo
  CC     libltdl/libltdl_libltdlc_la-lt_dlloader.lo
  CC     libltdl/libltdl_libltdlc_la-lt_error.lo
  CC     libltdl/libltdl_libltdlc_la-ltdl.lo
  CC     libltdl/libltdl_libltdlc_la-slist.lo
  CCLD   libltdl/libltdlc.la
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
## --------------------------------------- ##
## GNU Libtool 2.4.2.135-aa59c test suite. ##
## --------------------------------------- ##

Shell option parser generator.

  1: fallback short option splitting                 ok
  2: enhanced short option splitting                 ok
  3: fallback long option splitting                  ok
  4: enhanced long option splitting                  ok
  5: fallback option appending                       ok
  6: enhanced option appending                       ok
  7: fallback arithmetic                             ok
  8: enhanced arithmetic                             ok
  9: fallback path slicing                           ok
 10: enhanced path slicing                           ok

Libtoolize operation.

 11: libtoolize macro installation                   ok
 12: libtoolize macro directory mismatch error       ok
 13: libtoolize macro serial update                  ok
 14: libtoolize config files serial update           ok
 15: diagnose missing LT_CONFIG_LTDL_DIR             ok
 16: copy ltdl.m4 with shared macro directory        ok
 17: correctly parse LTDL_INIT from configure.ac     ok
 18: diagnose missing LTDL_INIT invocation           ok
 19: upgrading verbatim style aclocal.m4             ok
 20: verbatim aclocal.m4 w/o AC_CONFIG_MACRO_DIR     ok
 21: nonrecursive ltdl with AC_CONFIG_MACRO_DIR      ok
 22: subproject ltdl with unconventional layout      ok
 23: Subproject ltdl without GNU M4                  ok
 24: LIBTOOLIZE_OPTIONS                              ok
 25: cleanup old installation                        ok

Linking and loading.

 26: link against a preloaded static library         ok
 27: build and dynamically load a module             ok
 28: preload static and dynamic module               ok
 29: deplibs_check_method                            ok
 30: disable fast install                            ok
 31: force PIC objects                               ok
 32: force non-PIC objects                           ok
 33: hardcoding library path                         ok
 34: binary relinking at install time                ok
 35: uninstalled libraries have priority             ok
 36: linking with long file names                    ok

Convenience libraries.

 37: build and link against a static library         ok
 38: build and link against a dynamic library        ok
 39: build both static and dynamic                   ok
 40: allow_undefined_flag                            ok
 41: C convenience archives                          ok
 42: C++ convenience archives                        ok
 43: F77 convenience archives                        skipped (convenience.at:111)
 44: FC convenience archives                         skipped (convenience.at:171)
 45: Java convenience archives                       ok

Library interdependencies.

 46: static library interdependencies                ok
 47: shared library interdependencies                ok
 48: shared and static interdependencies             ok
 49: disable fast install                            ok
 50: binary relinking at install time                ok

Testing libtool functions.

 51: standard command line options                   ok
 52: mode short-hands                                ok
 53: debug tracing                                   ok
 54: duplicate members in archive tests              ok
 55: duplicate convenience archive names             ok
 56: preserve duplicate convenience deps             expected failure (duplicate_deps.at:72)
 57: passing CC flags through libtool                ok
 58: passing CXX flags through libtool               ok
 59: passing F77 flags through libtool               skipped (flags.at:24)
 60: passing FC flags through libtool                skipped (flags.at:24)
 61: passing GCJ flags through libtool               ok
 62: inherited_linker_flags                          ok
 63: Link order test                                 ok
 64: Link order of deplibs                           ok
 65: Failure tests                                   ok
 66: shlibpath_overrides_runpath                     skipped (shlibpath.at:54)
 67: Runpath in libtool library files                FAILED (runpath-in-lalib.at:55)
 68: static linking flags for programs               ok
 69: ccache -all-static                              ok
 70: Export test                                     FAILED (export.at:175)
 71: sys_lib_search_path                             ok
 72: sys_lib_search_path on w32                      ok
 73: indirect convenience                            ok
 74: indirect uninstalled                            ok
 75: static library contains static library          expected failure (archive-in-archive.at:56)
 76: both of -o prog and -o prog$EXEEXT work         ok
 77: execute mode                                    ok
 78: bindir basic lib test                           ok
 79: bindir install tests                            ok
 80: cwrapper for uninstalled executables            ok
 81: cwrapper string length                          ok
 82: cwrapper and installed shared libraries         ok
 83: deplib in subdir                                ok
 84: inferred tag                                    ok
 85: CXX inferred tag                                ok
 86: F77 inferred tag                                skipped (infer-tag.at:56)
 87: FC inferred tag                                 skipped (infer-tag.at:70)
 88: GCJ inferred tag                                ok
 89: localized compiler messages                     ok
 90: nocase library search                           skipped (nocase.at:31)
 91: Install tests                                   ok
 92: versioning                                      ok

DESTDIR tests

 93: Simple DESTDIR install                          ok
 94: DESTDIR with in-package deplibs                 ok

Support for older m4 interface.

 95: AM_PROG_LIBTOOL                                 ok
 96: AC_WITH_LTDL                                    ok

Support for older libltdl interfaces.

 97: Makefile.inc                                    ok

Libtool subdir-objects support.

 98: C subdir-objects                                ok
 99: C++ subdir-objects                              ok

Libltdl functionality.

100: lt_dlexit unloading libs                        ok
101: lt_dlopenadvise library loading                 ok
102: lt_dlopen error messages                        skipped (lt_dlopen.at:31)
103: lt_dlopen archive                               ok
104: lt_dlopenext error messages                     ok
105: libdir of installed modules                     ok
106: ltdl API                                        skipped (ltdl-api.at:31)
107: dlloader API                                    ok
108: loadlibrary error messages                      ok
109: syntax of .la files                             expected failure (lalib-syntax.at:133)
110: resident modules                                ok
111: SList functionality                             ok
112: enforced lib prefix                             ok

Dynamic ltdl runtime loading.

113: dynamically ltdl preload static modules         FAILED (mdemo.at:640)
114: dynamically ltdl load a shared module           FAILED (mdemo.at:657)
115: ltdl load shared and static modules             FAILED (mdemo.at:674)
116: ltdl dryrun                                     FAILED (mdemo.at:691)
117: link with library that loads ltdl modules       FAILED (mdemo.at:856)

Standalone Libltdl.

118: compiling softlinked libltdl                    ok
119: compiling copied libltdl                        ok
120: installable libltdl                             ok
121: linking libltdl without autotools               ok

Subproject Libltdl.

122: compiling softlinked libltdl                    ok
123: compiling copied libltdl                        ok
124: installable libltdl                             ok
125: linking libltdl without autotools               ok

Nonrecursive Automake Libltdl.

126: compiling softlinked libltdl                    ok
127: compiling copied libltdl                        ok
128: installable libltdl                             ok

Recursive Automake Libltdl.

129: compiling softlinked libltdl                    ok
130: compiling copied libltdl                        ok
131: installable libltdl                             ok

C++ language support.

132: static library                                  ok
133: shared library                                  ok
134: shared and static together                      ok
135: allow_undefined_flag                            ok

C++ template tests.

136: simple template test                            ok
137: template test with subdirs                      ok

Constructors.

138: C++ static constructors                         ok
139: C++ exception handling                          ok

libtool script generation.

140: config.status                                   ok
141: config.lt                                       ok
142: test --with-pic                                 skipped (with-pic.at:27)

Libtool usage in GCC

143: AC_NO_EXECUTABLES                               ok

Detecting identical deplibs.

144: build tree relpaths                             UNEXPECTED PASS

configure interface to libltdl.

145: installable libltdl                             ok
146: --with-ltdl-include/lib                         ok
147: --with-included-ltdl                            ok
148: convenience libltdl                             ok

Libtool stress test.

149: Link option thorough search test                FAILED (stresstest.at:277)
150: Run tests with low max_cmd_len                  FAILED (cmdline_wrap.at:43)
151: override pic_flag at configure time             skipped (pic_flag.at:39)

F77 language support.

152: static library                                  skipped (f77demo.at:296)
153: shared library                                  skipped (f77demo.at:311)
154: shared and static together                      skipped (f77demo.at:326)

Fortran language support.

155: static library                                  skipped (fcdemo.at:310)
156: shared library                                  skipped (fcdemo.at:325)
157: shared and static together                      skipped (fcdemo.at:340)

Mac OS X tests

158: darwin fat compile                              skipped (darwin.at:42)
159: darwin concurrent library extraction            ok
160: darwin gdb debug information                    ok
161: darwin ld warnings changing configure results   ok
162: darwin can lt_dlopen .dylib and .so files       skipped (darwin.at:249)

Windows tests.

163: dumpbin -symbols section hiding                 skipped (dumpbin-symbols.at:42)
164: deplibs without file command                    ok

sysroot tests

165: -L=.../lib -l                                   skipped (sysroot.at:203)
166: -L SYSROOT/.../lib -l                           skipped (sysroot.at:204)
167: SYSROOT/.../*.la                                skipped (sysroot.at:205)

## ------------- ##
## Test results. ##
## ------------- ##

ERROR: 143 tests were run,
1 passed unexpectedly,
12 failed (3 expected failures).
24 tests were skipped.
## -------------------------- ##
## testsuite.log was created. ##
## -------------------------- ##

Please send `tests/testsuite.log' and all information you think might help:

   To: <[email-masked]>
   Subject: [GNU Libtool 2.4.2.135-aa59c] testsuite: 67 70 113 114 115 116 117 149 150 failed, 144 passed unexpectedly

You may investigate any problem if you feel able to do so, in which
case the test suite provides a good starting point.  Its output may
be found below `tests/testsuite.dir'.

make[3]: *** [check-local] Error 1
make[3]: Leaving directory `/home/slattarini/tmp/lt/libtool-2.4.2.135-aa59c'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/home/slattarini/tmp/lt/libtool-2.4.2.135-aa59c'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/slattarini/tmp/lt/libtool-2.4.2.135-aa59c'
make: *** [check] Error 2