Tom>No, it is more like some weird configure/build thing having to 
Tom>do with cross-builds.

I tried to make the following changes, but a error on generating
Jv-convert has been thrown during buildinig cross compiler to win
platform. (I was able to successfully build this cross compiler before I
made these changes.) Any input would be much appreciated.

Ok, here goes the changes:

/my_gcc_src_dir/libjava/Makefile.am
Orignal: 
---------------------------------------
## For now, only on native systems.  FIXME.
if NATIVE
bin_PROGRAMS = jv-convert gij grmic grmiregistry gcj-dbtool

## It is convenient to actually build and install the default database
## when gcj-dbtool is available.
dbexec_DATA = $(db_name)
Endif
----------------------------------------

After change:nothing special really, just comment out if Native. 
---------------------------------------------
## For now, only on native systems.  FIXME.
##if NATIVE
bin_PROGRAMS = jv-convert gij grmic grmiregistry gcj-dbtool

## It is convenient to actually build and install the default database
## when gcj-dbtool is available.
dbexec_DATA = $(db_name)
##endif
---------------------------------------------

Then I ran automake in the make file directory to create new
Makefile.in(automake 1.9.3):
Automake Makefile

After started building the cross compiler, a error has been thrown while
make: 

mingw32-ar cru .libs/libgij.a  gij.o
mingw32-ranlib .libs/libgij.a
creating libgij.la
(cd .libs && rm -f libgij.la && ln -s ../libgij.la libgij.la)
/bin/sh ./libtool --tag=GCJ --mode=link /root/gccbuild/gcc/gcj
-B/root/gccbuild/gcc/ -B/extra/crossgcc/mingw32/bin/
-B/extra/crossgcc/mingw32/lib/ -isystem /extra/crossgcc/mingw32/include
-isystem /extra/crossgcc/mingw32/sys-include
-L/root/gccbuild/mingw32/libjava -ffloat-store -fno-omit-frame-pointer
-O2 -pipe -g0 -s -o jv-convert.exe --main=gnu.gcj.convert.Convert -rpath
/extra/crossgcc/mingw32/lib -shared-libgcc
-L/root/gccbuild/mingw32/libjava/.libs libgcj.la
/root/gccbuild/gcc/gcj -B/root/gccbuild/gcc/
-B/extra/crossgcc/mingw32/bin/ -B/extra/crossgcc/mingw32/lib/ -isystem
/extra/crossgcc/mingw32/include -isystem
/extra/crossgcc/mingw32/sys-include -ffloat-store
-fno-omit-frame-pointer -O2 -pipe -g0 -s -o jv-convert.exe
--main=gnu.gcj.convert.Convert -shared-libgcc
-L/root/gccbuild/mingw32/libjava -L/root/gccbuild/mingw32/libjava/.libs
./.libs/libgcj.a -L/root/gccbuild/mingw32/libstdc++-v3/src
-L/root/gccbuild/mingw32/libstdc++-v3/src/.libs -L/root/gccbuild/gcc
-L/extra/crossgcc/mingw32/bin -L/extra/crossgcc/mingw32/lib
-L/extra/crossgcc/lib/../mingw32/lib -lmingw32 -lgcc -lmoldname
-lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32
-lgcc -lmoldname -lmingwex -lmsvcrt -lmingw32 -lgcc -lmoldname -lmingwex
-lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc
-lmoldname -lmingwex -lmsvcrt -Wl,--rpath
-Wl,/extra/crossgcc/mingw32/lib
./.libs/libgcj.a(natLogger.o):natLogger.cc:(.text$_ZN4java4util7logging6
Logger7getNameEv[java::util::logging::Logger::getName()]+0x0): multiple
definition of `java::util::logging::Logger::getName()'
./.libs/libgcj.a(logging.o):logging.lolist:(.text+0x2004): first defined
here
collect2: ld returned 1 exit status
make[2]: *** [jv-convert.exe] Error 1
make[2]: Leaving directory `/root/gccbuild/mingw32/libjava'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/gccbuild/mingw32/libjava'
make: *** [all-target-libjava] Error 2
Press ENTER when you are ready to install...



Tom>Yeah... RMI doesn't get much love.  If you have a 
Tom>self-contained test case, please file a PR.  That way at least 
Tom>we won't lose it...

Call me silly, I don't really know how and where to file a PR. Is there
any guideline? 

Regards
Rui 

Reply via email to