# Which OS X Tiger PPC C compiler is best to use for Ruby?

**URL:** <https://www.ruby-forum.com/t/which-os-x-tiger-ppc-c-compiler-is-best-to-use-for-ruby/117226>\
**Category:** Ruby\
**Created:** [October 15, 2007, 1:41am UTC](https://www.ruby-forum.com/t/which-os-x-tiger-ppc-c-compiler-is-best-to-use-for-ruby/117226 "2007-10-15T01:41:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mschwab](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Post date:** [October 15, 2007, 1:41am UTC](https://www.ruby-forum.com/t/which-os-x-tiger-ppc-c-compiler-is-best-to-use-for-ruby/117226/1 "2007-10-15T01:41:18Z")

</div>

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 [Dan Benjamin](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.)

Michael

–

Mike S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://www.stok.ca/~mike/](http://www.stok.ca/~mike/)

The “`Stok’ disclaimers” apply.

---

<div class="post-metadata">

**Author:** ![mschwab](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Post date:** [October 15, 2007, 2:11am UTC](https://www.ruby-forum.com/t/which-os-x-tiger-ppc-c-compiler-is-best-to-use-for-ruby/117226/2 "2007-10-15T02:11:41Z")

</div>

Mike S. wrote:

> actually nothing to worry about. Just re-run the original command above,  
> allowed to buy a spiffy new Intel based Mac.)
> 
> Michael

Hmmm…I’m using gcc 4.0.1 on my 15" Powerbook and I’ve never had a  
problem with RDoc. My most recent build of Ruby was p110.

---

<div class="post-metadata">

**Author:** ![mschwab](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Post date:** [October 15, 2007, 2:32am UTC](https://www.ruby-forum.com/t/which-os-x-tiger-ppc-c-compiler-is-best-to-use-for-ruby/117226/3 "2007-10-15T02:32:10Z")

</div>

On Oct 14, 2007, at 16:40 , Mike S. wrote:

> of the comments like "Some readers also report seeing an RDoc  
> 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

---

<div class="post-metadata">

**Author:** ![mschwab](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Post date:** [October 15, 2007, 2:51am UTC](https://www.ruby-forum.com/t/which-os-x-tiger-ppc-c-compiler-is-best-to-use-for-ruby/117226/4 "2007-10-15T02:51:27Z")

</div>

On 14-Oct-07, at 8:31 PM, Eric H. wrote:

> > proceeds just fine to completion with no problems. This might
> > 
> > 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

Thanks. I will give that a try!

Mike

–

Mike S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://www.stok.ca/~mike/](http://www.stok.ca/~mike/)

The “`Stok’ disclaimers” apply.
