[ruby-dev:49900] [Ruby trunk Bug#13033] 2.4.0-rc1, build error with VS2015

From: naruse@...
Date: 2016-12-14 17:15:15 UTC
List: ruby-dev #49900
Issue #13033 has been updated by Yui NARUSE.


Could you try following patch?

```diff
diff --git a/win32/mkexports.rb b/win32/mkexports.rb
index d26acbb107..8fc7d9ddb5 100755
--- a/win32/mkexports.rb
+++ b/win32/mkexports.rb
@@ -114,7 +114,7 @@ def each_export(objs)
         when /OBJECT/, /LIBRARY/
           next if /^[[:xdigit:]]+ 0+ UNDEF / =~ l
           next unless /External/ =~ l
-          next if /(?:_local_stdio_printf_options|v(f|sn?)printf_l)\Z/ =~ l
+          next if /(?:_local_stdio_printf_options|v(f|sn?)printf(?:_s)?_l)\Z/ =~ l
           next unless l.sub!(/.*?\s(\(\)\s+)?External\s+\|\s+/, '')
           is_data = !$1
           if noprefix or /^[@_]/ =~ l
```

----------------------------------------
Bug #13033: 2.4.0-rc1, build error with VS2015
https://bugs.ruby-lang.org/issues/13033#change-62028

* Author: y mise
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
I got following error message when building 2.4.0-rc1 with Visual Studio 2015 update 3. Attached "rc1_output.txt" is full-length nmake output.
2.4.0-preview3 doesn't have this error.

`linking shared-library x64-vcruntime140-ruby240.dll
x64-vcruntime140-ruby240.def : error LNK2001: 外部シンボル "vsnprintf_s_l" は未解決です。
x64-vcruntime140-ruby240.def : error LNK2001: 外部シンボル "vsprintf_s_l" は未解決です。
dummy.lib : fatal error LNK1120: 2 件の未解決の外部参照
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.EXE"' : リターン コード '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.EXE"' : リターン コ ード '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.EXE"' : リターン コ ード '0x2'
Stop.`



---Files--------------------------------
rc1_output.txt (41.7 KB)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next