Hello - I'm not sure I've got the right mailing list for this question, but
I thought I'd try.

 

I have downloaded glib-2.18.0 on Linux FC4, and am trying to cross-compile
with an arm-linux-gcc compiler.  Most of the stuff goes smoothly until I hit
the atomic_spin_trylock in the gatomic.c file.

 

This function has some embedded assembly (denoted with the asm keyword).
The particular error that I get is:

 

/bin/sh ../libtool --tag=CC   --mode=compile arm-linux-gcc -DHAVE_CONFIG_H
-I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS
-DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -DPCRE_STATIC
-DG_DISABLE_SINGLE_INCLUDES -pthread -mbig-endian -std=c99 -Wall -MT
gatomic.lo -MD -MP -MF .deps/gatomic.Tpo -c -o gatomic.lo gatomic.c

arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\"
-DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
-DPCRE_STATIC -DG_DISABLE_SINGLE_INCLUDES -pthread -mbig-endian -std=c99
-Wall -MT gatomic.lo -MD -MP -MF .deps/gatomic.Tpo -c gatomic.c -fPIC -DPIC
-o .libs/gatomic.o

gatomic.c: In function `atomic_spin_trylock':

gatomic.c:570: `asm' undeclared (first use in this function)

gatomic.c:570: (Each undeclared identifier is reported only once

gatomic.c:570: for each function it appears in.)

gatomic.c:570: parse error before "volatile"

 

I'm guessing that my arm-linux-gcc compiler is not compatible with the
embedded assembly directive, and that's why I'm getting the error.  However,
I thought I'd check to see if maybe there was some other setting that might
make this work.

 

Very kind regards,

 

John Peterson

 

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to