Re: "cannot create sablevm" message running sablevm in x86

David Bélanger <[email protected]> Wed, 20 Apr 2005 23:57:20 -0400
Newsgroups gmane.comp.java.vm.sablevm.general
Message-ID <[email protected]>
On Wed, Apr 20, 2005 at 11:11:03AM +0200, Rife, Jaume wrote:
> I'm trying to run sablevm-1.11.3 in a x86 architecture using a RedHat 9 distribution and it fails with this error:
>  
> $sablevm -v HelloWorld
> [verbose jni: JNI_CreateJavaVM]
> [verbose gc: allocating initial heap (16777216 bytes)]
> [verbose class: loading "java/lang/Object"]
> [verbose class: loading "java/io/Serializable"]
> [verbose class: loading "java/lang/Cloneable"]
> [verbose class: creating "[B"]
> [verbose class: loading "java/lang/VMClass"]
> [verbose class: loading "java/lang/Class"]
> sablevm: cannot create vm
>  
> I make the same in a Xscale architecture and it works fine
>  
> The process I have followed to install it in both architectures (x86 and Xscale) is:
>  
> Install libffi-2.1
> ./configure --prefix=/tmp/sablevm
> make
> make install
>  
> Install jikes-1.22
> ./configure --prefix=/tmp/sablevm
> make
> make install
>  
> Install sablevm-classpath using this configure command:
> ./configure --prefix=/tmp/sablevm --disable-gtk --disable-gtk-peer --with-jikes=/tmp/sablevm/bin/jikes
> make
> make install
>  
> Install sablevm using this configure command:
> export LDFLAGS=-L/tmp/sablevm/lib
> export CFLAGS=-I/tmp/sablevm/include

It should be CPPFLAGS and not CFLAGS to set the -I option (it is a
preprocessor option).

By setting the CFLAGS variable, the default CFLAGS option -O2 does not
get use and the SableVM most efficient interpreter can broke easily when
the default CFLAGS do not get used.

David

---

David Bélanger
Web page:   http://www.cs.mcgill.ca/~dbelan2/
Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt