Fwd: Fwd: [kaffe] kaffe compilation under cygwin

Dalibor Topic robilad at kaffe.org
Mon Oct 8 06:31:31 PDT 2007


Yavor Georgiev wrote:
> Hi Dalibor,
>
> Here is the output of the command:
>
>
> $ /usr/local/kaffe/bin/kaffe -vmdebug NATIVELIB HelloWorldApp
> Native lib /usr/local/kaffe/jre/lib/i386/libkaffevm
>         LOAD desc=0x8d1238 index=0 loader=0x0
> Couldn't find JNI_OnLoad in library /usr/local/kaffe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Method = gnu/classpath/VMSystemProperties.getJavaHome()Ljava/lang/String;
> Native stub = 'gnu_classpath_VMSystemProperties_getJavaHome'
> Couldn't find gnu_classpath_VMSystemProperties_getJavaHome in library /usr/local
> /kaffe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getJavaHome in library /usr/local/ka
> ffe/jre/lib/i386/libkaffevm.
> Method = gnu/classpath/VMSystemProperties.getJavaClassPath()Ljava/lang/String;
> Native stub = 'gnu_classpath_VMSystemProperties_getJavaClassPath'
> Couldn't find gnu_classpath_VMSystemProperties_getJavaClassPath in library /usr/
> local/kaffe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getJavaClassPath in library /usr/loc
> al/kaffe/jre/lib/i386/libkaffevm.
> Method = gnu/classpath/VMSystemProperties.getJavaIoTmpdir()Ljava/lang/String;
> Native stub = 'gnu_classpath_VMSystemProperties_getJavaIoTmpdir'
> Couldn't find gnu_classpath_VMSystemProperties_getJavaIoTmpdir in library /usr/l
> ocal/kaffe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getJavaIoTmpdir in library /usr/loca
> l/kaffe/jre/lib/i386/libkaffevm.
> Method = gnu/classpath/VMSystemProperties.getJavaCompiler()Ljava/lang/String;
> Native stub = 'gnu_classpath_VMSystemProperties_getJavaCompiler'
> Couldn't find gnu_classpath_VMSystemProperties_getJavaCompiler in library /usr/l
> ocal/kaffe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getJavaCompiler in library /usr/loca
> l/kaffe/jre/lib/i386/libkaffevm.
> Method = gnu/classpath/VMSystemProperties.getOsName()Ljava/lang/String;
> Native stub = 'gnu_classpath_VMSystemProperties_getOsName'
> Couldn't find gnu_classpath_VMSystemProperties_getOsName in library /usr/local/k
> affe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getOsName in library /usr/local/kaff
> e/jre/lib/i386/libkaffevm.
> Method = gnu/classpath/VMSystemProperties.getOsArch()Ljava/lang/String;
> Native stub = 'gnu_classpath_VMSystemProperties_getOsArch'
> Couldn't find gnu_classpath_VMSystemProperties_getOsArch in library /usr/local/k
> affe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getOsArch in library /usr/local/kaff
> e/jre/lib/i386/libkaffevm.
> Method = gnu/classpath/VMSystemProperties.getOsVersion()Ljava/lang/String;
> Native stub = 'gnu_classpath_VMSystemProperties_getOsVersion'
> Couldn't find gnu_classpath_VMSystemProperties_getOsVersion in library /usr/loca
> l/kaffe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getOsVersion in library /usr/local/k
> affe/jre/lib/i386/libkaffevm.
> Method = gnu/classpath/VMSystemProperties.getFileSeparator()Ljava/lang/String;
> Native stub = 'gnu_classpath_VMSystemProperties_getFileSeparator'
> Couldn't find gnu_classpath_VMSystemProperties_getFileSeparator in library /usr/
> local/kaffe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getFileSeparator in library /usr/loc
> al/kaffe/jre/lib/i386/libkaffevm.
> Method = gnu/classpath/VMSystemProperties.getPathSeparator()Ljava/lang/String;
> Native stub = 'gnu_classpath_VMSystemProperties_getPathSeparator'
> Couldn't find gnu_classpath_VMSystemProperties_getPathSeparator in library /usr/
> local/kaffe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getPathSeparator in library /usr/loc
> al/kaffe/jre/lib/i386/libkaffevm.
> Method = gnu/classpath/VMSystemProperties.getLineSeparator()Ljava/lang/String;
> Native stub = 'gnu_classpath_VMSystemProperties_getLineSeparator'
> Couldn't find gnu_classpath_VMSystemProperties_getLineSeparator in library /usr/
> local/kaffe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getLineSeparator in library /usr/loc
> al/kaffe/jre/lib/i386/libkaffevm.
> Method = gnu/classpath/VMSystemProperties.getUserName()Ljava/lang/String;
> Native stub = 'gnu_classpath_VMSystemProperties_getUserName'
> Couldn't find gnu_classpath_VMSystemProperties_getUserName in library /usr/local
> /kaffe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getUserName in library /usr/local/ka
> ffe/jre/lib/i386/libkaffevm.
> Method = gnu/classpath/VMSystemProperties.getUserHome()Ljava/lang/String;
> Native stub = 'gnu_classpath_VMSystemProperties_getUserHome'
> Couldn't find gnu_classpath_VMSystemProperties_getUserHome in library /usr/local
> /kaffe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getUserHome in library /usr/local/ka
> ffe/jre/lib/i386/libkaffevm.
> Method = gnu/classpath/VMSystemProperties.getUserDir()Ljava/lang/String;
> Native stub = 'gnu_classpath_VMSystemProperties_getUserDir'
> Couldn't find gnu_classpath_VMSystemProperties_getUserDir in library /usr/local/
> kaffe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getUserDir in library /usr/local/kaf
> fe/jre/lib/i386/libkaffevm.
> Method = gnu/classpath/VMSystemProperties.getGnuCpuEndian()Ljava/lang/String;
> Native stub = 'gnu_classpath_VMSystemProperties_getGnuCpuEndian'
> Couldn't find gnu_classpath_VMSystemProperties_getGnuCpuEndian in library /usr/l
> ocal/kaffe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getGnuCpuEndian in library /usr/loca
> l/kaffe/jre/lib/i386/libkaffevm.
> Method = gnu/classpath/VMSystemProperties.getKaffeLibraryPath()Ljava/lang/String
> ;
> Native stub = 'gnu_classpath_VMSystemProperties_getKaffeLibraryPath'
> Couldn't find gnu_classpath_VMSystemProperties_getKaffeLibraryPath in library /u
> sr/local/kaffe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getKaffeLibraryPath in library /usr/
> local/kaffe/jre/lib/i386/libkaffevm.
> Method = gnu/classpath/VMSystemProperties.getSunBootClassPath()Ljava/lang/String
> ;
> Native stub = 'gnu_classpath_VMSystemProperties_getSunBootClassPath'
> Couldn't find gnu_classpath_VMSystemProperties_getSunBootClassPath in library /u
> sr/local/kaffe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getSunBootClassPath in library /usr/
> local/kaffe/jre/lib/i386/libkaffevm.
> Method = gnu/classpath/VMSystemProperties.getLocale()Ljava/lang/String;
> Native stub = 'gnu_classpath_VMSystemProperties_getLocale'
> Couldn't find gnu_classpath_VMSystemProperties_getLocale in library /usr/local/k
> affe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_getLocale in library /usr/local/kaff
> e/jre/lib/i386/libkaffevm.
> Method = java/lang/VMObject.getClass(Ljava/lang/Object;)Ljava/lang/Class;
> Native stub = 'java_lang_VMObject_getClass'
> Found java_lang_VMObject_getClass in library /usr/local/kaffe/jre/lib/i386/libka
> ffevm.
> Method = java/lang/VMClass.isArray(Ljava/lang/Class;)Z
> Native stub = 'java_lang_VMClass_isArray'
> Found java_lang_VMClass_isArray in library /usr/local/kaffe/jre/lib/i386/libkaff
> evm.
> Method = java/lang/VMSystem.arraycopy0(Ljava/lang/Object;ILjava/lang/Object;II)V
>
> Native stub = 'java_lang_VMSystem_arraycopy0'
> Found java_lang_VMSystem_arraycopy0 in library /usr/local/kaffe/jre/lib/i386/lib
> kaffevm.
> Method = gnu/classpath/VMSystemProperties.postInit(Ljava/util/Properties;)V
> Native stub = 'gnu_classpath_VMSystemProperties_postInit'
> Couldn't find gnu_classpath_VMSystemProperties_postInit in library /usr/local/ka
> ffe/jre/lib/i386/libkaffevm.
> Error message is symbol not found.
> Found Java_gnu_classpath_VMSystemProperties_postInit in library /usr/local/kaffe
> /jre/lib/i386/libkaffevm.
> Method = java/lang/VMObject.clone(Ljava/lang/Cloneable;)Ljava/lang/Object;
> Native stub = 'java_lang_VMObject_clone'
> Found java_lang_VMObject_clone in library /usr/local/kaffe/jre/lib/i386/libkaffe
> vm.
> Method = gnu/classpath/VMStackWalker.getCallingClassLoader()Ljava/lang/ClassLoad
> er;
> Native stub = 'gnu_classpath_VMStackWalker_getCallingClassLoader'
> Found gnu_classpath_VMStackWalker_getCallingClassLoader in library /usr/local/ka
> ffe/jre/lib/i386/libkaffevm.
> Method = java/lang/VMRuntime.getLibPrefix()Ljava/lang/String;
> Native stub = 'java_lang_VMRuntime_getLibPrefix'
> Found java_lang_VMRuntime_getLibPrefix in library /usr/local/kaffe/jre/lib/i386/
> libkaffevm.
> Method = java/lang/VMRuntime.getLibSuffix()Ljava/lang/String;
> Native stub = 'java_lang_VMRuntime_getLibSuffix'
> Found java_lang_VMRuntime_getLibSuffix in library /usr/local/kaffe/jre/lib/i386/
> libkaffevm.
> Method = java/lang/VMRuntime.nativeLoad(Ljava/lang/String;Ljava/lang/ClassLoader
> ;)I
> Native stub = 'java_lang_VMRuntime_nativeLoad'
> Found java_lang_VMRuntime_nativeLoad in library /usr/local/kaffe/jre/lib/i386/li
> bkaffevm.
> Error loading /usr/local/kaffe/jre/lib/i386/libjavanio.dll: No such file or dire
> ctory
> Error loading /usr/local/kaffe/lib/libjavanio.dll: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/libjavanio.dll: No such file or
>  directory
> Error loading /usr/local/kaffe/jre/lib/i386/libjavanio.so: No such file or direc
> tory
> Error loading /usr/local/kaffe/lib/libjavanio.so: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/libjavanio.so: No such file or
> directory
> Error loading /usr/local/kaffe/jre/lib/i386/libjavanio.dll: No such file or dire
> ctory
> Error loading /usr/local/kaffe/lib/libjavanio.dll: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/libjavanio.dll: No such file or
>  directory
> Error loading /usr/local/kaffe/jre/lib/i386/libjavanio.la: file not found
> Error loading /usr/local/kaffe/lib/libjavanio.la: file not found
> Error loading /usr/local/classpath/lib/classpath/libjavanio.la: No such file or
> directory
> Error loading /usr/local/kaffe/jre/lib/i386/libjavanio.a: No such file or direct
> ory
> Error loading /usr/local/kaffe/lib/libjavanio.a: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/libjavanio.a: No such file or d
> irectory
> Error loading /usr/local/kaffe/jre/lib/i386/libjavanio.dylib: No such file or di
> rectory
> Error loading /usr/local/kaffe/lib/libjavanio.dylib: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/libjavanio.dylib: No such file
> or directory
> Error loading /usr/local/kaffe/jre/lib/i386/libjavanio.jnilib: No such file or d
> irectory
> Error loading /usr/local/kaffe/lib/libjavanio.jnilib: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/libjavanio.jnilib: No such file
>  or directory
> Error loading /usr/local/kaffe/jre/lib/i386/libjavanio.dll.a: No such file or di
> rectory
> Error loading /usr/local/kaffe/lib/libjavanio.dll.a: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/libjavanio.dll.a: No such file
> or directory
> Error loading /usr/local/kaffe/jre/lib/i386/cygjavanio.so: No such file or direc
> tory
> Error loading /usr/local/kaffe/lib/cygjavanio.so: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/cygjavanio.so: No such file or
> directory
> Error loading /usr/local/kaffe/jre/lib/i386/cygjavanio.dll: No such file or dire
> ctory
> Error loading /usr/local/kaffe/lib/cygjavanio.dll: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/cygjavanio.dll: No such file or
>  directory
> Error loading /usr/local/kaffe/jre/lib/i386/cygjavanio.la: file not found
> Error loading /usr/local/kaffe/lib/cygjavanio.la: file not found
> Error loading /usr/local/classpath/lib/classpath/cygjavanio.la: file not found
> Error loading /usr/local/kaffe/jre/lib/i386/cygjavanio.a: No such file or direct
> ory
> Error loading /usr/local/kaffe/lib/cygjavanio.a: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/cygjavanio.a: No such file or d
> irectory
> Error loading /usr/local/kaffe/jre/lib/i386/cygjavanio.dylib: No such file or di
> rectory
> Error loading /usr/local/kaffe/lib/cygjavanio.dylib: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/cygjavanio.dylib: No such file
> or directory
> Error loading /usr/local/kaffe/jre/lib/i386/cygjavanio.jnilib: No such file or d
> irectory
> Error loading /usr/local/kaffe/lib/cygjavanio.jnilib: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/cygjavanio.jnilib: No such file
>  or directory
> Error loading /usr/local/kaffe/jre/lib/i386/cygjavanio.dll.a: No such file or di
> rectory
> Error loading /usr/local/kaffe/lib/cygjavanio.dll.a: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/cygjavanio.dll.a: No such file
> or directory
> Error loading /usr/local/kaffe/jre/lib/i386/javanio.so: No such file or director
> y
> Error loading /usr/local/kaffe/lib/javanio.so: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/javanio.so: No such file or dir
> ectory
> Error loading /usr/local/kaffe/jre/lib/i386/javanio.dll: No such file or directo
> ry
> Error loading /usr/local/kaffe/lib/javanio.dll: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/javanio.dll: No such file or di
> rectory
> Error loading /usr/local/kaffe/jre/lib/i386/javanio.la: file not found
> Error loading /usr/local/kaffe/lib/javanio.la: file not found
> Error loading /usr/local/classpath/lib/classpath/javanio.la: file not found
> Error loading /usr/local/kaffe/jre/lib/i386/javanio.a: No such file or directory
>
> Error loading /usr/local/kaffe/lib/javanio.a: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/javanio.a: No such file or dire
> ctory
> Error loading /usr/local/kaffe/jre/lib/i386/javanio.dylib: No such file or direc
> tory
> Error loading /usr/local/kaffe/lib/javanio.dylib: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/javanio.dylib: No such file or
> directory
> Error loading /usr/local/kaffe/jre/lib/i386/javanio.jnilib: No such file or dire
> ctory
> Error loading /usr/local/kaffe/lib/javanio.jnilib: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/javanio.jnilib: No such file or
>  directory
> Error loading /usr/local/kaffe/jre/lib/i386/javanio.dll.a: No such file or direc
> tory
> Error loading /usr/local/kaffe/lib/javanio.dll.a: No such file or directory
> Error loading /usr/local/classpath/lib/classpath/javanio.dll.a: No such file or
> directory
> Method = java/lang/VMThrowable.fillInStackTrace()V
> Native stub = 'java_lang_VMThrowable_fillInStackTrace'
> Found java_lang_VMThrowable_fillInStackTrace in library /usr/local/kaffe/jre/lib
> /i386/libkaffevm.
> Internal error: caught an unexpected exception.
> Please check your CLASSPATH and your installation.
> java/lang/UnsatisfiedLinkError: Native library `javanio' not found (as file `lib
> javanio.dll' in class loader null) in gnu.classpath.boot.library.path and java.l
> ibrary.path `[/usr/local/kaffe/jre/lib/i386/, /usr/local/kaffe/lib/, /usr/local/
> classpath/lib/classpath/]'
>    at java.lang.ClassLoader.getSystemClassLoader (ClassLoader.java:799)
> Aborted (core dumped)
>
>
>   

Hm, it seems to be trying to load

Error loading /usr/local/classpath/lib/classpath/libjavanio.a: No such file or d
irectory

which you said you've got installed. Is the directory correct?

cheers,
dalibor topic

> 2007/10/8, Dalibor Topic <robilad at kaffe.org>:
>   
>> Yavor Georgiev wrote:
>>     
>>> ---------- Forwarded message ----------
>>> From: Yavor Georgiev <yavor.g.georgiev at gmail.com>
>>> Date: 08.10.2007 15:01
>>> Subject: Re: Fwd: [kaffe] kaffe compilation under cygwin
>>> To: Dalibor Topic <robilad at kaffe.org>
>>>
>>>
>>> Hi Dalibor,
>>>
>>> Thanks again for the support. Here is the error I get :
>>> ======================================
>>> Internal error: caught an unexpected exception.
>>> Please check your CLASSPATH and your installation.
>>> java/lang/UnsatisfiedLinkError: Native library `javanio' not found (as file `lib
>>> javanio.dll' in class loader null) in gnu.classpath.boot.library.path and java.l
>>> ibrary.path `[/usr/local/kaffe/jre/lib/i386/, /usr/local/kaffe/lib/, /usr/local/
>>> classpath/lib/classpath/]'
>>>    at java.lang.ClassLoader.getSystemClassLoader (ClassLoader.java:799)
>>> Aborted (core dumped)
>>> ======================================
>>> At the same time at :
>>> /usr/local/classpath/lib/classpath/
>>>
>>> I have libjavanio, but not dll , instead libjavanio.a file
>>>
>>> Could this be the problem?
>>>
>>>       
>> Hmm, odd. What does running kaffe with -vmdebug NATIVELIB say?
>>
>> cheers,
>> dalibor topic
>>
>>     
>
>
>   





More information about the kaffe mailing list