Bug 22011 - converting jar files into .so library in win32
Summary: converting jar files into .so library in win32
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.0.0
: P1 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2005-06-10 21:39 UTC by nambi s
Modified: 2005-09-04 19:09 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nambi s 2005-06-10 21:39:57 UTC
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.
Comment 1 Tom Tromey 2005-06-15 22:42:24 UTC
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.
Comment 2 Andrew Pinski 2005-09-04 19:09:22 UTC
No feedback in 3 months.