public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/21793] New: java doesn't work with Cygwin
@ 2005-05-28  0:18 gerrit at gcc dot gnu dot org
  2005-05-28  0:20 ` [Bug java/21793] " gerrit at gcc dot gnu dot org
  2005-05-28  0:30 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: gerrit at gcc dot gnu dot org @ 2005-05-28  0:18 UTC (permalink / raw)
  To: java-prs

file hello_j.java:

public class hello_j {
public static void main(String[] args) {
        System.out.println("Just another Java hacker,");
        }
}

/usr/bin/gcj --main=hello_j hello_j.java -o hello_j
./hello_j
Signal 11

-- 
           Summary: java doesn't work with Cygwin
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gerrit at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21793


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug java/21793] java doesn't work with Cygwin
  2005-05-28  0:18 [Bug java/21793] New: java doesn't work with Cygwin gerrit at gcc dot gnu dot org
@ 2005-05-28  0:20 ` gerrit at gcc dot gnu dot org
  2005-05-28  0:30 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: gerrit at gcc dot gnu dot org @ 2005-05-28  0:20 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From gerrit at gcc dot gnu dot org  2005-05-28 00:20 -------
$ gdb hello_j.exe
GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) run
Starting program: /gcc/gcc-test/hello_j.exe 
warning: LDR: Automatic DLL Relocation in hello_j.exe

warning: LDR: Dll cygz.dll base 10000000 relocated due to collision with
h:\cygwin\bin\cyg                                                     iconv-2.dll

warning: LDR: Automatic DLL Relocation in hello_j.exe

warning: LDR: Dll MSVCRT.dll base 78000000 relocated due to collision with
C:\WINNT\system                                                     32\GDI32.dll


Program received signal SIGSEGV, Segmentation fault.
0x00406618 in _Jv_FindClass ()
(gdb) bt
#0  0x00406618 in _Jv_FindClass ()
#1  0x0040fd58 in java::lang::Class::forName ()
#2  0x0040fec4 in java::lang::Class::forName ()
#3  0x0047c0ed in gnu.gcj.convert.UnicodeToBytes.getDefaultEncoder() ()
    at /gcc/gcc-3.4.2/gcc-3.4.2-1/libjava/gnu/gcj/convert/UnicodeToBytes.java:49
#4  0x0044a12e in java.io.PrintStream.PrintStream(java.io.OutputStream, boolean) (
    this=0x10150f90, out=0x1014dab0, auto_flush=269647105)
    at /gcc/gcc-3.4.2/gcc-3.4.2-1/libjava/java/io/PrintStream.java:118
#5  0x004043f1 in java.lang.System.<clinit>() ()
    at /gcc/gcc-3.4.2/gcc-3.4.2-1/libjava/java/lang/System.java:146
#6  0x0040f6dd in java::lang::Class::initializeClass ()
#7  0x00543aca in _Jv_InitClass ()
#8  0x004047a1 in java.lang.System.getProperty(java.lang.String) (key=0x10130f00)
    at /gcc/gcc-3.4.2/gcc-3.4.2-1/libjava/java/lang/System.java:405
#9  0x0044be58 in java.lang.VMClassLoader.getSystemClassLoader() ()
    at /gcc/gcc-3.4.2/gcc-3.4.2-1/libjava/java/lang/VMClassLoader.java:280
#10 0x0041182b in java.lang.ClassLoader.<clinit>() ()
    at /gcc/gcc-3.4.2/gcc-3.4.2-1/libjava/java/lang/ClassLoader.java:156
#11 0x0040f6dd in java::lang::Class::initializeClass ()
#12 0x004038af in _Jv_CreateJavaVM ()
#13 0x00403956 in _Jv_RunMain ()
#14 0x00403b1b in JvRunMain ()
#15 0x0040109e in main (argc=1, argv=0x10102ca0)
(gdb) 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21793


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug java/21793] java doesn't work with Cygwin
  2005-05-28  0:18 [Bug java/21793] New: java doesn't work with Cygwin gerrit at gcc dot gnu dot org
  2005-05-28  0:20 ` [Bug java/21793] " gerrit at gcc dot gnu dot org
@ 2005-05-28  0:30 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-28  0:30 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-28 00:30 -------
Static linking really is not support, see PR 13708.

*** This bug has been marked as a duplicate of 13708 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21793


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-28  0:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-28  0:18 [Bug java/21793] New: java doesn't work with Cygwin gerrit at gcc dot gnu dot org
2005-05-28  0:20 ` [Bug java/21793] " gerrit at gcc dot gnu dot org
2005-05-28  0:30 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).