Running from installcheck: no Test Protocol: none PATH = /tmp/automake-1.16.3/bin:/tmp/automake-1.16.3/t/ax:/opt/gcc/bin:/opt/local/bin:/opt/openssl/bin:/opt/local/locale/bin:/opt/GNU_Buildutils/coreutils/bin:/opt/GNU_Buildutils/binutils/bin:/opt/GNU_Buildutils/ggrep/bin:/opt/perl5/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin:/usr/sbin:/usr/ucb:/usr/X11/bin:/usr/jdk/latest/bin ++ pwd /tmp/automake-1.16.3/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.16 -Werror + autoconf + automake-1.16 --foreign -Werror -Wall -a configure.ac: installing './ylwrap' + ./configure checking for a BSD-compatible install... /opt/GNU_Buildutils/coreutils/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /opt/GNU_Buildutils/coreutils/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... 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 g++ accepts -g... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of g++... 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 whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for flex... lex checking lex output file root... lex.yy checking lex library... -ll 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 g++ -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 g++ -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.cxx:84:21: error: conflicting declaration of 'int yylex()' with 'C' linkage 84 | #define YY_DECL int yylex (void) | ^~~~~ parsefoo.cxx:85:12: note: in expansion of macro 'YY_DECL' 85 | extern "C" YY_DECL; | ^~~~~~~ parsefoo.cxx:32:6: note: previous declaration with 'C++' linkage 32 | int yylex(void); | ^~~~~ make: *** [Makefile:491: parsefoo.o] Error 1 + am_exit_trap 2 + exit_status=2 + set +e + cd /tmp/automake-1.16.3 + 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 FAIL t/lex-clean-cxx.sh (exit status: 2)