Re: [Gtk-osx-devs] Gtk 64bit

On Jul 27, 2009, at 8:27 PM, John Ralls wrote:

On Jul 27, 2009, at 7:05 PM, Adam Puleo wrote:

On Jul 26, 2009, at 7:44 PM, John Ralls wrote:

On Jul 26, 2009, at 2:43 PM, Adam Puleo wrote:

Hmm. That really shouldn't work, because .jhbuildrc sets *FLAGS  
absolutely without reference to the users environment. I added
environ_append("CFLAGS", "-arch x86_64")
environ_append("CXXFLAGS", "-arch x86_64")
environ_append("LDFLAGS", "-arch x86_64")
to .jhbuildrc-custom and it built just fine, at least through meta-gtk-

Does it work for you if you leave *FLAGS alone? (Start clean, or  
you;ll have problems with the libraries you've already built. Don't  
worry about running the install script again, it doesn't do anything  
that matters. Just clear the environment variables, rm -rf gtk, and  
try again.)

You don't have MacPorts or Fink installed, do you?

BTW, you want CXXFLAGS, not CPPFLAGS. The later is for the  
preprocessor, which doesn't care about architecture; the former is for  
C++. But as long as you're not building the *mm libraries, there is no  
C++ anyway, so it doesn't matter.

John Ralls

Gtk-osx-devs mailing list
Gtk-osx-devs lists sourceforge net

Ah, cool, that worked up through glib in meta-gtk-osx-core:
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/apuleo/gtk/inst/include -DG_DISABLE_SINGLE_INCLUDES -D_REENTRANT -O2 -gstabs+3 -std=gnu89 -arch x86_64 -Wall -MT gatomic.lo -MD -MP -MF .deps/gatomic.Tpo -c gatomic.c  -fno-common -DPIC -o .libs/gatomic.o
/var/folders/bB/bBSVAARMHl8lfuXIu+aAbU+++TI/-Tmp-//cchZ0y88.s:815:Incorrect register `%rdx' used with `l' suffix
make[4]: *** [gatomic.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I have compiled glib 2.21.3 outside of jhbuild and it seemed to work.

How would I substitute 2.21.3 for 2.20.3?


In .jhbuildrc-custom, 
branches["glib"]="tag='2.21.3' "

I think. I'm not really sure about the branches thing, it's based on the jhbuild docs and code, not from ever having made it work. You may have to bang on it a bit. If you can't get it to work, you can use
which will use the one in ~/Source/jhbuild/modulesets, which you can edit.

John Ralls

Thank you John, I figured out the root of the problem.  The configure script was rebuilding config.h with I486 defined.  I edited config.h to use x86_64 and it compiled.  (I also had to tweak gconvert.c, line 55.)

The syntax for branches is like this:  branches["glib"]=""

I did end up sticking with verion 2.20.3.

Now I'll see if I can compile GtkAda against it.


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