Re: error building git head GTK on OS X ... IM symbols missing etc.



On Oct 27, 2009, at 5:25 PM, Shawn Bakhtiar wrote:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN= \"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED - DGLIB_COMPILATION -DPCRE_STATIC -I/Users/sbakhtiar/gtk/inst/include - DG_DISABLE_SINGLE_INCLUDES -D_REENTRANT -g -O2 -Wall -MT gatomic.lo - MD -MP -MF .deps/gatomic.Tpo -c gatomic.c -fno-common -DPIC - o .libs/gatomic.o /var/folders/8i/8iPY4ZafEpezLgvmjxSKSU+++TY/-Tmp-//ccNq7o6P.s: 103:Incorrect register `%rdx' used with `l' suffix

Ah yes, I think I have stumbled on this as well. This is probably caused because the default jhbuildrc for the Mac forces a build for the 486:

# When building on intel, force build to be 486, since glib won't
# enable asm atomic operations otherwise.
#
try:
    _f = os.popen("uname -p")
    if _f.read().startswith("i386"):
    append_autogenargs("glib", "--build=i486-apple-darwin")

I changed the last line to:

     append_autogenargs("glib", "--build=x86_64-apple-darwin")

And that fixed it for me. (If you have a Mac with a Core2 processor, the user land will be in 64-bit in Snow Leopard).


regards,

-kris.


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