This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Logging broken ?


> Well, it's hard for us without Windows platforms to know what the
> cause of your problem might be.  However, my guess is that you have
> some kind of problem with stack traces.

Ok so here is the output of my hello.exe

G:\2005-extraextra>hello
Now starting to LOG
Exception in thread "main" java.lang.NullPointerException
   at 0x00416a3e (Unknown Source)
   at 0x00416f32 (Unknown Source)
   at 0x00416fe3 (Unknown Source)
   at 0x0043a13d (Unknown Source)
   at 0x004538ed (Unknown Source)
   at 0x0040fd2d (Unknown Source)
   at 0x004021a2 (Unknown Source)
   at 0x0040a5b9 (Unknown Source)
   at 0x0040a758 (Unknown Source)
   at 0x00408da5 (Unknown Source)
   at 0x00401492 (Unknown Source)
   at 0x0045ef21 (Unknown Source)
   at 0x0041475e (Unknown Source)
   at 0x0041ce20 (Unknown Source)
   at 0x00403287 (Unknown Source)
   at 0x00403357 (Unknown Source)
   at 0x004012fa (Unknown Source)
   at 0x00401209 (Unknown Source)
   at 0x00401234 (Unknown Source)
   at 0xbff8b55c (Unknown Source)
   at 0xbff8b40e (Unknown Source)

G:\2005-extraextra>

I compiled it with
gcj -s --main=Hello -o Hello.exe src/Hello.java
My gcj version is 3.4.0 20040316.
As stated in my other Post "Wrestling with gcj 4.0 mingw win32"
I can not compile with gcj 4.0 I get the same compile error

c:/gcc/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.0/../../../../i
686-pc-mingw32/lib/libgcj.a(natLogger.o):natLogger.cc:(.text$_ZN4java4util7loggi
ng6Logger7getNameEv[__ZN4java4util7logging6Logger7getNameEv]+0x0): multiple defi
nition of `java::util::logging::Logger::getName()'
c:/gcc/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.0/../../../../i
686-pc-mingw32/lib/libgcj.a(Logger.o):Logger.java:(.text+0x950): first defined h
ere
c:\gcc\thisiscool-gcc\gcc-4.0\bin\..\lib\gcc\i686-pc-mingw32\4.0.0\..\..\..\..\i
686-pc-mingw32\bin\ld.exe: cannot find -lgdi32


Both versions are the ones from http://www.thisiscool.com/gcc_mingw.htm
Because the version from the Mingw website itself never compiled something successfully.



> Can you run this with gdb and let us know here the exception happens? > Do you get a stack trace?

I'd love to use GDB but I'm not sure that it is included with the GCJ from thisiscool.com. Is there an easy to install GDB binary available somewhere ? I'm really sorry for these stupid questions but I'm kind of lost in this multitude of versions and different GCC packages and such.

-Andreas


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]