Project

General

Profile

Bug #11118

Unable to build Ruby with Visual Studio 2015 RC

Added by djberg96 (Daniel Berger) about 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:69065]

Description

I installed the latest Visual Studio, and then tried to build Ruby 2.2.2 on Windows 7. But, I'm having trouble right away. This is an RC candidate (so I guess that's why the CLI shows Visual Studio 14).

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>cl /?
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.22816 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Users\djberge\Downloads\Ruby\ruby-2.2.2>win32\configure.bat
win32\rtname: conftest.exe is not linked to msvcrt
NMAKE : fatal error U1077: 'win32\rtname' : return code '0x1'
Stop.

Any ideas?


Related issues

Has duplicate Ruby master - Bug #12014: Visual Studio 2015 build error __imp___pioinfoClosedActions
Has duplicate Ruby master - Bug #12322: vs 2015 RejectedActions

Associated revisions

Revision 9afc312b
Added by naruse (Yui NARUSE) about 3 years ago

Support MSVC14 and 15 [Bug #11118]

Search _pioinfo which is not exported after MSVC14.
[Bug #12014] [GH-884]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 54737
Added by naruse (Yui NARUSE) about 3 years ago

Support MSVC14 and 15 [Bug #11118]

Search _pioinfo which is not exported after MSVC14.
[Bug #12014] [GH-884]

Revision 54737
Added by naruse (Yui NARUSE) about 3 years ago

Support MSVC14 and 15 [Bug #11118]

Search _pioinfo which is not exported after MSVC14.
[Bug #12014] [GH-884]

Revision 54737
Added by naruse (Yui NARUSE) about 3 years ago

Support MSVC14 and 15 [Bug #11118]

Search _pioinfo which is not exported after MSVC14.
[Bug #12014] [GH-884]

Revision 54737
Added by naruse (Yui NARUSE) about 3 years ago

Support MSVC14 and 15 [Bug #11118]

Search _pioinfo which is not exported after MSVC14.
[Bug #12014] [GH-884]

Revision 85ddcb93
Added by usa (Usaku NAKAMURA) over 1 year ago

merge revision(s) 54737,54740,55792: [Backport #14623]

    Support MSVC14 and 15 [Bug #11118]

    Search _pioinfo which is not exported after MSVC14.
    [Bug #12014] [GH-884]

    win32.c: suppress warnings

    * win32/win32.c (set_pioinfo_extra): remove "/*" within comment.
    * win32/win32.c (set_pioinfo_extra): use more reliable way to search
      the position of pioinfo of VC14, and also support debug library of it.
      patched by davispuh AT gmail.com
      [ruby-core:76644] [Bug #12644]
      this fixes also [Bug #12631]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 62884
Added by usa (Usaku NAKAMURA) over 1 year ago

merge revision(s) 54737,54740,55792: [Backport #14623]

Support MSVC14 and 15 [Bug #11118]

Search _pioinfo which is not exported after MSVC14.
[Bug #12014] [GH-884]

win32.c: suppress warnings

* win32/win32.c (set_pioinfo_extra): remove "/*" within comment.
* win32/win32.c (set_pioinfo_extra): use more reliable way to search
  the position of pioinfo of VC14, and also support debug library of it.
  patched by davispuh AT gmail.com
  [ruby-core:76644] [Bug #12644]
  this fixes also [Bug #12631]

History

Updated by phasis68 (Heesob Park) about 4 years ago

This issue is due to the runtime name change.
Since the Visual Studio 2014, the runtime is vcruntime140.dll.

Refer to http://mariusbancila.ro/blog/2014/06/05/crt-refactored-in-visual-studio-14/

The other huddle is FILE structure Encapsulation:
http://blogs.msdn.com/b/vcblog/archive/2014/06/18/crt-features-fixes-and-breaking-changes-in-visual-studio-14-ctp1.aspx

win32/win32.c should be rewritten in order to be built with Visual Studio 2014 or later.

Updated by usa (Usaku NAKAMURA) about 4 years ago

FYI, naruse-san has already surveyed it, and some parts of its result have been committed into trunk.

See also: https://github.com/ruby/ruby/pull/884/files

Updated by scorpion007 (Alex Budovski) almost 4 years ago

Now that RTM is out, is any progress being made on this?

#4

Updated by naruse (Yui NARUSE) over 3 years ago

  • Related to Bug #12014: Visual Studio 2015 build error __imp___pioinfo added
#5

Updated by naruse (Yui NARUSE) over 3 years ago

  • Related to deleted (Bug #12014: Visual Studio 2015 build error __imp___pioinfo)
#6

Updated by naruse (Yui NARUSE) over 3 years ago

  • Has duplicate Bug #12014: Visual Studio 2015 build error __imp___pioinfo added

Updated by naruse (Yui NARUSE) over 3 years ago

  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: WONTFIX, 2.1: WONTFIX, 2.2: WONTFIX, 2.3: WONTFIX

I also write about this on Microsoft Connect.
https://connect.microsoft.com/VisualStudio/feedback/details/1279133

You may understand the situation by seeing https://github.com/ruby/ruby/pull/884.

Status is

  • Ruby 2.3 or prior won't fix this.
  • Ruby 2.4 or later may introduce with fundamental architectural change.
#8

Updated by naruse (Yui NARUSE) about 3 years ago

  • Status changed from Open to Closed

Applied in changeset r54737.


Support MSVC14 and 15 [Bug #11118]

Search _pioinfo which is not exported after MSVC14.
[Bug #12014] [GH-884]

#9

Updated by naruse (Yui NARUSE) about 3 years ago

Also available in: Atom PDF