Olof Sivertsson
4/1/2006 3:45:00 PM
On 4/1/06, Dave Howell <groups@grandfenwick.net> wrote:
>
> On Mar 29, 2006, at 19:56, Nicolas Desprès wrote:
>
> > On 3/29/06, Dave Howell <groups@grandfenwick.net> wrote:
> >>
> >> On Mar 27, 2006, at 15:13, Dave Howell wrote:
> >>>
> >>> Can anybody fill me in on what I need to do differently to compile
> >>> Ruby with the "-ggdb" flag?
> >>
> >> Is this a harder question than I thought, or maybe I asked this in the
> >> wrong place?
> >>
> >>
> >>
> >
> > I've just compiled the Ruby last cvs version with -ggdb and "make
> > test" succeeded.
>
> I'm not getting that far. "configure" won't let me try to actually
> compile, because it declares that the compiler isn't working right when
> I add that flag.
>
> Maybe it's something that "got fixed" in the current version . . . .
>
>
>
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=<someflags> to include -ggdb, and then
continue building ruby (but you will probably get the same error in
the next step instead...)