https://redmine.ruby-lang.org/
https://redmine.ruby-lang.org/favicon.ico?1711330511
2012-06-21T09:55:51Z
Ruby Issue Tracking System
Ruby master - Bug #6616: MinGW: cannot build extensions or run tests due changes in exec_arg?
https://redmine.ruby-lang.org/issues/6616?journal_id=27319
2012-06-21T09:55:51Z
luislavena (Luis Lavena)
luislavena@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li></ul>
Ruby master - Bug #6616: MinGW: cannot build extensions or run tests due changes in exec_arg?
https://redmine.ruby-lang.org/issues/6616?journal_id=27321
2012-06-21T11:21:27Z
phasis68 (Heesob Park)
phasis@gmail.com
<ul></ul><p>Here is a simple code for the cause of this issue.</p>
<p>C:\work>ruby -ve "system('dir')"<br>
ruby 2.0.0dev (2012-06-21 trunk 36156) [i386-mingw32]<br>
-e:1:in <code>system': wrong argument type Object (expected exec_arg) (TypeError) from -e:1:in </code>'</p>
<p>This bug is due to the revision r36152.<br>
I guess the revision r36152 is untested or unfinished.</p>
Ruby master - Bug #6616: MinGW: cannot build extensions or run tests due changes in exec_arg?
https://redmine.ruby-lang.org/issues/6616?journal_id=27327
2012-06-21T13:53:18Z
akr (Akira Tanaka)
akr@fsij.org
<ul></ul><p>2012/6/21 luislavena (Luis Lavena) <a href="mailto:luislavena@gmail.com" class="email">luislavena@gmail.com</a>:</p>
<blockquote>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: MinGW: cannot build extensions or run tests due changes in exec_arg? (Closed)" href="https://redmine.ruby-lang.org/issues/6616">#6616</a>: MinGW: cannot build extensions or run tests due changes in exec_arg?</p>
</blockquote>
<blockquote>
<p>Latest trunk revision (r36154) is failing on me:<br>
<a href="https://gist.github.com/2959908" class="external">https://gist.github.com/2959908</a></p>
</blockquote>
<p>I doubt this is a GC problem.</p>
<p>At least current trunk has a problem as follows.</p>
<p>boron% ./ruby -e 'GC.stress = true; eval("def m(k: 0) end")'<br>
-e:1: [BUG] iseq_compile_each: unknown node: NODE_ARGS<br>
ruby 2.0.0dev (2012-06-21 trunk 36158) [i686-linux]</p>
<p>-- Control frame information -----------------------------------------------<br>
c:0003 p:---- s:0008 b:0008 e:000007 CFUNC :eval<br>
c:0002 p:0029 s:0004 b:0004 e:ffffd98c EVAL -e:1 [FINISH]<br>
c:0001 p:0000 s:0002 b:0002 e:fffff3a4 TOP [FINISH]</p>
<p>-e:1:in <code><main>' -e:1:in </code>eval'</p>
<p>-- C level backtrace information -------------------------------------------<br>
./ruby(+0x11577e) [0x8011577e]<br>
./ruby(+0x157a5f) [0x80157a5f]<br>
./ruby(rb_bug+0x49) [0x80157b09]<br>
./ruby(+0xeb1d6) [0x800eb1d6]<br>
./ruby(rb_iseq_compile_node+0x495) [0x800f52e5]<br>
./ruby(+0xfb4f6) [0x800fb4f6]<br>
./ruby(+0xea2d9) [0x800ea2d9]<br>
./ruby(+0xeea64) [0x800eea64]<br>
./ruby(rb_iseq_compile_node+0x6dd) [0x800f552d]<br>
./ruby(+0xfb4f6) [0x800fb4f6]<br>
./ruby(rb_iseq_compile_with_option+0xc9) [0x800fb7b9]<br>
./ruby(rb_iseq_compile+0x2f) [0x800fb96f]<br>
./ruby(+0x10ca35) [0x8010ca35]<br>
./ruby(+0x10d0ec) [0x8010d0ec]<br>
./ruby(+0x100b00) [0x80100b00]<br>
./ruby(+0x103e9d) [0x80103e9d]<br>
./ruby(+0x106a77) [0x80106a77]<br>
./ruby(+0x10c52f) [0x8010c52f]<br>
./ruby(rb_iseq_eval_main+0x9b) [0x8010c7cb]<br>
./ruby(+0x19382) [0x80019382]<br>
./ruby(ruby_exec_node+0x28) [0x800193d8]<br>
./ruby(ruby_run_node+0x25) [0x8001a575]<br>
./ruby(+0x175be) [0x800175be]<br>
/lib/i686/nosegneg/libc.so.6(__libc_start_main+0xe6) [0xb7dc1ca6]<br>
libc-start.c:228<br>
./ruby(+0x17471) [0x80017471]</p>
<p>-- Other runtime information -----------------------------------------------</p>
<ul>
<li>
<p>Loaded script: -e</p>
</li>
<li>
<p>Loaded features:</p>
<p>0 enumerator.so<br>
1 /extdisk/chkbuild/chkbuild/tmp/build/20120621T020500Z/lib/ruby/2.0.0/i686-linux/enc/encdb.so<br>
2 /extdisk/chkbuild/chkbuild/tmp/build/20120621T020500Z/lib/ruby/2.0.0/i686-linux/enc/trans/transdb.so<br>
3 /extdisk/chkbuild/chkbuild/tmp/build/20120621T020500Z/lib/ruby/2.0.0/rubygems/defaults.rb<br>
4 /extdisk/chkbuild/chkbuild/tmp/build/20120621T020500Z/lib/ruby/2.0.0/i686-linux/rbconfig.rb<br>
5 /extdisk/chkbuild/chkbuild/tmp/build/20120621T020500Z/lib/ruby/2.0.0/rubygems/deprecate.rb<br>
6 /extdisk/chkbuild/chkbuild/tmp/build/20120621T020500Z/lib/ruby/2.0.0/rubygems/exceptions.rb<br>
7 /extdisk/chkbuild/chkbuild/tmp/build/20120621T020500Z/lib/ruby/2.0.0/rubygems/custom_require.rb<br>
8 /extdisk/chkbuild/chkbuild/tmp/build/20120621T020500Z/lib/ruby/2.0.0/rubygems.rb</p>
</li>
<li>
<p>Process memory map:</p>
</li>
</ul>
<p>80000000-801de000 r-xp 00000000 ca:05 10988445<br>
/extdisk/chkbuild/chkbuild/tmp/build/20120621T020500Z/ruby/ruby<br>
801de000-801e2000 rw-p 001de000 ca:05 10988445<br>
/extdisk/chkbuild/chkbuild/tmp/build/20120621T020500Z/ruby/ruby<br>
801e2000-80388000 rw-p 801e2000 00:00 0 [heap]<br>
b7cfd000-b7cfe000 rw-p b7cfd000 00:00 0<br>
b7cfe000-b7d1b000 r-xp 00000000 ca:02 278530 /lib/libgcc_s.so.1<br>
b7d1b000-b7d1c000 rw-p 0001c000 ca:02 278530 /lib/libgcc_s.so.1<br>
b7d28000-b7dab000 rw-p b7d28000 00:00 0<br>
b7dab000-b7eef000 r-xp 00000000 ca:02 83311<br>
/lib/i686/nosegneg/libc-2.11.3.so<br>
b7eef000-b7ef1000 r--p 00144000 ca:02 83311<br>
/lib/i686/nosegneg/libc-2.11.3.so<br>
b7ef1000-b7ef2000 rw-p 00146000 ca:02 83311<br>
/lib/i686/nosegneg/libc-2.11.3.so<br>
b7ef2000-b7ef5000 rw-p b7ef2000 00:00 0<br>
b7ef5000-b7f19000 r-xp 00000000 ca:02 82853<br>
/lib/i686/nosegneg/libm-2.11.3.so<br>
b7f19000-b7f1a000 r--p 00023000 ca:02 82853<br>
/lib/i686/nosegneg/libm-2.11.3.so<br>
b7f1a000-b7f1b000 rw-p 00024000 ca:02 82853<br>
/lib/i686/nosegneg/libm-2.11.3.so<br>
b7f1b000-b7f24000 r-xp 00000000 ca:02 83009<br>
/lib/i686/nosegneg/libcrypt-2.11.3.so<br>
b7f24000-b7f25000 r--p 00008000 ca:02 83009<br>
/lib/i686/nosegneg/libcrypt-2.11.3.so<br>
b7f25000-b7f26000 rw-p 00009000 ca:02 83009<br>
/lib/i686/nosegneg/libcrypt-2.11.3.so<br>
b7f26000-b7f4d000 rw-p b7f26000 00:00 0<br>
b7f4d000-b7f4f000 r-xp 00000000 ca:02 82776<br>
/lib/i686/nosegneg/libdl-2.11.3.so<br>
b7f4f000-b7f50000 r--p 00001000 ca:02 82776<br>
/lib/i686/nosegneg/libdl-2.11.3.so<br>
b7f50000-b7f51000 rw-p 00002000 ca:02 82776<br>
/lib/i686/nosegneg/libdl-2.11.3.so<br>
b7f51000-b7f52000 rw-p b7f51000 00:00 0<br>
b7f52000-b7f59000 r-xp 00000000 ca:02 83310<br>
/lib/i686/nosegneg/librt-2.11.3.so<br>
b7f59000-b7f5a000 r--p 00006000 ca:02 83310<br>
/lib/i686/nosegneg/librt-2.11.3.so<br>
b7f5a000-b7f5b000 rw-p 00007000 ca:02 83310<br>
/lib/i686/nosegneg/librt-2.11.3.so<br>
b7f5b000-b7f70000 r-xp 00000000 ca:02 83016<br>
/lib/i686/nosegneg/libpthread-2.11.3.so<br>
b7f70000-b7f71000 r--p 00014000 ca:02 83016<br>
/lib/i686/nosegneg/libpthread-2.11.3.so<br>
b7f71000-b7f72000 rw-p 00015000 ca:02 83016<br>
/lib/i686/nosegneg/libpthread-2.11.3.so<br>
b7f72000-b7f74000 rw-p b7f72000 00:00 0<br>
b7f76000-b7f78000 r-xp 00000000 ca:05 12797104<br>
/extdisk/chkbuild/chkbuild/tmp/build/20120621T020500Z/lib/ruby/2.0.0/i686-linux/enc/trans/transdb.so<br>
b7f78000-b7f79000 rw-p 00001000 ca:05 12797104<br>
/extdisk/chkbuild/chkbuild/tmp/build/20120621T020500Z/lib/ruby/2.0.0/i686-linux/enc/trans/transdb.so<br>
b7f79000-b7f7b000 r-xp 00000000 ca:05 12797068<br>
/extdisk/chkbuild/chkbuild/tmp/build/20120621T020500Z/lib/ruby/2.0.0/i686-linux/enc/encdb.so<br>
b7f7b000-b7f7c000 rw-p 00001000 ca:05 12797068<br>
/extdisk/chkbuild/chkbuild/tmp/build/20120621T020500Z/lib/ruby/2.0.0/i686-linux/enc/encdb.so<br>
b7f7c000-b7f7d000 ---p b7f7c000 00:00 0<br>
b7f7d000-b7f84000 rw-p b7f7d000 00:00 0<br>
b7f84000-b7f85000 r-xp b7f84000 00:00 0 [vdso]<br>
b7f85000-b7fa0000 r-xp 00000000 ca:02 278675 /lib/ld-2.11.3.so<br>
b7fa0000-b7fa1000 r--p 0001b000 ca:02 278675 /lib/ld-2.11.3.so<br>
b7fa1000-b7fa2000 rw-p 0001c000 ca:02 278675 /lib/ld-2.11.3.so<br>
bfb77000-bfb8d000 rw-p bfb77000 00:00 0 [stack]</p>
<h2>[NOTE]<br>
You may have encountered a bug in the Ruby interpreter or extension libraries.<br>
Bug reports are welcome.<br>
For details: <a href="http://www.ruby-lang.org/bugreport.html" class="external">http://www.ruby-lang.org/bugreport.html</a>
</h2>
<p>Tanaka Akira</p>
Ruby master - Bug #6616: MinGW: cannot build extensions or run tests due changes in exec_arg?
https://redmine.ruby-lang.org/issues/6616?journal_id=27331
2012-06-21T19:23:35Z
akr (Akira Tanaka)
akr@fsij.org
<ul></ul><p>2012/6/21 Tanaka Akira <a href="mailto:akr@fsij.org" class="email">akr@fsij.org</a>:</p>
<blockquote>
<p>2012/6/21 luislavena (Luis Lavena) <a href="mailto:luislavena@gmail.com" class="email">luislavena@gmail.com</a>:</p>
<blockquote>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: MinGW: cannot build extensions or run tests due changes in exec_arg? (Closed)" href="https://redmine.ruby-lang.org/issues/6616">#6616</a>: MinGW: cannot build extensions or run tests due changes in exec_arg?</p>
</blockquote>
<blockquote>
<p>Latest trunk revision (r36154) is failing on me:<br>
<a href="https://gist.github.com/2959908" class="external">https://gist.github.com/2959908</a></p>
</blockquote>
<p>I doubt this is a GC problem.</p>
<p>At least current trunk has a problem as follows.</p>
<p>boron% ./ruby -e 'GC.stress = true; eval("def m(k: 0) end")'<br>
-e:1: [BUG] iseq_compile_each: unknown node: NODE_ARGS<br>
ruby 2.0.0dev (2012-06-21 trunk 36158) [i686-linux]</p>
</blockquote>
<p>nobu fixed the GC problem at r36161.</p>
<a name="I-hope-that-the-revision-also-fix-this-issue"></a>
<h2 >I hope that the revision also fix this issue.<a href="#I-hope-that-the-revision-also-fix-this-issue" class="wiki-anchor">¶</a></h2>
<p>Tanaka Akira</p>
Ruby master - Bug #6616: MinGW: cannot build extensions or run tests due changes in exec_arg?
https://redmine.ruby-lang.org/issues/6616?journal_id=27332
2012-06-21T19:32:56Z
phasis68 (Heesob Park)
phasis@gmail.com
<ul></ul><p>I think r36161 is not related with this issue.<br>
After applying r36161, this issue is not fixed.</p>
<p>C:\work\snapshot>miniruby -e "system('dir')"<br>
-e:1:in <code>system': wrong argument type Object (expected exec_arg) (TypeError) from -e:1:in </code>'</p>
<p>Also, I can see many warning during building.</p>
<p>process.c: In function 'proc_exec_cmd':<br>
process.c:1138:9: warning: passing argument 2 of 'execve' from incompatible pointer type<br>
c:\devkit\mingw\bin../lib/gcc/mingw32/4.5.2/../../../../include/process.h:119:42: note: expected 'const char * const*' but argument is of type 'char *<em>'<br>
process.c:1138:9: warning: passing argument 3 of 'execve' from incompatible pointer type<br>
c:\devkit\mingw\bin../lib/gcc/mingw32/4.5.2/../../../../include/process.h:119:42: note: expected 'const char * const</em>' but argument is of type 'char **'<br>
process.c: In function 'rb_exec_async_signal_safe':<br>
process.c:2876:5: warning: 'rb_run_exec_options_err' is deprecated (declared at process.c:2839)<br>
process.c:2876:5: warning: passing argument 1 of 'rb_run_exec_options_err' from incompatible pointer type<br>
process.c:2839:1: note: expected 'const struct rb_exec_arg *' but argument is of type 'struct rb_execarg *'<br>
process.c: In function 'rb_spawn_process':<br>
process.c:3502:5: warning: 'rb_run_exec_options_err' is deprecated (declared at process.c:2839)<br>
process.c:3502:5: warning: passing argument 1 of 'rb_run_exec_options_err' from incompatible pointer type<br>
process.c:2839:1: note: expected 'const struct rb_exec_arg *' but argument is of type 'struct rb_execarg *'<br>
process.c:3502:5: warning: passing argument 2 of 'rb_run_exec_options_err' from incompatible pointer type<br>
process.c:2839:1: note: expected 'struct rb_exec_arg *' but argument is of type 'struct rb_execarg *'<br>
process.c:3532:5: warning: 'rb_run_exec_options_err' is deprecated (declared at process.c:2839)<br>
process.c:3532:5: warning: passing argument 1 of 'rb_run_exec_options_err' from incompatible pointer type<br>
process.c:2839:1: note: expected 'const struct rb_exec_arg *' but argument is of type 'struct rb_execarg *'</p>
Ruby master - Bug #6616: MinGW: cannot build extensions or run tests due changes in exec_arg?
https://redmine.ruby-lang.org/issues/6616?journal_id=27334
2012-06-21T19:53:42Z
akr (Akira Tanaka)
akr@fsij.org
<ul></ul><p>2012/6/21 phasis68 (Heesob Park) <a href="mailto:phasis@gmail.com" class="email">phasis@gmail.com</a>:</p>
<blockquote>
<p>Issue <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: MinGW: cannot build extensions or run tests due changes in exec_arg? (Closed)" href="https://redmine.ruby-lang.org/issues/6616">#6616</a> has been updated by phasis68 (Heesob Park).</p>
</blockquote>
<blockquote>
<p>Also, I can see many warning during building.</p>
<p>process.c: In function 'proc_exec_cmd':<br>
process.c:1138:9: warning: passing argument 2 of 'execve' from incompatible pointer type<br>
c:\devkit\mingw\bin../lib/gcc/mingw32/4.5.2/../../../../include/process.h:119:42: note: expected 'const char * const*' but argument is of type 'char *<em>'<br>
process.c:1138:9: warning: passing argument 3 of 'execve' from incompatible pointer type<br>
c:\devkit\mingw\bin../lib/gcc/mingw32/4.5.2/../../../../include/process.h:119:42: note: expected 'const char * const</em>' but argument is of type 'char **'<br>
process.c: In function 'rb_exec_async_signal_safe':<br>
process.c:2876:5: warning: 'rb_run_exec_options_err' is deprecated (declared at process.c:2839)<br>
process.c:2876:5: warning: passing argument 1 of 'rb_run_exec_options_err' from incompatible pointer type<br>
process.c:2839:1: note: expected 'const struct rb_exec_arg *' but argument is of type 'struct rb_execarg *'<br>
process.c: In function 'rb_spawn_process':<br>
process.c:3502:5: warning: 'rb_run_exec_options_err' is deprecated (declared at process.c:2839)<br>
process.c:3502:5: warning: passing argument 1 of 'rb_run_exec_options_err' from incompatible pointer type<br>
process.c:2839:1: note: expected 'const struct rb_exec_arg *' but argument is of type 'struct rb_execarg *'<br>
process.c:3502:5: warning: passing argument 2 of 'rb_run_exec_options_err' from incompatible pointer type<br>
process.c:2839:1: note: expected 'struct rb_exec_arg *' but argument is of type 'struct rb_execarg *'<br>
process.c:3532:5: warning: 'rb_run_exec_options_err' is deprecated (declared at process.c:2839)<br>
process.c:3532:5: warning: passing argument 1 of 'rb_run_exec_options_err' from incompatible pointer type<br>
process.c:2839:1: note: expected 'const struct rb_exec_arg *' but argument is of type 'struct rb_execarg *'</p>
</blockquote>
<p>This compile time message is very helpful.</p>
<a name="I-hope-r36165-fixes-this-issue"></a>
<h2 >I hope r36165 fixes this issue.<a href="#I-hope-r36165-fixes-this-issue" class="wiki-anchor">¶</a></h2>
<p>Tanaka Akira</p>
Ruby master - Bug #6616: MinGW: cannot build extensions or run tests due changes in exec_arg?
https://redmine.ruby-lang.org/issues/6616?journal_id=27335
2012-06-22T00:29:45Z
luislavena (Luis Lavena)
luislavena@gmail.com
<ul></ul><p>On Thu, Jun 21, 2012 at 7:49 AM, Tanaka Akira <a href="mailto:akr@fsij.org" class="email">akr@fsij.org</a> wrote:</p>
<blockquote>
<p>2012/6/21 phasis68 (Heesob Park) <a href="mailto:phasis@gmail.com" class="email">phasis@gmail.com</a>:</p>
<blockquote>
<p>process.c:3502:5: warning: passing argument 2 of 'rb_run_exec_options_err' from incompatible pointer type<br>
process.c:2839:1: note: expected 'struct rb_exec_arg *' but argument is of type 'struct rb_execarg *'<br>
process.c:3532:5: warning: 'rb_run_exec_options_err' is deprecated (declared at process.c:2839)<br>
process.c:3532:5: warning: passing argument 1 of 'rb_run_exec_options_err' from incompatible pointer type<br>
process.c:2839:1: note: expected 'const struct rb_exec_arg *' but argument is of type 'struct rb_execarg *'</p>
</blockquote>
<p>This compile time message is very helpful.</p>
</blockquote>
<p>Apologies, I missed the compilation warnings from the worker computer.</p>
<blockquote>
<p>I hope r36165 fixes this issue.</p>
</blockquote>
<p>Seems to have fixed it, will close the bug report.</p>
<a name="Thank-you"></a>
<h2 >Thank you.<a href="#Thank-you" class="wiki-anchor">¶</a></h2>
<h2>Luis Lavena<br>
AREA 17</h2>
<p>Perfection in design is achieved not when there is nothing more to add,<br>
but rather when there is nothing more to take away.<br>
Antoine de Saint-Exupéry</p>
Ruby master - Bug #6616: MinGW: cannot build extensions or run tests due changes in exec_arg?
https://redmine.ruby-lang.org/issues/6616?journal_id=27336
2012-06-22T01:06:53Z
luislavena (Luis Lavena)
luislavena@gmail.com
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Thank you Park for the details.</p>
<p>Thank you Akira Tanaka for solving this.</p>
<p>Closing this out.</p>