SableVM on AIX 5.2 [was: Re: Help Solicited]

"Grzegorz B. Prokopski" <[email protected]>
Newsgroups gmane.comp.java.vm.sablevm.general
Organization SableVM - LGPL'ed Free Java VM http://sablevm.org
Message-ID <[email protected]>
Hello Manish,

On Fri, 2004-11-19 at 07:44, Manish.Sood wrote:
> I need to install Sable 1.1.6 on AIX 5.2.
> I have downloaded the souces sablevm-1.1.6.tar.gz and
> sablevm-classpath-1.1.6.tar.gz and expanded them. 

Actually 1.1.7 is our latest release, but at this stage solving your
problems with compilation of 1.1.6 will be the same as with 1.1.7.

> But when I try to build the SableVM, the configure complaints
> about the missing libffi. The output of the configure is attached
> for reference.

Libffi (unfortunatelly) comes with sources for gcc, but it is not
required to compile them all just to get libffi installed on your
system.  In newer gcc (3.4 and up, I think) you can just do 'configure
&& make install' in gcc/libffi directory of unpacked gcc sources.
For older versions you should follow

	http://sablevm.org/wiki/LibFFI

It also describes how to setup your environment so that libffi was
"picked up" during compilation and later, when you run SableVM.

Note, that you should be using rather new version of GCC to compile
libffi.  It does not have to match exactly the version of GCC soures
from which you taken the libffi sources, but should be "similarly
recent".  I.e. you probably won't be able to compile libffi from
gcc 3.3 using gcc 2.95.  What version of gcc did you use?

> Kindly let me know where I can get the source/binaries for the
> required libraries and how should I build them (libffi, libpopt,
> libgtk, libart and libldl3).

I don't know where people usually get binaries for AIX, but you should
have no problem with finding the needed sources IF you cannot find
precompiled binaries.

ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/popt-1.7.tar.gz
libldl3 comes with libtool ('ldl' is Libtool Dynamic Linker or so, IIRC)

libgtk - http://www.gtk.org/download/ - use version 2.4
libart - ftp://ftp.gnome.org/pub/GNOME/sources/libart_lgpl/2.3/

Note that these libraries might have some build or runtime dependencies
themselves, so it'd be *much* faster/easier for you to just find
precompiled versions.  In particular libgtk and libart will be included
in any distribution of GNOME desktop (probably also with libpopt).

> Also I need to know which version of jikes is required and how should
> it be put to use i.e. putting the path to jikes executable is enough??

We use the latest version Jikes 1.22 but "slightly" older versions also
are expected to work (so if you already have a precompiled binary of
jikes you should first try it on, and only compile newer versions if the
older one didn't work).

> Also the should I use make or gmake to build SableVM?

GNU Make, that is 'gmake'.

> I also need to copy the Makefile.in to makefile before issueing the make
                 ^^^^^
> command (either make or gmake) BUT the make fails as it complaints 
> 		makefile:15: *** missing separator.  Stop.

No!  You should run ./configure script that will generate all needed
Makefiles.  Usually the configure call, for the "first time" compilation
of sablevm would look like:

./configure --enable-debugging-features --prefix=/where/to/install

for sablevm-classpath you omit the --enable-debugging-features, but
the --prefix value *has to be the same*.

Hope this helps,

				Grzegorz B. Prokopski
-- 
Grzegorz B. Prokopski      <[email protected]>
Debian GNU/Linux           http://www.debian.org
SableVM - LGPL'ed Java VM  http://www.sablevm.org
Why SableVM ?!?            http://sablevm.org/wiki/Features
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.