io-console icon indicating copy to clipboard operation
io-console copied to clipboard

windows-head: console.c(1685): error C2198: 'rb_str_new_cstr': too few arguments for call

Open olleolleolle opened this issue 2 years ago • 0 comments

In the CI of a build of bigdecimal, I saw this failure to build this gem, on windows-head.

Issue

The build failure on installing io-console v0.7.1 failed on:

console.c(1685): error C2198: 'rb_str_new_cstr': too few arguments for call

Question

Is this fixed by https://github.com/ruby/io-console/commit/14b35217dc6e4e21cafbf7e49e3c5f506930c242 ?

Details

current directory:
D:/ruby-mswin/lib/ruby/gems/3.4.0+0/gems/io-console-0.7.1/ext/io/console
nmake.exe sitearchdir\=./.gem.20240113-1340-ctqb4z
sitelibdir\=./.gem.20240113-1340-ctqb4z

Microsoft (R) Program Maintenance Utility Version 14.37.32826.1
Copyright (C) Microsoft Corporation.  All rights reserved.

generating console-x64-mswin64_140.def
compiling console.c
console.c
console.c(1685): warning C4003: not enough arguments for function-like macro
invocation 'STRINGIZE0'
console.c(1685): warning C4003: not enough arguments for function-like macro
invocation 'RBIMPL_CONSTANT_P'
console.c(1685): error C2198: 'rb_str_new_cstr': too few arguments for call
NMAKE : fatal error U1077: '@ cl -nologo -I.
-ID:/ruby-mswin/include/ruby-3.4.0+0/x64-mswin64_140
-ID:/ruby-mswin/include/ruby-3.4.0+0/ruby/backward
-ID:/ruby-mswin/include/ruby-3.4.0+0 -I.  -MD -Zi -W2 -wd4100 -wd4127 -wd4210
-wd4214 -wd4255 -wd4574  -wd4668 -wd4710 -wd4711 -wd4820 -wd4996  -we4028
-we4142 -we4047 -O2sy- -Zm600   -DHAVE_RB_IO_PATH -DHAVE_RB_IO_DESCRIPTOR
-DHAVE_RB_IO_GET_WRITE_IO -DHAVE_RB_IO_CLOSED_P -DHAVE_RB_IO_OPEN_DESCRIPTOR
-DHAVE_RB_IO_WAIT=1 -DIO_CONSOLE_VERSION=
-IC:/vcpkg/installed/x64-windows/include  -D_WIN32_WINNT=0x0600 -Foconsole.obj
-c -Tcconsole.c' : return code '0x2'
Stop.

make failed, exit code 2

olleolleolle avatar Jan 16 '24 11:01 olleolleolle