wayneeseguin/rvm — Issue #623: Compiling with 32bit flags leads to 64bit ruby
Author: apeiros
Created: 2011-11-29 10:12:25+00:00
State: open

Hi

I'm using Kenneth Reitz' GCC installer (https://github.com/kennethreitz/osx-gcc-installer), the newest rvm (1.10.0-pre) and OS X Lion 10.7.2.
I tried to install ruby 1.9.2p290 as 32bit executable, following http://beginrescueend.com/support/troubleshooting/ (section "i386 (32 bit)").
However, the compiled executable is 64bit.

Additional information:

$ uname -mprsv
Darwin 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64 i386

$ rvm_archflags="-arch i386" CFLAGS='-m32' CXXFLAGS='-m32' LDFLAGS='-m32' rvm install ruby-1.9.2
# …snip…
Install of ruby-1.9.2-p290 - #complete
$ rvm use 1.9.2
$ which ruby
/Users/apeiros/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
$ file /Users/apeiros/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
/Users/apeiros/.rvm/rubies/ruby-1.9.2-p290/bin/ruby: Mach-O 64-bit executable x86_64
$ cat ~/.rvm/src/ruby-1.9.2-p290/Makefile | grep '^arch ='
arch = x86_64-darwin11.2.0

If I can supply any other information, please let me know.