This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
libffi 3.0.11 on AIX
- From: Jay Foad <jay dot foad at gmail dot com>
- To: libffi-discuss at sourceware dot org
- Date: Thu, 28 Jun 2012 13:33:29 +0100
- Subject: libffi 3.0.11 on AIX
Hi,
I've tried building libffi 3.0.11 on AIX 6.1 using xlc V11.1.
1. The first annoyance (as pointed out here:
http://sourceware.org/ml/libffi-discuss/2011/msg00064.html) is that
the configure script tries to run "xlc --version" before trying "xlc
-qversion". Unfortunately "xlc --version" prints xlc's help message
through $PAGER, and waits for you to exit the pager before continuing.
2. The build failed here:
source='../src/powerpc/ffi_darwin.c'
object='src/powerpc/ffi_darwin.lo' libtool=yes DEPDIR=.deps
depmode=aix /bin/sh ../depcomp /bin/sh ./libtool --tag=CC
--mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I.. -I.
-I../include -Iinclude -I../src -DFFI_BUILDING -g -O3 -qansialias -w
-qarch=auto -qtune=auto -v -c -o src/powerpc/ffi_darwin.lo
../src/powerpc/ffi_darwin.c
libtool: compile: cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I.. -I.
-I../include -Iinclude -I../src -DFFI_BUILDING -g -O3 -qansialias -w
-qarch=auto -qtune=auto -v -c -M ../src/powerpc/ffi_darwin.c -DPIC -o
src/powerpc/.libs/ffi_darwin.o
exec: export(export,XL_CONFIG=/etc/vac.cfg.61:cc,NULL)
exec: export(export,XL_ASMOBJFILES=/tmp/xlcASBZajyd,NULL)
exec: export(export,XL_DIS=/usr/vac/exe/dis -m pwr7 -o
"src/powerpc/.libs/ffi_darwin.o" "ffi_darwin.o",NULL)
exec: /usr/vac/exe/xlcentry(/usr/vac/exe/xlcentry,-qosvar=aix.6.1,-qlanglvl=extended,-qnoro,-qnoroconst,-D_AIX,-D_AIX32,-D_AIX41,-D_AIX43,-D_AIX50,-D_AIX51,-D_AIX52,-D_AIX53,-D_AIX61,-D_IBMR2,-D_POWER,-qlanglvl=extc89,-DHAVE_CONFIG_H,-I.,-I..,-I.,-I../include,-Iinclude,-I../src,-DFFI_BUILDING,-g,-O3,-qansialias,-w,-w,-qarch=pwr7,-qtune=pwr7,-M,-DPIC,-qasm_as=/bin/as,-qc_stdinc=/usr/vac/include:/usr/include,-qvac_include_path=/usr/vac/include,-MFsrc/powerpc/.libs/ffi_darwin.u,-osrc/powerpc/.libs/ffi_darwin.o,../src/powerpc/ffi_darwin.c,/tmp/xlcW0BYajya,/tmp/xlcW1BYajyb,/dev/null,/tmp/xlcLBZajyeF.lst,/dev/null,/tmp/xlcW2BYajyc,NULL)
"../src/powerpc/ffi_darwin.c", line 305.3: 1506-046 (S) Syntax error.
... because xlc doesn't like "//" comments in C code, unless you
compile with -qcpluscmt or -qlanglvl=c99 (or extc99).
3. The build failed here:
libtool: compile: cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I.. -I.
-I../include -Iinclude -I../src -DFFI_BUILDING -I. -I../include
-Iinclude -I../src -DFFI_BUILDING -g -c -M ../src/powerpc/aix.S -DPIC
-o src/powerpc/.libs/aix.o
Assembler:
/tmp/xlcS02LapUd.s: line 100: Error In Syntax
/tmp/xlcS02LapUd.s: line 113: Error In Syntax
/tmp/xlcS02LapUd.s: line 165: Error In Syntax
/tmp/xlcS02LapUd.s: line 181: Error In Syntax
... because of "//" comments in assember source. Again, compiling with
-qpluscmt will fix it.
4. "make check" doesn't do anything useful, but that's because I don't
have dejagnu installed!
Thanks for any help,
Jay.