RE: compile error of glib-2.8.6
- From: "Yang" <pwd5t4z25t mf point ne jp>
- To: "'sanjeev yadav'" <kernelstuff gmail com>
- Cc: gtk-list gnome org
- Subject: RE: compile error of glib-2.8.6
- Date: Mon, 27 Mar 2006 11:18:24 +0900
Title: メッセージ
Yes, you are right. I resolved this problem by set
--host=mipsel-linux
Thanks!
Yang
__host should be host for which you r
cross-compiling i.e MIPS.
On 3/24/06, Yang
<pwd5t4z25t mf point ne jp
> wrote:
Hello
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
------------------
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 gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]