Topic: Glib2.0 ARM
I've been cross compiling various things for the chumby (I have gotten Nano-X running, binary anyone?) I'm trying to get GTK+ working, but I need glib. I can't compile this for some reason. I can run
./configure --target=arm-linux --prefix=/arm-linux
And it configures fine.
But then I get this error on
arm-linux-make LIBTOOL=arm-linux-libtool
(I've cross-compiled libtool, you need it. I've got the binary if anyone wants it)
It goes for about a minute, then I get...
if arm-linux-libtool --mode=compile arm-linux-gcc -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 -o gatomic.lo `test -f 'gatomic.c' || echo './'`gatomic.c; \
then mv -f ".deps/gatomic.Tpo" ".deps/gatomic.Plo"; \
else rm -f ".deps/gatomic.Tpo"; exit 1; \
fi
arm-linux-gcc -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: impossible constraint in `asm'
gatomic.c:59: warning: `result' might be used uninitialized in this function
If you're wondering; gatomic.c lines 59-65:
...
gint result;
__asm__ __volatile__ ("lock; cmpxchgl %2, %1"
: "=a" (result), "=m" (*atomic)
: "r" (newval), "m" (*atomic), "0" (oldval));
return result == oldval;
...
Thanks. If anyone was able to build this, please let me know, and send me a binary