# Failed to compile ruby 1.9.1-p129 with MinGW 4.4.0

**URL:** <https://www.ruby-forum.com/t/failed-to-compile-ruby-1-9-1-p129-with-mingw-4-4-0/173015>\
**Category:** Ruby\
**Created:** [July 31, 2009, 11:24am UTC](https://www.ruby-forum.com/t/failed-to-compile-ruby-1-9-1-p129-with-mingw-4-4-0/173015 "2009-07-31T11:24:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcblues](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Post date:** [July 31, 2009, 11:24am UTC](https://www.ruby-forum.com/t/failed-to-compile-ruby-1-9-1-p129-with-mingw-4-4-0/173015/1 "2009-07-31T11:24:38Z")

</div>

Here’s my configure command:  
./configure --prefix=/c/ruby --disable-pthread --enable-shared  
–disable-install-doc optflags=‘-s -O4’ debugflags=‘’ && make && make  
test && make install

And here’s a few last lines of the output:  
Creating library file: libmsvcrt-ruby191.dll.a  
objcopy -w -L ‘Init\_\*’ msvcrt-ruby191.dll  
./miniruby.exe -I./lib -I.ext/common -I./- -r./ext/purelib.rb  
./tool/generic\_er  
b.rb -c -o encdb.h ./template/encdb.h.tmpl ./enc enc  
D:/Sources/ruby/ruby-1.9.1-p129/lib/optparse.rb:1310: [BUG] Segmentation  
fault  
ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mingw32]

## – control frame ---------- c:0013 p:---- s:0060 b:0060 l:000059 d:000059 CFUNC :catch c:0012 p:0049 s:0056 b:0056 l:0025b0 d:00069c BLOCK D:/Sources/ruby/ruby-1.9.1- p129/lib/optparse.rb:1310 c:0011 p:---- s:0050 b:0050 l:000049 d:000049 FINISH c:0010 p:---- s:0048 b:0048 l:000047 d:000047 CFUNC :catch c:0009 p:0062 s:0044 b:0044 l:0025b0 d:0025b0 METHOD D:/Sources/ruby/ruby-1.9.1- p129/lib/optparse.rb:1258 c:0008 p:0024 s:0034 b:0034 l:000033 d:000033 METHOD D:/Sources/ruby/ruby-1.9.1- p129/lib/optparse.rb:1252 c:0007 p:0066 s:0029 b:0029 l:000814 d:000d60 BLOCK ./tool/generic\_erb.rb:12 c:0006 p:0114 s:0026 b:0026 l:000025 d:000025 METHOD D:/Sources/ruby/ruby-1.9.1- p129/lib/optparse.rb:793 c:0005 p:---- s:0020 b:0020 l:000019 d:000019 FINISH c:0004 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC :new c:0003 p:0069 s:0015 b:0015 l:000814 d:001ea8 EVAL ./tool/generic\_erb.rb:8 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:0000 s:0002 b:0002 l:000814 d:000814 TOP :308

– Ruby level backtrace  
information-----------------------------------------  
D:/Sources/ruby/ruby-1.9.1-p129/lib/optparse.rb:1310:in `catch' D:/Sources/ruby/ruby-1.9.1-p129/lib/optparse.rb:1310:in `block in  
parse\_in\_order  
’  
D:/Sources/ruby/ruby-1.9.1-p129/lib/optparse.rb:1258:in `catch' D:/Sources/ruby/ruby-1.9.1-p129/lib/optparse.rb:1258:in `parse\_in\_order’  
D:/Sources/ruby/ruby-1.9.1-p129/lib/optparse.rb:1252:in `order!' ./tool/generic_erb.rb:12:in `block in ’  
D:/Sources/ruby/ruby-1.9.1-p129/lib/optparse.rb:793:in `initialize' ./tool/generic_erb.rb:8:in `new’  
./tool/generic\_erb.rb:8:in `’

[NOTE]  
You may encounter a bug of Ruby interpreter. Bug reports are welcome.  
For details: [http://www.ruby-lang.org/bugreport.html](http://www.ruby-lang.org/bugreport.html)

This application has requested the Runtime to terminate it in an unusual  
way.  
Please contact the application’s support team for more information.  
make: \*\*\* [encdb.h] Error 3
