Project

General

Profile

Actions

Bug #17929

closed

Compile fails on Windows --with-static-linked-ext

Added by Terabin (Allyson Souza Bacon) 6 months ago. Updated 5 months ago.

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

Description

I can compile Ruby normally without --with-static-linked-ext, but when I try to use this command the following problem occurs:

win32ole_typelib.c
compiling C:/ruby-3.0.1/ext/win32ole/win32ole_variable.c
win32ole_variable.c
compiling C:/ruby-3.0.1/ext/win32ole/win32ole_variant.c
win32ole_variant.c
compiling C:/ruby-3.0.1/ext/win32ole/win32ole_variant_m.c
win32ole_variant_m.c
linking static-library win32ole.lib
installing default win32ole libraries
cp C:/ruby-3.0.1/ext/win32ole/lib/win32ole/property.rb ../../.ext/common/win32ole
cp C:/ruby-3.0.1/ext/win32ole/lib/win32ole.rb ../../.ext/common
compiling C:/ruby-3.0.1/ext/zlib/zlib.c
zlib.c
linking static-library zlib.lib
ext/extinit.c updated
compiling ext/extinit.c
extinit.c
generating enc.mk
compiling enc/encinit.c
encinit.c
NMAKE : fatal error U1073: don't know how to make 'enc/libenc.lib'
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.
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:\rbuild_x64>

I tested at visual studio 2017 and 2019.

How to reproduce

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
C:\ruby-3.0.1\win32\configure.bat --with-static-linked-ext
Actions #1

Updated by Terabin (Allyson Souza Bacon) 6 months ago

  • Subject changed from Compile fail in Windows --with-static-linked-ext to Compile fails on Windows --with-static-linked-ext
Actions #2

Updated by nobu (Nobuyoshi Nakada) 5 months ago

  • Status changed from Open to Closed

Applied in changeset git|8a5e161cd9a251054e851d46ccc367609a31c1c7.


Set ENCSTATIC in rbconfig.rb [Bug #17929]

Actions

Also available in: Atom PDF