Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running '__rvm_make -j 1', showing last 15 lines of /Users/name/.rvm/log/1399578403_ruby-1.9.3-p545/make.log #2837

Closed
testengineer00 opened this issue May 8, 2014 · 12 comments

Comments

@testengineer00
Copy link

Trying to install ruby 1.9.3 on 10.9.2 and getting this error

name:~ name$ rvm install 1.9.3 --with-gcc=clang
ruby-1.9.3-p545 - #removing src/ruby-1.9.3-p545..
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date.
Requirements installation successful.
Warning: found user selected compiler 'clang', this will suppress RVM auto detection mechanisms.
Installing Ruby from source to: /Users/name/.rvm/rubies/ruby-1.9.3-p545, this may take a while depending on your cpu(s)...
ruby-1.9.3-p545 - #downloading ruby-1.9.3-p545, this may take a while depending on your connection...
ruby-1.9.3-p545 - #extracting ruby-1.9.3-p545 to /Users/name/.rvm/src/ruby-1.9.3-p545...
ruby-1.9.3-p545 - #applying patch /Users/name/.rvm/patches/ruby/GH-488.patch.
ruby-1.9.3-p545 - #configuring...............................................
ruby-1.9.3-p545 - #post-configuration.
ruby-1.9.3-p545 - #compiling............
Error running '__rvm_make -j 1',
showing last 15 lines of /Users/name/.rvm/log/1399578403_ruby-1.9.3-p545/make.log
-- Other runtime information -----------------------------------------------

  • Loaded script: ./miniruby

  • Loaded features:

    0 enumerator.so

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

make: *** [.rbconfig.time] Abort trap: 6
++ return 2
There has been an error while running make. Halting the installation.

If I try without clang I get this error...

Error running 'requirements_osx_brew_libs_install gcc46',

ANY help would be appreciated.

@wyattearp
Copy link

Could you post your log? I was running into a similar issue and was getting:

Error running '__rvm_make -j 3',
showing last 15 lines of /home/wyatt/.rvm/log/1399739969_ruby-2.1.1/make.log
  -R, --no-builtin-variables  Disable the built-in variable settings.
  -s, --silent, --quiet       Don't echo commands.
  -S, --no-keep-going, --stop
                          Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                          Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.

I was able to solve it by removing the following line from my .rvmrc file:

rvm_make_flags="-j 3"

It looks like someone promoted a change that makes this option no longed needed since there's already a "-j2" in the make command.

@mpapis
Copy link
Member

mpapis commented May 20, 2014

@aidamw by any chance did you upgrade OSX? if yes - then you need to remove all packages from homebrew and install everything again - including reinstall of RVM rubies.

@rys
Copy link
Contributor

rys commented May 20, 2014

Why do people upgrading OS X have to do that?

@mpapis
Copy link
Member

mpapis commented May 21, 2014

there is one answer: Apple ... they do not have a (supported) package manager and do not care about backwards compatibility when releasing new system ... what they need is easy GUI so more users buy their products, they do not care about people that compile stuff, to much hassle for little(no) gain

@rys rys added the wontfix label May 22, 2014
@rys
Copy link
Contributor

rys commented May 22, 2014

So the solution is to remove -j from any rvm_make_flags in rvm's environment. Closing as wontfix, although we can revisit it if it seems to affect many more users.

@rys rys closed this as completed May 22, 2014
@lamont-granquist
Copy link

this is hitting me on both my mavericks laptop and my ubuntu 13.10 desktop. its not just a mac/apple/clang issue.

@wyattearp
Copy link

@lamont-granquist try removing any rvm_make_flags="-j 3" or similar flags from your .rvmrc file. This issue is closed as won't fix.

@lamont-granquist
Copy link

actually it seems to be better fixed by changing rvm_make_flags="-j 5" to rvm_make_flags="-j5"

(i have quad cores and i install lots of different rubies and i'm impatient...)

@mpapis
Copy link
Member

mpapis commented May 30, 2014

RVM automatically does -j <number of CPU threads>, in my experience adding extra +1 to it does not yield that great improvements, as for the flag - it is an array now:

rvm_make_flags=( -j 5 )

@lamont-granquist
Copy link

I've always seen and used '-j <N+1>' to be the standard, which lets one thread be blocked on iowait while N other threads are in the compiler/preprocessor grinding on the CPUs. There's diminishing returns on this as it goes up, but it usually works on N=2 or =4. Might also be less important now with SSDs rather than spinning rust.

Anyway good to know that this is baked in now, thats the kind of information I was missing and didn't know where to look to find it...

@lamont-granquist
Copy link

👍

@sathibabu-nyros
Copy link

so I was googling a bit and found that you could try use:

             rvm install ruby-'your-version' --without-execinfo

@pkuczynski pkuczynski added this to the rvm-1.27.0-before milestone May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants