Re: FW: Re: hppa and libffi - SableVM on HP-UX

David Bélanger <[email protected]> Wed, 20 Apr 2005 23:37:13 -0400
Newsgroups gmane.comp.java.vm.sablevm.general
Message-ID <[email protected]>
Hi Mike,

About the missing file... for some strange reason, it is not in the
libffi snapshot...  It is there for the other arch but not pa...

But the missing file seem to be in the svn repository.
svn co svn://svn.sablevm.org/public/libffi/trunk trunk-libffi
to get most recent version.  Or put the attached file in src/pa and try
again.

David

On Wed, Apr 20, 2005 at 10:01:29PM +0000, [email protected] wrote:
> After adding an expression to pass the $host check, I ran into a linking problem towards the end of "configure" execution:
> 
> config.status: creating include/Makefile
> config.status: creating include/ffi.h
> config.status: creating Makefile
> config.status: creating testsuite/Makefile
> config.status: creating fficonfig.h
> config.status: linking ../src/pa/ffitarget.h to include/ffitarget.h
> config.status: error: ../src/pa/ffitarget.h: file not found
> 
> ======================================
> 
> Does anyone have an "unofficial" list of proprietary UNIX platforms which the SableVM has been ported to?
> 
> I noticed there was some support for Solaris, but without total libffi porting success.  Any AIX porting attempts?  Any ports to Windows using MingW?
> 
> Thanks,
> Mike
> -------------- Original message -------------- 
> 
> > > Is there anything you can suggest with the problem I've been having on HP-UX 
> > 11.00 (64 bit)? 
> > > 
> > > It may be more appropriate to reply to my posts (posted today) on the SableVM 
> > users mailing list. 
> > 
> > I'm not on the SableVM-users list. 
> > 
> > libffi indeed hasn't been ported to hpux. It's on my todo list, 
> > but my time is a bit limited these days. 
> > 
> > As David pointed out, while the hppa-linux libffi port may be a good 
> > starting point, there are some differences w.r.t. the hpux ABI, 
> > especially with the use of multiple subspaces. That will require some 
> > work in libffi to get it to work with hpux. 
> > 
> > randolph 
> > -- 
> > Randolph Chung 
> > Debian GNU/Linux Developer, hppa/ia64 ports 
> > http://www.tausq.org/ 
> > 
> > _______________________________________________ 
> > SableVM-user mailing list 
> > [email protected] 
> > http://sablevm.org/lists/control/listinfo/sablevm-user 
> _______________________________________________
> SableVM-user mailing list
> [email protected]
> http://sablevm.org/lists/control/listinfo/sablevm-user


-- 

---

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
ffitarget.h (text/x-chdr, 1.9 KB)
/* -----------------------------------------------------------------*-C-*-
   ffitarget.h - Copyright (c) 1996-2003  Red Hat, Inc.
   Target configuration macros for hppa.

   Permission is hereby granted, free of charge, to any person obtaining
   a copy of this software and associated documentation files (the
   ``Software''), to deal in the Software without restriction, including
   without limitation the rights to use, copy, modify, merge, publish,
   distribute, sublicense, and/or sell copies of the Software, and to
   permit persons to whom the Software is furnished to do so, subject to
   the following conditions:

   The above copyright notice and this permission notice shall be included
   in all copies or substantial portions of the Software.

   THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS
   OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
   IN NO EVENT SHALL CYGNUS SOLUTIONS BE LIABLE FOR ANY CLAIM, DAMAGES OR
   OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
   OTHER DEALINGS IN THE SOFTWARE.

   ----------------------------------------------------------------------- */

#ifndef LIBFFI_TARGET_H
#define LIBFFI_TARGET_H

/* ---- System specific configurations ----------------------------------- */

#ifndef LIBFFI_ASM
typedef unsigned long          ffi_arg;
typedef signed long            ffi_sarg;

typedef enum ffi_abi {
  FFI_FIRST_ABI = 0,

#ifdef PA
  FFI_LINUX,
  FFI_DEFAULT_ABI = FFI_LINUX,
#endif

  FFI_LAST_ABI = FFI_DEFAULT_ABI + 1
} ffi_abi;
#endif

/* ---- Definitions for closures ----------------------------------------- */

#define FFI_CLOSURES 1
#define FFI_NATIVE_RAW_API 0

#define FFI_TRAMPOLINE_SIZE 32

#define FFI_TYPE_SMALL_STRUCT1 -1
#define FFI_TYPE_SMALL_STRUCT2 -2
#endif