From: Tanaka Akira Date: 2006-07-29T17:47:50+09:00 Subject: Re: Problem with ruby 1.9 In article <7d9a1f530607290135y2901da9cxd18c7227c79f0553@mail.gmail.com>, "Vincent Isambart" writes: > When building ruby, make stops after an 'Illegal instruction' that > occured while running miniruby on ./ext/extmk.rb. After some > investigation I reduced the code causing an Illegal instruction to 2 > lines : > def xxx(a) yield end > xxx('') { break } > > This program runs without any problem with ruby 1.8.2, 1.8.4 or event > the last yarv. > If the xxx function does not take any argument, it works fine. > My computer's running Mac OS X 10.4.7 (powerpc-apple-darwin8.7.0). I think it is a gcc's alloca problem. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28197 C_ALLOCA may avoid the problem. For example: ./configure CFLAGS='-O2 -g -DC_ALLOCA' -- Tanaka Akira