public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] libffi 3.2.1 on Tru64 5.1B
@ 2015-03-12  1:41 Jarkko Hietaniemi
  2015-03-12  2:07 ` Jay
  0 siblings, 1 reply; 2+ messages in thread
From: Jarkko Hietaniemi @ 2015-03-12  1:41 UTC (permalink / raw)
  To: libffi-discuss

[-- Attachment #1: Type: text/plain, Size: 696 bytes --]

The attached patch makes libffi compile on Tru64 5.1B.  Without it,
the compilation stops on this in src/alpha/osf.S:

#error "osf.S out of sync with ffi.h"

Since "make check" requires dejagnu but I don't have it, I tried
the "puts" example from http://www.atmark-techno.com/~yashi/libffi.html, 
and it worked.

(It would be good to have some trivial test suite that works
without dejagnu...)

Compiled with the ancient gcc 2.9 the system has.

The patch simply removes the check of FFI_TYPE_LAST being 14 or 
FFI_TYPE_POINTER.  Not necessarily the most correct thing to do,
but hey.

I have also access to an IRIX 6.5 box, but there the situation
seems to be more dire.  (gcc 3.3, FWIW.)







[-- Attachment #2: libffi-tru64.pat --]
[-- Type: text/plain, Size: 334 bytes --]

--- src/alpha/osf.S.dist	Thu Mar 12 01:16:49 2015
+++ src/alpha/osf.S	Thu Mar 12 01:16:59 2015
@@ -293,8 +293,7 @@
 	|| FFI_TYPE_UINT64 != 11	\
 	|| FFI_TYPE_SINT64 != 12	\
 	|| FFI_TYPE_STRUCT != 13	\
-	|| FFI_TYPE_POINTER != 14	\
-	|| FFI_TYPE_LAST != 14
+	|| FFI_TYPE_POINTER != 14
 #error "osf.S out of sync with ffi.h"
 #endif
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] libffi 3.2.1 on Tru64 5.1B
  2015-03-12  1:41 [PATCH] libffi 3.2.1 on Tru64 5.1B Jarkko Hietaniemi
@ 2015-03-12  2:07 ` Jay
  0 siblings, 0 replies; 2+ messages in thread
From: Jay @ 2015-03-12  2:07 UTC (permalink / raw)
  To: <jhi@iki.fi>; +Cc: <libffi-discuss@sourceware.org>

Fwiw, I had those systems up & running fairly recently -- getting newer (4.x) gcc working is quite possible. OSF /1 I got through gcc make check. I didn't necessarily build libffi. Fun stuff. :)


That is, don't be dismayed by your gcc 2.9/3.3. 


 - Jay

On Mar 11, 2015, at 6:41 PM, Jarkko Hietaniemi <jhi@iki.fi> wrote:

> The attached patch makes libffi compile on Tru64 5.1B.  Without it,
> the compilation stops on this in src/alpha/osf.S:
> 
> #error "osf.S out of sync with ffi.h"
> 
> Since "make check" requires dejagnu but I don't have it, I tried
> the "puts" example from http://www.atmark-techno.com/~yashi/libffi.html, and it worked.
> 
> (It would be good to have some trivial test suite that works
> without dejagnu...)
> 
> Compiled with the ancient gcc 2.9 the system has.
> 
> The patch simply removes the check of FFI_TYPE_LAST being 14 or FFI_TYPE_POINTER.  Not necessarily the most correct thing to do,
> but hey.
> 
> I have also access to an IRIX 6.5 box, but there the situation
> seems to be more dire.  (gcc 3.3, FWIW.)
> 
> 
> 
> 
> 
> 
> <libffi-tru64.pat>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-12  2:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-12  1:41 [PATCH] libffi 3.2.1 on Tru64 5.1B Jarkko Hietaniemi
2015-03-12  2:07 ` Jay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).