[#101981] [Ruby master Bug#17519] set_visibility fails when a prepended module and a refinement both exist — dbfeldman@...

Issue #17519 has been reported by fledman (David Feldman).

12 messages 2021/01/08

[#102003] [Ruby master Bug#17527] rb_io_wait_readable/writable with scheduler don't check errno — julien@...

Issue #17527 has been reported by ysbaddaden (Julien Portalier).

13 messages 2021/01/11

[#102065] [Ruby master Bug#17536] Segfault in `CFUNC :define_method` — v.ondruch@...

Issue #17536 has been reported by vo.x (Vit Ondruch).

13 messages 2021/01/13

[#102083] [Ruby master Bug#17540] A segfault due to Clang/LLVM optimization on 32-bit ARM Linux — xtkoba+ruby@...

Issue #17540 has been reported by xtkoba (Tee KOBAYASHI).

12 messages 2021/01/14

[#102102] [Ruby master Bug#17543] Ractor isolation broken by `self` in shareable proc — marcandre-ruby-core@...

Issue #17543 has been reported by marcandre (Marc-Andre Lafortune).

14 messages 2021/01/15

[#102118] [Ruby master Feature#17548] Need simple way to include symlink directories in Dir.glob — keithrbennett@...

Issue #17548 has been reported by keithrbennett (Keith Bennett).

8 messages 2021/01/17

[#102158] [Ruby master Bug#17560] Does `Module#ruby2_keywords` return `nil` or `self`? — nobu@...

Issue #17560 has been reported by nobu (Nobuyoshi Nakada).

9 messages 2021/01/19

[#102163] [Ruby master Bug#17561] The timeout option for Addrinfo.getaddrinfo is not reliable on Ruby 2.7.2 — sean@...

Issue #17561 has been reported by smcgivern (Sean McGivern).

8 messages 2021/01/19

[#102249] [Ruby master Bug#17583] Segfault on large stack(RUBY_THREAD_VM_STACK_SIZE) — yoshiokatsuneo@...

Issue #17583 has been reported by yoshiokatsuneo (Tsuneo Yoshioka).

12 messages 2021/01/26

[#102256] [Ruby master Bug#17585] DWAR5 support? — v.ondruch@...

Issue #17585 has been reported by vo.x (Vit Ondruch).

19 messages 2021/01/26

[#102301] [Ruby master Bug#17591] Test frameworks and REPLs do not show deprecation warnings by default — eregontp@...

Issue #17591 has been reported by Eregon (Benoit Daloze).

14 messages 2021/01/29

[#102305] [Ruby master Feature#17592] Ractor should allowing reading shareable class instance variables — marcandre-ruby-core@...

Issue #17592 has been reported by marcandre (Marc-Andre Lafortune).

25 messages 2021/01/29

[ruby-core:102284] [Ruby master Bug#17588] Cannot build 2.7.2 with `--with-static-linked-ext` on MSVC

From: nobu@...
Date: 2021-01-29 05:20:21 UTC
List: ruby-core #102284
Issue #17588 has been updated by nobu (Nobuyoshi Nakada).


As far as I tried years ago, cl.exe failed to pass library path with spaces to link.exe.

----------------------------------------
Bug #17588: Cannot build 2.7.2 with `--with-static-linked-ext` on MSVC
https://bugs.ruby-lang.org/issues/17588#change-90135

* Author: jmarrec (Julien Marrec)
* Status: Open
* Priority: Normal
* ruby -v: 2.7.2
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
I checked out the ruby_2_7 from github, and I reproduced all steps in the github/workflows/windows.yml with success.

Then I edited the `configure` command here: https://github.com/ruby/ruby/blob/ruby_2_7/.github/workflows/windows.yml#L60 to include `--with-static-linked-ext`

``` shell
..\win32\configure.bat --with-static-linked-ext --disable-install-doc --without-ext=+,dbm,gdbm --enable-bundled-libffi --with-opt-dir=C:/Users/julien/Software/Others/vcpkg/installed/x64-windows --with-openssl-dir="C:/Program Files/OpenSSL-Win64
```

It is failing with something that looks like it's due to an **escaping** problem: `NMAKE : fatal error U1073: don't know how to make 'Files/OpenSSL-Win64/lib'`. I don't know where to look to patch it...



Some more of the build log:


```
.....
linking static-library readline.lib
extracting ripper.y from ../../../parse.y
compiling compiler ripper.y
generating eventids1.c from ../../../parse.y
generating eventids2table.c from ../../../ext/ripper/eventids2.c
compiling ripper.c
ripper.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
linking static-library ripper.lib
installing default ripper libraries
cp ../../../ext/ripper/lib/ripper/core.rb ../../.ext/common/ripper
cp ../../../ext/ripper/lib/ripper/filter.rb ../../.ext/common/ripper
cp ../../../ext/ripper/lib/ripper/lexer.rb ../../.ext/common/ripper
cp ../../../ext/ripper/lib/ripper/sexp.rb ../../.ext/common/ripper
cp ../../../ext/ripper/lib/ripper.rb ../../.ext/common
checking ../../../parse.y and ../../../ext/ripper/eventids2.c
installing default libraries
cp ../../../ext/rubyvm/lib/forwardable/impl.rb ../../.ext/common/forwardable
compiling ../../../ext/sdbm/_sdbm.c
_sdbm.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/sdbm/init.c
init.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
linking static-library sdbm.lib
generating constant definitions
compiling ../../../ext/socket/init.c
init.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/socket/constants.c
constants.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/socket/basicsocket.c
basicsocket.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/socket/socket.c
socket.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/socket/ipsocket.c
ipsocket.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/socket/tcpsocket.c
tcpsocket.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/socket/tcpserver.c
tcpserver.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/socket/sockssocket.c
sockssocket.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/socket/udpsocket.c
udpsocket.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/socket/unixsocket.c
unixsocket.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/socket/unixserver.c
unixserver.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/socket/option.c
option.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/socket/ancdata.c
ancdata.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/socket/raddrinfo.c
raddrinfo.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/socket/ifaddr.c
ifaddr.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
linking static-library socket.lib
installing default socket libraries
cp ../../../ext/socket/lib/socket.rb ../../.ext/common
compiling ../../../ext/stringio/stringio.c
stringio.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
linking static-library stringio.lib
compiling ../../../ext/strscan/strscan.c
strscan.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
linking static-library strscan.lib
installing default libraries
cp ../../../ext/win32/lib/win32/importer.rb ../../.ext/common/win32
cp ../../../ext/win32/lib/win32/registry.rb ../../.ext/common/win32
cp ../../../ext/win32/lib/win32/resolv.rb ../../.ext/common/win32
cp ../../../ext/win32/lib/win32/resolv9x.rb ../../.ext/common/win32
cp ../../../ext/win32/lib/win32/sspi.rb ../../.ext/common/win32
cp ../../../ext/win32/lib/Win32API.rb ../../.ext/common
compiling ../../../../ext/win32/resolv/resolv.c
resolv.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
linking static-library resolv.lib
compiling ../../../ext/win32ole/win32ole.c
win32ole.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/win32ole/win32ole_error.c
win32ole_error.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/win32ole/win32ole_event.c
win32ole_event.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/win32ole/win32ole_method.c
win32ole_method.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/win32ole/win32ole_param.c
win32ole_param.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/win32ole/win32ole_record.c
win32ole_record.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/win32ole/win32ole_type.c
win32ole_type.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/win32ole/win32ole_typelib.c
win32ole_typelib.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/win32ole/win32ole_variable.c
win32ole_variable.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/win32ole/win32ole_variant.c
win32ole_variant.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
compiling ../../../ext/win32ole/win32ole_variant_m.c
win32ole_variant_m.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
linking static-library win32ole.lib
installing default win32ole libraries
cp ../../../ext/win32ole/lib/win32ole/property.rb ../../.ext/common/win32ole
cp ../../../ext/win32ole/lib/win32ole.rb ../../.ext/common
compiling ../../../ext/zlib/zlib.c
zlib.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
linking static-library zlib.lib
ext/extinit.c updated
compiling ext/extinit.c
extinit.c
C:\Users\julien\Software\Others\ruby\build\.ext\include\x64-mswin64_140\ruby/config.h(22): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
NMAKE : fatal error U1073: don't know how to make 'Files/OpenSSL-Win64/lib'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\nmake.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\nmake.EXE"' : return code '0x2'
Stop.
```






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

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread