This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: AIX (Was: libffi 3.0.10 release candidate 2 available for testing)


Am 11.02.11 23:43, schrieb tom honermann:
If now it's possible to build libffi with XLC I would prefer this, but
I'm not familar with PowerPC assembly language at all.

I have applied your assembly patches to libffi 3.0.8 (which it is used by Firefox 3.6.9 or later) and I was able to build libffi with XLC 8 on AIX 5.1 ML9 32bit (and later...) :-)


I updated the test results wiki page
(http://www.moxielogic.org/wiki/index.php?title=Libffi_3.0.10) with
instructions for building on AIX with xlc for either 32-bit or 64-bit.

Removing the gcc only parameter "-Wall" from the Makefile.in template or invoke the IBM compiler with gxlc which will spit only a warning instead a fatal error about a non-existent assembler subprocess flag (-Wa...). Those GCC specific flags should only be added by configure if GCC is used (or dropped at all).


Regression testing 3.0.10rc3 with gcc 4.2.4 on AIX 5.1 (POWER3 machine):

libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -I. -I./include -Iinclude -I./src -maix32 -MT src/powerpc/aix_closure.lo -MD -MP -MF src/powerpc/.deps/aix_closure.Tpo -c src/powerpc/aix_closure.S -DPIC -o src/powerpc/.libs/aix_closure.o
Assembler:
/tmp//ccxcwEQN.s: line 196: 1252-149 Instruction extsb is not implemented in the current assembly mode COM.
gmake[2]: *** [src/powerpc/aix_closure.lo] Error 1


the instruction "extsb" at line 393 is not within the common mode instruction set, so the resulting objects won't run on rs6000-ibm-aix*, only powerpc-ibm-aix*
<http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.aixassem/doc/alangref/extsb.htm>


Support for POWER and POWER2 cpu (rs6000-ibm-aix*) was dropped with AIX 5.2, and with XLC/C++9 the common mode target support was removed.
So the common mode is kind of obsolete, but it should be documented. You can build on AIX 5.1 and the result will core dump if run on an old machine.
The oldest still supported AIX is 5.3 which needs PowerPC 604 or higher. AIX 6.1 needs a 64bit PowerPC


--
ULi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]