gcj crashes while trying to convert jar to shared library snambi@LAPTOP-ET /c/otp/otp/src $ gcj -v -save-temps -shared -findirect-dispatch -fjni -fPIC $ACTIVEMQ_HOME/lib/activemq-core-3.0.jar -o core.jar.so Using built-in specs. Reading specs from c:/software/gcc/thisiscool/4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.0/../../../../i686-pc-mingw32/lib/libgcj.spec rename spec lib to liborig Target: i686-pc-mingw32 Configured with: /datal/gcc/gcc/configure --prefix=/datal/gcc/build/wingcc --build=i686-pc-linux-gnu --host=i686-pc-mingw32 --target=i686-pc-mingw32 --enable-languages=c,c++,java --with-gcc --with-gnu-as --with-gnu-ld --enable-threads=win32 --disable-nls --disable-win32-registry --disable-shared --disable-debug --without-newlib --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-sjlj-exceptions --enable-libgcj-multifile --enable-libgcj-mingw-osapi=ansi Thread model: win32 gcc version 4.0.0 20050324 (prerelease) c:/software/gcc/thisiscool/4.0/bin/../libexec/gcc/i686-pc-mingw32/4.0.0/jc1.exe c:/software/activemq/3.0/lib/activemq-core-3.0.jar -fhash-synchronization -fuse-divide-subroutine -fcheck-references -fuse-boehm-gc -fnon-call-exceptions -fno-omit-frame-pointer -fkeep-inline-functions -quiet -dumpbase activemq-core-3.0.jar -mtune=pentiumpro -auxbase activemq-core-3.0 -g1 -version -findirect-dispatch -fjni -fPIC -o activemq-core-3.0.s c:/software/activemq/3.0/lib/activemq-core-3.0.jar:0: warning: -fPIC ignored for target (all code is position independent) GNU Java version 4.0.0 20050324 (prerelease) (i686-pc-mingw32) compiled by GNU C version 4.0.0 20050324 (prerelease). GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32695 Class path starts here: ./ c:\software\activemq\3.0\lib\activemq-core-3.0.jar/ (zip) c:\software\activemq\3.0\lib\geronimo-spec-jms-1.1-rc4.jar/ (zip) c:\software\gcc\thisiscool\4.0\bin\../lib/gcc/../../share/java/libgcj-4.0.0.jar/ (system) (zip) org/activemq/message/util/WireByteArrayInputStream.java:147: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions.
I'm not sure that building a shared library with gcj on windows is supported. (But I'm not an expert on our windows port.) Can you provide more information about this failure? A stack trace might help. Or if the jar is small and not proprietary, it might help. Or, perhaps a reduced test case. Unfortunately this isn't enough information for us to do anything with.
No feedback in 3 months.