Subject: 3 fails in make check

From: [email-masked]
Date: Mon, 14 Jan 2013 17:08:34 +0100

Hi,

I compiled automake 1.12.6 and got 3 fails when doing make check.
I tried it with v1.13.1 and got the same results.

echo $MACHTYPE
x86_64-suse-linux

I tried to use gcc + ifort
and gcc + gfortran

=========================
=========================
=========================
=
Testsuite summary for GNU Automake 1.12.6
=========================
=========================
=========================
=
# TOTAL: 2632
# PASS:  2387
# SKIP:  201
# XFAIL: 41
# FAIL:  3
# XPASS: 0
# ERROR: 0
=========================
=========================
=========================
=
See ./test-suite.log
Please report to [email-masked]
=========================
=========================
=========================
=

grep FAIL test-suite.log
17052:FAIL: t/lex-clean-cxx
17125:FAIL: t/lex-depend-cxx
18935:FAIL: t/yacc-bison-skeleton-cxx

I searched for existing bugs and saw that the first two test sections have been the source of problems before. But I could not find a solution.
Here is an excerpt from my test-suite.log:

FAIL: t/lex-clean-cxx
=====================

Running from installcheck: no
Test Protocol: none
PATH = /local/home/bieser/CMAQ5.0.1/automake/automake-1.12.6/t/wrap:/local/home/bieser/CMAQ5.0.1/automake/automake-1.12.6/t/ax:/local/home/bieser/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/local/home/bieser
/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/bin/X11:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin:/usr/local/bin:/opt/pgi/linux86-64/2012/bin:/opt/intel/Compiler/11.1/072/bin/intel64:/opt
/matlab/bin:/opt/vni/wave/bin:/usr/local/scilab-4.1/bin:/opt/gcc-4.5.0/bin:/opt/g95di32/bin:/usr/local/texlive/2010/bin/x86_64-linux:/usr/local/globus-5.0.3/bin
+++ pwd
/local/home/bieser/CMAQ5.0.1/automake/automake-1.12.6/t/lex-clean-cxx.dir
+ cat
+ cat
+ cat
+ cp parsefoo.lxx parsebar.ll
+ cat
+ cp mainfoo.cc mainbar.cpp
+ cp mainfoo.cc mainbaz.c++
+ cp mainfoo.cc mainqux.cxx
+ aclocal-1.12 -Werror
+ autoconf
+ automake-1.12 --foreign -Werror -Wall -a
configure.ac: installing './ylwrap'
+ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
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 c++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of c++... gcc3
checking for gcc... gcc
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 dependency style of gcc... gcc3
checking for flex... lex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
+ cp config.status config.sav
+ make
c++ -DPACKAGE_NAME=\"lex-clean-cxx\" -DPACKAGE_TARNAME=\"lex-clean-cxx\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"lex-clean-cxx\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lex-clean-
cxx\" -DVERSION=\"1.0\" -I.     -g -O2 -MT mainfoo.o -MD -MP -MF .deps/mainfoo.Tpo -c -o mainfoo.o mainfoo.cc
mv -f .deps/mainfoo.Tpo .deps/mainfoo.Po
/bin/sh ./ylwrap parsefoo.lxx lex.yy.c parsefoo.cxx -- lex  
c++ -DPACKAGE_NAME=\"lex-clean-cxx\" -DPACKAGE_TARNAME=\"lex-clean-cxx\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"lex-clean-cxx\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lex-clean-
cxx\" -DVERSION=\"1.0\" -I.     -g -O2 -MT parsefoo.o -MD -MP -MF .deps/parsefoo.Tpo -c -o parsefoo.o parsefoo.cxx
parsefoo.lxx:3: error: previous declaration of &#8216;int isatty(int)&#8217; with &#8216;C++&#8217; linkage
/usr/include/unistd.h:743: error: conflicts with new declaration with &#8216;C&#8217; linkage
/usr/include/unistd.h:743: error: declaration of &#8216;int isatty(int) throw ()&#8217; throws different exceptions
parsefoo.lxx:3: error: from previous declaration &#8216;int isatty(int)&#8217;
make: *** [parsefoo.o] Error 1
+ am_exit_trap 2
+ exit_status=2
+ set +e
+ cd /local/home/bieser/CMAQ5.0.1/automake/automake-1.12.6
+ test none = tap
+ case $am_explicit_skips in
+ test 2 -eq 0
+ keep_testdirs=yes
+ am_keeping_testdirs
+ case $keep_testdirs in
+ return 0
+ set +x
lex-clean-cxx: exit 2

FAIL: t/lex-depend-cxx
======================

Running from installcheck: no
Test Protocol: none
PATH = /local/home/bieser/CMAQ5.0.1/automake/automake-1.12.6/t/wrap:/local/home/bieser/CMAQ5.0.1/automake/automake-1.12.6/t/ax:/local/home/bieser/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/local/home/bieser/bin:/
usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/bin/X11:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin:/usr/local/bin:/opt/pgi/linux86-64/2012/bin:/opt/intel/Compiler/11.1/072/bin/intel64:/opt/matlab/bin:
/opt/vni/wave/bin:/usr/local/scilab-4.1/bin:/opt/gcc-4.5.0/bin:/opt/g95di32/bin:/usr/local/texlive/2010/bin/x86_64-linux:/usr/local/globus-5.0.3/bin
+++ pwd
/local/home/bieser/CMAQ5.0.1/automake/automake-1.12.6/t/lex-depend-cxx.dir
+ cat
+ cat
+ cat
+ cp joe.ll moe.l++
+ cat
+ aclocal-1.12 -Werror
+ automake-1.12 --foreign -Werror -Wall -a
configure.ac: installing './ylwrap'
+ /usr/bin/grep -F joe.Po Makefile.in
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/joe.Po@am__quote@
ÿÿÿÿÿÿÿ test -f $(DEPDIR)/joe.Po
+ /usr/bin/grep -F moe.Po Makefile.in
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/moe.Po@am__quote@
ÿÿÿÿÿÿÿ test -f $(DEPDIR)/moe.Po
+ autoconf
+ ./configure --enable-dependency-tracking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
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 c++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of c++... gcc3
checking for gcc... gcc
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 dependency style of gcc... gcc3
checking for flex... lex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
+ make test-deps-exist
ls -l .deps ;: For debugging.
total 8
-rw-r--r-- 1 bieser KBC 8 2013-01-11 12:05 joe.Po
-rw-r--r-- 1 bieser KBC 8 2013-01-11 12:05 moe.Po
test -f .deps/joe.Po
test -f .deps/moe.Po
+ make
/bin/sh ./ylwrap joe.ll lex.yy.c joe.cc -- lexÿ 
c++ -DPACKAGE_NAME=\"lex-depend-cxx\" -DPACKAGE_TARNAME=\"lex-depend-cxx\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"lex-depend-cxx\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lex-dep
end-cxx\" -DVERSION=\"1.0\" -I.ÿÿÿÿ -g -O2 -MT joe.o -MD -MP -MF .deps/joe.Tpo -c -o joe.o joe.cc
joe.ll:3: error: previous declaration of &#8216;int isatty(int)&#8217; with &#8216;C++&#8217; linkage
/usr/include/unistd.h:743: error: conflicts with new declaration with &#8216;C&#8217; linkage
/usr/include/unistd.h:743: error: declaration of &#8216;int isatty(int) throw ()&#8217; throws different exceptions
joe.ll:3: error: from previous declaration &#8216;int isatty(int)&#8217;
make: *** [joe.o] Error 1
+ am_exit_trap 2
+ exit_status=2
+ set +e
+ cd /local/home/bieser/CMAQ5.0.1/automake/automake-1.12.6
+ test none = tap
+ case $am_explicit_skips in
+ test 2 -eq 0
+ keep_testdirs=yes
+ am_keeping_testdirs
+ case $keep_testdirs in
+ return 0
+ set +x
lex-depend-cxx: exit 2

[...]

FAIL: t/yacc-bison-skeleton-cxx
=========================
======

yacc-bison-skeleton-cxx: running bison --version
bison (GNU Bison) 2.1
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.ÿ There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Running from installcheck: no
Test Protocol: none
PATH = /local/home/bieser/CMAQ5.0.1/automake/automake-1.12.6/t/wrap:/local/home/bieser/CMAQ5.0.1/automake/automake-1.12.6/t/ax:/local/home/bieser/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/local/home/bieser/bin:/
usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/bin/X11:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin:/usr/local/bin:/opt/pgi/linux86-64/2012/bin:/opt/intel/Compiler/11.1/072/bin/intel64:/opt/matlab/bin:
/opt/vni/wave/bin:/usr/local/scilab-4.1/bin:/opt/gcc-4.5.0/bin:/opt/g95di32/bin:/usr/local/texlive/2010/bin/x86_64-linux:/usr/local/globus-5.0.3/bin
+++ pwd
/local/home/bieser/CMAQ5.0.1/automake/automake-1.12.6/t/yacc-bison-skeleton-cxx.dir
+ cat
+ cat
+ cat
+ cat
+ aclocal-1.12 -Werror
+ autoconf
+ automake-1.12 --foreign -Werror -Wall -a
configure.ac: installing './ylwrap'
+ mkdir build
+ cd build
+ ../configure 'YACC=bison -y'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
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 c++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of c++... gcc3
checking for bison... bison -y
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
+ make
/bin/sh ../ylwrap ../zardoz.yy y.tab.c zardoz.cc y.tab.h `echo zardoz.cc | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output zardoz.output -- bison -y -d 
updating location.hh
updating position.hh
updating stack.hh
updating zardoz.hh
makeÿ all-am
make[1]: Entering directory `/local/home/bieser/CMAQ5.0.1/automake/automake-1.12.6/t/yacc-bison-skeleton-cxx.dir/build'
c++ -DPACKAGE_NAME=\"yacc-bison-skeleton-cxx\" -DPACKAGE_TARNAME=\"yacc-bison-skeleton-cxx\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING
=\"yacc-bison-skeleton-cxx\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE
_U
RL=\"\" -DPACKAGE=\"yacc-bison-skeleton-cxx\" -DVERSION=\"1.0\" -I. -I..ÿÿÿÿ -g -O2 -MT zardoz.o -MD -MP -MF .deps/zardoz.Tpo -c -o zardoz.o zardoz.cc
../zardoz.yy:10: error: &#8216;yy::parser&#8217; has not been declared
../zardoz.yy:10: error: &#8216;yylval&#8217; was not declared in this scope
../zardoz.yy:11: error: &#8216;yy::parser&#8217; has not been declared
../zardoz.yy:11: error: &#8216;yylloc&#8217; was not declared in this scope
../zardoz.yy:11: error: initializer expression list treated as compound expression
zardoz.cc: In member function &#8216;virtual int yy::parser::parse()&#8217;:
zardoz.cc:259: error: &#8216;yylex&#8217; cannot be used as a function
../zardoz.yy: In function &#8216;int yylex(YYSTYPE*, yy::location*)&#8217;:
../zardoz.yy:20: error: &#8216;int yylex(YYSTYPE*, yy::location*)&#8217; redeclared as different kind of symbol
../zardoz.yy:10: error: previous declaration of &#8216;int yylex&#8217;
zardoz.hh:138: error: &#8216;typedef union YYSTYPE yy::parser::semantic
_type&#8217; is private
../zardoz.yy:20: error: within this context
zardoz.hh:140: error: &#8216;typedef class yy::location yy::parser::location_type&#8217; is private
../zardoz.yy:20: error: within this context
make[1]: *** [zardoz.o] Error 1
make[1]: Leaving directory `/local/home/bieser/CMAQ5.0.1/automake/automake-1.12.6/t/yacc-bison-skeleton-cxx.dir/build'
make: *** [all] Error 2
+ am_exit_trap 2
+ exit_status=2
+ set +e
+ cd /local/home/bieser/CMAQ5.0.1/automake/automake-1.12.6
+ test none = tap
+ case $am_explicit_skips in
+ test 2 -eq 0
+ keep_testdirs=yes
+ am_keeping_testdirs
+ case $keep_testdirs in
+ return 0
+ set +x
yacc-bison-skeleton-cxx: exit 2

Helmholtz-Zentrum Geesthacht 
Zentrum für Material- und Küstenforschung GmbH 
Max-Planck-Straße 1 I 21502 Geesthacht I Deutschland/Germany 

Geschäftsführer/Board of Management: Prof. Dr. Wolfgang Kaysser, Dipl.-Ing. Michael Ganß 
Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board: MinDirig Wilfried Kraus 
Amtsgericht Lübeck HRB 285 GE (Register Court) 
Internet: http://www.hzg.de