compile error of glib-2.8.6

Title: メッセージ
I am trying to build GTK+-2.8.16 for MIPS target by cross-compiling.
First I compiled glib-2.8.6 required by GTK. But the compiling stopped
by the following error:
 /x_monta/local/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthread -g -O2 -Wall -MT gatomic.lo -MD -MP -MF .deps/gatomic.Tpo -c gatomic.c  -fPIC -DPIC
-o .libs/gatomic.o
gatomic.c: In function `IA__g_atomic_int_compare_and_exchange':
gatomic.c:61: error: `asm' operand requires impossible reload
Before make, I ran the configure with the follow options.
# ./configure --prefix=/x_monta/local/mipsel-hardhat-linux --host=i686-pc-linux-gnu CC=/x_monta/local/bin/cc
And the error is in glib-2.8.6/glib/gatomic.c
g_atomic_int_compare_and_exchange (gint *atomic,
       gint oldval,
       gint newval)
  gint result;
  __asm__ __volatile__ ("lock; cmpxchgl %2, %1"    <- this line causes error!
   : "=a" (result), "=m" (*atomic)
   : "r" (newval), "m" (*atomic), "0" (oldval));
  return result == oldval;
I couldnt unstand the meaning of the error message, so dont know how to fix it.
Please help me.
Thanks a lot.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]