This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Has anyone seen this build error before?


Mo DeJong wrote:

> I tired to built libgcj from the CVS but got the following error:
>
> gcj -B/home/mdejong/java/build_libgcj/i686-pc-linux-gnu/libjava/ -C -g
> -classpath
> /home/mdejong/java/build_libgcj/i686-pc-linux-gnu/libjava:/abomination/imagine/mdejong/java/libgcj/libjava -d /home/mdejong/java/build_libgcj/i686-pc-linux-gnu/libjava java/util/Date.java
> java/util/Calendar.java:0: bad value constant type 8, index 91
> make[1]: *** [libgcj.zip] Error 1
> make[1]: Leaving directory
> `/abomination/imagine/mdejong/java/build_libgcj/i686-pc-linux-gnu/libjava'
> make: *** [all-target-libjava] Error 2

I believe this error is caused by this patch:

2000-11-16  Zack Weinberg  <zack@wolery.stanford.edu>

        * jcf-parse.c (get_constant), parse.y (do_merge_string_cste):
        Create string in scratch buffer, then pass to build_string.

http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/jcf-parse.c.diff?r1=1.63&r2=1.64

Reversing it fixed this problem for me, but now I get:

gcj -B/home/bryce/cvs/libgcj/build/i686-pc-linux-gnu/libjava/ -C -g -classpath /home/bryce/cvs/libgcj/build/i686-pc-linux-gnu/libjava:/home/bryce/cvs/libgcj/libjava -d
/home/bryce/cvs/libgcj/build/i686-pc-linux-gnu/libjava java/io/ObjectInputStream.java
java/io/ObjectInputStream.java:1: Missing return statement.
   /* ObjectInputStream.java -- Class used to read serialized objects
    ^
1 error

This is on a 6.2 box with the latest gcj. Looks like I can't win tonight!

regards

  [ bryce ]



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]