classpath/tools/tools.zip:0:0: fatal error: not a valid Java .class file

YuGiOhJCJ Mailing-List yugiohjcj-mailinglist@laposte.net
Fri May 13 04:55:00 GMT 2016


Well, I tried with fastjar 0.98 [1] instead of fastjar 0.94 [2].
The result is that when fastjar is installed, if I try to build gcc 5.3.0, it works fine.

So, installing a recent version of fastjar solves the problem.
But I am wondering why gcc is using my external fastjar during the build.

Is there a way to force gcc to not use this external dependency when fastjar is installed?

[1] http://download.savannah.gnu.org/releases/fastjar/fastjar-0.98.tar.gz
[2] https://sourceforge.net/projects/fastjar/files/fastjar/0.94/fastjar-0.94.tar.gz/download

On Thu, 12 May 2016 06:50:05 +0200
YuGiOhJCJ Mailing-List <yugiohjcj-mailinglist@laposte.net> wrote:

> OK, I finally found why I got this error message.
> When fastjar 0.94 is installed on my system, if I try to build gcc 5.3.0, I got this error.
> However, if I remove fastjar from my system, building gcc works fine.
> 
> So, I guess that when fastjar is installed on my system, the building system of gcc automatically use this external program in order to manage jar files.
> 
> Is there a way to configure the building system of gcc in order to avoid using this external fastjar version please?
> 
> On Tue, 10 May 2016 18:14:10 +0200
> YuGiOhJCJ Mailing-List <yugiohjcj-mailinglist@laposte.net> wrote:
> 
> > Well, after reinstalling the official gcc packages provided by Slackware 14.1, I am not able to reproduce the problem.
> > I think I had something wrong installed on my system.
> > 
> > On Mon, 2 May 2016 10:04:31 +0200
> > YuGiOhJCJ Mailing-List <yugiohjcj-mailinglist@laposte.net> wrote:
> > 
> > > Hello,
> > > 
> > > I try to build gcc 5.3.0 on Slackware 14.1 but I got this error:
> > > $ ../configure --prefix=/usr --enable-languages=c,c++,java
> > > $ make
> > > [...]
> > > make[3]: Entering directory `/tmp/build/openjdk/gcc-5.3.0/build/i686-pc-linux-gnu/libjava'
> > > /bin/sh ./libtool  --tag=GCJ   --mode=compile /tmp/build/openjdk/gcc-5.3.0/build/./gcc/gcj -B/tmp/build/openjdk/gcc-5.3.0/build/i686-pc-linux-gnu/libjava/ -B/tmp/build/openjdk/gcc-5.3.0/build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include    -ffloat-store -fomit-frame-pointer -Usun -fclasspath= -fbootclasspath=../../../libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -findirect-dispatch -fno-bootstrap-classes -fno-indirect-classes -fsource-filename=/tmp/build/openjdk/gcc-5.3.0/build/i686-pc-linux-gnu/libjava/classpath/tools/all-classes.lst -g -O2 -MT classpath/tools/libgcj_tools_la-tools.lo -MD -MP -MF classpath/tools/.deps/libgcj_tools_la-tools.Tpo -c -o classpath/tools/libgcj_tools_la-tools.lo `test -f 'classpath/tools/tools.zip' || echo '../../../libjava/'`classpath/tools/tools.zip
> > > libtool: compile:  /tmp/build/openjdk/gcc-5.3.0/build/./gcc/gcj -B/tmp/build/openjdk/gcc-5.3.0/build/i686-pc-linux-gnu/libjava/ -B/tmp/build/openjdk/gcc-5.3.0/build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -ffloat-store -fomit-frame-pointer -Usun -fclasspath= -fbootclasspath=../../../libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -findirect-dispatch -fno-bootstrap-classes -fno-indirect-classes -fsource-filename=/tmp/build/openjdk/gcc-5.3.0/build/i686-pc-linux-gnu/libjava/classpath/tools/all-classes.lst -g -O2 -MT classpath/tools/libgcj_tools_la-tools.lo -MD -MP -MF classpath/tools/.deps/libgcj_tools_la-tools.Tpo -c classpath/tools/tools.zip  -fPIC -o classpath/tools/.libs/libgcj_tools_la-tools.o
> > > In file included from <built-in>:0:0:
> > > classpath/tools/tools.zip:0:0: fatal error: not a valid Java .class file
> > > compilation terminated.
> > > make[3]: *** [classpath/tools/libgcj_tools_la-tools.lo] Error 1
> > > make[3]: Leaving directory `/tmp/build/openjdk/gcc-5.3.0/build/i686-pc-linux-gnu/libjava'
> > > make[2]: *** [all-recursive] Error 1
> > > make[2]: Leaving directory `/tmp/build/openjdk/gcc-5.3.0/build/i686-pc-linux-gnu/libjava'
> > > make[1]: *** [all-target-libjava] Error 2
> > > make[1]: Leaving directory `/tmp/build/openjdk/gcc-5.3.0/build'
> > > make: *** [all] Error 2
> > > 
> > > Do you know why?
> > > 
> > > Thank you.
> > > Best regards.



More information about the Gcc-help mailing list