From: Eric Hodel Date: 2007-10-15T09:31:26+09:00 Subject: Re: Which OS X Tiger PPC C compiler is best to use for Ruby? On Oct 14, 2007, at 16:40 , Mike Stok wrote: > I have recently started picking up Ruby again on my OSX PowerPC > system. I use MacPorts to build stuff like PostgreSQL and other > "system" components, and then like to build different versions of > Ruby under /usr/local/ruby-1.8.6-p111/... so that I can have > multiple versions. > > I had been using Apple's 4.0 gcc and getting occasional errors with > rdoc documentation installs terminating my build. It seems that if > I do a gcc_select 3.3 before the build then everything proceeds > just fine to completion with no problems. This might explain some > of the comments like "Some readers also report seeing an RDoc > failure error. This one is actually nothing to worry about. Just re- > run the original command above, or don’t. Things should be fine > either way (really)." on http://hivelogic.com/narrative/articles/ > ruby_rails_lighttpd_mysql_tiger?status=301 > > I have had a quick look around using common search engines, and I > haven't seen any list of recommended or known bad combinations of > gcc and ruby on OSX. Does such a list exist? Should I invest the > time in compiling MacPorts' gcc42? > > I realise that this may become moot when Leopard ships (and mabe if > I'm allowed to buy a spiffy new Intel based Mac.) You just need to rebuild your ruby. There's a bug with -fschedule- insns2, which is included with -O2. I don't know where the bug lies, though. CFLAGS=-fno-schedule-insns2 ./configure make clean && make && sudo make install -- Poor workers blame their tools. Good workers build better tools. The best workers get their tools to do the work for them. -- Syndicate Wars