LEX examples/c/reccalc/scan.stamp
LEX examples/c/reccalc/scan.stamp
make check-recursive
Making check in po
Making check in runtime-po
Making check in gnulib-po
Making check in .
make examples/c/calc/calc examples/c/lexcalc/lexcalc examples/c/mfcalc/mfcalc examples/c/reccalc/reccalc examples/c/rpcalc/rpcalc examples/c++/variant examples/c++/variant-11 ./tests/bison tests/atconfig tests/atlocal
YACC examples/c/calc/calc.c
scriptversion=2018-03-07.03; # UTC
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
#
# Written by Tom Tromey
.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# This file is maintained in Automake, please report
# bugs to or send patches to
# .
+ scriptversion=2018-03-07.03
get_dirname ()
{
case $1 in
*/*|*\\*) printf '%s\n' "$1" | sed -e 's|\([\\/]\)[^\\/]*$|\1|';;
# Otherwise, we want the empty string (not ".").
esac
}
# guard FILE
# ----------
# The CPP macro used to guard inclusion of FILE.
guard ()
{
printf '%s\n' "$1" \
| sed \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
-e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' \
-e 's/__*/_/g'
}
# quote_for_sed [STRING]
# ----------------------
# Return STRING (or stdin) quoted to be used as a sed pattern.
quote_for_sed ()
{
case $# in
0) cat;;
1) printf '%s\n' "$1";;
esac \
| sed -e 's|[][\\.*]|\\&|g'
}
case "$1" in
'')
echo "$0: No files given. Try '$0 --help' for more information." 1>&2
exit 1
;;
--basedir)
basedir=$2
shift 2
;;
-h|--h*)
cat <<\EOF
Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
Wrapper for lex/yacc invocations, renaming files as desired.
INPUT is the input file
OUTPUT is one file PROG generates
DESIRED is the file we actually want instead of OUTPUT
PROGRAM is program to run
ARGS are passed to PROG
Any number of OUTPUT,DESIRED pairs may be used.
Report bugs to .
EOF
exit $?
;;
-v|--v*)
echo "ylwrap $scriptversion"
exit $?
;;
esac
# The input.
input=$1
+ input=../examples/c/calc/calc.y
shift
+ shift
# We'll later need for a correct munging of "#line" directives.
input_sub_rx=`get_dirname "$input" | quote_for_sed`
get_dirname "$input" | quote_for_sed+ get_dirname ../examples/c/calc/calc.y
+ sed -e 's|\([\\/]\)[^\\/]*$|\1|'
+ quote_for_sed
+ sed -e 's|[][\\.*]|\\&|g'
+ printf '%s\n' ../examples/c/calc/calc.y
+ cat
+ input_sub_rx='\.\./examples/c/calc/'
case $input in
[\\/]* | ?:[\\/]*)
# Absolute path; do nothing.
;;
*)
# Relative path. Make it absolute.
input=`pwd`/$input
;;
esac
pwd+ pwd
+ input=/export/home/bruno/bison-3.3.90/build-64/../examples/c/calc/calc.y
input_rx=`get_dirname "$input" | quote_for_sed`
get_dirname "$input" | quote_for_sed+ get_dirname /export/home/bruno/bison-3.3.90/build-64/../examples/c/calc/calc.y
+ sed -e 's|\([\\/]\)[^\\/]*$|\1|'
+ quote_for_sed
+ sed -e 's|[][\\.*]|\\&|g'
+ printf '%s\n' /export/home/bruno/bison-3.3.90/build-64/../examples/c/calc/calc.y
+ cat
+ input_rx='/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/calc/'
# Since DOS filename conventions don't allow two dots,
# the DOS version of Bison writes out y_tab.c instead of y.tab.c
# and y_tab.h instead of y.tab.h. Test to see if this is the case.
y_tab_nodot=false
+ y_tab_nodot=false
if test -f y_tab.c || test -f y_tab.h; then
y_tab_nodot=true
fi
+ test -f y_tab.c
+ test -f y_tab.h
# The parser itself, the first file, is the destination of the .y.c
# rule in the Makefile.
parser=$1
+ parser=y.tab.c
# A sed program to s/FROM/TO/g for all the FROM/TO so that, for
# instance, we rename #include "y.tab.h" into #include "parse.h"
# during the conversion from y.tab.c to parse.c.
sed_fix_filenames=
+ sed_fix_filenames=''
# Also rename header guards, as Bison 2.7 for instance uses its header
# guard in its implementation file.
sed_fix_header_guards=
+ sed_fix_header_guards=''
while test $# -ne 0; do
if test x"$1" = x"--"; then
shift
break
fi
from=$1
# Handle y_tab.c and y_tab.h output by DOS
if $y_tab_nodot; then
case $from in
"y.tab.c") from=y_tab.c;;
"y.tab.h") from=y_tab.h;;
esac
fi
shift
to=$1
shift
sed_fix_filenames="${sed_fix_filenames}s|"`quote_for_sed "$from"`"|$to|g;"
sed_fix_header_guards="${sed_fix_header_guards}s|"`guard "$from"`"|"`guard "$to"`"|g;"
done
+ test 15 -ne 0
+ test xy.tab.c '=' x--
+ from=y.tab.c
+ false
+ shift
+ to=examples/c/calc/calc.c
+ shift
quote_for_sed "$from"+ quote_for_sed y.tab.c
+ sed -e 's|[][\\.*]|\\&|g'
+ printf '%s\n' y.tab.c
+ sed_fix_filenames='s|y\.tab\.c|examples/c/calc/calc.c|g;'
guard "$from"+ guard y.tab.c
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ printf '%s\n' y.tab.c
guard "$to"+ guard examples/c/calc/calc.c
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ printf '%s\n' examples/c/calc/calc.c
+ sed_fix_header_guards='s|Y_TAB_C|EXAMPLES_C_CALC_CALC_C|g;'
+ test 13 -ne 0
+ test xy.tab.h '=' x--
+ from=y.tab.h
+ false
+ shift
+ to=examples/c/calc/calc.h
+ shift
quote_for_sed "$from"+ quote_for_sed y.tab.h
+ sed -e 's|[][\\.*]|\\&|g'
+ printf '%s\n' y.tab.h
+ sed_fix_filenames='s|y\.tab\.c|examples/c/calc/calc.c|g;s|y\.tab\.h|examples/c/calc/calc.h|g;'
guard "$from"+ guard y.tab.h
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ printf '%s\n' y.tab.h
guard "$to"+ guard examples/c/calc/calc.h
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ printf '%s\n' examples/c/calc/calc.h
+ sed_fix_header_guards='s|Y_TAB_C|EXAMPLES_C_CALC_CALC_C|g;s|Y_TAB_H|EXAMPLES_C_CALC_CALC_H|g;'
+ test 11 -ne 0
+ test xy.output '=' x--
+ from=y.output
+ false
+ shift
+ to=examples/c/calc/calc.output
+ shift
quote_for_sed "$from"+ quote_for_sed y.output
+ sed -e 's|[][\\.*]|\\&|g'
+ printf '%s\n' y.output
+ sed_fix_filenames='s|y\.tab\.c|examples/c/calc/calc.c|g;s|y\.tab\.h|examples/c/calc/calc.h|g;s|y\.output|examples/c/calc/calc.output|g;'
guard "$from"+ guard y.output
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ printf '%s\n' y.output
guard "$to"+ guard examples/c/calc/calc.output
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ printf '%s\n' examples/c/calc/calc.output
+ sed_fix_header_guards='s|Y_TAB_C|EXAMPLES_C_CALC_CALC_C|g;s|Y_TAB_H|EXAMPLES_C_CALC_CALC_H|g;s|Y_OUTPUT|EXAMPLES_C_CALC_CALC_OUTPUT|g;'
+ test 9 -ne 0
+ test x-- '=' x--
+ shift
+ break
# The program to run.
prog=$1
+ prog=./tests/bison
shift
+ shift
# Make any relative path in $prog absolute.
case $prog in
[\\/]* | ?:[\\/]*) ;;
*[\\/]*) prog=`pwd`/$prog ;;
esac
pwd+ pwd
+ prog=/export/home/bruno/bison-3.3.90/build-64/./tests/bison
dirname=ylwrap$$
+ dirname=ylwrap28640
do_exit="cd '`pwd`' && rm -rf $dirname > /dev/null 2>&1;"' (exit $ret); exit $ret'
pwd+ pwd
+ do_exit=$'cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf ylwrap28640 > /dev/null 2>&1; (exit $ret); exit $ret'
trap "ret=129; $do_exit" 1
+ trap ret=$'129; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf ylwrap28640 > /dev/null 2>&1; (exit $ret); exit $ret' 1
trap "ret=130; $do_exit" 2
+ trap ret=$'130; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf ylwrap28640 > /dev/null 2>&1; (exit $ret); exit $ret' 2
trap "ret=141; $do_exit" 13
+ trap ret=$'141; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf ylwrap28640 > /dev/null 2>&1; (exit $ret); exit $ret' 13
trap "ret=143; $do_exit" 15
+ trap ret=$'143; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf ylwrap28640 > /dev/null 2>&1; (exit $ret); exit $ret' 15
mkdir $dirname || exit 1
+ mkdir ylwrap28640
cd $dirname
+ cd ylwrap28640
case $# in
0) "$prog" "$input" ;;
*) "$prog" "$@" "$input" ;;
esac
+ /export/home/bruno/bison-3.3.90/build-64/./tests/bison -o y.tab.c --defines -Werror -Wall '--report=all' --no-lines /export/home/bruno/bison-3.3.90/build-64/../examples/c/calc/calc.y
ret=$?
+ ret=0
if test $ret -eq 0; then
for from in *
do
to=`printf '%s\n' "$from" | sed "$sed_fix_filenames"`
if test -f "$from"; then
# If $2 is an absolute path name, then just use that,
# otherwise prepend '../'.
case $to in
[\\/]* | ?:[\\/]*) target=$to;;
*) target=../$to;;
esac
# Do not overwrite unchanged header files to avoid useless
# recompilations. Always update the parser itself: it is the
# destination of the .y.c rule in the Makefile. Divert the
# output of all other files to a temporary file so we can
# compare them to existing versions.
if test $from != $parser; then
realtarget=$target
target=tmp-`printf '%s\n' "$target" | sed 's|.*[\\/]||g'`
fi
# Munge "#line" or "#" directives. Don't let the resulting
# debug information point at an absolute srcdir. Use the real
# output file name, not yy.lex.c for instance. Adjust the
# include guards too.
sed -e "/^#/!b" \
-e "s|$input_rx|$input_sub_rx|" \
-e "$sed_fix_filenames" \
-e "$sed_fix_header_guards" \
"$from" >"$target" || ret=$?
# Check whether files must be updated.
if test "$from" != "$parser"; then
if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
echo "$to is unchanged"
rm -f "$target"
else
echo "updating $to"
mv -f "$target" "$realtarget"
fi
fi
else
# A missing file is only an error for the parser. This is a
# blatant hack to let us support using "yacc -d". If -d is not
# specified, don't fail when the header file is "missing".
if test "$from" = "$parser"; then
ret=1
fi
fi
done
fi
+ test 0 -eq 0
printf '%s\n' "$from" | sed "$sed_fix_filenames"+ printf '%s\n' y.output
+ sed 's|y\.tab\.c|examples/c/calc/calc.c|g;s|y\.tab\.h|examples/c/calc/calc.h|g;s|y\.output|examples/c/calc/calc.output|g;'
+ to=examples/c/calc/calc.output
+ test -f y.output
+ target=../examples/c/calc/calc.output
+ test y.output '!=' y.tab.c
+ realtarget=../examples/c/calc/calc.output
printf '%s\n' "$target" | sed 's|.*[\/]||g'+ printf '%s\n' ../examples/c/calc/calc.output
+ sed 's|.*[\/]||g'
+ target=tmp-calc.output
+ sed -e /^#/!b -e 's|/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/calc/|\.\./examples/c/calc/|' -e 's|y\.tab\.c|examples/c/calc/calc.c|g;s|y\.tab\.h|examples/c/calc/calc.h|g;s|y\.output|examples/c/calc/calc.output|g;' -e 's|Y_TAB_C|EXAMPLES_C_CALC_CALC_C|g;s|Y_TAB_H|EXAMPLES_C_CALC_CALC_H|g;s|Y_OUTPUT|EXAMPLES_C_CALC_CALC_OUTPUT|g;' y.output
+ 1> tmp-calc.output
+ test y.output '!=' y.tab.c
+ test -f ../examples/c/calc/calc.output
+ echo 'updating examples/c/calc/calc.output'
updating examples/c/calc/calc.output
+ mv -f tmp-calc.output ../examples/c/calc/calc.output
printf '%s\n' "$from" | sed "$sed_fix_filenames"+ printf '%s\n' y.tab.c
+ sed 's|y\.tab\.c|examples/c/calc/calc.c|g;s|y\.tab\.h|examples/c/calc/calc.h|g;s|y\.output|examples/c/calc/calc.output|g;'
+ to=examples/c/calc/calc.c
+ test -f y.tab.c
+ target=../examples/c/calc/calc.c
+ test y.tab.c '!=' y.tab.c
+ sed -e /^#/!b -e 's|/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/calc/|\.\./examples/c/calc/|' -e 's|y\.tab\.c|examples/c/calc/calc.c|g;s|y\.tab\.h|examples/c/calc/calc.h|g;s|y\.output|examples/c/calc/calc.output|g;' -e 's|Y_TAB_C|EXAMPLES_C_CALC_CALC_C|g;s|Y_TAB_H|EXAMPLES_C_CALC_CALC_H|g;s|Y_OUTPUT|EXAMPLES_C_CALC_CALC_OUTPUT|g;' y.tab.c
+ 1> ../examples/c/calc/calc.c
+ test y.tab.c '!=' y.tab.c
printf '%s\n' "$from" | sed "$sed_fix_filenames"+ printf '%s\n' y.tab.h
+ sed 's|y\.tab\.c|examples/c/calc/calc.c|g;s|y\.tab\.h|examples/c/calc/calc.h|g;s|y\.output|examples/c/calc/calc.output|g;'
+ to=examples/c/calc/calc.h
+ test -f y.tab.h
+ target=../examples/c/calc/calc.h
+ test y.tab.h '!=' y.tab.c
+ realtarget=../examples/c/calc/calc.h
printf '%s\n' "$target" | sed 's|.*[\/]||g'+ printf '%s\n' ../examples/c/calc/calc.h
+ sed 's|.*[\/]||g'
+ target=tmp-calc.h
+ sed -e /^#/!b -e 's|/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/calc/|\.\./examples/c/calc/|' -e 's|y\.tab\.c|examples/c/calc/calc.c|g;s|y\.tab\.h|examples/c/calc/calc.h|g;s|y\.output|examples/c/calc/calc.output|g;' -e 's|Y_TAB_C|EXAMPLES_C_CALC_CALC_C|g;s|Y_TAB_H|EXAMPLES_C_CALC_CALC_H|g;s|Y_OUTPUT|EXAMPLES_C_CALC_CALC_OUTPUT|g;' y.tab.h
+ 1> tmp-calc.h
+ test y.tab.h '!=' y.tab.c
+ test -f ../examples/c/calc/calc.h
+ echo 'updating examples/c/calc/calc.h'
updating examples/c/calc/calc.h
+ mv -f tmp-calc.h ../examples/c/calc/calc.h
# Remove the directory.
cd ..
+ cd ..
rm -rf $dirname
+ rm -rf ylwrap28640
exit $ret
+ exit 0
CC examples/c/calc/calc-calc.o
CCLD examples/c/calc/calc
YACC examples/c/lexcalc/parse.c
scriptversion=2018-03-07.03; # UTC
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
#
# Written by Tom Tromey .
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# This file is maintained in Automake, please report
# bugs to or send patches to
# .
+ scriptversion=2018-03-07.03
get_dirname ()
{
case $1 in
*/*|*\\*) printf '%s\n' "$1" | sed -e 's|\([\\/]\)[^\\/]*$|\1|';;
# Otherwise, we want the empty string (not ".").
esac
}
# guard FILE
# ----------
# The CPP macro used to guard inclusion of FILE.
guard ()
{
printf '%s\n' "$1" \
| sed \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
-e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' \
-e 's/__*/_/g'
}
# quote_for_sed [STRING]
# ----------------------
# Return STRING (or stdin) quoted to be used as a sed pattern.
quote_for_sed ()
{
case $# in
0) cat;;
1) printf '%s\n' "$1";;
esac \
| sed -e 's|[][\\.*]|\\&|g'
}
case "$1" in
'')
echo "$0: No files given. Try '$0 --help' for more information." 1>&2
exit 1
;;
--basedir)
basedir=$2
shift 2
;;
-h|--h*)
cat <<\EOF
Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
Wrapper for lex/yacc invocations, renaming files as desired.
INPUT is the input file
OUTPUT is one file PROG generates
DESIRED is the file we actually want instead of OUTPUT
PROGRAM is program to run
ARGS are passed to PROG
Any number of OUTPUT,DESIRED pairs may be used.
Report bugs to .
EOF
exit $?
;;
-v|--v*)
echo "ylwrap $scriptversion"
exit $?
;;
esac
# The input.
input=$1
+ input=../examples/c/lexcalc/parse.y
shift
+ shift
# We'll later need for a correct munging of "#line" directives.
input_sub_rx=`get_dirname "$input" | quote_for_sed`
get_dirname "$input" | quote_for_sed+ get_dirname ../examples/c/lexcalc/parse.y
+ quote_for_sed
+ printf '%s\n' ../examples/c/lexcalc/parse.y
+ sed -e 's|\([\\/]\)[^\\/]*$|\1|'
+ cat
+ sed -e 's|[][\\.*]|\\&|g'
+ input_sub_rx='\.\./examples/c/lexcalc/'
case $input in
[\\/]* | ?:[\\/]*)
# Absolute path; do nothing.
;;
*)
# Relative path. Make it absolute.
input=`pwd`/$input
;;
esac
pwd+ pwd
+ input=/export/home/bruno/bison-3.3.90/build-64/../examples/c/lexcalc/parse.y
input_rx=`get_dirname "$input" | quote_for_sed`
get_dirname "$input" | quote_for_sed+ get_dirname /export/home/bruno/bison-3.3.90/build-64/../examples/c/lexcalc/parse.y
+ sed -e 's|\([\\/]\)[^\\/]*$|\1|'
+ quote_for_sed
+ printf '%s\n' /export/home/bruno/bison-3.3.90/build-64/../examples/c/lexcalc/parse.y
+ cat
+ sed -e 's|[][\\.*]|\\&|g'
+ input_rx='/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/lexcalc/'
# Since DOS filename conventions don't allow two dots,
# the DOS version of Bison writes out y_tab.c instead of y.tab.c
# and y_tab.h instead of y.tab.h. Test to see if this is the case.
y_tab_nodot=false
+ y_tab_nodot=false
if test -f y_tab.c || test -f y_tab.h; then
y_tab_nodot=true
fi
+ test -f y_tab.c
+ test -f y_tab.h
# The parser itself, the first file, is the destination of the .y.c
# rule in the Makefile.
parser=$1
+ parser=y.tab.c
# A sed program to s/FROM/TO/g for all the FROM/TO so that, for
# instance, we rename #include "y.tab.h" into #include "parse.h"
# during the conversion from y.tab.c to parse.c.
sed_fix_filenames=
+ sed_fix_filenames=''
# Also rename header guards, as Bison 2.7 for instance uses its header
# guard in its implementation file.
sed_fix_header_guards=
+ sed_fix_header_guards=''
while test $# -ne 0; do
if test x"$1" = x"--"; then
shift
break
fi
from=$1
# Handle y_tab.c and y_tab.h output by DOS
if $y_tab_nodot; then
case $from in
"y.tab.c") from=y_tab.c;;
"y.tab.h") from=y_tab.h;;
esac
fi
shift
to=$1
shift
sed_fix_filenames="${sed_fix_filenames}s|"`quote_for_sed "$from"`"|$to|g;"
sed_fix_header_guards="${sed_fix_header_guards}s|"`guard "$from"`"|"`guard "$to"`"|g;"
done
+ test 15 -ne 0
+ test xy.tab.c '=' x--
+ from=y.tab.c
+ false
+ shift
+ to=examples/c/lexcalc/parse.c
+ shift
quote_for_sed "$from"+ quote_for_sed y.tab.c
+ sed -e 's|[][\\.*]|\\&|g'
+ printf '%s\n' y.tab.c
+ sed_fix_filenames='s|y\.tab\.c|examples/c/lexcalc/parse.c|g;'
guard "$from"+ guard y.tab.c
+ printf '%s\n' y.tab.c
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
guard "$to"+ guard examples/c/lexcalc/parse.c
+ printf '%s\n' examples/c/lexcalc/parse.c
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ sed_fix_header_guards='s|Y_TAB_C|EXAMPLES_C_LEXCALC_PARSE_C|g;'
+ test 13 -ne 0
+ test xy.tab.h '=' x--
+ from=y.tab.h
+ false
+ shift
+ to=examples/c/lexcalc/parse.h
+ shift
quote_for_sed "$from"+ quote_for_sed y.tab.h
+ printf '%s\n' y.tab.h
+ sed -e 's|[][\\.*]|\\&|g'
+ sed_fix_filenames='s|y\.tab\.c|examples/c/lexcalc/parse.c|g;s|y\.tab\.h|examples/c/lexcalc/parse.h|g;'
guard "$from"+ guard y.tab.h
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ printf '%s\n' y.tab.h
guard "$to"+ guard examples/c/lexcalc/parse.h
+ printf '%s\n' examples/c/lexcalc/parse.h
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ sed_fix_header_guards='s|Y_TAB_C|EXAMPLES_C_LEXCALC_PARSE_C|g;s|Y_TAB_H|EXAMPLES_C_LEXCALC_PARSE_H|g;'
+ test 11 -ne 0
+ test xy.output '=' x--
+ from=y.output
+ false
+ shift
+ to=examples/c/lexcalc/parse.output
+ shift
quote_for_sed "$from"+ quote_for_sed y.output
+ printf '%s\n' y.output
+ sed -e 's|[][\\.*]|\\&|g'
+ sed_fix_filenames='s|y\.tab\.c|examples/c/lexcalc/parse.c|g;s|y\.tab\.h|examples/c/lexcalc/parse.h|g;s|y\.output|examples/c/lexcalc/parse.output|g;'
guard "$from"+ guard y.output
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ printf '%s\n' y.output
guard "$to"+ guard examples/c/lexcalc/parse.output
+ printf '%s\n' examples/c/lexcalc/parse.output
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ sed_fix_header_guards='s|Y_TAB_C|EXAMPLES_C_LEXCALC_PARSE_C|g;s|Y_TAB_H|EXAMPLES_C_LEXCALC_PARSE_H|g;s|Y_OUTPUT|EXAMPLES_C_LEXCALC_PARSE_OUTPUT|g;'
+ test 9 -ne 0
+ test x-- '=' x--
+ shift
+ break
# The program to run.
prog=$1
+ prog=./tests/bison
shift
+ shift
# Make any relative path in $prog absolute.
case $prog in
[\\/]* | ?:[\\/]*) ;;
*[\\/]*) prog=`pwd`/$prog ;;
esac
pwd+ pwd
+ prog=/export/home/bruno/bison-3.3.90/build-64/./tests/bison
dirname=ylwrap$$
+ dirname=ylwrap28705
do_exit="cd '`pwd`' && rm -rf $dirname > /dev/null 2>&1;"' (exit $ret); exit $ret'
pwd+ pwd
+ do_exit=$'cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf ylwrap28705 > /dev/null 2>&1; (exit $ret); exit $ret'
trap "ret=129; $do_exit" 1
+ trap ret=$'129; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf ylwrap28705 > /dev/null 2>&1; (exit $ret); exit $ret' 1
trap "ret=130; $do_exit" 2
+ trap ret=$'130; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf ylwrap28705 > /dev/null 2>&1; (exit $ret); exit $ret' 2
trap "ret=141; $do_exit" 13
+ trap ret=$'141; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf ylwrap28705 > /dev/null 2>&1; (exit $ret); exit $ret' 13
trap "ret=143; $do_exit" 15
+ trap ret=$'143; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf ylwrap28705 > /dev/null 2>&1; (exit $ret); exit $ret' 15
mkdir $dirname || exit 1
+ mkdir ylwrap28705
cd $dirname
+ cd ylwrap28705
case $# in
0) "$prog" "$input" ;;
*) "$prog" "$@" "$input" ;;
esac
+ /export/home/bruno/bison-3.3.90/build-64/./tests/bison -o y.tab.c --defines -Werror -Wall '--report=all' --no-lines /export/home/bruno/bison-3.3.90/build-64/../examples/c/lexcalc/parse.y
ret=$?
+ ret=0
if test $ret -eq 0; then
for from in *
do
to=`printf '%s\n' "$from" | sed "$sed_fix_filenames"`
if test -f "$from"; then
# If $2 is an absolute path name, then just use that,
# otherwise prepend '../'.
case $to in
[\\/]* | ?:[\\/]*) target=$to;;
*) target=../$to;;
esac
# Do not overwrite unchanged header files to avoid useless
# recompilations. Always update the parser itself: it is the
# destination of the .y.c rule in the Makefile. Divert the
# output of all other files to a temporary file so we can
# compare them to existing versions.
if test $from != $parser; then
realtarget=$target
target=tmp-`printf '%s\n' "$target" | sed 's|.*[\\/]||g'`
fi
# Munge "#line" or "#" directives. Don't let the resulting
# debug information point at an absolute srcdir. Use the real
# output file name, not yy.lex.c for instance. Adjust the
# include guards too.
sed -e "/^#/!b" \
-e "s|$input_rx|$input_sub_rx|" \
-e "$sed_fix_filenames" \
-e "$sed_fix_header_guards" \
"$from" >"$target" || ret=$?
# Check whether files must be updated.
if test "$from" != "$parser"; then
if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
echo "$to is unchanged"
rm -f "$target"
else
echo "updating $to"
mv -f "$target" "$realtarget"
fi
fi
else
# A missing file is only an error for the parser. This is a
# blatant hack to let us support using "yacc -d". If -d is not
# specified, don't fail when the header file is "missing".
if test "$from" = "$parser"; then
ret=1
fi
fi
done
fi
+ test 0 -eq 0
printf '%s\n' "$from" | sed "$sed_fix_filenames"+ printf '%s\n' y.output
+ sed 's|y\.tab\.c|examples/c/lexcalc/parse.c|g;s|y\.tab\.h|examples/c/lexcalc/parse.h|g;s|y\.output|examples/c/lexcalc/parse.output|g;'
+ to=examples/c/lexcalc/parse.output
+ test -f y.output
+ target=../examples/c/lexcalc/parse.output
+ test y.output '!=' y.tab.c
+ realtarget=../examples/c/lexcalc/parse.output
printf '%s\n' "$target" | sed 's|.*[\/]||g'+ printf '%s\n' ../examples/c/lexcalc/parse.output
+ sed 's|.*[\/]||g'
+ target=tmp-parse.output
+ sed -e /^#/!b -e 's|/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/lexcalc/|\.\./examples/c/lexcalc/|' -e 's|y\.tab\.c|examples/c/lexcalc/parse.c|g;s|y\.tab\.h|examples/c/lexcalc/parse.h|g;s|y\.output|examples/c/lexcalc/parse.output|g;' -e 's|Y_TAB_C|EXAMPLES_C_LEXCALC_PARSE_C|g;s|Y_TAB_H|EXAMPLES_C_LEXCALC_PARSE_H|g;s|Y_OUTPUT|EXAMPLES_C_LEXCALC_PARSE_OUTPUT|g;' y.output
+ 1> tmp-parse.output
+ test y.output '!=' y.tab.c
+ test -f ../examples/c/lexcalc/parse.output
+ echo 'updating examples/c/lexcalc/parse.output'
updating examples/c/lexcalc/parse.output
+ mv -f tmp-parse.output ../examples/c/lexcalc/parse.output
printf '%s\n' "$from" | sed "$sed_fix_filenames"+ printf '%s\n' y.tab.c
+ sed 's|y\.tab\.c|examples/c/lexcalc/parse.c|g;s|y\.tab\.h|examples/c/lexcalc/parse.h|g;s|y\.output|examples/c/lexcalc/parse.output|g;'
+ to=examples/c/lexcalc/parse.c
+ test -f y.tab.c
+ target=../examples/c/lexcalc/parse.c
+ test y.tab.c '!=' y.tab.c
+ sed -e /^#/!b -e 's|/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/lexcalc/|\.\./examples/c/lexcalc/|' -e 's|y\.tab\.c|examples/c/lexcalc/parse.c|g;s|y\.tab\.h|examples/c/lexcalc/parse.h|g;s|y\.output|examples/c/lexcalc/parse.output|g;' -e 's|Y_TAB_C|EXAMPLES_C_LEXCALC_PARSE_C|g;s|Y_TAB_H|EXAMPLES_C_LEXCALC_PARSE_H|g;s|Y_OUTPUT|EXAMPLES_C_LEXCALC_PARSE_OUTPUT|g;' y.tab.c
+ 1> ../examples/c/lexcalc/parse.c
+ test y.tab.c '!=' y.tab.c
printf '%s\n' "$from" | sed "$sed_fix_filenames"+ printf '%s\n' y.tab.h
+ sed 's|y\.tab\.c|examples/c/lexcalc/parse.c|g;s|y\.tab\.h|examples/c/lexcalc/parse.h|g;s|y\.output|examples/c/lexcalc/parse.output|g;'
+ to=examples/c/lexcalc/parse.h
+ test -f y.tab.h
+ target=../examples/c/lexcalc/parse.h
+ test y.tab.h '!=' y.tab.c
+ realtarget=../examples/c/lexcalc/parse.h
printf '%s\n' "$target" | sed 's|.*[\/]||g'+ printf '%s\n' ../examples/c/lexcalc/parse.h
+ sed 's|.*[\/]||g'
+ target=tmp-parse.h
+ sed -e /^#/!b -e 's|/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/lexcalc/|\.\./examples/c/lexcalc/|' -e 's|y\.tab\.c|examples/c/lexcalc/parse.c|g;s|y\.tab\.h|examples/c/lexcalc/parse.h|g;s|y\.output|examples/c/lexcalc/parse.output|g;' -e 's|Y_TAB_C|EXAMPLES_C_LEXCALC_PARSE_C|g;s|Y_TAB_H|EXAMPLES_C_LEXCALC_PARSE_H|g;s|Y_OUTPUT|EXAMPLES_C_LEXCALC_PARSE_OUTPUT|g;' y.tab.h
+ 1> tmp-parse.h
+ test y.tab.h '!=' y.tab.c
+ test -f ../examples/c/lexcalc/parse.h
+ echo 'updating examples/c/lexcalc/parse.h'
updating examples/c/lexcalc/parse.h
+ mv -f tmp-parse.h ../examples/c/lexcalc/parse.h
# Remove the directory.
cd ..
+ cd ..
rm -rf $dirname
+ rm -rf ylwrap28705
exit $ret
+ exit 0
CC examples/c/lexcalc/lexcalc-parse.o
LEX examples/c/lexcalc/scan.c
scriptversion=2018-03-07.03; # UTC
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
#
# Written by Tom Tromey .
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# This file is maintained in Automake, please report
# bugs to or send patches to
# .
+ scriptversion=2018-03-07.03
get_dirname ()
{
case $1 in
*/*|*\\*) printf '%s\n' "$1" | sed -e 's|\([\\/]\)[^\\/]*$|\1|';;
# Otherwise, we want the empty string (not ".").
esac
}
# guard FILE
# ----------
# The CPP macro used to guard inclusion of FILE.
guard ()
{
printf '%s\n' "$1" \
| sed \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
-e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' \
-e 's/__*/_/g'
}
# quote_for_sed [STRING]
# ----------------------
# Return STRING (or stdin) quoted to be used as a sed pattern.
quote_for_sed ()
{
case $# in
0) cat;;
1) printf '%s\n' "$1";;
esac \
| sed -e 's|[][\\.*]|\\&|g'
}
case "$1" in
'')
echo "$0: No files given. Try '$0 --help' for more information." 1>&2
exit 1
;;
--basedir)
basedir=$2
shift 2
;;
-h|--h*)
cat <<\EOF
Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
Wrapper for lex/yacc invocations, renaming files as desired.
INPUT is the input file
OUTPUT is one file PROG generates
DESIRED is the file we actually want instead of OUTPUT
PROGRAM is program to run
ARGS are passed to PROG
Any number of OUTPUT,DESIRED pairs may be used.
Report bugs to .
EOF
exit $?
;;
-v|--v*)
echo "ylwrap $scriptversion"
exit $?
;;
esac
# The input.
input=$1
+ input=../examples/c/lexcalc/scan.l
shift
+ shift
# We'll later need for a correct munging of "#line" directives.
input_sub_rx=`get_dirname "$input" | quote_for_sed`
get_dirname "$input" | quote_for_sed+ get_dirname ../examples/c/lexcalc/scan.l
+ printf '%s\n' ../examples/c/lexcalc/scan.l
+ sed -e 's|\([\\/]\)[^\\/]*$|\1|'
+ quote_for_sed
+ cat
+ sed -e 's|[][\\.*]|\\&|g'
+ input_sub_rx='\.\./examples/c/lexcalc/'
case $input in
[\\/]* | ?:[\\/]*)
# Absolute path; do nothing.
;;
*)
# Relative path. Make it absolute.
input=`pwd`/$input
;;
esac
pwd+ pwd
+ input=/export/home/bruno/bison-3.3.90/build-64/../examples/c/lexcalc/scan.l
input_rx=`get_dirname "$input" | quote_for_sed`
get_dirname "$input" | quote_for_sed+ get_dirname /export/home/bruno/bison-3.3.90/build-64/../examples/c/lexcalc/scan.l
+ printf '%s\n' /export/home/bruno/bison-3.3.90/build-64/../examples/c/lexcalc/scan.l
+ quote_for_sed
+ sed -e 's|[][\\.*]|\\&|g'
+ sed -e 's|\([\\/]\)[^\\/]*$|\1|'
+ cat
+ input_rx='/export/home/bruno/bison-3\.3\.90/build-64/\.\./examples/c/lexcalc/'
# Since DOS filename conventions don't allow two dots,
# the DOS version of Bison writes out y_tab.c instead of y.tab.c
# and y_tab.h instead of y.tab.h. Test to see if this is the case.
y_tab_nodot=false
+ y_tab_nodot=false
if test -f y_tab.c || test -f y_tab.h; then
y_tab_nodot=true
fi
+ test -f y_tab.c
+ test -f y_tab.h
# The parser itself, the first file, is the destination of the .y.c
# rule in the Makefile.
parser=$1
+ parser=lex.yy.c
# A sed program to s/FROM/TO/g for all the FROM/TO so that, for
# instance, we rename #include "y.tab.h" into #include "parse.h"
# during the conversion from y.tab.c to parse.c.
sed_fix_filenames=
+ sed_fix_filenames=''
# Also rename header guards, as Bison 2.7 for instance uses its header
# guard in its implementation file.
sed_fix_header_guards=
+ sed_fix_header_guards=''
while test $# -ne 0; do
if test x"$1" = x"--"; then
shift
break
fi
from=$1
# Handle y_tab.c and y_tab.h output by DOS
if $y_tab_nodot; then
case $from in
"y.tab.c") from=y_tab.c;;
"y.tab.h") from=y_tab.h;;
esac
fi
shift
to=$1
shift
sed_fix_filenames="${sed_fix_filenames}s|"`quote_for_sed "$from"`"|$to|g;"
sed_fix_header_guards="${sed_fix_header_guards}s|"`guard "$from"`"|"`guard "$to"`"|g;"
done
+ test 4 -ne 0
+ test xlex.yy.c '=' x--
+ from=lex.yy.c
+ false
+ shift
+ to=examples/c/lexcalc/scan.c
+ shift
quote_for_sed "$from"+ quote_for_sed lex.yy.c
+ sed -e 's|[][\\.*]|\\&|g'
+ printf '%s\n' lex.yy.c
+ sed_fix_filenames='s|lex\.yy\.c|examples/c/lexcalc/scan.c|g;'
guard "$from"+ guard lex.yy.c
+ printf '%s\n' lex.yy.c
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
guard "$to"+ guard examples/c/lexcalc/scan.c
+ printf '%s\n' examples/c/lexcalc/scan.c
+ sed -e y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' -e 's/__*/_/g'
+ sed_fix_header_guards='s|LEX_YY_C|EXAMPLES_C_LEXCALC_SCAN_C|g;'
+ test 2 -ne 0
+ test x-- '=' x--
+ shift
+ break
# The program to run.
prog=$1
+ prog=:
shift
+ shift
# Make any relative path in $prog absolute.
case $prog in
[\\/]* | ?:[\\/]*) ;;
*[\\/]*) prog=`pwd`/$prog ;;
esac
dirname=ylwrap$$
+ dirname=ylwrap28762
do_exit="cd '`pwd`' && rm -rf $dirname > /dev/null 2>&1;"' (exit $ret); exit $ret'
pwd+ pwd
+ do_exit=$'cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf ylwrap28762 > /dev/null 2>&1; (exit $ret); exit $ret'
trap "ret=129; $do_exit" 1
+ trap ret=$'129; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf ylwrap28762 > /dev/null 2>&1; (exit $ret); exit $ret' 1
trap "ret=130; $do_exit" 2
+ trap ret=$'130; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf ylwrap28762 > /dev/null 2>&1; (exit $ret); exit $ret' 2
trap "ret=141; $do_exit" 13
+ trap ret=$'141; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf ylwrap28762 > /dev/null 2>&1; (exit $ret); exit $ret' 13
trap "ret=143; $do_exit" 15
+ trap ret=$'143; cd \'/export/home/bruno/bison-3.3.90/build-64\' && rm -rf ylwrap28762 > /dev/null 2>&1; (exit $ret); exit $ret' 15
mkdir $dirname || exit 1
+ mkdir ylwrap28762
cd $dirname
+ cd ylwrap28762
case $# in
0) "$prog" "$input" ;;
*) "$prog" "$@" "$input" ;;
esac
+ : /export/home/bruno/bison-3.3.90/build-64/../examples/c/lexcalc/scan.l
ret=$?
+ ret=0
if test $ret -eq 0; then
for from in *
do
to=`printf '%s\n' "$from" | sed "$sed_fix_filenames"`
if test -f "$from"; then
# If $2 is an absolute path name, then just use that,
# otherwise prepend '../'.
case $to in
[\\/]* | ?:[\\/]*) target=$to;;
*) target=../$to;;
esac
# Do not overwrite unchanged header files to avoid useless
# recompilations. Always update the parser itself: it is the
# destination of the .y.c rule in the Makefile. Divert the
# output of all other files to a temporary file so we can
# compare them to existing versions.
if test $from != $parser; then
realtarget=$target
target=tmp-`printf '%s\n' "$target" | sed 's|.*[\\/]||g'`
fi
# Munge "#line" or "#" directives. Don't let the resulting
# debug information point at an absolute srcdir. Use the real
# output file name, not yy.lex.c for instance. Adjust the
# include guards too.
sed -e "/^#/!b" \
-e "s|$input_rx|$input_sub_rx|" \
-e "$sed_fix_filenames" \
-e "$sed_fix_header_guards" \
"$from" >"$target" || ret=$?
# Check whether files must be updated.
if test "$from" != "$parser"; then
if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
echo "$to is unchanged"
rm -f "$target"
else
echo "updating $to"
mv -f "$target" "$realtarget"
fi
fi
else
# A missing file is only an error for the parser. This is a
# blatant hack to let us support using "yacc -d". If -d is not
# specified, don't fail when the header file is "missing".
if test "$from" = "$parser"; then
ret=1
fi
fi
done
fi
+ test 0 -eq 0
printf '%s\n' "$from" | sed "$sed_fix_filenames"+ printf '%s\n' '*'
+ sed 's|lex\.yy\.c|examples/c/lexcalc/scan.c|g;'
+ to='*'
+ test -f '*'
+ test '*' '=' lex.yy.c
# Remove the directory.
cd ..
+ cd ..
rm -rf $dirname
+ rm -rf ylwrap28762
exit $ret
+ exit 0
CC examples/c/lexcalc/lexcalc-scan.o
gcc: error: ../examples/c/lexcalc/scan.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
*** Error code 1
The following command caused the error:
echo " CC " examples/c/lexcalc/lexcalc-scan.o;gcc -m64 -O2 -std=gnu11 -DEXEEXT=\"\" -I../examples/c/lexcalc -I./examples/c/lexcalc -I/export/home/bruno/prefix64/include -Wall -D_REENTRANT -g -O2 -MT examples/c/lexcalc/lexcalc-scan.o -MD -MP -MF examples/c/lexcalc/.deps/lexcalc-scan.Tpo -c -o examples/c/lexcalc/lexcalc-scan.o `test -f 'examples/c/lexcalc/scan.c' || echo '../'`examples/c/lexcalc/scan.c
make: Fatal error: Command failed for target `examples/c/lexcalc/lexcalc-scan.o'
Current working directory /export/home/bruno/bison-3.3.90/build-64
*** Error code 1
make: Fatal error: Command failed for target `check-am'
Current working directory /export/home/bruno/bison-3.3.90/build-64
*** Error code 1
The following command caused the error:
fail=; \
if (target_option=k; case ${target_option-} in ?) ;; *) echo "am__make_running_with_option: internal error: invalid" "target option '${target_option-}' specified" >&2; exit 1;; esac; has_opt=no; sane_makeflags=$MAKEFLAGS; if { if test -z '1'; then false; elif test -n ''; then true; elif test -n '' && test -n ''; then true; else false; fi; }; then sane_makeflags=$MFLAGS; else case $MAKEFLAGS in *\\[\ \ ]*) bs=\\; sane_makeflags=`printf '%s\n' "$MAKEFLAGS" | sed "s/$bs$bs[$bs $bs ]*//g"`;; esac; fi; skip_next=no; strip_trailopt () { flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`; }; for flg in $sane_makeflags; do test $skip_next = yes && { skip_next=no; continue; }; case $flg in *=*|--*) continue;; -*I) strip_trailopt 'I'; skip_next=yes;; -*I?*) strip_trailopt 'I';; -*O) strip_trailopt 'O'; skip_next=yes;; -*O?*) strip_trailopt 'O';; -*l) strip_trailopt 'l'; skip_next=yes;; -*l?*) strip_trailopt 'l';; -[dEDm]) skip_next=yes;; -[JT]) skip_next=yes;; esac; case $flg in *$target_option*) has_opt=yes; break;; esac; done; test $has_opt = yes); then \
failcom='fail=yes'; \
else \
failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo check-recursive | sed s/-recursive//`; \
case "check-recursive" in \
distclean-* | maintainer-clean-*) list='po runtime-po gnulib-po .' ;; \
*) list='po runtime-po gnulib-po .' ;; \
esac; \
for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make $local_target) \
|| eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `check-recursive'
Current working directory /export/home/bruno/bison-3.3.90/build-64
*** Error code 1
make: Fatal error: Command failed for target `check'