On Thu, 4 Jan 2001, Mathieu Bouchard wrote: > > > And on a Dec Alpha system with gcc -v giving: > > Reading specs from > > /usr/local/gnu/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/specs > > gcc version 2.95.2 19991024 (release) > > [...] > > gcc -g -O2 -ansi main.o dmyext.o libruby.a -lm -o miniruby > > ./mkconfig.rb:44: stack level too deep (SystemStackError) > > from ./mkconfig.rb:29:in `foreach' > > from ./mkconfig.rb:29 > > make: *** [rbconfig.rb] Error 1 > > > > Got the same on a NetWinder (StrongARM 233 MHz) yesterday. It looks like > it stays stack too deep even though it's at depth 2. Trying: > [...] > matju > > My "bodge" for this problem was to change the makefile so that -ansi was not used in the CFLAGS. What I should do is this: brains hgs 279 %> gdiff -u configure.in configure.in.new --- configure.in Sun Nov 12 16:44:04 2000 +++ configure.in.new Wed Jan 3 10:41:18 2001 @@ -829,7 +829,7 @@ ;; osf*) if test "$without_gcc" = "no" ; then - CFLAGS="$CFLAGS -ansi" + CFLAGS="$CFLAGS" else # compile something small: taint.c is fine for this. # the main point is the '-v' flag of 'cc'. brains hgs 280 %> I have never needed -ansi when compiling with GCC -- in my experience GCC has always* been able to cope with K&R and ANSI C, so I think this ought to be safe. BUT I don't know enough about the internals of GCC or the internals of Ruby to be able to say if this is the correct fix. Also, I don't know if this would break things for other 'osf*' -- I thing OSF was more than just DEC, (HP??), so I hope those "in the know" will be able to tell me more. * Well, obviously not before ANSI C existed... :-) Hmm, why is is written: if test "$without_gcc" = "no" when double negatives are best avoided? Maybe there is no $with_gcc to compare to "yes". Oh well, never mind. Hugh hgs / dmu.ac.uk