Project

General

Profile

Actions

Bug #11118

closed

Unable to build Ruby with Visual Studio 2015 RC

Added by djberg96 (Daniel Berger) almost 10 years ago. Updated almost 9 years ago.

Status:
Closed
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 3 (1 open2 closed)

Related to Ruby master - Bug #18605: Fails to run on (newer) 32bit Windows with ucrtOpenActions
Has duplicate Ruby master - Bug #12014: Visual Studio 2015 build error __imp___pioinfoClosedActions
Has duplicate Ruby master - Bug #12322: vs 2015 RejectedActions

Updated by phasis68 (Heesob Park) almost 10 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) almost 10 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) over 9 years ago

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

Actions #4

Updated by naruse (Yui NARUSE) about 9 years ago

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

Updated by naruse (Yui NARUSE) about 9 years ago

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

Updated by naruse (Yui NARUSE) about 9 years ago

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

Updated by naruse (Yui NARUSE) about 9 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.
Actions #8

Updated by naruse (Yui NARUSE) almost 9 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]

Actions #9

Updated by naruse (Yui NARUSE) almost 9 years ago

Actions #10

Updated by naruse (Yui NARUSE) almost 3 years ago

  • Related to Bug #18605: Fails to run on (newer) 32bit Windows with ucrt added
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0