public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: cormier@u-picardie.fr
To: java-gnats@sourceware.cygnus.com
Subject: java/1357: no result execution with W98 and last Cygwin tools
Date: Wed, 20 Dec 2000 12:25:00 -0000	[thread overview]
Message-ID: <20000824152735.10053.qmail@sourceware.cygnus.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2842 bytes --]

>Number:         1357
>Category:       java
>Synopsis:       no result execution with W98 and last Cygwin tools
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:19:17 PST 2000
>Closed-Date:    
>Last-Modified:  
>Originator:     cormier@u-picardie.fr
>Release:        unknown-1.0
>Organization:
>Environment:
W98, cygwin and gcj
>Description:
        I just download the last version of cygwin with W98 on a new computer. What a nice set of tools!! Everything seems to work fine.


        I attempt to use gcj. My last try is made with:
libgcj-2.95.1-win32-0.3.tar.bz2, libgcj.spec and Helloworld.java (Test.java) downloaded from http://www.cs.bris.ac.uk/~jb7216/libgcj/


Install and compile :
bunzip2 -c libgcj-2.95.1-win32-0.3.tar.bz2 | tar xfv -
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/lib
export CLASSPATH=/usr/local/share/libgcj.zip


libgcj file :
#
# This spec file is read by gcj when linking.
# It is used to specify the standard libraries we need in order
# to link with libgcj.
#
*lib: -lgcj -lm -lzgcj -lgcgcj -lmingw32  -lgccgcj   -lcrtdll -lwsock32 -luser32 -lkernel32 


*libgcc: %{}


*jc1:  


#
# libgcc should really be a shared library.  This is a design flaw
# that causes no end of mysterious problems.  If we are using the
# GNU linker, force parts of libgcc into the program file rather
# than picking bits up from various shared libraries.
#
%rename startfile startfileorig
*startfile: %(startfileorig) -u data_start -lgcjdata -u __rethrow -lgcc
  


$ cat Test.java


public class Test {


        public static void main(String[] args) {
                System.out.println("Hello world");
        }


}
gcj -mno-cygwin --main=Test -o Test Test.java


All seems to be OK .


When execute, the result:


Windows Box : Abnormal termination program ... 
TEST a cause une defaillance de page dans (page default ...)
 le module CYGWIN1.DLL à 0167:610011a3.
Registres :
EAX=00000000 CS=0167 EIP=610011a3 EFLGS=00010202
EBX=00000004 SS=016f ESP=0287fdd0 EBP=0287fdd8
ECX=00000001 DS=016f ESI=00000000 FS=4cb7
EDX=00000000 ES=016f EDI=00000000 GS=0000
Octets à CS : EIP :
8b 13 85 d2 75 f7 83 eb 04 39 f3 76 0b 8b 03 83 
Etat de la pile : (stack)
00850560 8175a250 0287fdf8 61002924 00000000 00000000 7fc0100c 0040101f 00470000 00470004 0287fe08 00401347 8175a250 00850060 0287fe28 004011e1 


The program is very big, isnt'it?


 ls -l
otal 3771
rwxr-xr-x   1 standard unknown   3839385 Aug 23 17:19 Test.exe
rw-r--r--   1 standard unknown       210 Aug 23 17:18 Test.java


Without -mno-cygwin option, nothing is printed after execute.


Somebody can help me? 
Thanks a lot 
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:

Formerly PR gcj/330

>Unformatted:


             reply	other threads:[~2000-12-20 12:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-20 12:25 cormier [this message]
2003-05-14 10:44 giovannibajo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20000824152735.10053.qmail@sourceware.cygnus.com \
    --to=cormier@u-picardie.fr \
    --cc=java-gnats@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).