Yes, you are right. I resolved this problem by set
--host=mipsel-linux
Thanks!
Yang
-----Original Message-----__host should be host for which you r cross-compiling i.e MIPS.
From: sanjeev yadav [mailto:kernelstuff@xxxxxxxxx]
Sent: Friday, March 24, 2006 10:01 PM
To: Yang
Subject: Re: compile error of glib-2.8.6
On 3/24/06, Yang <pwd5t4z25t@xxxxxxxxxxxxxx > wrote:HelloI 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 stoppedby 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/ccAnd the error is in glib-2.8.6/glib/gatomic.c------------------gboolean
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.Yang
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list