arm cross-compile problem

Mark Horton mark at nostromo.net
Sat Jul 14 07:21:19 PDT 2001


Thanks for the response.  I think I see my problem.  I downloaded the 
source code from kaffe.org.  This morning I read that the release from 
transvirtual's cvs would be more appropriate, so I'm trying that.

[a while later]

I got it compiled.  However, when I try to execute a simple awt class I get:

java.lang.NoClassDefFoundError: java/awt/Frame
         at java/lang/Throwable.<init>(pc 0x2155c18)
         at java/lang/Error.<init>(pc 0x215cdec)
         at java/lang/LinkageError.<init>(pc 0x215cd8c)
         at java/lang/NoClassDefFoundError.<init>(pc 0x215cd2c)

Before compiling I altered "config.d/ipaq/kaffe.config" by removing 
"--without-x" and "--with-awt=fgl" and adding "--with-x" and 
"--with-awt=X".  But still no go.

One thing I did notice is that "tvt-make-klasses -a ipaq" emits several 
errors.  (The output is below.)  It does create Klasses.jar but it 
doesn't contain java/awt in the jar, so I'm guessing this is the problem.

Looking at the errors below, it seems like I need to add or set a 
classpath somewhere.  But I'm not sure where.

Does anyone know whats wrong?

-Mark


 >tvt-make-klasses -a ipaq
    TARGET = ipaq
TOOLCHAIN = /skiff/local/bin/
    script = tvt-make-klasses
   version = 0.1.6
      host = fast
      user = mdhorton
      DATE = 20010714
   TVTROOT = /remote/arm/kaffe
   TVTDEST = /remote/arm/kaffe/binaries
   CONFDIR = ./config.d
   ARCHIVE = archive

 >>> tvt-make-klasses: building 'Klasses.jar' for 'ipaq'
sh rebuildLib
Adding Core Java classes ...
Adding Java extension classes ...
Compiling classes ...

Found 1 semantic error compiling 
"../../../src/libraries/javalib/java/net/URLConnection.java":

     23. import kaffe.awt.URLConnectionProducer;
                <----------------------------->
*** Error: "kaffe/awt/URLConnectionProducer" is either a misplaced 
package name or a non-existent entity.

Found 3 semantic errors compiling 
"../../../src/libraries/javalib/kaffe/io/TVCtrl.java":

      6. import kaffe.awt.AWT;
                <----------->
*** Error: "kaffe/awt/AWT" is either a misplaced package name or a 
non-existent entity.


    227.                 int xOff = AWT.extension.getScreenOffset().x;
                                    <----------->
*** Error: "extension" is either a misplaced package name or a 
non-existent entity.


    228.                 int yOff = AWT.extension.getScreenOffset().y;
                                    <----------->
*** Error: "extension" is either a misplaced package name or a 
non-existent entity.

Found 3 semantic errors compiling 
"../../../src/libraries/javalib/kaffe/io/VideoCtrl.java":

      5. import kaffe.awt.AWT;
                <----------->
*** Error: "kaffe/awt/AWT" is either a misplaced package name or a 
non-existent entity.


    112.                 int xOff = AWT.extension.getScreenOffset().x;
                                    <----------->
*** Error: "extension" is either a misplaced package name or a 
non-existent entity.


    113.                 int yOff = AWT.extension.getScreenOffset().y;
                                    <----------->
*** Error: "extension" is either a misplaced package name or a 
non-existent entity.

Found 1 semantic error compiling 
"../../../src/libraries/javalib/kaffe/net/www/protocol/BasicURLConnection.java":

     20. import kaffe.awt.URLConnectionProducer;
                <----------------------------->
*** Error: "kaffe/awt/URLConnectionProducer" is either a misplaced 
package name or a non-existent entity.

Found 2 semantic errors compiling 
"../../../src/libraries/javalib/kaffe/net/www/content/image/gif.java":

      6. import kaffe.awt.URLConnectionProducer;
                <----------------------------->
*** Error: "kaffe/awt/URLConnectionProducer" is either a misplaced 
package name or a non-existent entity.


     12.         return new URLConnectionProducer(urlc);
                            <------------------->
*** Error: Type kaffe/net/www/content/image/URLConnectionProducer was 
not found.
Adding additional resources ...
 
../../../build-gnu/libraries/javalib/../../../src/libraries/javalib/kaffe/lang/unicode.*
 
../../../build-gnu/libraries/javalib/../../../src/libraries/javalib/kaffe/net/mimetypes.properties

 >>> tvt-make-klasses: building 'Klasses.jar' for 'ipaq'
rm -f Klasses.jar
(cd lib && zip -qr0 ../Klasses.jar *)

 >>> tvt-make-klasses: archiving 'Klasses.jar'
-Mark



Patrick Tullmann wrote:

> Mark Horton wrote:
> 
>>The only thing printed out during configure that seems unusual is the 
>>folowing line:
>>
>>configure: warning: when cross compiling, you may want to set 
>>ac_cv_c_char_unsigned to yes or no
>>
> 
> Probably not a big deal.
> 
> 
>>I have not been able to figure out how to set "ac_cv_c_char_unsigned". 
>>I've tried various things but none have made a difference.
>>
>>I continue succesfully with "make" and "make install".  I then tar up 
>>/mnt/big/java/kaffe-1.0.6 and scp it over to the ipaq.
>>
>>When I untar it and try to run anything it seg faults.
>>
> 
> Did you install it in /mnt/big/java/kaffe-1.0.6/ directory on the
> ipaq?  (I can't remember if this is required or not, though).


Yes,


> Can you run it under a debugger and get a back trace of where the
> fault is?  Alternatively, try configuring --enable-debug, and run with
> '-vmdebug ALL'.
> 
> -Pat
> 
> ----- ----- ---- ---  ---  --   -    -      -         -               -
> Pat Tullmann                                       tullmann at cs.utah.edu
> 	  This signature witticism intentionally left blank.
> 
> 
> 





More information about the kaffe mailing list