From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27572 invoked by alias); 6 Aug 2008 02:00:21 -0000 Received: (qmail 27512 invoked by uid 22791); 6 Aug 2008 02:00:20 -0000 X-Spam-Check-By: sourceware.org Received: from fk-out-0910.google.com (HELO fk-out-0910.google.com) (209.85.128.188) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 06 Aug 2008 01:59:48 +0000 Received: by fk-out-0910.google.com with SMTP id 19so2510746fkr.8 for ; Tue, 05 Aug 2008 18:59:45 -0700 (PDT) Received: by 10.125.145.8 with SMTP id x8mr91998mkn.117.1217987985368; Tue, 05 Aug 2008 18:59:45 -0700 (PDT) Received: by 10.125.92.11 with HTTP; Tue, 5 Aug 2008 18:59:45 -0700 (PDT) Message-ID: <221fd3870808051859w4234f2f6ycae5c99e42bba2b2@mail.gmail.com> Date: Wed, 06 Aug 2008 02:00:00 -0000 From: "HK Tan" To: "Andrew Haley" Subject: Re: GCJ on POI Cc: gcc-help@gcc.gnu.org In-Reply-To: <48981DD4.7090207@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <221fd3870808042339l7b11452ftd6d868cf8bcaf3d8@mail.gmail.com> <48981DD4.7090207@redhat.com> Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00058.txt.bz2 I found that the reason is due to the xml-apis.jar not included with gcj gcj -shared -classpath xml-apis.jar -Lxml-apis.jar.so poi-3.1-FINAL.jar -o poi-3.1-FINAL.jar.so -findirect-dispatch -Bsymbolic My gcj is 3.4.5 But now I have another problem.. org/apache/poi/hssf/record/formula/functions/XYNumericFunction.java: In class `org.apache.poi.hssf.record.formula.functions.XYNumericFunction': org/apache/poi/hssf/record/formula/functions/XYNumericFunction.java: In method `org.apache.poi.hssf.record.formula.functions.XYNumericFunction.getValues(org.apache.poi.hssf.record.formula.eval.Eval,org.apache.poi.hssf.record.formula.eval.Eval)': org/apache/poi/hssf/record/formula/functions/XYNumericFunction.java:135: error: verification error at PC=106 org/apache/poi/hssf/record/formula/functions/XYNumericFunction.java:135: error: invalid argument type org/apache/poi/hssf/record/formula/functions/XYNumericFunction.java:135: error: expected type 'org.apache.poi.hssf.record.formula.eval.Eval[]' but stack contains 'java.lang.Object[]' org/apache/poi/hssf/usermodel/HSSFPicture.java: In class `org.apache.poi.hssf.usermodel.HSSFPicture': org/apache/poi/hssf/usermodel/HSSFPicture.java: In method `org.apache.poi.hssf.usermodel.HSSFPicture.getResolution(javax.imageio.ImageReader)': org/apache/poi/hssf/usermodel/HSSFPicture.java:198: error: cannot find file for class javax.imageio.ImageReader org/apache/poi/hssf/usermodel/HSSFPicture.java:198: error: cannot find file for class javax.imageio.metadata.IIOMetadata org/apache/poi/hssf/usermodel/HSSFPicture.java:202: error: cannot find file for class javax.imageio.ImageReader org/apache/poi/hssf/usermodel/HSSFPicture.java:202: confused by earlier errors, bailing out On Tue, Aug 5, 2008 at 5:31 PM, Andrew Haley wrote: > HK Tan wrote: >> Hi I have been trying to get gcj to compile for the for poi. >> This are the steps that was trying to follow >> gcj -shared -classpath ../jakarta-poi/lib/commons-logging-1.1.jar >> -Lcommons-logging-1.1.jar.so >> ../jakarta-poi/build/dist/poi-3.2-alpha1-20080804.jar -o >> poi-3.2-alpha1-20080804.jar.so >> >> gcj --classpath=../jakarta-poi/build/dist/poi-3.2-alpha1-20080804.jar >> -c HW.java >> >> gcj --main=HW -Lpoi-3.2-alpha1-20080804.jar.so HW.o -o HW >> >> But it bombs out on the step by >> saying >> > > I'd compile everything with -findirect-dispatch -Bsymbolic. > > Andrew. >