omniti-labs / omnios-build

Build system for OmniOS - Note, this is a quasi-private archive for OmniTI, you probably want https://omniosce.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rebuild ruby-19 with gcc 4.7.2

jtimberman opened this issue · comments

Capturing an issue based on #omnios IRC discussion.

TL;DR: the ruby config hardcodes location to gcc, meaning gems with native extensions will attempt to use /opt/gcc-4.6.3/bin/gcc to compile.

23:09 <apeiron> so we upgraded our compiler for r151006 to 4.7
23:09 <apeiron> it seems that perhaps the ruby that you're installing wasn't rebuilt for that
23:09 <jtimberman> omniti/runtime/ruby-19 (ms.omniti.com)            1.9.3.194-0.151002         i--
23:10 <jtimberman> indeed.
23:10 <apeiron> looks like the latest is 1.9.3.194,5.11-0.151002:20120501T202116Z
23:11 <apeiron> So it could use a respin for the new compiler

As a side-comment, the pull req accepted into rubygems hasn't made it into a release yet, which is why I lifted the patch into our local build system. I'll be glad to take it out when that patch lands in a release.

This relates to #20 - might as well build the newer version of Ruby 1.9.3, right? :)