patch for "bootstrap problem on x86-linux (and presumably everywhere else)"
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Thu May 17 22:48:00 GMT 2001
Geoff Keating wrote:
> The bootstrap is failing on x86-linux because the symbol
> __gxx_personality_v0 is not defined while linking jv-convert.
>> I believe this is because libgcj contains C++ code (for instance,
> shs.cc) but does not link with libstdc++.
>> Is there some reason why this shouldn't be done?
The consensus the last time this came up was that we don't want to
link libstdc++. Its probibly a good thing if only to ensure that we
arn't using C++ exceptions unintentionally in places.
In any case, the problem seems to be that the compiler has started
putting references to the personality functions in more places, and
there were some bits in libjava which hadn't picked up a #pragma
java_exceptions. The patch below fixes this by moving the pragma
declaration to javaprims.h where it is pretty much guaranteed to be
picked up by everything, since this is included by java/lang/Object.h
and gcj/cni.h.
I'm checking this in to the trunk and branch.
regards
[ bryce ]
More information about the Java
mailing list