[MacPorts] #31756: ruby19 @1.9.2-p290
#31756: ruby19 @1.9.2-p290 ------------------------------------+--------------------------------------- Reporter: joshuajmoody@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: ruby19 ------------------------------------+--------------------------------------- System Information: Lion 10.7.2 and Xcode 4.2 I ran into trouble installing ruby19. {{{ :info:configure checking whether the C compiler works... no :info:configure configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.2-p290' :info:configure configure: error: C compiler cannot create executables }}} Looking at the Portfile, I found this: {{{ # ruby-1.9.x built with clang or llvm-gcc does not work # see list "MacPorts on Lion (common issues, fixes, and workarounds)" # http://lists.macosforge.org/pipermail/macports-dev/2011-July/015263.html if {${configure.compiler} == "clang" || ${configure.compiler} == "llvm-gcc-4.2"} { configure.compiler gcc-4.2 if {![file executable ${configure.cc}]} { depends_build-append port:apple-gcc42 configure.compiler apple-gcc-4.2 } } } }}} I read the information in the link provided in the comment and decided to try to compile with clang. I was able to successful build ruby19 and subsequently rb19-rails by commenting out the compiler if conditional. {{{ # ruby-1.9.x built with clang or llvm-gcc does not work # see list "MacPorts on Lion (common issues, fixes, and workarounds)" # http://lists.macosforge.org/pipermail/macports-dev/2011-July/015263.html # if {${configure.compiler} == "clang" || # ${configure.compiler} == "llvm-gcc-4.2"} { # configure.compiler gcc-4.2 # if {![file executable ${configure.cc}]} { # depends_build-append port:apple-gcc42 # configure.compiler apple-gcc-4.2 # } # } }}} Can the maintainer please investigate and update the Portfile as necessary? Thanks! Joshua -- Ticket URL: <https://trac.macports.org/ticket/31756> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31756: ruby19 @1.9.2-p290 ------------------------------------+--------------------------------------- Reporter: joshuajmoody@… | Owner: kimuraw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: ruby19 ------------------------------------+--------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => kimuraw@… * priority: High => Normal Comment: The comment says "ruby-1.9.x built with clang or llvm-gcc does not work", and you only said you were able to build it. Were you actually able to run it also? -- Ticket URL: <https://trac.macports.org/ticket/31756#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31756: ruby19 @1.9.2-p290 ------------------------------------+--------------------------------------- Reporter: joshuajmoody@… | Owner: kimuraw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: ruby19 ------------------------------------+--------------------------------------- Comment(by ryandesign@…): Also, it might help to diagnose your earlier build failure if you attach the config.log. It looks like MacPorts selected the "Mac OS X gcc 4.2", which I would not have expected, given that you have Xcode 4.2, which does not include any version of gcc. -- Ticket URL: <https://trac.macports.org/ticket/31756#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31756: ruby19 @1.9.2-p290 ------------------------------------+--------------------------------------- Reporter: joshuajmoody@… | Owner: kimuraw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: ruby19 ------------------------------------+--------------------------------------- Comment(by joshuajmoody@…):
The comment says "ruby-1.9.x built with clang or llvm-gcc does not work", and you only said you were able to build it. Were you actually able to run it also?
I am able to run ruby19. I installed rb19-rails and was able to stand up a demo rails site on my machine.
Also, it might help to diagnose your earlier build failure if you attach the config.log.
I did a clean install of MacPorts 2.0.3 in an alternative location. I have attached a config.log and a main.log for a failed ruby19 build. I have also attached the main.log for the successful ruby19 build (halted during the port staging phasing)
It looks like MacPorts selected the "Mac OS X gcc 4.2", which I would not have expected, given that you have Xcode 4.2, which does not include any version of gcc.
This machine has previously had Xcode 3.*, Xcode 4.0, and Xcode 4.1 installed on it. For a time it had both Xcode 4.1 and 4.2 installed. Here is some information about gcc-4.2 on my machine: {{{ moody% ls -al `which gcc-4.2` -rwxr-xr-x 1 root wheel 113024 May 16 05:37 /usr/bin/gcc-4.2 moody% gcc-4.2 gcc-4.2: error trying to exec '/usr/bin/i686-apple-darwin11-gcc-4.2.1': execvp: No such file or directory }}} Do you require other information? Thanks for looking into this. -- Ticket URL: <https://trac.macports.org/ticket/31756#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31756: ruby19 @1.9.2-p290 ------------------------------------+--------------------------------------- Reporter: joshuajmoody@… | Owner: kimuraw@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: ruby19 ------------------------------------+--------------------------------------- Changes (by kimuraw@…): * status: new => assigned Comment: build success does not mean the built ruby works fine. some features, such as thread/fiber, does not work on clang/llvm-gcc ruby. see https://github.com/wayneeseguin/rvm/issues/399 we can test ruby by the following commands. {{{ % sudo port -k install ruby19 # install and keep work directory % cd `port work ruby19`/ruby-1.9.2-p290 % sudo chown -R ${USER} . # let work directory writable % make test # basic tests. should pass all tests % make test-all # deeper tests. may fail with some errors, but no segmentaion fault. }}} results on my Mac. * Snow Leopard + gcc (Xcode 4.0): * make test => pass all * make test-all => pass all * Lion + gcc (Xcode 4.1): * make test => pass all * make test-all => 2F * Lion + llvm-gcc: * make test => Bus Error (segmentaion fault) * Lion + clang: * make test => Bus Error (segmentaion fault) -- Ticket URL: <https://trac.macports.org/ticket/31756#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31756: ruby19 @1.9.2-p290 -------------------------------------+-------------------------------------- Reporter: joshuajmoody@… | Owner: kimuraw@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: lion Port: ruby19 | -------------------------------------+-------------------------------------- Changes (by kimuraw@…): * status: assigned => closed * resolution: => fixed Comment: ruby-1.9.3 supports Xcode-4.2 clang. I updated port:ruby19 to 1.9.3-p0 and solved this problem. thanks all! -- Ticket URL: <https://trac.macports.org/ticket/31756#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts