RE: "cannot create sablevm" message running sablevm in x86
"Rife, Jaume" <[email protected]> Thu, 21 Apr 2005 09:27:59 +0200
| Newsgroups | gmane.comp.java.vm.sablevm.general |
|---|---|
| Message-ID | <955BC05169DFB245A4835CE15CEE32B20215C17B@bcnexc02.emea.cpqcorp.net> |
I have set CPPFLAGS, but it fails again. Jaume -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of David Bélanger Sent: Thursday, April 21, 2005 5:57 AM To: SableVM Users Mailing List Subject: Re: "cannot create sablevm" message running sablevm in x86 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 _______________________________________________ SableVM-user mailing list [email protected] http://sablevm.org/lists/control/listinfo/sablevm-user