Re: Help setting up Sablevm
David Bélanger <[email protected]> Mon, 21 Mar 2005 15:14:17 -0500
| Newsgroups | gmane.comp.java.vm.sablevm.general |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Mar 20, 2005 at 08:22:11PM -0800, Kyle S wrote:
> I am attempting to get Savblevm to work on my amd Open64 box. But am having no luck installing libffi.
> I am using libffi-sablevm-3765. After spending hours looking through configure I ended up adding one line (denoted by the plus marks):
>
> TARGETDIR="unknown"
> case "$host" in
> i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
> i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
> ...
> x86_64-*-linux* | x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) TARGET=X86_64; TARGETDIR=x86;;
> ++x86_64-*-openbsd*) TARGET=X86_64; TARGETDIR=x86;; #edited by juri 20MAR2005
> sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
>
> Running './configure && make && make install' seemed to work fine. But when I tried to install sablevm-1.11.1 I had no luck. All I got was:
> ...
> checking for ffi_prep_cif in -lffi... no
> ***ERROR: libffi is missing
>
> I read somewhere to try this file and compiliing with
> gcc -o test -lffi test.c.
>
> #include <ffi.h>
> int main()
> {
> ffi_cif cif;
> ffi_type *args[1];
> ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1, &ffi_type_uint, args);
> return 0;
> }
>
> I get:
> /usr/bin/ld: cannot find -lffi
> collect2: ld returned 1 exit status
>
> If you need me to send some lines from config.log or do any test. Please let me know. Thank you for your help.
> Kyle
> --
Hi Kyle,
Where did you install libffi?
Check if properly installed, i.e. if $prefix/lib/libffi.so is there.
Depending on where it is installed, you might need to specify its
location with LDFLAGS and CPPFLAGS:
./configure LDFLAGS="-L/path/to/lib" CPPFLAGS="-I/path/to/include"
David
---
David Bélanger
Web page: http://www.cs.mcgill.ca/~dbelan2/
Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt