Re: [Gc] AIX AO_TS_t not defined

Ivan Maidanski ivmai at mail.ru
Sat Oct 27 23:38:12 PDT 2012


Hi Perry,

AO_TS_t is defined in one of test_and_set_t_is_*.h depending on the target. The proper one should be included from ibmc/powerpc.h (Am I right that you use IBM C compiler and target CPU is PowerPC?)

It looks like AIX is still incomplete:
/* FIXME.  This is only a placeholder for the AIX compiler.             */
/* It doesn't work.  Please send a patch.                               */
https://github.com/ivmai/libatomic_ops/blob/master/src/atomic_ops/sysdeps/ibmc/powerpc.h

Could you please try to supply the patch using the code for GCC as a reference:
https://github.com/ivmai/libatomic_ops/blob/master/src/atomic_ops/sysdeps/gcc/powerpc.h ?

Latest code of libatomic_ops could be obtained by:
git clone git://github.com/ivmai/libatomic_ops.git -b master
cd libatomic_ops
./autogen.sh

Regards,
Ivan

Sat, 27 Oct 2012 12:46:33 -0500 Perry Smith <pedzsan at gmail.com>:
>	
>
>
	
	
>
		
		
			
>Hi,
>
>
>I'm trying to build guile which depends upon gc.  I tried gc-7.2d and gc-7.1 and both fail with:
>
>
>
>>atomic_ops.c:97:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AO_locks'
>>atomic_ops.c:143:39: error: expected ';', ',' or ')' before '*' token
>>atomic_ops.c:151:38: error: expected ';', ',' or ')' before '*' token
>>atomic_ops.c:157:40: error: expected ';', ',' or ')' before '*' token
>>atomic_ops.c:165:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'init_lock'
>>atomic_ops.c: In function 'AO_compare_and_swap_emulation':
>>atomic_ops.c:171:3: error: 'AO_TS_t' undeclared (first use in this function)
>>atomic_ops.c:171:3: note: each undeclared identifier is reported only once for each function it appears in
>>atomic_ops.c:171:12: error: 'my_lock' undeclared (first use in this function)
>>atomic_ops.c:171:22: error: 'AO_locks' undeclared (first use in this function)
>>atomic_ops.c:178:13: error: 'init_lock' undeclared (first use in this function)
>>atomic_ops.c: In function 'AO_compare_double_and_swap_double_emulation':
>>atomic_ops.c:211:3: error: 'AO_TS_t' undeclared (first use in this function)
>>atomic_ops.c:211:12: error: 'my_lock' undeclared (first use in this function)
>>atomic_ops.c:211:22: error: 'AO_locks' undeclared (first use in this function)
>>atomic_ops.c:218:13: error: 'init_lock' undeclared (first use in this function)
>>atomic_ops.c: In function 'AO_store_full_emulation':
>>atomic_ops.c:250:3: error: 'AO_TS_t' undeclared (first use in this function)
>>atomic_ops.c:250:12: error: 'my_lock' undeclared (first use in this function)
>>atomic_ops.c:250:22: error: 'AO_locks' undeclared (first use in this function)
>>make[3]: *** [atomic_ops.o] Error 1
>
>
>
>I'm on AIX 6.1 TL07 SP03
>
>
>I can't even figure out who / where AO_TS_t is defined.
>
>
>I could cobble in some definition but I just assume I missed a step somewhere.
>
>
>(I'm not subscribed to the list.)
>
>
>Thank you,
>Perry Smith
>
>
			
>_______________________________________________
>
Gc mailing list
>Gc at linux.hpl.hp.com
>http://www.hpl.hp.com/hosted/linux/mail-archives/gc/
>
		
		
	

	
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://napali.hpl.hp.com/pipermail/gc/attachments/20121028/dde11f65/attachment.htm


More information about the Gc mailing list