GNOME Bugzilla – Bug 160686
Problem compiling glib on AIX
Last modified: 2011-02-18 16:14:05 UTC
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -I/sysapp/opensource/gettext_0.10.40/include -pthread -g -O2 -Wall -MT gatomic.lo -MD -MP -MF .deps/gatomic.Tpo -c gatomic.c -DPIC -o .libs/gatomic.o gatomic.c: In function `g_atomic_int_exchange_and_add': gatomic.c:277: warning: matching constraint does not allow a register gatomic.c:277: warning: matching constraint does not allow a register gatomic.c: In function `g_atomic_int_add': gatomic.c:293: warning: matching constraint does not allow a register gatomic.c:293: warning: matching constraint does not allow a register Assembler: /tmp//ccIDEjaX.s: line 276: Error In Syntax /tmp//ccIDEjaX.s: line 279: Error In Syntax /tmp//ccIDEjaX.s: line 312: Error In Syntax /tmp//ccIDEjaX.s: line 315: Error In Syntax /tmp//ccIDEjaX.s: line 347: Error In Syntax /tmp//ccIDEjaX.s: line 349: Error In Syntax /tmp//ccIDEjaX.s: line 351: Error In Syntax /tmp//ccIDEjaX.s: line 352: Error In Syntax /tmp//ccIDEjaX.s: line 388: Error In Syntax /tmp//ccIDEjaX.s: line 390: Error In Syntax /tmp//ccIDEjaX.s: line 392: Error In Syntax /tmp//ccIDEjaX.s: line 393: Error In Syntax make[3]: *** [gatomic.lo] Error 1 make[3]: Leaving directory `/sysapp/sources/opensource/glib/glib-2.4.7/glib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/sysapp/sources/opensource/glib/glib-2.4.7/glib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/sysapp/sources/opensource/glib/glib-2.4.7' make: *** [all] Error 2 root:/sysapp/sources/opensource/glib/glib-2.4.7:(qqualiac) # The part of the configure which configures this : checking for pthread_attr_setstacksize... yes checking for minimal/maximal thread priority... PTHREAD_PRIO_MIN/PTHREAD_PRIO_MAX checking for pthread_setschedparam... yes checking for posix yield function... sched_yield checking size of pthread_mutex_t... 52 checking byte contents of PTHREAD_MUTEX_INITIALIZER... 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 checking whether to use assembler code for atomic operations... powerpc
To make it compile I do this : Comment the line in config.h /* #define G_ATOMIC_POWERPC 1 */ After this the compile just works... This is whith make 3.8 and gcc 3.4.2
There is some other bug about asm constraints on powerpc, which I can't find right now.
dup of bug 316434?
*** This bug has been marked as a duplicate of 316434 ***