bug-bison
[Top][All Lists]
Advanced

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

Re: Java-related Bison tests all fail


From: Joel E. Denny
Subject: Re: Java-related Bison tests all fail
Date: Wed, 7 Feb 2007 02:17:54 -0500 (EST)

On Sat, 3 Feb 2007, Paul Eggert wrote:

> This is on Debian stable, with GCC 4.1.1 installed by hand, when
> testing the latest Bison CVS.  Any clues as to what I'm doing wrong?
> It could be a misinstallation of GCC, but if I do it wrong others are
> likely too.

All Java test cases are failing for me as well.

  % which gcj
  /usr/local/bin/gcj
  % gcj --version
  gcj (GCC) 4.1.0
  Copyright (C) 2006 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.
  % echo $JAVAC
  /usr/local/bin/gcj
  % echo 'public class conftestlib {
    public static void main (String[] args) {
      System.out.println("Hello World");
    }
  }
  ' > conftestlib.java
  % gcj -C -d . conftestlib.java
  % gij conftestlib
  Hello World

>From config.log:

  configure:18480: checking for Java compiler
  configure:18694: found /usr/local/bin/gcj
  configure:18781: gcj -C -d . conftestlib.java
  configure:18967: result: no
  configure:18978: checking for Java virtual machine
  configure:19028: found /usr/local/bin/gij
  configure:19062: found /usr/lib/java/bin/java
  configure:19185: result: gij
  configure:19351: creating ./config.status

All Java test cases fail in the same way:

  % ./testsuite -v 178
  ## --------------------------- ##
  ## GNU Bison 2.3a+ test suite. ##
  ## --------------------------- ##
  178. java.at:358: testing ...
  ./java.at:358: bison -o Calc.java Calc.y
  ./java.at:358: test -n "$CONF_JAVA$CONF_JAVAC" || exit 77
  ./java.at:358: $SHELL ../../../javacomp.sh Calc.java
  stderr:
  Java compiler not found, try installing gcj or set $JAVAC, then reconfigure
  stdout:
  ./java.at:358: exit code was 1, expected 0
  178. java.at:358:  FAILED (java.at:358)

When the user has no Java compiler, shouldn't the Java test cases just be 
skipped?




reply via email to

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