wayneeseguin/rvm — Issue #562: Building MRI 1.8.7-334-p352 on 32-bit Intel OS X fails
Author: echristopherson
Created: 2011-11-03 07:35:24+00:00
State: open

mpapis has been working with me on this issue, but it still isn't fixed. Basically, I can't build 1.8.7 on a 32-bit Mac.

My ~/.rvmrc:
export rvm_make_flags='-j 3'
export rvm_archflags='-arch i386'
export rvm_architectures='i386'
export rvm_path='/Users/eric/.rvm'
export rvm_pretty_print_flag='1'
export rvm_gem_options='--no-rdoc --no-ri'

Output from rvm install 1.8.7:
Installing Ruby from source to: /Users/eric/.rvm/rubies/ruby-1.8.7-p352, this may take a while depending on your cpu(s)...

ruby-1.8.7-p352 - #fetching
ruby-1.8.7-p352 - #extracted to /Users/eric/.rvm/src/ruby-1.8.7-p352 (already extracted)
ruby-1.8.7-p352 - #configuring
ERROR: Error running 'MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS='-arch x86_64 -g -Os -pipe -no-cpp-precomp' CCFLAGS='-arch x86_64 -g -Os -pipe' CXXFLAGS='-arch x86_64 -g -Os -pipe' LDFLAGS='-arch x86_64 -bind_at_load' LDSHARED='cc -arch x86_64 -dynamiclib -undefined suppress -flat_namespace' ./configure --prefix=/Users/eric/.rvm/rubies/ruby-1.8.7-p352 --enable-shared --disable-install-doc --build=i386-apple-darwin10.8.0 --host=i386-apple-darwin10.8.0 ', please read /Users/eric/.rvm/log/ruby-1.8.7-p352/configure.log
ERROR: There has been an error while running configure. Halting the installation.

The script is still passing -arch x86_64 for some reason. I put an echo statement into __rvm_setup_compile_environment in scripts/functions/build to show the contents of $rvm_architectures, and it's blank; even though I have it in my .rvmrc and mpapis intended to add it to the list of variables taken from that file.