After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 160686 - Problem compiling glib on AIX
Problem compiling glib on AIX
Status: RESOLVED DUPLICATE of bug 316434
Product: glib
Classification: Platform
Component: general
2.4.x
Other AIX
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2004-12-07 12:47 UTC by lenhof
Modified: 2011-02-18 16:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description lenhof 2004-12-07 12:47:25 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
Comment 1 lenhof 2004-12-07 12:49:12 UTC
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
Comment 2 Matthias Clasen 2004-12-07 14:10:21 UTC
There is some other bug about asm constraints on powerpc, which I can't find
right now.
Comment 3 André Klapper 2006-12-11 00:47:15 UTC
dup of bug 316434?
Comment 4 Matthias Clasen 2006-12-11 13:57:47 UTC

*** This bug has been marked as a duplicate of 316434 ***