bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bison 3.3.2 fails to build or run testsuite


From: Dennis Clarke
Subject: bison 3.3.2 fails to build or run testsuite
Date: Tue, 5 Feb 2019 19:57:59 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Thunderbird/65.0


Given that the well loved and much used bison has a brand new fresh
release I had to give it a try on a very strict and not very well loved
environment.  :-)   I need it to build recent flex and recent flex needs
bison and maybe bison needs flex but I managed to get this going.

This is ye old Solaris 10 sparc server with Oracle Studio C99 compiler
from the Oracle Studio 12.6 release. Very very strict and very very
standards compliant and the compile goes smoothly.

I am using a mixture of GNU tools ( recently built and tested ) as well
as the in place vendor UNIX Solaris tools :

AR=/usr/ccs/bin/ar
AS=/usr/ccs/bin/as
AWK=/usr/local/bin/gawk
CC=/opt/developerstudio12.6/bin/c99
CFLAGS=-m64 -xarch=sparc -Xc -g -mc -xs -errfmt=error -erroff=%none -errshort=full -errtags=yes -errwarn=%none -ftrap=%none -xbuiltin=%none -xildoff -xlibmieee -xstrconst -xcode=pic32 -xmemalign=8s -xnolibmil -xunroll=1 -xregs=no%appl -xdebugformat=dwarf -Qy -D_LARGEFILE64_SOURCE -D_POSIX_PTHREAD_SEMANTICS -D_TS_ERRNO
CONFIG_SHELL=/bin/bash
CPPFLAGS=-I/usr/local/include -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_TS_ERRNO
CXX=/opt/developerstudio12.6/bin/CC
CXXFLAGS=-m64 -xarch=sparc -dalign -erroff=%none -errtags=yes -ftrap=%none -g -xcode=pic32 -m64 -mc -xunroll=1 -xbuiltin=%none -xdepend=no -xnolibmopt -xlinkopt=0 -xnolibmil -xregs=no%appl -xs
EDITOR=/usr/xpg6/bin/vi
GREP=/usr/local/bin/grep
LANG=C
LC_COLLATE=C
LC_CTYPE=C
LC_MESSAGES=C
LC_MONETARY=C
LC_NUMERIC=C
LC_TIME=C
LD=/usr/ccs/bin/sparcv9/ld
LDFLAGS=-R/usr/local/lib -L/usr/local/lib
LD_OPTIONS=-64 -Qy -R/usr/local/lib -L/usr/local/lib
LD_RUN_PATH=/usr/local/lib
LIBTOOL=/usr/local/bin/libtool
M4=/usr/local/bin/m4
MAKE=/usr/local/bin/gmake
NM=/usr/ccs/bin/sparcv9/nm -p
PAGER=/usr/xpg4/bin/more
PERL=/usr/local/bin/perl
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
POSIXLY_CORRECT=1
SED=/usr/local/bin/sed
YACC=/usr/ccs/bin/yacc

Note the yacc there and the POSIXLY_CORRECT=1.

Maybe I need to specify a C++ standard but the configure went very
 smooth :

c$ ./configure --prefix=/usr/local --disable-silent-rules \
> --enable-dependency-tracking \
> --enable-threads=posix --without-gnu-ld \
> --without-libpth-prefix \
> --with-libiconv-prefix=/usr/local \
> --with-libintl-prefix=/usr/local
checking for a BSD-compatible install... build-aux/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... /usr/local/bin/gawk
checking whether /usr/local/bin/gmake sets $(MAKE)... yes
checking whether /usr/local/bin/gmake supports nested variables... yes
checking whether /usr/local/bin/gmake supports nested variables... (cached) yes checking whether /usr/local/bin/gmake supports the include directive... yes (GNU style)
checking for gcc... /opt/developerstudio12.6/bin/c99
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... no
checking whether /opt/developerstudio12.6/bin/c99 accepts -g... yes
checking for /opt/developerstudio12.6/bin/c99 option to accept ISO C89... none needed checking whether /opt/developerstudio12.6/bin/c99 understands -c and -o together... yes checking dependency style of /opt/developerstudio12.6/bin/c99... dashXmstdout checking for /opt/developerstudio12.6/bin/c99 option to accept ISO C99... none needed checking for /opt/developerstudio12.6/bin/c99 option to accept ISO Standard C... (cached) none needed
checking whether we are using the GNU C++ compiler... no
checking whether /opt/developerstudio12.6/bin/CC accepts -g... yes
checking dependency style of /opt/developerstudio12.6/bin/CC... dashXmstdout
checking how to run the C preprocessor... /opt/developerstudio12.6/bin/c99 -E
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for Minix Amsterdam compiler... no
checking for ar... /usr/ccs/bin/ar
checking for ranlib... ranlib
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether pragma GCC diagnostic push works... yes
checking whether C++ compiler handles -Werror -Wunknown-warning-option... yes
checking whether C++ compiler handles -fno-exceptions... yes
checking whether C++ compiler accepts -std=c++98... no
checking whether C++ compiler accepts -std=c++98 -stdlib=libc++... no
checking whether C++ compiler accepts -std=c++03... yes
checking whether C++ compiler accepts -std=c++11... yes
checking whether C++ compiler accepts -std=c++14... yes
checking whether C++ compiler accepts -std=c++17... no
checking whether C++ compiler accepts -std=c++17 -stdlib=libc++... no
checking whether C++ compiler accepts -std=c++2a... no
checking whether C++ compiler accepts -std=c++2a -stdlib=libc++... no
checking whether /opt/developerstudio12.6/bin/c99 supports POSIXLY_CORRECT=1... yes checking whether /opt/developerstudio12.6/bin/CC builds executables that work... yes checking whether /opt/developerstudio12.6/bin/CC supports POSIXLY_CORRECT=1... yes
checking for dmd... no
checking for Java compiler... no
checking for Java virtual machine... java
checking for flex... no
checking for lex... lex
checking whether lex is flex... no
checking lex output file root... lex.yy
checking lex library... -ll
checking whether yytext is a pointer... no
configure: WARNING: bypassing lex because flex is required
checking for bison... /usr/ccs/bin/yacc
checking for ranlib... (cached) ranlib
checking for GNU M4 that supports accurate traces... /usr/local/bin/m4
checking whether /usr/local/bin/m4 accepts --gnu... yes
checking how m4 supports trace files... --debugfile
checking for perl... /usr/local/bin/perl
checking for xsltproc... /bin/xsltproc
checking for locale.h... yes
checking for sys/param.h... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking for stdio_ext.h... yes
checking for features.h... no
checking for getopt.h... yes
checking for sys/cdefs.h... no
checking for sys/time.h... yes
checking for limits.h... yes
checking for wchar.h... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for math.h... yes
checking for sys/mman.h... yes
checking for spawn.h... yes
checking for sys/resource.h... yes
checking for sys/times.h... yes
checking for sys/wait.h... yes
checking for crtdefs.h... no
checking for wctype.h... yes
checking for sys/stat.h... (cached) yes
checking for inline... inline
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether malloc, realloc, calloc are POSIX compliant... yes
checking for canonicalize_file_name... no
checking for getcwd... yes
checking for readlink... yes
checking for realpath... yes
checking for readlinkat... no
checking for _set_invalid_parameter_handler... no
checking for fcntl... yes
checking for symlink... yes
checking for vasnprintf... no
checking for snprintf... yes
checking for microuptime... no
checking for nanouptime... no
checking for getprogname... no
checking for getexecname... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for mbsinit... yes
checking for mbrtowc... yes
checking for isascii... yes
checking for mprotect... yes
checking for obstack_printf... no
checking for lstat... yes
checking for strerror_r... yes
checking for __xpg_strerror_r... no
checking for pipe2... no
checking for setenv... yes
checking for link... yes
checking for sigaction... yes
checking for sigaltstack... yes
checking for siginterrupt... yes
checking for strdup... yes
checking for strndup... no
checking for pipe... yes
checking for iswcntrl... yes
checking for wcwidth... yes
checking for __fseterr... no
checking for getdtablesize... yes
checking for catgets... yes
checking for setlocale... yes
checking whether // is distinct from /... no
checking whether realpath works... no
checking if environ is properly declared... no
checking whether the preprocessor supports include_next... no
checking whether system header files limit the line length... no
checking for complete errno.h... yes
checking whether strerror_r is declared... yes
checking for strerror_r... (cached) yes
checking whether strerror_r returns char *... no
checking for sig_atomic_t... yes
checking for working fcntl.h... no (bad O_NOATIME)
checking for pid_t... yes
checking for mode_t... yes
checking for stdint.h... yes
checking for inttypes.h... yes
checking whether printf supports size specifiers as in C99... yes
checking whether printf supports 'long double' arguments... yes
checking whether printf supports infinite 'double' arguments... yes
checking whether byte ordering is bigendian... yes
checking whether long double and double are the same... no
checking whether printf supports infinite 'long double' arguments... yes
checking whether printf supports the 'a' and 'A' directives... no
checking whether printf supports the 'F' directive... yes
checking whether printf supports the 'n' directive... yes
checking whether printf supports the 'ls' directive... no
checking whether printf supports POSIX/XSI format strings with positions... yes
checking whether printf supports the grouping flag... yes
checking whether printf supports the left-adjust flag correctly... yes
checking whether printf supports the zero flag correctly... yes
checking whether printf supports large precisions... yes
checking whether printf survives out-of-memory conditions... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking for wchar_t... yes
checking for wint_t... yes
checking whether wint_t is too small... no
checking for intmax_t... yes
checking where to find the exponent in a 'double'... word 0 bit 20
checking whether snprintf returns a byte count as in C99... yes
checking for snprintf... (cached) yes
checking for strnlen... no
checking for wcslen... yes
checking for wcsnlen... no
checking for mbrtowc... (cached) yes
checking for wcrtomb... yes
checking whether _snprintf is declared... no
checking for arithmetic hrtime_t... yes
checking absolute name of <getopt.h>... "///usr/include/getopt.h"
checking for getopt.h... (cached) yes
checking for getopt_long_only... yes
checking whether getopt is POSIX compatible... yes
checking for working GNU getopt function... no
checking for C/C++ restrict keyword... __restrict
checking absolute name of <sys/time.h>... "///usr/include/sys/time.h"
checking for struct timeval... yes
checking for wide-enough struct timeval.tv_sec member... yes
checking absolute name of <limits.h>... "///usr/include/limits.h"
checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... no
checking absolute name of <stdint.h>... "///usr/include/stdint.h"
checking whether stdint.h conforms to C99... no
checking sys/inttypes.h usability... yes
checking sys/inttypes.h presence... yes
checking for sys/inttypes.h... yes
checking sys/bitypes.h usability... no
checking sys/bitypes.h presence... no
checking for sys/bitypes.h... no
checking for bit size of ptrdiff_t... 64
checking for bit size of size_t... 64
checking for bit size of sig_atomic_t... 32
checking for bit size of wchar_t... 32
checking for bit size of wint_t... 32
checking whether sig_atomic_t is signed... yes
checking whether wchar_t is signed... yes
checking whether wint_t is signed... yes
checking for ptrdiff_t integer literal suffix... l
checking for size_t integer literal suffix... ul
checking for sig_atomic_t integer literal suffix...
checking for wchar_t integer literal suffix...
checking for wint_t integer literal suffix...
checking absolute name of <inttypes.h>... "///usr/include/inttypes.h"
checking for inttypes.h... (cached) yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking where to find the exponent in a 'float'... word 0 bit 23
checking whether isnan(float) can be used without linking with libm... yes
checking whether isnan(float) works... yes
checking whether isnan(double) can be used without linking with libm... yes
checking whether isnan(long double) can be used without linking with libm... yes
checking whether isnanl works... yes
checking whether ldexp() can be used without linking with libm... yes
checking for nl_langinfo and CODESET... yes
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for mbstate_t... yes
checking for a traditional japanese locale... ja_JP.eucJP
checking for a transitional chinese locale... zh_CN.GB18030
checking for a french Unicode locale... fr_FR.UTF-8
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking whether memchr works... yes
checking whether <limits.h> defines MIN and MAX... no
checking whether <sys/param.h> defines MIN and MAX... no
checking whether obstack_printf is declared... no
checking for O_CLOEXEC... no
checking for promoted mode_t type... mode_t
checking whether strerror(0) succeeds... yes
checking for strerror_r with POSIX signature... yes
checking whether strerror_r works... no
checking whether strerror_r is declared... (cached) yes
checking for library containing posix_spawn... none required
checking for posix_spawn... yes
checking whether posix_spawn works... yes
checking whether posix_spawnattr_setschedpolicy is supported... yes
checking whether posix_spawnattr_setschedparam is supported... yes
checking for nl_langinfo... yes
checking for ptrdiff_t... yes
checking whether C symbols are prefixed with underscore at the linker level... no
checking for sigset_t... yes
checking for ld... /usr/ccs/bin/sparcv9/ld
checking if the linker (/usr/ccs/bin/sparcv9/ld) is GNU ld... no
checking for shared library path variable... LD_LIBRARY_PATH
checking whether to activate relocatable installation... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether setenv is declared... yes
checking for uid_t in sys/types.h... yes
checking whether snprintf is declared... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether strdup is declared... yes
checking absolute name of <string.h>... "///usr/include/string.h"
checking whether strndup is declared... no
checking absolute name of <sys/types.h>... "///usr/include/sys/types.h"
checking for struct timespec in <time.h>... yes
checking absolute name of <time.h>... "///usr/include/time.h"
checking whether clearerr_unlocked is declared... no
checking whether feof_unlocked is declared... no
checking whether ferror_unlocked is declared... no
checking whether fflush_unlocked is declared... no
checking whether fgets_unlocked is declared... no
checking whether fputc_unlocked is declared... no
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... no
checking whether fwrite_unlocked is declared... no
checking whether getc_unlocked is declared... yes
checking whether getchar_unlocked is declared... yes
checking whether putc_unlocked is declared... yes
checking whether putchar_unlocked is declared... yes
checking whether unsetenv is declared... yes
checking whether vsnprintf is declared... yes
checking whether <wchar.h> uses 'inline' correctly... yes
checking whether frexp() can be used without linking with libm... yes
checking whether alarm is declared... yes
checking whether stat file-mode macros are broken... no
checking absolute name of <sys/stat.h>... "///usr/include/sys/stat.h"
checking for nlink_t... yes
checking whether getdtablesize is declared... yes
checking for shared library run path origin... done
checking 32-bit host C ABI... no
checking for 64-bit host... yes
checking for the common suffixes of directories in the library search path... lib/64,lib/sparcv9
checking whether imported symbols can be declared weak... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_kill in -lpthread... yes
checking for multithread API to use... posix
checking whether lstat correctly handles trailing slash... yes
checking whether strnlen is declared... no
checking for alloca as a compiler built-in... no
checking whether to enable assertions... yes
checking for library containing clock_gettime... -lrt
checking for clock_gettime... yes
checking for clock_settime... yes
checking whether // is distinct from /... (cached) no
checking whether dup2 works... yes
checking for error_at_line... no
checking whether fcntl handles F_DUPFD correctly... yes
checking whether fcntl understands F_DUPFD_CLOEXEC... no
checking absolute name of <fcntl.h>... "///usr/include/fcntl.h"
checking whether conversion from 'int' to 'long double' works... yes
checking whether fopen recognizes a trailing slash... yes
checking for __fpending... yes
checking whether __fpending is declared... yes
checking for nl_langinfo... (cached) yes
checking for ptrdiff_t... (cached) yes
checking whether gethrtime is declared... yes
checking whether program_invocation_name is declared... no
checking whether program_invocation_short_name is declared... no
checking whether __argv is declared... no
checking whether __progname is defined in default libraries...
checking whether gettimeofday clobbers localtime buffer... no
checking for gettimeofday with POSIX signature... yes
checking whether INT32_MAX < INTMAX_MAX... yes
checking whether INT64_MAX == LONG_MAX... yes
checking whether UINT32_MAX < UINTMAX_MAX... yes
checking whether UINT64_MAX == ULONG_MAX... yes
checking whether isnan macro works... yes
checking whether isnan(double) can be used without linking with libm... (cached) yes checking whether isnan(float) can be used without linking with libm... (cached) yes
checking whether isnan(float) works... (cached) yes
checking whether isnan(long double) can be used without linking with libm... (cached) yes
checking whether isnanl works... (cached) yes
checking whether ldexpl is declared... yes
checking whether ldexpl() can be used without linking with libm... no
checking whether ldexpl() can be used with libm... yes
checking whether ldexpl works... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... (cached) yes
checking absolute name of <math.h>... "///usr/include/math.h"
checking whether NAN macro works... yes
checking whether HUGE_VAL works... yes
checking whether mbrtowc handles incomplete characters... yes
checking whether mbrtowc works as well as mbtowc... yes
checking whether mbrtowc handles a NULL pwc argument... yes
checking whether mbrtowc handles a NULL string argument... yes
checking whether mbrtowc has a correct return value... no
checking whether mbrtowc returns 0 when parsing a NUL character... yes
checking whether mbrtowc works on empty input... yes
checking whether the C locale is free of encoding errors... yes
checking whether mbrtowc handles incomplete characters... (cached) yes
checking whether mbrtowc works as well as mbtowc... (cached) yes
checking whether mbswidth is declared in <wchar.h>... no
checking for mbstate_t... (cached) yes
checking for obstacks that work with any size object... no
checking whether open recognizes a trailing slash... yes
checking whether posix_spawn_file_actions_addclose works... no
checking whether posix_spawn_file_actions_adddup2 works... no
checking whether posix_spawn_file_actions_addopen works... no
checking whether program_invocation_name is declared... (cached) no
checking whether program_invocation_short_name is declared... (cached) no
checking for raise... yes
checking for sigprocmask... yes
checking whether readlink signature is correct... yes
checking whether readlink handles trailing slash correctly... yes
checking search.h usability... yes
checking search.h presence... yes
checking for search.h... yes
checking for tsearch... yes
checking whether rename honors trailing slash on destination... no
checking whether rename honors trailing slash on source... yes
checking whether rename manages hard links correctly... yes
checking whether rename manages existing destinations correctly... yes
checking for struct sigaction.sa_sigaction... yes
checking absolute name of <signal.h>... "///usr/include/signal.h"
checking for volatile sig_atomic_t... yes
checking for sighandler_t... no
checking for sigprocmask... (cached) yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for snprintf... (cached) yes
checking whether snprintf respects a size of 1... yes
checking whether printf supports POSIX/XSI format strings with positions... (cached) yes
checking for snprintf... (cached) yes
checking whether snprintf truncates the result as in C99... yes
checking whether snprintf fully supports the 'n' directive... yes
checking whether snprintf respects a size of 1... (cached) yes
checking whether vsnprintf respects a zero size as in C99... yes
checking for nl_langinfo... (cached) yes
checking for ptrdiff_t... (cached) yes
checking absolute name of <spawn.h>... "///usr/include/spawn.h"
checking for posix_spawnattr_t... yes
checking for posix_spawn_file_actions_t... yes
checking for nl_langinfo... (cached) yes
checking for ptrdiff_t... (cached) yes
checking for ssize_t... yes
checking for good max_align_t... no
checking whether NULL can be used in arbitrary expressions... yes
checking absolute name of <stddef.h>... "///usr/include/stddef.h"
checking absolute name of <stdio.h>... "///usr/include/stdio.h"
checking which flavor of printf attribute matches inttypes macros... system
checking absolute name of <stdlib.h>... "///usr/include/stdlib.h"
checking for stpcpy... no
checking for working strerror function... yes
checking for strverscmp... no
checking absolute name of <sys/resource.h>... "///usr/include/sys/resource.h"
checking absolute name of <sys/times.h>... "///usr/include/sys/times.h"
checking for struct tms... yes
checking absolute name of <sys/wait.h>... "///usr/include/sys/wait.h"
checking absolute name of <unistd.h>... "///usr/include/unistd.h"
checking whether unlink honors trailing slashes... yes
checking whether unlink of a parent directory fails as it should... guessing yes
checking for unsetenv... yes
checking for unsetenv() return type... int
checking whether unsetenv obeys POSIX... no
checking for ptrdiff_t... (cached) yes
checking for vsnprintf... yes
checking whether snprintf respects a size of 1... (cached) yes
checking whether printf supports POSIX/XSI format strings with positions... (cached) yes
checking for vsnprintf... (cached) yes
checking whether snprintf truncates the result as in C99... (cached) yes
checking whether snprintf fully supports the 'n' directive... (cached) yes
checking whether snprintf respects a size of 1... (cached) yes
checking whether vsnprintf respects a zero size as in C99... (cached) yes
checking for nl_langinfo... (cached) yes
checking for ptrdiff_t... (cached) yes
checking for nl_langinfo... (cached) yes
checking for ptrdiff_t... (cached) yes
checking for waitid... yes
checking absolute name of <wchar.h>... "///usr/include/wchar.h"
checking absolute name of <wctype.h>... "///usr/include/wctype.h"
checking whether iswcntrl works... yes
checking for towlower... yes
checking for wctype_t... yes
checking for wctrans_t... yes
checking whether wcwidth is declared... yes
checking whether wcwidth works reasonably in UTF-8 locales... yes
checking for stdint.h... (cached) yes
checking whether stat handles trailing slashes on files... yes
checking absolute name of <sys/stat.h>... (cached) "///usr/include/sys/stat.h"
checking for nlink_t... (cached) yes
checking for struct stat.st_atim.tv_nsec... yes
checking whether struct stat.st_atim is of type struct timespec... yes
checking for struct stat.st_birthtimespec.tv_nsec... no
checking for struct stat.st_birthtimensec... no
checking for struct stat.st_birthtim.tv_nsec... no
checking whether getdtablesize works... yes
checking whether frexp works... yes
checking whether frexpl is declared... yes
checking whether frexpl() can be used without linking with libm... no
checking whether isnan(long double) can be used without linking with libm... (cached) yes
checking whether isnanl works... (cached) yes
checking whether isnan(double) can be used without linking with libm... (cached) yes
checking whether frexp works... (cached) yes
checking whether ldexp can be used without linking with libm... (cached) yes
checking whether frexpl() can be used without linking with libm... (cached) no checking whether ldexpl() can be used without linking with libm... (cached) no
checking for signbit macro... yes
checking for signbit compiler built-ins... no
checking for pthread_rwlock_t... yes
checking whether pthread_rwlock_rdlock prefers a writer to a reader... yes
checking for nl_langinfo... (cached) yes
checking for ptrdiff_t... (cached) yes
checking whether rmdir works... yes
checking if malloc debugging is wanted... no
checking whether NLS is requested... yes
checking for msgfmt... /usr/local/bin/msgfmt
checking for gmsgfmt... /bin/gmsgfmt
checking for xgettext... /usr/local/bin/xgettext
checking for msgmerge... /usr/local/bin/msgmerge
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for CFLocaleCopyPreferredLanguages... no
checking for GNU gettext in libc... no
checking for iconv... yes
checking for working iconv... yes
checking how to link with libiconv... /usr/local/lib/sparcv9/libiconv.so -R/usr/local/lib/sparcv9 -R/usr/local/lib
checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking where the gettext function comes from... external libintl
checking how to link with libintl... /usr/local/lib/sparcv9/libintl.so /usr/local/lib/libiconv.so -lc -R/usr/local/lib/sparcv9 -R/usr/local/lib
checking for valgrind... no
checking Valgrind suppression file...
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating src/yacc
config.status: creating javacomp.sh
config.status: creating javaexec.sh
config.status: creating runtime-po/Makefile.in
config.status: creating etc/bench.pl
config.status: creating tests/atlocal
config.status: creating tests/bison
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating doc/yacc.1
config.status: creating lib/config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating runtime-po/POTFILES
config.status: creating runtime-po/Makefile
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing tests/atconfig commands
c$

So bison does look for flex but seems happy with lex with the warning:

configure: WARNING: bypassing lex because flex is required

However I need bison to build flex and flex needs bison and here we are.
Compile goes smoothly :

c$
c$ ldd ./src/bison
        libm.so.2 =>     /lib/64/libm.so.2
        libintl.so.8 =>  /usr/local/lib/libintl.so.8
        libiconv.so.2 =>         /usr/local/lib/libiconv.so.2
        libc.so.1 =>     /lib/64/libc.so.1
        librt.so.1 =>    /lib/64/librt.so.1
        libaio.so.1 =>   /lib/64/libaio.so.1
        libmd.so.1 =>    /lib/64/libmd.so.1
        /lib/sparcv9/../libm/sparcv9/libm_hwcap1.so.2
        /platform/SUNW,SPARC-Enterprise/lib/sparcv9/libc_psr.so.1
c$ file ./src/bison
./src/bison: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped
c$ ./src/bison --version
bison (GNU Bison) 3.3.2
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2019 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.
c$

Great .. however trying to "gmake check" results in a bit of noise and
then a full nasty stop :

.
.
.
/bin/bash ./build-aux/ylwrap `test -f 'examples/c++/variant.yy' || echo './'`examples/c++/variant.yy y.tab.c examples/c++/variant.cc y.tab.h `echo examples/c++/variant.cc | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output examples/c++/variant.output -- ./tests/bison -o y.tab.c -d -v -Werror -Wall -Wno-yacc --report=all
updating examples/c++/variant.output
updating examples/c++/variant.hh
source='examples/c++/variant.cc' object='examples/c++/variant-variant.o' libtool=no \
DEPDIR=.deps depmode=dashXmstdout /bin/bash ./build-aux/depcomp \
/opt/developerstudio12.6/bin/CC -DEXEEXT=\"\" -I. -I/usr/local/include -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_TS_ERRNO -D_REENTRANT -m64 -xarch=sparc -dalign -erroff=%none -errtags=yes -ftrap=%none -g -xcode=pic32 -m64 -mc -xunroll=1 -xbuiltin=%none -xdepend=no -xnolibmopt -xlinkopt=0 -xnolibmil -xregs=no%appl -xs -c -o examples/c++/variant-variant.o `test -f 'examples/c++/variant.cc' || echo './'`examples/c++/variant.cc "/opt/developerstudio12.6/lib/compilers/include/CC/Cstd/vector.cc", line 127: Error: Cannot assign const yy::parser::stack_symbol_type to yy::parser::stack_symbol_type without "yy::parser::stack_symbol_type::operator=(const yy::parser::stack_symbol_type&)";. "/opt/developerstudio12.6/lib/compilers/include/CC/Cstd/vector", line 475: Where, temwhileinst: While instantiating "std::vector<yy::parser::stack_symbol_type>::__insert_aux(yy::parser::stack_symbol_type*, const yy::parser::stack_symbol_type&)". "/opt/developerstudio12.6/lib/compilers/include/CC/Cstd/vector", line 475: Where, teminstfrom: Instantiated from std::vector<yy::parser::stack_symbol_type>::push_back(const yy::parser::stack_symbol_type&). "examples/c++/variant.hh", line 1220: Where, teminstfrom: Instantiated from yy::parser::stack<yy::parser::stack_symbol_type, std::vector<yy::parser::stack_symbol_type>>::push(yy::parser::stack_symbol_type&). "examples/c++/variant.cc", line 384: Where, teminstend: Instantiated from non-template code.
1 Error(s) detected.
gmake[3]: *** [Makefile:4699: examples/c++/variant-variant.o] Error 2
gmake[3]: Leaving directory '/usr/local/build/bison-3.3.2_SunOS5.10_sparc64vii+.001'
gmake[2]: *** [Makefile:5825: check-am] Error 2
gmake[2]: Leaving directory '/usr/local/build/bison-3.3.2_SunOS5.10_sparc64vii+.001'
gmake[1]: *** [Makefile:5370: check-recursive] Error 1
gmake[1]: Leaving directory '/usr/local/build/bison-3.3.2_SunOS5.10_sparc64vii+.001'
gmake: *** [Makefile:5828: check] Error 2

That looks messy.

Any suggestions on getting the tests to run ?


--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional



reply via email to

[Prev in Thread] Current Thread [Next in Thread]