From: allyson_198@... Date: 2021-05-31T11:30:38+00:00 Subject: [ruby-core:104114] [Ruby master Bug#17931] Compile fails on windows setup option nodynamic Issue #17931 has been updated by Terabin (Allyson Souza Bacon). my setup file ``` shell option nodynamic #bigdecimal #cgi/escape #continuation #coverage #date #dbm #digest/bubblebabble #digest #digest/md5 #digest/rmd160 #digest/sha1 #digest/sha2 #etc #fcntl #ffi_c #fiber fiddle #gdbm #io/console #io/nonblock #io/wait #json #json/generator #json/parser #nkf #objspace #openssl #pathname #psych #pty #racc/cparse #rbconfig/sizeof #readline #ripper #socket #stringio #strscan #syslog #win32 #win32ole #zlib ``` ---------------------------------------- Bug #17931: Compile fails on windows setup option nodynamic https://bugs.ruby-lang.org/issues/17931#change-92287 * Author: Terabin (Allyson Souza Bacon) * Status: Open * Priority: Normal * ruby -v: 3.0.1 * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- I can compile the ruby ������normally without deselecting the #option nodinamyc and some other extension, but when deselecting I get the following error ``` shell rbconfig.rb updated generating enc.mk making srcs under enc generating transdb.h transdb.h updated compiling C:/ruby-3.0.1/dln.c dln.c compiling C:/ruby-3.0.1/localeinit.c localeinit.c creating verconf.h verconf.h updated compiling C:/ruby-3.0.1/loadpath.c loadpath.c builtin_binary.inc updated compiling C:/ruby-3.0.1/builtin.c builtin.c linking static-library x64-vcruntime140-ruby300-static.lib generating x64-vcruntime140-ruby300.def linking import-library x64-vcruntime140-ruby300.lib Criando biblioteca x64-vcruntime140-ruby300.lib e objeto x64-vcruntime140-ruby300.exp generating makefiles ext/configure-ext.mk ext/configure-ext.mk updated configuring fiddle libffi_version: 3.2.1 generating makefile exts.mk exts.mk updated The system cannot find the path specified. NMAKE : fatal error U1077: 'cd' : c��digo de retorno '0x1' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\nmake.EXE"' : c��digo de retorno '0x2' Stop. C:\rbuild2> ``` I tested at visual studio 2017 and 2019. **How to reproduce** ``` shell set PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\Hostx64\x64;%PATH% cd C:\rbuild_x64 cd C:\rbuild2 C:\ruby-3.0.1\win32\configure.bat --disable-dln --with-static-link-ext --enable-shared=no ``` -- https://bugs.ruby-lang.org/ Unsubscribe: