Hello,
Installed automake-1.16.3, but make check failed on Solaris 11.3 x86/x64.
$ uname -a
SunOS hidden 5.11 11.3 i86pc i386 i86pc Solaris
$ gcc --version
gcc (GCC) 10.2.0
$ ./configure --prefix=/opt/local CC=gcc CXX=g++
$ make
$ make -k check
:
FAIL: t/lex-clean-cxx.sh
FAIL: t/lex-depend-cxx.sh
lex-clean-cxx.log & lex-depend-cxx.log are attacked.
Regards.
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)
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-depend-cxx.dir
+ cat
+ cat
+ cat
+ cp joe.ll moe.l++
+ cat
+ aclocal-1.16 -Werror
+ automake-1.16 --foreign -Werror -Wall -a
configure.ac: installing './ylwrap'
+ /opt/GNU_Buildutils/ggrep/bin/grep -F joe.Po Makefile.in
am__depfiles_remade = ./$(DEPDIR)/joe.Po ./$(DEPDIR)/moe.Po
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/joe.Po@am__quote@ #
am--include-marker
-rm -f ./$(DEPDIR)/joe.Po
-rm -f ./$(DEPDIR)/joe.Po
test -f $(DEPDIR)/joe.Po
+ /opt/GNU_Buildutils/ggrep/bin/grep -F moe.Po Makefile.in
am__depfiles_remade = ./$(DEPDIR)/joe.Po ./$(DEPDIR)/moe.Po
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/moe.Po@am__quote@ #
am--include-marker
-rm -f ./$(DEPDIR)/moe.Po
-rm -f ./$(DEPDIR)/moe.Po
test -f $(DEPDIR)/moe.Po
+ autoconf
+ ./configure --enable-dependency-tracking
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
++ find . -name '*.Po'
+ for f in $(find . -name '*.Po')
+ cat ./.deps/joe.Po
# dummy
+ for f in $(find . -name '*.Po')
+ cat ./.deps/moe.Po
# dummy
+ make test-deps-exist
ls -l .deps ;: For debugging.
¹ç·× 8
-rw-r--r-- 1 moonbow priv 8 11·î 22 21:20 joe.Po
-rw-r--r-- 1 moonbow priv 8 11·î 22 21:20 moe.Po
test -f .deps/joe.Po
test -f .deps/moe.Po
+ make
/bin/sh ./ylwrap joe.ll lex.yy.c joe.cc -- lex
g++ -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-depend-cxx\"
-DVERSION=\"1.0\" -I. -g -O2 -MT joe.o -MD -MP -MF .deps/joe.Tpo -c -o
joe.o joe.cc
joe.cc:84:21: error: conflicting declaration of 'int yylex()' with 'C' linkage
84 | #define YY_DECL int yylex (void)
| ^~~~~
joe.cc:85:12: note: in expansion of macro 'YY_DECL'
85 | extern "C" YY_DECL;
| ^~~~~~~
joe.cc:32:6: note: previous declaration with 'C++' linkage
32 | int yylex(void);
| ^~~~~
make: *** [Makefile:382: joe.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-depend-cxx.sh (exit status: 2)