[gcc-3.0, libjava]: Unresolved dependency to __cxa_call_unexpected

Manfred Hollstein manfred.h@gmx.net
Wed Jun 20 09:56:00 GMT 2001


Manfred Hollstein wrote:
> 
> Manfred Hollstein wrote:
> >
> > Hi Tom,
> >
> > Thanks for your response. I'll try out to build Java without the
> > awt related flag (although it used to work sometime before the
> > release; last time I checked was on April 7th).
> 
> Hmm, this didn't help; __cxa_call_unexpected is still referenced:
> 
> $ find i686-redhat7-linux-gnu/libjava -name '*.o' | xargs nm -o | grep __cxa_call_unexpected
> i686-redhat7-linux-gnu/libjava/java/io/.libs/natFile.o:         U __cxa_call_unexpected
> i686-redhat7-linux-gnu/libjava/java/io/.libs/natFileDescriptor.o:         U __cxa_call_unexpected
> i686-redhat7-linux-gnu/libjava/java/io/natFile.o:         U __cxa_call_unexpected
> i686-redhat7-linux-gnu/libjava/java/io/natFileDescriptor.o:         U __cxa_call_unexpected
> i686-redhat7-linux-gnu/libjava/.libs/prims.o:         U __cxa_call_unexpected
> i686-redhat7-linux-gnu/libjava/prims.o:         U __cxa_call_unexpected
> 
> In case this is important, I don't have any pre-installed version
> of libjava or libstdc++ lying around; this may be different from
> the setup at other locations.

I built everything now with more "standard" CFLAGS, CXXFLAGS, and
BOOT_CFLAGS, ie.

  CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
  CXXFLAGS="-O2 -march=i686 -g"
  GCJFLAGS="-O2 -march=i686 -g"
  BOOT_CFLAGS="-O2 -march=i686"

as opposed to the more aggressive ones before:

  CFLAGS="-O9 -march=i686 -fomit-frame-pointer -g"
  CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer -mno-push-args -g"
  GCJFLAGS="-O2 -march=i686 -fomit-frame-pointer -mno-push-args -g"
  BOOT_CFLAGS="-O9 -march=i686 -fomit-frame-pointer -mno-push-args -g"

and __cxa_call_unexpected is no longer needed. I'll play around with
some more aggressive flags to see which one will cause the reference
to appear.

Cheers, manfred.



More information about the Gcc-bugs mailing list