[OpenIndiana-discuss] rvm ruby 64 bit

Matt Connolly matt.connolly.au at gmail.com
Wed May 23 21:13:45 UTC 2012


I'm using gcc 4.6 from safe repository. Is the option -m64 the same in 3.4?

I did rvm "reinstall" because I already had the 32 bit one installed... Perhaps try that too?

Here's some output from my machine:

matt at rvm1:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/gcc/4.6/lib/gcc/i386-pc-solaris2.11/4.6.2/lto-wrapper
Target: i386-pc-solaris2.11
Configured with: ../gcc-4.6.2/configure --prefix=/usr/gcc/4.6 --libdir=/usr/gcc/4.6/lib --libexecdir=/usr/gcc/4.6/lib --mandir=/usr/gcc/4.6/share/man --infodir=/usr/gcc/4.6/info --with-build-time-tools=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/bin/ld --without-gnu-ld --enable-languages=c,c++,fortran,objc --enable-shared --disable-static --enable-decimal-float --with-gmp=/usr/gnu --with-mpfr=/usr/gnu --with-mpc=/usr/gnu --with-libiconv-prefix=/usr/gnu -enable-nls
Thread model: posix
gcc version 4.6.2 (GCC)
matt at rvm1:~$ isainfo -kv
64-bit amd64 kernel modules
matt at rvm1:~$ uname -a
SunOS rvm1 5.11 oi_151a4 i86pc i386 i86pc Solaris
matt at rvm1:~$ rvm use 1.9.3
Using /export/home/matt/.rvm/gems/ruby-1.9.3-p194
matt at rvm1:~$ file `which ruby`
/export/home/matt/.rvm/rubies/ruby-1.9.3-p194/bin/ruby: ELF 64-bit LSB executable AMD64 Version 1, dynamically linked, not stripped
matt at rvm1:~$ rvm version

rvm 1.13.6 (stable) by Wayne E. Seguin <wayneeseguin at gmail.com>, Michal Papis <mpapis at gmail.com> [https://rvm.io/]




Sent from my iPad

On 23/05/2012, at 3:57 AM, Achim Wolpers <achimwo7 at googlemail.com> wrote:

> 
> Am 21.05.2012 um 15:14 schrieb Matt Connolly:
> 
>> matt at rvm1:~$ CFLAGS=-m64 rvm reinstall 1.9.3
> 
> That was my first thought. But my box builds ruby in 32 bit mode, even though the compiler flag is set to -m64.
> 
> # cc -v
> Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs
> Configured with: /home/jt/OI-151A-STABLE/151A-PRESTABLE2/newbuilds/sfw/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,f77,objc --enable-shared
> Thread model: posix
> gcc version 3.4.3 (csl-sol210-3_4-20050802)
> 
> # isainfo -kv
> 64-bit amd64 kernel modules
> 
> Achim
> 



More information about the OpenIndiana-discuss mailing list