https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112016-08-01T19:12:33ZRuby Issue Tracking SystemRuby master - Bug #12644: Support debug build on Windows with MSVChttps://bugs.ruby-lang.org/issues/12644?journal_id=598602016-08-01T19:12:33Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset r55792.</p>
<hr>
<ul>
<li>win32/win32.c (set_pioinfo_extra): use more reliable way to search<br>
the position of pioinfo of VC14, and also support debug library of it.<br>
patched by davispuh AT gmail.com<br>
<a href="/issues/12644">[ruby-core:76644]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Support debug build on Windows with MSVC (Closed)" href="https://bugs.ruby-lang.org/issues/12644">#12644</a>]<br>
this fixes also [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Cannot build Ruby 2.4 preview 1 with MSVC 2015 update 3 ( crashes in miniruby ) (Closed)" href="https://bugs.ruby-lang.org/issues/12631">#12631</a>]</li>
</ul> Ruby master - Bug #12644: Support debug build on Windows with MSVChttps://bugs.ruby-lang.org/issues/12644?journal_id=598622016-08-01T19:13:01Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul></ul><p>Great work! Thank you!</p> Ruby master - Bug #12644: Support debug build on Windows with MSVChttps://bugs.ruby-lang.org/issues/12644?journal_id=599512016-08-04T08:04:56Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Backport</strong> changed from <i>2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN</i> to <i>2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED</i></li></ul> Ruby master - Bug #12644: Support debug build on Windows with MSVChttps://bugs.ruby-lang.org/issues/12644?journal_id=667612017-09-19T07:19:25Zrocifier (Ryan O'Connor)rocifier@gmail.com
<ul></ul><p>davispuh (Dāvis Mosāns) wrote:</p>
<blockquote>
<p>When building debug build with MSVC (<code>-MDd</code> flag) then it will be linked to <code>ucrtbased.dll</code> where <code>_isatty</code> function obviously differs.</p>
<p>I've attached a patch which fixes this so that <code>__pioinfo</code> will be found for both debug and non-debug builds (x86 and x64)</p>
<p>Anyway I really really don't like this and I think Ruby should keep it's own fd <=> handle mapping and not use this hack, but for now this works until <code>_isatty</code> changes.</p>
</blockquote>
<p>I'm running into a similar issue to this trying to build with VS2015. I am seeing this error <code>unexpected ucrtbased.dll</code> appearing when my debug (MDd) build runs miniruby.exe<br>
Where can I find the exact version of this dll required by this assembly language code?</p>
<p><strong>EDIT</strong>: I got it working, please see the separate issue I opened here for the answer: <a href="https://bugs.ruby-lang.org/issues/13920" class="external">https://bugs.ruby-lang.org/issues/13920</a></p> Ruby master - Bug #12644: Support debug build on Windows with MSVChttps://bugs.ruby-lang.org/issues/12644?journal_id=667992017-09-20T18:21:22Zdavispuh (Dāvis Mosāns)
<ul></ul><p>Most likely your ucrtbased.dll differs in such way that can't locate that structure, so either need to update implementation to work for it (you'll need to look at disassembly)</p>
<p>or you will need to compile with probably older version of MSVC 2015 which worked.</p> Ruby master - Bug #12644: Support debug build on Windows with MSVChttps://bugs.ruby-lang.org/issues/12644?journal_id=711562018-03-22T01:30:56Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/14623">Bug #14623</a>: backport r54737, r54740 and r55792</i> added</li></ul>