From: Dave Howell Date: 2006-04-02T08:50:34+09:00 Subject: Re: ./configure doesn't like CFLAGS='-ggdb' On Apr 1, 2006, at 7:45, Olof Sivertsson wrote: > I too can build both the latest CVS version and the 1.8.4 release with > -ggdb. But I'm on a x86 Debian GNU/Linux machine, while I guess you're > on a Mac (and probably a PowerPC) since you're using RubyCocoa. > Perhaps the installed version of gcc or as or some other surrounding > tools are broken with the -ggdb flag? You could try upgrading gcc (I > successfully built ruby with gcc 4.0.3) to see if that helps. > > But before you go to all that trouble, just try running configure > without -ggdb and instead hand-edit Makefile after this step, changing > the line which contains CFLAGS= to include -ggdb, and then > continue building ruby (but you will probably get the same error in > the next step instead...) You are correct on all counts. I found the line you described with no problem, changed it, and started getting error messages immediately. I also took another close look at the man pages for "gcc" which warned me that OSX gcc had some bonus Apple commands but is also missing some things, and that under OSX it's actually a link to gcc-3.3. Except it's not. Last time I tried to compile Ruby, I couldn't get it to run until I replaced the "/user/bin/gcc" link with a simple copy of the "gcc3" file in my /user/bin directory. So I went back to the make file, and changed the CC= to be CC=gcc-3.3 And hocus-pocus-in-focus, the makefile is now merrily pouring page after page of utterly mystifying yet somehow reassuring text across my screen. Thanks!