rvm requirements - fails with status: 141 when installing gcc49 on macOS

Created on 19 Oct 2016  ·  3Comments  ·  Source: rvm/rvm

Description

RVM does seem to be working, however the gcc49 installation step seems to be failing when I run rvm requirements.

Environment info

  • RVM version: rvm 1.27.0 (master)
  • Operating System: macOS
  • Version/Release: 10.12
  • Shell: zsh

    Expected behavior

rvm requirements should install Ruby dependencies according to this cheatsheet

Actual behavior

command hangs, even after waiting many minutes. This is the dialogue:

Installing required packages: gcc49../

Output

➜  ~ rvm requirements
Checking requirements for osx.
Installing requirements for osx.
Updating system.....
Installing required custom packages: homebrew/versions.
Installing required packages: gcc49.............\
^C^CError running 'requirements_osx_brew_libs_install gcc49',
showing last 15 lines of /Users/dm/.rvm/log/1476824372/package_install_gcc49.log
==> Downloading from http://mirrors.ibiblio.org/gnu/ftp/gnu/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2
==> Downloading https://gcc.gnu.org/bugzilla/attachment.cgi?id=35773
==> Downloading https://gist.githubusercontent.com/tdsmith/d248e025029add31e7aa/raw/444e292786df41346a3a1cc6267bba587408a007/gcc.diff
==> Patching
==> Applying attachment.cgi
patching file gcc/config/darwin.c
Hunk #1 succeeded at 1232 (offset -27 lines).
==> Applying gcc.diff
patching file gcc/configure
Hunk #1 succeeded at 24810 (offset -74 lines).
Hunk #2 succeeded at 24841 (offset -74 lines).
patching file gcc/configure.ac
Hunk #1 succeeded at 3858 (offset -11 lines).
==> ../configure --build=x86_64-apple-darwin16.0.0 --prefix=/usr/local/Cellar/gcc49/4.9.3 --libdir=/usr/local/Cellar/gcc49/4.9.3/lib/gcc/4.9 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-4.9 --with-gmp=/usr/local/opt/gmp4 --with-mpfr=/usr/local/opt/mpfr2 --with-mpc=/usr/local/opt/libmpc08 --with-cloog=/usr/local/opt/cloog018 --with-isl=/usr/local/opt/isl011 --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --with-build-config=bootstrap-debug --disable-werror --with-pkgversion=Homebrew gcc49 4.9.3 --with-bugurl=https://github.com/Homebrew/homebrew-versions/issues --enable-plugin --disable-nls --enable-multilib --with-native-system-header-dir=/usr/include --with-sysroot=/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
==> make bootstrap
Requirements installation failed with status: 141.

Steps to reproduce

  1. Install RVM
  2. run rvm requirements

Note, rvm does install and this does not appear to be affecting anything yet.

It seems like a gem requiring gcc may cause an error in the future, though.

Also I realize Sierra is not supported yet, so if I've made an error in reporting this, please let me know.

bug invalid macos

Most helpful comment

Apparently this can take up to 45 minutes

-- update, it did finished. I didn't realize gcc would take so long to compile.

ln -s ../Cellar/gcc49/4.9.3/lib/gcc gcc
==> Summary
🍺  /usr/local/Cellar/gcc49/4.9.3: 1,181 files, 196M, built in 38 minutes 19 seconds

rvm requirements successfully upgraded 5 outdated packages. I'll close, thanks for the feedback!

All 3 comments

RVM is using Homebrew to install required libraries. Have you tried to run brew doctor? You might want to isolate the problem and install gcc49 using brew itself: brew install gcc49.

Make sure you have latest brew installed (brew update)

This is indeed where the problem is arising - attempting to run brew install gcc49, it's still running and I'll provide current output for contrast.


output

➜  ~ brew install gcc49
Warning: You are using a pre-release version of Xcode.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Installing gcc49 from homebrew/versions
==> Downloading https://ftpmirror.gnu.org/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2
Already downloaded: /Users/dm/Library/Caches/Homebrew/gcc49-4.9.3.tar.bz2
==> Downloading https://gcc.gnu.org/bugzilla/attachment.cgi?id=35773
Already downloaded: /Users/dm/Library/Caches/Homebrew/gcc49--patch-db4966ade190fff4ed39976be8d13e84839098711713eff1d08920d37a58f5ec.cgi
==> Downloading https://gist.githubusercontent.com/tdsmith/d248e025029add31e7aa/raw/444e292786df41346a3a1cc6267bba587408a007/gcc.diff
Already downloaded: /Users/dm/Library/Caches/Homebrew/gcc49--patch-636b65a160ccb7417cc4ffc263fc815382f8bb895e32262205cd10d65ea7804a.diff
==> Patching
==> Applying attachment.cgi
patching file gcc/config/darwin.c
Hunk #1 succeeded at 1232 (offset -27 lines).
==> Applying gcc.diff
patching file gcc/configure
Hunk #1 succeeded at 24810 (offset -74 lines).
Hunk #2 succeeded at 24841 (offset -74 lines).
patching file gcc/configure.ac
Hunk #1 succeeded at 3858 (offset -11 lines).
==> ../configure --build=x86_64-apple-darwin16.0.0 --prefix=/usr/local/Cellar/gcc49/4.9.3 --libdir=/usr/local/Cellar/gcc49/4.9.3/lib/gcc/4.9 --enable-
==> make bootstrap

Apparently this can take up to 45 minutes

-- update, it did finished. I didn't realize gcc would take so long to compile.

ln -s ../Cellar/gcc49/4.9.3/lib/gcc gcc
==> Summary
🍺  /usr/local/Cellar/gcc49/4.9.3: 1,181 files, 196M, built in 38 minutes 19 seconds

rvm requirements successfully upgraded 5 outdated packages. I'll close, thanks for the feedback!

Was this page helpful?
0 / 5 - 0 ratings