# Compiling ruby for XP64

**URL:** <https://www.ruby-forum.com/t/compiling-ruby-for-xp64/91163>\
**Category:** Ruby\
**Created:** [April 5, 2007, 8:41am UTC](https://www.ruby-forum.com/t/compiling-ruby-for-xp64/91163 "2007-04-05T08:41:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wael](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b9e5f3/32.png) [@Wael](https://www.ruby-forum.com/u/Wael)\
**Post date:** [April 5, 2007, 8:41am UTC](https://www.ruby-forum.com/t/compiling-ruby-for-xp64/91163/1 "2007-04-05T08:41:32Z")

</div>

Hi,

I’m trying to compile ruby 1.8.6 for native 64bit XP OS.  
I’m using MS Platform SDK for Windows Server 2003 R2 and building with  
64bit build environment.

Any one had tried this… the reason is we would like to run extension  
dlls in native 64bit. I appreciate if some one can reply with his  
thoughts or experience doing this.

I mainly have seen issues with :

- Running the configure bat file results an error that does not proceed  
to build the make file.  
C:\ruby-1.8.6original\ruby-1.8.6\win32\>nmake -alf “~tmp~.mak”  
NMAKE : fatal error U1077: ‘cl’ : return code ‘0x2’  
Stop.
- There are come assembly code in couple of files which can not be  
compiled in AMD64.
- There is also Context structure that is different than IX86

regards  
Wael

---

<div class="post-metadata">

**Author:** ![Wael](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b9e5f3/32.png) [@Wael](https://www.ruby-forum.com/u/Wael)\
**Post date:** [April 6, 2007, 6:50am UTC](https://www.ruby-forum.com/t/compiling-ruby-for-xp64/91163/2 "2007-04-06T06:50:26Z")

</div>

Is there any one who worked on building ruby for XP64 bit?

Regards  
Wael

> Hi,
> 
> I’m trying to compile ruby 1.8.6 for native 64bit XP OS.  
> I’m using MS Platform SDK for Windows Server 2003 R2 and building with  
> 64bit build environment.
> 
> Any one had tried this… the reason is we would like to run extension  
> dlls in native 64bit. I appreciate if some one can reply with his  
> thoughts or experience doing this.
> 
> I mainly have seen issues with :
> 
> - Running the configure bat file results an error that does not proceed  
> to build the make file.  
> C:\ruby-1.8.6original\ruby-1.8.6\win32\>nmake -alf “~tmp~.mak”  
> NMAKE : fatal error U1077: ‘cl’ : return code ‘0x2’  
> Stop.
> - There are come assembly code in couple of files which can not be  
> compiled in AMD64.
> - There is also Context structure that is different than IX86
> 
> regards  
> Wael

---

<div class="post-metadata">

**Author:** ![Wael](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b9e5f3/32.png) [@Wael](https://www.ruby-forum.com/u/Wael)\
**Post date:** [January 2, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/compiling-ruby-for-xp64/91163/3 "2009-01-02T15:11:55Z")

</div>

Wael wrote:

> I mainly have seen issues with :
> 
> - Running the configure bat file results an error that does not proceed  
> to build the make file.  
> C:\ruby-1.8.6original\ruby-1.8.6\win32\>nmake -alf “~tmp~.mak”  
> NMAKE : fatal error U1077: ‘cl’ : return code ‘0x2’  
> Stop.
> - There are come assembly code in couple of files which can not be  
> compiled in AMD64.
> - There is also Context structure that is different than IX86

I don’t think it’s possible to build a 64 bit Ruby on Windows. See  
[http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/20176](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/20176) and  
following.

Regards,

Dan
