ranlib libfe.a make[5]: Leaving directory `/home/L4/tudos/dice/src/fe' Making all in parser make[5]: Entering directory `/home/L4/tudos/dice/src/parser' Making all in idl make[6]: Entering directory `/home/L4/tudos/dice/src/parser/idl' bison --report=all -d idl-parser.yy idl-parser.yy:2.1-8: invalid directive: `%require' idl-parser.yy:2.10-15: syntax error, unexpected string make[6]: *** [idl-parser.tab.cc] Error 1 make[6]: Leaving directory `/home/L4/tudos/dice/src/parser/idl' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/home/L4/tudos/dice/src/parser' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/L4/tudos/dice/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/L4/tudos/dice' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/L4/tudos/dice' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/L4/tudos/dice' make: *** [../dice] Error 2 make: Leaving directory `/home/L4/tudos/l4' OS: Ubuntu6.06 bison (GNU Bison) 2.1 This l4 is downloaded on 2007-08-27. Thanks. Cheng Guanghui
chenggh wrote on 08/29/2007 01:33 PM this:
ranlib libfe.a make[5]: Leaving directory `/home/L4/tudos/dice/src/fe' Making all in parser make[5]: Entering directory `/home/L4/tudos/dice/src/parser' Making all in idl make[6]: Entering directory `/home/L4/tudos/dice/src/parser/idl' bison --report=all -d idl-parser.yy idl-parser.yy:2.1-8: invalid directive: `%require' idl-parser.yy:2.10-15: syntax error, unexpected string make[6]: *** [idl-parser.tab.cc] Error 1 make[6]: Leaving directory `/home/L4/tudos/dice/src/parser/idl' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/home/L4/tudos/dice/src/parser' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/L4/tudos/dice/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/L4/tudos/dice' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/L4/tudos/dice' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/L4/tudos/dice' make: *** [../dice] Error 2 make: Leaving directory `/home/L4/tudos/l4' Thank you for your bug report. The installed version of bison is to old. Please find attached a patch that fixes bison version detection. (You will have to rerun 'make -f Makefile.drops' in the dice directory.)
Greetings, Ron. -- Mit freundlichen Gruessen / with regards ra3 @ inf.tu-dresden.de http://os.inf.tu-dresden.de/~ra3/ Index: configure =================================================================== --- configure (revision 29766) +++ configure (working copy) @@ -19949,44 +19949,6 @@ fi done test -n "$YACC" || YACC="yacc" -# Extract the first word of "bison-1.35", so it can be a program name with args. -set dummy bison-1.35; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_YACC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$YACC"; then - ac_cv_prog_YACC="$YACC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_YACC="bison-1.35 -y" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_prog_YACC" && ac_cv_prog_YACC="bison -y" -fi -fi -YACC=$ac_cv_prog_YACC -if test -n "$YACC"; then - { echo "$as_me:$LINENO: result: $YACC" >&5 -echo "${ECHO_T}$YACC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "$YACC" = byacc; then { { echo "$as_me:$LINENO: error: 'bison' is missing from your system." >&5 echo "$as_me: error: 'bison' is missing from your system." >&2;} @@ -20004,7 +19966,7 @@ if test "${dice_bison_version+set}" = se else set `$YACC --version|grep 'GNU Bison'|cut -d ' ' -f 4|sed -e 's/\./ /'|tr -d a-z` - if test "(" "${1}" = "1" -a "(" "${2}" = "35" -o "${2}" = "75" -o "${2}" = "875" ")" ")" -o "(" "${1}" = "2" ")"; then + if test "(" "${1}" = "2" -a "(" "${2}" = "1a" -o "${2}" = "1b" -o "${2}" = "2" -o "${2}" = "3" ")" ")"; then dice_bison_version="${1}.${2} (ok)" else dice_bison_version=invalid @@ -20015,8 +19977,8 @@ fi echo "${ECHO_T}$dice_bison_version" >&6; } case $dice_bison_version in ""|invalid) - { { echo "$as_me:$LINENO: error: You will need at lest bison version 1.35 (found ${1}.${2})." >&5 -echo "$as_me: error: You will need at lest bison version 1.35 (found ${1}.${2})." >&2;} + { { echo "$as_me:$LINENO: error: You will need at lest bison version 2.1a (found ${1}.${2})." >&5 +echo "$as_me: error: You will need at lest bison version 2.1a (found ${1}.${2})." >&2;} { (exit 1); exit 1; }; } ;; esac Index: configure.in =================================================================== --- configure.in (revision 29766) +++ configure.in (working copy) @@ -41,7 +41,6 @@ dnl 2) check for specific bison binary i dnl 3) check version of bison binary dnl AC_PROG_YACC -AC_CHECK_PROG(YACC, bison-1.35, bison-1.35 -y, bison -y) if test "$YACC" = byacc; then AC_MSG_ERROR(['bison' is missing from your system.]) fi @@ -50,7 +49,7 @@ if test "$YACC" = yacc; then fi AC_CACHE_CHECK([for bison version], dice_bison_version, [ set `$YACC --version|grep 'GNU Bison'|cut -d ' ' -f 4|sed -e 's/\./ /'|tr -d a-z` - if test "(" "${1}" = "1" -a "(" "${2}" = "35" -o "${2}" = "75" -o "${2}" = "875" ")" ")" -o "(" "${1}" = "2" ")"; then + if test "(" "${1}" = "2" -a "(" "${2}" = "1a" -o "${2}" = "1b" -o "${2}" = "2" -o "${2}" = "3" ")" ")"; then dice_bison_version="${1}.${2} (ok)" else dice_bison_version=invalid @@ -58,7 +57,7 @@ AC_CACHE_CHECK([for bison version], dice ]) case $dice_bison_version in ""|invalid[)] - AC_MSG_ERROR([You will need at lest bison version 1.35 (found ${1}.${2}).]) + AC_MSG_ERROR([You will need at lest bison version 2.1a (found ${1}.${2}).]) ;; esac AC_PROG_LN_S
participants (2)
-
chenggh -
Ronald Aigner