* Bootstrap failure caused by jvmti additions
@ 2006-08-04 8:57 Volker Reichelt
2006-08-04 23:46 ` Mark Wielaard
2006-08-05 3:16 ` Tom Tromey
0 siblings, 2 replies; 3+ messages in thread
From: Volker Reichelt @ 2006-08-04 8:57 UTC (permalink / raw)
To: Tom Tromey; +Cc: java-patches, gcc
Hi Tom,
your patch http://gcc.gnu.org/ml/java-patches/2006-q3/msg00264.html
broke bootstrap (at least on x86_64-unknown-linux-gnu):
ranlib .libs/libgij.a
creating libgij.la
./.libs/libgcj.so: undefined reference to `JvNumMethods(java::lang::Class*)'
./.libs/libgcj.so: undefined reference to `JvGetFirstMethod(java::lang::Class*)'
collect2: ld returned 1 exit status
make[5]: *** [jv-convert] Error 1
Regards,
Volker
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bootstrap failure caused by jvmti additions
2006-08-04 8:57 Bootstrap failure caused by jvmti additions Volker Reichelt
@ 2006-08-04 23:46 ` Mark Wielaard
2006-08-05 3:16 ` Tom Tromey
1 sibling, 0 replies; 3+ messages in thread
From: Mark Wielaard @ 2006-08-04 23:46 UTC (permalink / raw)
To: Volker Reichelt; +Cc: Tom Tromey, java-patches, gcc
[-- Attachment #1: Type: text/plain, Size: 577 bytes --]
Hi,
On Fri, 2006-08-04 at 10:57 +0200, Volker Reichelt wrote:
> your patch http://gcc.gnu.org/ml/java-patches/2006-q3/msg00264.html
> broke bootstrap (at least on x86_64-unknown-linux-gnu):
>
> ranlib .libs/libgij.a
> creating libgij.la
> ./.libs/libgcj.so: undefined reference to `JvNumMethods(java::lang::Class*)'
> ./.libs/libgcj.so: undefined reference to `JvGetFirstMethod(java::lang::Class*)'
> collect2: ld returned 1 exit status
> make[5]: *** [jv-convert] Error 1
No idea if it is correct, but I am using the attached to get things to
compile again.
Cheers,
Mark
[-- Attachment #2: jvmti.patch --]
[-- Type: text/x-patch, Size: 798 bytes --]
Index: jvmti.cc
===================================================================
--- jvmti.cc (revision 115934)
+++ jvmti.cc (working copy)
@@ -29,6 +29,8 @@
#include <java/util/HashMap.h>
#include <java/net/URL.h>
+#include <gcj/method.h>
+
extern struct JNINativeInterface _Jv_JNIFunctions;
struct _Jv_rawMonitorID
@@ -553,13 +555,10 @@
if (klass->isArray())
{
jclass comp = klass->getComponentType();
- jint base
- = (jint) _Jv_GetArrayElementFromElementType(NULL,
- klass->getComponentType());
// FIXME: correct for primitive types?
jint compSize = comp->size();
__JArray *array = (__JArray *) object;
- *result = base + array->length * compSize;
+ *result = klass->size() + array->length * compSize;
}
else
{
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bootstrap failure caused by jvmti additions
2006-08-04 8:57 Bootstrap failure caused by jvmti additions Volker Reichelt
2006-08-04 23:46 ` Mark Wielaard
@ 2006-08-05 3:16 ` Tom Tromey
1 sibling, 0 replies; 3+ messages in thread
From: Tom Tromey @ 2006-08-05 3:16 UTC (permalink / raw)
To: Volker Reichelt; +Cc: java-patches, gcc
>>>>> "Volker" == Volker Reichelt <reichelt@igpm.rwth-aachen.de> writes:
Volker> your patch http://gcc.gnu.org/ml/java-patches/2006-q3/msg00264.html
Volker> broke bootstrap (at least on x86_64-unknown-linux-gnu):
I'm very sorry about this. I know it must not seem like it, but I
really did build with this patch. I don't know what went wrong, but I
assume it is some mistake of mine.
I'm checking the appended subset of Mark's patch.
The other part, I believe, I have already taken care of.
Tom
Index: ChangeLog
from Mark Wielaard <mark@klomp.org>
* jvmti.cc: Include gcj/method.h.
Index: jvmti.cc
===================================================================
--- jvmti.cc (revision 115942)
+++ jvmti.cc (working copy)
@@ -16,6 +16,8 @@
#include <java-gc.h>
#include <jvmti.h>
+#include <gcj/method.h>
+
#include <gnu/classpath/SystemProperties.h>
#include <gnu/gcj/runtime/BootClassLoader.h>
#include <java/lang/Class.h>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-08-05 3:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-04 8:57 Bootstrap failure caused by jvmti additions Volker Reichelt
2006-08-04 23:46 ` Mark Wielaard
2006-08-05 3:16 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).