public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
* Problem getting libffi tested on powerpc-ibm-aix5.3.0.0
@ 2009-06-07 10:23 Jens Rehsack
  2009-06-08  8:56 ` Laurent Vivier
  0 siblings, 1 reply; 2+ messages in thread
From: Jens Rehsack @ 2009-06-07 10:23 UTC (permalink / raw)
  To: libffi-discuss; +Cc: Aleksej Saushev, Havard Eidnes

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

Hi all,

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).

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

[-- Attachment #2: patch-aj --]
[-- Type: text/plain, Size: 543 bytes --]

$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:
 

[-- Attachment #3: patch-ak --]
[-- Type: text/plain, Size: 721 bytes --]

$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

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

* Re: Problem getting libffi tested on powerpc-ibm-aix5.3.0.0
  2009-06-07 10:23 Problem getting libffi tested on powerpc-ibm-aix5.3.0.0 Jens Rehsack
@ 2009-06-08  8:56 ` Laurent Vivier
  0 siblings, 0 replies; 2+ messages in thread
From: Laurent Vivier @ 2009-06-08  8:56 UTC (permalink / raw)
  To: Jens Rehsack; +Cc: libffi-discuss, Aleksej Saushev, Havard Eidnes

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

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

end of thread, other threads:[~2009-06-08  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-07 10:23 Problem getting libffi tested on powerpc-ibm-aix5.3.0.0 Jens Rehsack
2009-06-08  8:56 ` Laurent Vivier

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).