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

Already on GitHub? Sign in to your account

Cannot compile 1.9.3 with `rvm reinstall 1.9.3 --patch falcon --force-autoconf -j 3` #1183

Closed
tejanium opened this Issue Oct 3, 2012 · 12 comments

Comments

Projects
None yet
2 participants

tejanium commented Oct 3, 2012

Following this issues wayneeseguin#1157

As it mentioned by @mpapis comment, I did the following commands

rvm get head
rvm reload
rvm reinstall 1.9.3 --patch falcon --force-autoconf -j 3
rvm use 1.9.3
gem install kgio

but failed when tried to compile ruby 1.9.3 on this very command

rvm reinstall 1.9.3 --patch falcon --force-autoconf -j 3
~ $ CC=/usr/local/bin/gcc-4.2 rvm reinstall 1.9.3-perf --patch falcon --force-autoconf -j 3
Removing /Users/teja/.rvm/src/ruby-1.9.3-p194-perf...
/Users/teja/.rvm/rubies/ruby-1.9.3-p194-perf has already been removed.
Installing Ruby from source to: /Users/teja/.rvm/rubies/ruby-1.9.3-p194-perf, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194-perf - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
ruby-1.9.3-p194-perf - #extracting ruby-1.9.3-p194 to /Users/teja/.rvm/src/ruby-1.9.3-p194-perf
ruby-1.9.3-p194-perf - #extracted to /Users/teja/.rvm/src/ruby-1.9.3-p194-perf
Applying patch /Users/teja/.rvm/patches/ruby/1.9.3/p194/falcon.diff
ruby-1.9.3-p194-perf - #autoreconf-f
Error running 'autoreconf -f', please read /Users/teja/.rvm/log/ruby-1.9.3-p194-perf/autoreconf.log
Skipping configure step, 'configure' does not exist, did autoreconf not run successfully?
ruby-1.9.3-p194-perf - #compiling
Error running 'make -j3', please read /Users/teja/.rvm/log/ruby-1.9.3-p194-perf/make.log
There has been an error while running make. Halting the installation.

I have created gist with detailed information
https://gist.github.com/3827581

@ghost ghost assigned mpapis Oct 3, 2012

Owner

mpapis commented Oct 3, 2012

In the line 2558 of the gist I still see old code running:

+__rvm_apply_patches:40> popd

Can you confirm it is still broken after:

rvm get head
rvm reload

And provide a new gist with trace if it is still broken.

tejanium commented Oct 4, 2012

Still failed, gist: https://gist.github.com/3831031

and here is my .rvm/scripts/functions/manage/base

  73   done
  74   chpwd_functions="" builtin popd >/dev/null
  75   return ${result:-0}
  76 } 
Owner

mpapis commented Oct 4, 2012

what's in /Users/teja/.rvm/log/ruby-1.9.3-p194/autoreconf.log ?

tejanium commented Oct 4, 2012

this

~ $ cat /Users/teja/.rvm/log/ruby-1.9.3-p194/autoreconf.log 
[2012-10-04 13:45:06] autoreconf -f
autoreconf: 'configure.ac' or 'configure.in' is required
~ $ 
Owner

mpapis commented Oct 4, 2012

@tejanium do you have read rvm requirements and followed all the instructions?

tejanium commented Oct 4, 2012

Did I missed something?

I even try to re-follow all the instructions, here's the gist: https://gist.github.com/3831948

Owner

mpapis commented Oct 4, 2012

Sorry I'm forcing you to run all the commands - but I can not reproduce your issue, maybe gist this:

rvm get head
rvm reload
rvm install 1.9.3-perf --patch falcon -j 3 --debug

do not add the --force-autoconf switch (let the autodetection work).

tejanium commented Oct 4, 2012

no problem, but still no luck :(

https://gist.github.com/3831978

idk what's going on, do you have any idea what is going on?

additional info

~ $ rvm reinstall 1.9.3 --patch falcon -j 3 --debug
1.9.3 - reinstall
Removing /Users/teja/.rvm/src/ruby-1.9.3-p194...
[2012-10-04 14:36:05] __rvm_rm_rf /Users/teja/.rvm/src/ruby-1.9.3-p194
__rvm_rm_rf () {
    __rvm_rm_rf_verbose "$@"
}
current path: /Users/teja
command(2): __rvm_rm_rf /Users/teja/.rvm/src/ruby-1.9.3-p194
Removing /Users/teja/.rvm/rubies/ruby-1.9.3-p194...
[2012-10-04 14:36:06] __rvm_rm_rf /Users/teja/.rvm/rubies/ruby-1.9.3-p194
__rvm_rm_rf () {
    __rvm_rm_rf_verbose "$@"
}
current path: /Users/teja
command(2): __rvm_rm_rf /Users/teja/.rvm/rubies/ruby-1.9.3-p194
__rvm_update_configure_env(1):CFLAGS=-I/Users/teja/.rvm/usr/include:
__rvm_update_configure_env(1):LDFLAGS=-L/Users/teja/.rvm/usr/lib:
found compiler: /usr/local/bin/gcc-4.2
Installing Ruby from source to: /Users/teja/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
[2012-10-04 14:36:06] /Users/teja/.rvm/scripts/fetch http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2
current path: /Users/teja/.rvm/src
command(2): /Users/teja/.rvm/scripts/fetch http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2
ruby-1.9.3-p194 - #extracting ruby-1.9.3-p194 to /Users/teja/.rvm/src/ruby-1.9.3-p194
[2012-10-04 14:36:07] tar xjf /Users/teja/.rvm/archives/ruby-1.9.3-p194.tar.bz2 -C /Users/teja/.rvm/tmp/rvm_src_6248
current path: /Users/teja/.rvm/src
command(5): tar xjf /Users/teja/.rvm/archives/ruby-1.9.3-p194.tar.bz2 -C /Users/teja/.rvm/tmp/rvm_src_6248
ruby-1.9.3-p194 - #extracted to /Users/teja/.rvm/src/ruby-1.9.3-p194
Trying patch 'falcon'.
Partch name 'falcon'.
Patch expanded_name 'falcon%1'.
Trying patch 'default'.
Partch name 'default'.
All found patches(1): falcon%1.
Patch full path '/Users/teja/.rvm/patches/ruby/1.9.3/p194/falcon.diff'.
Applying patch /Users/teja/.rvm/patches/ruby/1.9.3/p194/falcon.diff
[2012-10-04 14:36:11] patch -F 25 -p1 -N -f -i /Users/teja/.rvm/patches/ruby/1.9.3/p194/falcon.diff
current path: /Users/teja/.rvm/src/ruby-1.9.3-p194
command(8): patch -F 25 -p1 -N -f -i /Users/teja/.rvm/patches/ruby/1.9.3/p194/falcon.diff
ruby-1.9.3-p194 - #autoreconf
[2012-10-04 14:36:11] autoreconf
current path: /Users/teja/.rvm/src
command(1): autoreconf
Error running 'autoreconf', please read /Users/teja/.rvm/log/ruby-1.9.3-p194/autoreconf.log
Skipping configure step, 'configure' does not exist, did autoreconf not run successfully?
ruby-1.9.3-p194 - #compiling
[2012-10-04 14:36:11] make -j3
current path: /Users/teja/.rvm/src
command(2): make -j3
Error running 'make -j3', please read /Users/teja/.rvm/log/ruby-1.9.3-p194/make.log
There has been an error while running make. Halting the installation.
Running /Users/teja/.rvm/hooks/after_install_codesign
~ $ 
Owner

mpapis commented Oct 4, 2012

you are having the same problem as was already fixed: after patches the path changes back to .../src:

[2012-10-04 14:36:11] autoreconf
current path: /Users/teja/.rvm/src

but from your gists I can see that it's not the same problem as a proper fixed code is used.

To continue we need more fined debugging with editing code, in $rvm_path/scripts/functions/manage/base add in lines 75, 74, 46, 45 an call to show current path, the code will look like this:

rvm_debug "current path 1: $PWD"
chpwd_functions="" builtin pushd "$source_directory" >/dev/null
rvm_debug "current path 2: $PWD"

rvm_debug "current path 3: $PWD"
chpwd_functions="" builtin popd >/dev/null
rvm_debug "current path 4: $PWD"

and run the code with:

rvm reload
rvm list strings # just to avoid a bug with --debug not working in first call after reload
rvm reinstall 1.9.3-perf --patch falcon -j 3 --debug

now in the output we should have the paths around pushd/popd - which were previous problem, it will help us decide if it is the problem or not.

tejanium commented Oct 4, 2012

there you go

~ $ vim .rvm/scripts/functions/manage/base
~ $ rvm reload                                          
RVM reloaded!
~ $ rvm list strings
ruby-1.9.3-p194
~ $ rvm reinstall 1.9.3-perf --patch falcon -j 3 --debug
1.9.3-perf - reinstall
Removing /Users/teja/.rvm/src/ruby-1.9.3-p194-perf...
[2012-10-04 15:21:01] __rvm_rm_rf /Users/teja/.rvm/src/ruby-1.9.3-p194-perf
__rvm_rm_rf () {
    __rvm_rm_rf_verbose "$@"
}
current path: /Users/teja
command(2): __rvm_rm_rf /Users/teja/.rvm/src/ruby-1.9.3-p194-perf
/Users/teja/.rvm/rubies/ruby-1.9.3-p194-perf has already been removed.
__rvm_update_configure_env(1):CFLAGS=-I/Users/teja/.rvm/usr/include:
__rvm_update_configure_env(1):LDFLAGS=-L/Users/teja/.rvm/usr/lib:
found compiler: /usr/local/bin/gcc-4.2
Installing Ruby from source to: /Users/teja/.rvm/rubies/ruby-1.9.3-p194-perf, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194-perf - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
[2012-10-04 15:21:03] /Users/teja/.rvm/scripts/fetch http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2
current path: /Users/teja/.rvm/src
command(2): /Users/teja/.rvm/scripts/fetch http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2
ruby-1.9.3-p194-perf - #extracting ruby-1.9.3-p194 to /Users/teja/.rvm/src/ruby-1.9.3-p194-perf
[2012-10-04 15:21:04] tar xjf /Users/teja/.rvm/archives/ruby-1.9.3-p194.tar.bz2 -C /Users/teja/.rvm/tmp/rvm_src_62037
current path: /Users/teja/.rvm/src
command(5): tar xjf /Users/teja/.rvm/archives/ruby-1.9.3-p194.tar.bz2 -C /Users/teja/.rvm/tmp/rvm_src_62037
ruby-1.9.3-p194-perf - #extracted to /Users/teja/.rvm/src/ruby-1.9.3-p194-perf
current path 1: /Users/teja/.rvm/src/ruby-1.9.3-p194-perf
current path 2: /Users/teja/.rvm/src/ruby-1.9.3-p194-perf
Trying patch 'falcon'.
Partch name 'falcon'.
Patch expanded_name 'falcon%1'.
Trying patch 'default'.
Partch name 'default'.
All found patches(1): falcon%1.
Patch full path '/Users/teja/.rvm/patches/ruby/1.9.3/p194/falcon.diff'.
Applying patch /Users/teja/.rvm/patches/ruby/1.9.3/p194/falcon.diff
[2012-10-04 15:21:10] patch -F 25 -p1 -N -f -i /Users/teja/.rvm/patches/ruby/1.9.3/p194/falcon.diff
current path: /Users/teja/.rvm/src/ruby-1.9.3-p194-perf
command(8): patch -F 25 -p1 -N -f -i /Users/teja/.rvm/patches/ruby/1.9.3/p194/falcon.diff
current path 3: /Users/teja/.rvm/src/ruby-1.9.3-p194-perf
current path 4: /Users/teja/.rvm/src
ruby-1.9.3-p194-perf - #autoreconf
[2012-10-04 15:21:10] autoreconf
current path: /Users/teja/.rvm/src
command(1): autoreconf
Error running 'autoreconf', please read /Users/teja/.rvm/log/ruby-1.9.3-p194-perf/autoreconf.log
Skipping configure step, 'configure' does not exist, did autoreconf not run successfully?
ruby-1.9.3-p194-perf - #compiling
[2012-10-04 15:21:12] make -j3
current path: /Users/teja/.rvm/src
command(2): make -j3
Error running 'make -j3', please read /Users/teja/.rvm/log/ruby-1.9.3-p194-perf/make.log
There has been an error while running make. Halting the installation.
Running /Users/teja/.rvm/hooks/after_install_codesign
~ $ 

it changes back

@mpapis mpapis closed this in b76f98a Oct 4, 2012

@mpapis mpapis reopened this Oct 4, 2012

tejanium commented Oct 5, 2012

fixed! thanks a lot!

@tejanium tejanium closed this Oct 5, 2012

@mpapis mpapis reopened this Oct 5, 2012

Owner

mpapis commented Oct 5, 2012

opened to track the status ... will be closed when it gets to stable

@mpapis mpapis closed this in d5b00a9 Oct 7, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment