Re: Glib error



On Sat, Nov 18, 2006 at 03:33:35AM -0800, Bobby Walters wrote:
> I have been trying to install anjuta-1.x, and 2.0.2 on CentOS 4.1 for a
> while....and i keep running into an error.
> This error:
> 
> gcc -g -O2 -Wall -o .libs/glib-genmarshal glib-genmarshal.o
> ../glib/.libs/libglib-2.0.so -lrt -Wl,--rpath -Wl,/usr/local/lib
> ../glib/.libs/libglib-2.0.so: undefined reference to `__sync_fetch_and_add'
> ../glib/.libs/libglib-2.0.so: undefined reference to
> `__sync_bool_compare_and_swap'
> collect2: ld returned 1 exit status
> make[2]: *** [glib-genmarshal] Error 1
> 
> I havent been sucessfull in finding a solution, and im wondering if
> its a known problem....

You are trying it on IA64, right?  __sync_fetch_and_add is
a gcc builtin.  GLib's configure simply assumes you have it
on IA64.  I don't know how one can lack it.

But the strange thing is that you get an undefined reference
to a gcc builtin at all.  This means it was not recognized
and expanded in-place when GLib was compiled, instead it was
left as an undefined symbol.  So if you compiled GLib
yourself check what's going on in the compilation, otherwise
report it to whoever built it as a bug.

Yeti


--
Whatever.



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