[MacPorts] #30275: ruby: ruby gem installation causes segfaults
#30275: ruby: ruby gem installation causes segfaults ---------------------------------+------------------------------------------ Reporter: dj_mook@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.99 Keywords: lion | Port: ruby ---------------------------------+------------------------------------------ If you install the ruby macport on lion and then install rubygems from source, any attempt to install a gem results in a segfault. {{{ sudo gem install sinatra ruby-1.8.7-p352/lib/ruby/1.8/timeout.rb:60: [BUG] Segmentation fault ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.0.0] }}} According to http://www.frymanet.com/2011/07/rvm-ruby-1-8-7-and-osx-lion/ ruby does not work well with the default llvm compiler in lion. Using the solution from the article I patched the Portfile to set CC=/usr/bin/gcc-4.2 as a configure argument. After rebuilding ruby with the new portfile and then installing rubygems from source, I can now install gems without problem. Macports version 2.0 rc1. -- Ticket URL: <https://trac.macports.org/ticket/30275> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30275: ruby: ruby gem installation causes segfaults ---------------------------------+------------------------------------------ Reporter: dj_mook@… | Owner: kimuraw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.99 Keywords: lion haspatch | Port: ruby ---------------------------------+------------------------------------------ Changes (by macsforever2000@…): * keywords: lion => lion haspatch * owner: macports-tickets@… => kimuraw@… -- Ticket URL: <https://trac.macports.org/ticket/30275#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30275: ruby: ruby gem installation causes segfaults ---------------------------------+------------------------------------------ Reporter: dj_mook@… | Owner: kimuraw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.99 Keywords: lion haspatch | Port: ruby ---------------------------------+------------------------------------------ Comment(by jmr@…): Does it work with clang? It's probably better to use it if it does. -- Ticket URL: <https://trac.macports.org/ticket/30275#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30275: ruby: ruby gem installation causes segfaults ---------------------------------+------------------------------------------ Reporter: dj_mook@… | Owner: kimuraw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.99 Keywords: lion haspatch | Port: ruby ---------------------------------+------------------------------------------ Changes (by snc@…): * cc: snc@… (added) Comment: I'm seeing this problem in snow leopard with llvm-gcc as well. -- Ticket URL: <https://trac.macports.org/ticket/30275#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30275: ruby: ruby gem installation causes segfaults ---------------------------------+------------------------------------------ Reporter: dj_mook@… | Owner: kimuraw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.99 Keywords: lion haspatch | Port: ruby ---------------------------------+------------------------------------------ Comment(by snc@…): Using the `configure.compiler clang` macro suffices: ./configure correctly switches to clang. -- Ticket URL: <https://trac.macports.org/ticket/30275#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30275: ruby: ruby gem installation causes segfaults ---------------------------------+------------------------------------------ Reporter: dj_mook@… | Owner: kimuraw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.99 Keywords: lion haspatch | Port: ruby ---------------------------------+------------------------------------------ Comment(by snc@…): Clang continues to result in segfaults. -- Ticket URL: <https://trac.macports.org/ticket/30275#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30275: ruby: ruby gem installation causes segfaults ---------------------------------+------------------------------------------ Reporter: dj_mook@… | Owner: kimuraw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.99 Keywords: lion haspatch | Port: ruby ---------------------------------+------------------------------------------ Comment(by snc@…): This port builds successfully with `configure.compilter gcc-4.2`. Should we test for the OS version to decide between gcc-4.2 and gcc-4.0? or just detect llvm/clang and switch it back if set? -- Ticket URL: <https://trac.macports.org/ticket/30275#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30275: ruby: ruby gem installation causes segfaults ---------------------------------+------------------------------------------ Reporter: dj_mook@… | Owner: kimuraw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.99 Keywords: lion haspatch | Port: ruby ---------------------------------+------------------------------------------ Comment(by snc@…): Behold the hierarchy for picking [browser:trunk/base/src/port1.0/portconfigure.tcl#L354 default compilers]. -- Ticket URL: <https://trac.macports.org/ticket/30275#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30275: ruby: ruby gem installation causes segfaults ---------------------------------+------------------------------------------ Reporter: dj_mook@… | Owner: kimuraw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.99 Keywords: lion haspatch | Port: ruby ---------------------------------+------------------------------------------ Comment(by snc@…): I've attached a patch to detect default compilers of llvm-gcc-4.2 or clang, and change it to gcc-4.2. -- Ticket URL: <https://trac.macports.org/ticket/30275#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30275: ruby: ruby gem installation causes segfaults ----------------------------------+----------------------------------------- Reporter: dj_mook@… | Owner: kimuraw@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.99 Resolution: fixed | Keywords: lion haspatch Port: ruby | ----------------------------------+----------------------------------------- Changes (by kimuraw@…): * status: new => closed * resolution: => fixed Comment: this problem was fixed at r81110. thanks! -- Ticket URL: <https://trac.macports.org/ticket/30275#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts