Broken Makefile

Bryce McKinlay bryce@albatross.co.nz
Wed Aug 18 18:19:00 GMT 1999


Bryce McKinlay wrote:

> Kresten Krab Thorup wrote:
>
> > I just commited a major update which, among other things, fixes this
> > problem.   The other things changed are:
>
> Thanks Kresten. Unfortunatly I'm now getting the following build error after
> checking out the updates. It seems to be trying to generate a header for
> java.lang.String before it has built the class files:

OK, removing the second definition of .java.lo from Makefile.in seems to fix
that.

My multidimensional array's are working now, but there is still a problem with
Format.java (it works fine with a pre-interpreter libgcj)

Also, if you configure without "--enable-interpreter", there is a build error:

c++ -DHAVE_CONFIG_H -I. -I../../../libjava -I./include -Iinclude -I../../../libj

ava/include -I../../../libjava/../boehm-gc -I./../boehm-gc -DLINUX_THREADS=1 -D_

REENTRANT=1 -DSILENT=1 -DNO_SIGNALS=1 -DNO_DEBUGGING=1 -DJAVA_FINALIZATION=1 -I.

./../../libjava/../compat-include -I../../../libjava/../zlib -I../../../libjava/

../libffi/include -I../libffi/include -fno-rtti -fvtable-thunks -ffloat-store -W
-Wall -g -O2 -fvtable-thunks -D_GNU_SOURCE -c  -fPIC -DPIC ../../../libjava/jav
a/lang/natClassLoader.cc -o java/lang/.libs/natClassLoader.lo
../../../libjava/java/lang/natClassLoader.cc: In function `static void java::lan

g::ClassLoader::defineClass2(java::lang::Class *, JArray<__java_byte> *,
__java_int, __java_int)':
../../../libjava/java/lang/natClassLoader.cc:68: warning: unused parameter
`class java::lang::Class * klass'
../../../libjava/java/lang/natClassLoader.cc:68: warning: unused parameter
`class JArray<__java_byte> * data'
../../../libjava/java/lang/natClassLoader.cc:68: warning: unused parameter `jint
offset'
../../../libjava/java/lang/natClassLoader.cc:68: warning: unused parameter `jint
length'
../../../libjava/java/lang/natClassLoader.cc: In method `class java::lang::Class
* java::lang::ClassLoader::defineClass0(java::lang::String *,
JArray<__java_byte> *, __java_int, __java_int)':
../../../libjava/java/lang/natClassLoader.cc:79: warning: unused parameter
`class java::lang::String * name'
../../../libjava/java/lang/natClassLoader.cc:79: warning: unused parameter
`class JArray<__java_byte> * data'
../../../libjava/java/lang/natClassLoader.cc:79: warning: unused parameter `jint
offset'
../../../libjava/java/lang/natClassLoader.cc:79: warning: unused parameter `jint
length'
../../../libjava/java/lang/natClassLoader.cc: In function `void
_Jv_PrepareCompiledClass(java::lang::Class *)':
../../../libjava/java/lang/natClassLoader.cc:258: implicit declaration of
function `int _Jv_ClassNameSamePackage(...)'
make[2]: *** [java/lang/natClassLoader.lo] Error 1make[2]: Leaving directory
`/home/bryce/projects/libgcj/build/i686-pc-linux-gnu/libjava'
make[1]: *** [all-recursive] Error 1make[1]: Leaving directory
`/home/bryce/projects/libgcj/build/i686-pc-linux-gnu/libjava'
make: *** [all-target-libjava] Error 2

regards

  [ bryce ]




More information about the Java-patches mailing list