public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Laurent Vivier <Laurent.Vivier@bull.net>
To: Jens Rehsack <rehsack@googlemail.com>
Cc: libffi-discuss@sources.redhat.com,
		Aleksej Saushev <asau@inbox.ru>, Havard Eidnes <he@NetBSD.org>
Subject: Re: Problem getting libffi tested on powerpc-ibm-aix5.3.0.0
Date: Mon, 08 Jun 2009 08:56:00 -0000	[thread overview]
Message-ID: <1244451340.4775.1.camel@frecb07144> (raw)
In-Reply-To: <4A2B92E9.6080602@netbsd.org>

Le dimanche 07 juin 2009 à 10:14 +0000, Jens Rehsack a écrit :
> Hi all,

Hi,

> first of all I had problems get libffi-3.0.8 compiled on
> powerpc-ibm-aix5.3.0.0 platform. I created attached patches and tried to run
> the tests as suggested by Havard, but they won't run properly with xlc [1,
> 2]. Aleksej finds some powerpc users which have a gcc and reported 4
> failures - but I don't know which went wrong.
> I searched a bit how to configure dejagnu for the named platform, but with
> less success. The only switch I've found is `env
> RUNTESTFLAGS="CC_FOR_TARGET=cc" make test`. The result can be found at [3]
> (to big to attach).


Did you try binaries from there:

http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/download.html

or directly:

ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/libffi-4.2.0-3.aix5.3.ppc.rpm

patches and .spec are also available.

Regards,
Laurent
> Any help is welcome.
> Best regards,
> Jens
> 
> 1: http://www-01.ibm.com/software/awdtools/xlcpp/library/
> (http://publib.boulder.ibm.com/infocenter/comphelp/v101v121/index.jsp)
> 2:
> http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds4/printf.htm
> 3: http://www.hirschbeutel.de/pkgsrc/libffi-test-powerpc-ibm-aix5.3.0.0.log
>    http://www.hirschbeutel.de/pkgsrc/libffi-test-powerpc-ibm-aix5.3.0.0.log.bz2
> pièce jointe document texte brut (patch-aj)
> $NetBSD
> 
> Fix for 64-bit AIX
> 
> --- src/powerpc/aix_closure.S.orig	2009-05-30 18:36:37.000000000 +0200
> +++ src/powerpc/aix_closure.S	2009-05-30 19:46:27.000000000 +0200
> @@ -84,6 +84,7 @@
>  #define L(x) x
>  	.file "aix_closure.S"
>  	.toc
> +	.extern .ffi_closure_helper_DARWIN
>  LC..60:
>  	.tc L..60[TC],L..60
>  	.csect .text[PR]
> @@ -96,7 +97,11 @@
>  .csect ffi_closure_ASM[DS]
>  
>  ffi_closure_ASM:
> +#if defined(_ARCH_PPC64)
> +	.llong .ffi_closure_ASM, TOC[tc0], 0
> +#else
>  	.long .ffi_closure_ASM, TOC[tc0], 0
> +#endif
>  	.csect .text[PR]
>  .ffi_closure_ASM:
>  
> pièce jointe document texte brut (patch-ak)
> $NetBSD
> 
> Fix for 64-bit AIX
> 
> --- src/powerpc/aix.S.orig	2009-05-30 19:47:43.000000000 +0200
> +++ src/powerpc/aix.S	2009-05-30 18:36:11.000000000 +0200
> @@ -96,7 +96,11 @@
>  	.globl .ffi_call_AIX
>  .csect ffi_call_AIX[DS]
>  ffi_call_AIX:
> +#if defined(_ARCH_PPC64)
> +	.llong .ffi_call_AIX, TOC[tc0], 0
> +#else
>  	.long .ffi_call_AIX, TOC[tc0], 0
> +#endif
>  	.csect .text[PR]
>  .ffi_call_AIX:
>  	mr      r12,r8 // We only need r12 until the call, so it doesn't have to be saved...
> @@ -216,7 +220,11 @@
>  	.globl .ffi_call_DARWIN
>  .csect ffi_call_DARWIN[DS]
>  ffi_call_DARWIN:
> +#if defined(_ARCH_PPC64)
> +	.llong .ffi_call_DARWIN, TOC[tc0], 0
> +#else
>  	.long .ffi_call_DARWIN, TOC[tc0], 0
> +#endif
>  	.csect .text[PR]
>  .ffi_call_DARWIN:
>  	blr
-- 
------------------ Laurent.Vivier@bull.net  ------------------
"Tout ce qui est impossible reste à accomplir"    Jules Verne
"Things are only impossible until they're not" Jean-Luc Picard

      reply	other threads:[~2009-06-08  8:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-07 10:23 Jens Rehsack
2009-06-08  8:56 ` Laurent Vivier [this message]

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=1244451340.4775.1.camel@frecb07144 \
    --to=laurent.vivier@bull.net \
    --cc=asau@inbox.ru \
    --cc=he@NetBSD.org \
    --cc=libffi-discuss@sources.redhat.com \
    --cc=rehsack@googlemail.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).