public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Jay T via libffi-discuss" <libffi-discuss@sourceware.org>
To: "libffi-discuss@sourceware.org" <libffi-discuss@sourceware.org>
Cc: "green@moxielogic.com" <green@moxielogic.com>
Subject: Error in compiling ffi on HPUX-IA64 for 32-bit ruby
Date: Wed, 12 Feb 2020 04:49:00 -0000	[thread overview]
Message-ID: <699174756.1293240.1581482890683@mail.yahoo.com> (raw)
In-Reply-To: <699174756.1293240.1581482890683.ref@mail.yahoo.com>

Hello,On HP-UX IA64, I need help with the following errors when I compile ffi, as part of the ext package for 32-bit ruby:
"src/ia64/ffi.c", line 41: error #3088: an attribute specifies a mode 
incompatible with "void *"
   typedef void *PTR64 __attribute__((mode(DI)));
                                      ^

"src/ia64/ffi.c", line 116: error #2018: expected a ")"
         stf_spill (fpaddr, *(float *) addr);
         ^

"src/ia64/ffi.c", line 119: error #2018: expected a ")"
         stf_spill (fpaddr, *(double *) addr);
         ^

"src/ia64/ffi.c", line 122: error #2018: expected a ")"
         stf_spill (fpaddr, *(__float80 *) addr);
         ^

"src/ia64/ffi.c", line 140: error #2018: expected a ")"
       ldf_fill (result, fpaddr);
       ^

"src/ia64/ffi.c", line 147: error #2018: expected a ")"
       ldf_fill (result, fpaddr);
       ^

"src/ia64/ffi.c", line 154: error #2018: expected a ")"
       ldf_fill (result, fpaddr);
       ^

"src/ia64/ffi.c", line 187: error #3578: case label value has already 
appeared in this switch at line 181
       case FFI_TYPE_LONGDOUBLE:
            ^

"src/ia64/ffi.c", line 327: error #2018: expected a ")"
           stf_spill (&stack->fp_regs[fpcount++], *(float *)avalue[i]);
           ^

"src/ia64/ffi.c", line 337: error #2018: expected a ")"
           stf_spill (&stack->fp_regs[fpcount++], *(double *)avalue[i]);
           ^

"src/ia64/ffi.c", line 341: error #3578: case label value has already 
appeared in this switch at line 335
       case FFI_TYPE_LONGDOUBLE:
            ^

"src/ia64/ffi.c", line 345: error #2018: expected a ")"
           stf_spill (&stack->fp_regs[fpcount++], *(__float80 *)avalue[i]);
           ^

"src/ia64/ffi.c", line 371: error #3143: arithmetic on pointer to void 
or function type
                      avalue[i] + offset);
                                ^

"src/ia64/ffi.c", line 499: error #2018: expected a ")"
             ldf_fill (result, addr);
             ^

"src/ia64/ffi.c", line 513: error #2018: expected a ")"
             ldf_fill (result, addr);
             ^

"src/ia64/ffi.c", line 521: error #3578: case label value has already 
appeared in this switch at line 507
       case FFI_TYPE_LONGDOUBLE:
            ^

"src/ia64/ffi.c", line 529: error #2018: expected a ")"
             ldf_fill (result, addr);
             ^

"src/ia64/ffi.c", line 560: error #3143: arithmetic on pointer to void 
or function type
               hfa_type_store (hfa_type, addr + offset,
                                              ^

"src/ia64/ffi.c", line 568: error #3143: arithmetic on pointer to void 
or function type
             memcpy (addr + offset, (char *)stack->gp_regs + gp_offset,
                          ^

19 errors detected in the compilation of "src/ia64/ffi.c".
make[5]: *** [Makefile:1362: src/ia64/ffi.lo] Error 1
make[5]: Leaving directory '/mytemp/ruby-2.4.6/ext/fiddle/libffi-3.2.1'
make[4]: *** [Makefile:1596: all-recursive] Error 1
make[4]: Leaving directory '/mytemp/ruby-2.4.6/ext/fiddle/libffi-3.2.1'
make[3]: *** [Makefile:730: all] Error 2
make[3]: Leaving directory '/mytemp/ruby-2.4.6/ext/fiddle/libffi-3.2.1'
make[2]: *** [Makefile:371: libffi-3.2.1/.libs/libffi_convenience.a] Error 2
make[2]: Leaving directory '/mytemp/ruby-2.4.6/ext/fiddle'
make[1]: *** [exts.mk:212: ext/fiddle/all] Error 2
make[1]: Leaving directory '/mytemp/ruby-2.4.6'
make: *** [uncommon.mk:220: build-ext] Error 2


Can you please help me?
Thanks and regards,Jay

           reply	other threads:[~2020-02-12  4:49 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <699174756.1293240.1581482890683.ref@mail.yahoo.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=699174756.1293240.1581482890683@mail.yahoo.com \
    --to=libffi-discuss@sourceware.org \
    --cc=green@moxielogic.com \
    --cc=jay4edu@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).