From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6461 invoked by alias); 2 Apr 2010 08:47:12 -0000 Received: (qmail 6441 invoked by uid 22791); 2 Apr 2010 08:47:11 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_FJ,TW_GC,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Apr 2010 08:47:06 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o328l532025884 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 2 Apr 2010 04:47:05 -0400 Received: from zebedee.pink (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o328l3Af001249; Fri, 2 Apr 2010 04:47:04 -0400 Message-ID: <4BB5AF07.8050809@redhat.com> Date: Fri, 02 Apr 2010 08:47:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0 MIME-Version: 1.0 To: java@gcc.gnu.org Subject: Re: link error: undefined reference References: <4BABA6A1.4020404@rhsdplanning.com> <4BACE60D.9080103@rhsdplanning.com> <17c6771e1003260954q21babf04v1f4f22139c692d94@mail.gmail.com> <4BB24285.40204@rhsdplanning.com> <4BB2FDDB.4000405@redhat.com> <4BB4FD0A.3030105@rhsdplanning.com> In-Reply-To: <4BB4FD0A.3030105@rhsdplanning.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2010-04/txt/msg00001.txt.bz2 On 01/04/10 21:07, Keith wrote: > Thank you very much. I feel like an idiot. Obviously I've been away from > gcc too long and forgot to keep my compile flags consistent. > > Just FYI, compiling under Windows XP, SP3, using gcj 4.4.0, mingw, and msys > > When I compile with -O0 -m32 -fjni -findirect-dispatch > using gcj 4.4.0, I get > gcj: unrecognized option '-s-bc-abi' > for some files. It seems to do no harm. It's just complaining that indirect-dispatch makes no sense when compiling .java to .class. It doesn't matter. > $ cat Test.java > class Test { > public static void main(String[] args) > { > System.out.println("Sample message"); > } > } > > $ sh -x make-test.sh > + C_FLAGS='-O0 -m32 -findirect-dispatch' > + gcj -O0 -m32 -findirect-dispatch -C Test.java > gcj.exe: unrecognized option '-s-bc-abi' > + gcj -O0 -m32 -findirect-dispatch -o Test.exe Test.class --main=Test > -Wl,--enable-auto-import > > $ ./Test.exe > Simple message > > > $ sh -x make-test.sh > + C_FLAGS='-O0 -m32' > + gcj -O0 -m32 -C Test.java > + gcj -O0 -m32 -o Test.exe Test.class --main=Test -Wl,--enable-auto-import > > $ ./Test.exe > > This application has requested the Runtime to terminate it in an unusual > way. > Please contact the application's support team for more information. Sorry, dunno. It should work, but I don't have a Windows system. Did you run the gcj test suite? Andrew.