You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run luarocks install luv under MSYS2-MinGW/UCRT64 it tries to compile unix/cygwin.c which is incompatible with the MinGW environment (or at least the other 3 distros of the MSYS2 environment), since sys/socket.h does not exist.
Both 1.49 and 1.50 are affected.
Compilation Log
$ luarocks install luv
Installing https://luarocks.org/luv-1.50.0-1.src.rock
luv 1.50.0-1 depends on lua >= 5.1 (5.4-1 provided by VM: success)
luarocks-build-hook: running hook
-- The C compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/msys64/ucrt64/bin/cc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/ucrt64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test UV_LINT_W4
-- Performing Test UV_LINT_W4 - Failed
-- Performing Test UV_LINT_NO_UNUSED_PARAMETER_MSVC
-- Performing Test UV_LINT_NO_UNUSED_PARAMETER_MSVC - Failed
-- Performing Test UV_LINT_NO_CONDITIONAL_CONSTANT_MSVC
-- Performing Test UV_LINT_NO_CONDITIONAL_CONSTANT_MSVC - Failed
-- Performing Test UV_LINT_NO_NONSTANDARD_MSVC
-- Performing Test UV_LINT_NO_NONSTANDARD_MSVC - Failed
-- Performing Test UV_LINT_NO_NONSTANDARD_EMPTY_TU_MSVC
-- Performing Test UV_LINT_NO_NONSTANDARD_EMPTY_TU_MSVC - Failed
-- Performing Test UV_LINT_NO_NONSTANDARD_FILE_SCOPE_MSVC
-- Performing Test UV_LINT_NO_NONSTANDARD_FILE_SCOPE_MSVC - Failed
-- Performing Test UV_LINT_NO_NONSTANDARD_NONSTATIC_DLIMPORT_MSVC
-- Performing Test UV_LINT_NO_NONSTANDARD_NONSTATIC_DLIMPORT_MSVC - Failed
-- Performing Test UV_LINT_NO_HIDES_LOCAL
-- Performing Test UV_LINT_NO_HIDES_LOCAL - Failed
-- Performing Test UV_LINT_NO_HIDES_PARAM
-- Performing Test UV_LINT_NO_HIDES_PARAM - Failed
-- Performing Test UV_LINT_NO_HIDES_GLOBAL
-- Performing Test UV_LINT_NO_HIDES_GLOBAL - Failed
-- Performing Test UV_LINT_NO_CONDITIONAL_ASSIGNMENT_MSVC
-- Performing Test UV_LINT_NO_CONDITIONAL_ASSIGNMENT_MSVC - Failed
-- Performing Test UV_LINT_NO_UNSAFE_MSVC
-- Performing Test UV_LINT_NO_UNSAFE_MSVC - Failed
-- Performing Test UV_LINT_WALL
-- Performing Test UV_LINT_WALL - Success
-- Performing Test UV_LINT_NO_UNUSED_PARAMETER
-- Performing Test UV_LINT_NO_UNUSED_PARAMETER - Success
-- Performing Test UV_LINT_STRICT_PROTOTYPES
-- Performing Test UV_LINT_STRICT_PROTOTYPES - Success
-- Performing Test UV_LINT_EXTRA
-- Performing Test UV_LINT_EXTRA - Success
-- Performing Test UV_LINT_UTF8_MSVC
-- Performing Test UV_LINT_UTF8_MSVC - Failed
-- Performing Test UV_F_STRICT_ALIASING
-- Performing Test UV_F_STRICT_ALIASING - Success
-- summary of build options:
Install prefix: <<snipped>>/opt
Target system: Windows
Compiler:
C compiler: C:/msys64/ucrt64/bin/cc.exe (GNU)
CFLAGS: -O2 -fPIC
-- Lua: using information from luarocks
-- LUA_LIBDIR: C:\msys64\ucrt64\bin
-- LUA_LIBFILE: lua54.dll
-- LUA_INCDIR: C:/msys64/ucrt64/include
-- LUA: C:/msys64/ucrt64\bin\lua.exe
-- Lua library: C:/msys64/ucrt64/bin/lua54.dll
CMake Warning (dev) at CMakeLists.txt:313 (install):
Policy CMP0177 is not set: install() DESTINATION paths are normalized. Run
"cmake --help-policy CMP0177" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMakeLists.txt:313 (install):
Policy CMP0177 is not set: install() DESTINATION paths are normalized. Run
"cmake --help-policy CMP0177" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done (7.5s)
-- Generating done (0.2s)
-- Build files have been written to: C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/build.luarocks
[ 2%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/fs-poll.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 4%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/idna.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 6%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/inet.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 8%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/random.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 10%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/strscpy.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 12%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/strtok.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 14%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/thread-common.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 16%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/threadpool.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
In file included from C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/include/uv.h:69,
from C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/uv-common.h:35,
from C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/threadpool.c:22:
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/include/uv/win.h:282:22: warning: missing braces around initializer [-Wmissing-braces]
282 | #define UV_ONCE_INIT { 0, NULL }
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/threadpool.c:32:25: note: in expansion of macro 'UV_ONCE_INIT'
32 | static uv_once_t once = UV_ONCE_INIT;
| ^~~~~~~~~~~~
[ 18%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/timer.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 20%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/uv-common.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 22%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/uv-data-getter-setters.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 24%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/version.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 26%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/async.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 28%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/core.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
In file included from C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/include/uv.h:69,
from C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/core.c:32:
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/include/uv/win.h:282:22: warning: missing braces around initializer [-Wmissing-braces]
282 | #define UV_ONCE_INIT { 0, NULL }
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/core.c:40:35: note: in expansion of macro 'UV_ONCE_INIT'
40 | static uv_once_t uv_init_guard_ = UV_ONCE_INIT;
| ^~~~~~~~~~~~
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/core.c: In function 'uv__poll':
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/core.c:473:15: warning: 'user_timeout' may be used uninitialized [-Wmaybe-uninitialized]
473 | timeout = user_timeout;
| ~~~~~~~~^~~~~~~~~~~~~~
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/core.c:435:12: note: 'user_timeout' was declared here
435 | uint64_t user_timeout;
| ^~~~~~~~~~~~
[ 30%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/detect-wakeup.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 32%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/dl.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 34%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/error.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 36%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/fs.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
In function 'fs__stat_directory',
inlined from 'fs__stat_impl_from_path' at C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/fs.c:2164:12,
inlined from 'fs__stat_impl_from_path' at C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/fs.c:2130:21:
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/fs.c:2124:21: warning: 'splitchar' may be used uninitialized [-Wmaybe-uninitialized]
2124 | path[split - 1] = splitchar;
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/fs.c: In function 'fs__stat_impl_from_path':
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/fs.c:1970:9: note: 'splitchar' was declared here
1970 | WCHAR splitchar;
| ^~~~~~~~~
[ 38%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/fs-event.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 40%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/getaddrinfo.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 42%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/getnameinfo.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 44%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/handle.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 46%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/loop-watcher.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 48%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/pipe.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 51%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/thread.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
In file included from C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/include/uv.h:69,
from C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/thread.c:32:
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/include/uv/win.h:282:22: warning: missing braces around initializer [-Wmissing-braces]
282 | #define UV_ONCE_INIT { 0, NULL }
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/thread.c:59:50: note: in expansion of macro 'UV_ONCE_INIT'
59 | static uv_once_t uv__current_thread_init_guard = UV_ONCE_INIT;
| ^~~~~~~~~~~~
[ 53%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/poll.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
In file included from C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/include/uv.h:69,
from C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/poll.c:25:
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/include/uv/win.h:282:22: warning: missing braces around initializer [-Wmissing-braces]
282 | #define UV_ONCE_INIT { 0, NULL }
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/poll.c:49:49: note: in expansion of macro 'UV_ONCE_INIT'
49 | static uv_once_t overlapped_dummy_init_guard_ = UV_ONCE_INIT;
| ^~~~~~~~~~~~
[ 55%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/process.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
In file included from C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/include/uv.h:69,
from C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/process.c:30:
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/include/uv/win.h:282:22: warning: missing braces around initializer [-Wmissing-braces]
282 | #define UV_ONCE_INIT { 0, NULL }
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/process.c:66:53: note: in expansion of macro 'UV_ONCE_INIT'
66 | static uv_once_t uv_global_job_handle_init_guard_ = UV_ONCE_INIT;
| ^~~~~~~~~~~~
[ 57%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/process-stdio.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/process-stdio.c: In function 'uv__stdio_create':
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/process-stdio.c:226:19: warning: 'nul' may be used uninitialized [-Wmaybe-uninitialized]
226 | memcpy(CHILD_STDIO_HANDLE(buffer, i), &nul, sizeof(HANDLE));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/process-stdio.c:218:18: note: 'nul' was declared here
218 | HANDLE nul;
| ^~~
[ 59%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/signal.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 61%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/snprintf.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 63%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/stream.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 65%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/tcp.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 67%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/tty.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 69%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/udp.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/udp.c: In function 'uv__udp_try_send2':
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/udp.c:1158:26: warning: operand of '?:' changes signedness from 'int' to 'unsigned int' due to unsignedness of other operand [-Wsign-compare]
1158 | return i > 0 ? i : r; /* Error if first packet, else send count. */
| ^
[ 71%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/util.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/util.c: In function 'uv_available_parallelism':
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/util.c:519:19: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned in
' [-Wsign-compare]
519 | for (i = 0; i < 8 * sizeof(procmask); i++)
| ^
[ 73%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/winapi.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/winapi.c: In function 'uv__winapi_init':
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/winapi.c:63:20: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'NTSTATUS (*)(struct _OSVERSIONINFOW *)' {aka 'long int (*)(struct _OSVERSIONINFOW *)'} [-Wcast-function-type]
63 | pRtlGetVersion = (sRtlGetVersion) GetProcAddress(ntdll_module,
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/winapi.c:66:28: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'ULONG (*)(NTSTATUS)' {aka 'long unsigned int (*)(long int)'} [-Wcast-function-type]
66 | pRtlNtStatusToDosError = (sRtlNtStatusToDosError) GetProcAddress(
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/winapi.c:73:28: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'NTSTATUS (*)(void *, void *, void (*)(void *, struct _IO_STATUS_BLOCK *, ULONG), void *, struct _IO_STATUS_BLOCK *, ULONG, void *, ULONG, void *, ULONG)' {aka 'long int (*)(void *, void *, void (*)(void *, struct _IO_STATUS_BLOCK *, long unsigned int), void *, struct _IO_STATUS_BLOCK *, long unsigned int, void *, long unsigned int, void *, long unsigned int)'} [-Wcast-function-type]
73 | pNtDeviceIoControlFile = (sNtDeviceIoControlFile) GetProcAddress(
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/winapi.c:80:29: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'NTSTATUS (*)(void *, struct _IO_STATUS_BLOCK *, void *, ULONG, FILE_INFORMATION_CLASS)' {aka 'long int (*)(void *, struct _IO_STATUS_BLOCK *, void *, long unsigned int, enum _FILE_INFORMATION_CLASS)'} [-Wcast-function-type]
80 | pNtQueryInformationFile = (sNtQueryInformationFile) GetProcAddress(
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/winapi.c:87:27: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'NTSTATUS (*)(void *, struct _IO_STATUS_BLOCK *, void *, ULONG, FILE_INFORMATION_CLASS)' {aka 'long int (*)(void *, struct _IO_STATUS_BLOCK *, void *, long unsigned int, enum _FILE_INFORMATION_CLASS)'} [-Wcast-function-type]
87 | pNtSetInformationFile = (sNtSetInformationFile) GetProcAddress(
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/winapi.c:94:35: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'NTSTATUS (*)(void *, struct _IO_STATUS_BLOCK *, void *, ULONG, FS_INFORMATION_CLASS)' {aka 'long int (*)(void *, struct _IO_STATUS_BLOCK *, void *, long unsigned int, enum _FS_INFORMATION_CLASS)'} [-Wcast-function-type]
94 | pNtQueryVolumeInformationFile = (sNtQueryVolumeInformationFile)
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/winapi.c:100:27: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'NTSTATUS (*)(void *, void *, void (*)(void *, struct _IO_STATUS_BLOCK *, ULONG), void *, struct _IO_STATUS_BLOCK *, void *, ULONG, FILE_INFORMATION_CLASS, BOOLEAN, struct _UNICODE_STRING *, BOOLEAN)' {aka 'long int (*)(void *, void *, void (*)(void *, struct _IO_STATUS_BLOCK *, long unsigned int), void *, struct _IO_STATUS_BLOCK *, void *, long unsigned int, enum _FILE_INFORMATION_CLASS, unsigned char, struct _UNICODE_STRING *, unsigned char)'} [-Wcast-function-type]
100 | pNtQueryDirectoryFile = (sNtQueryDirectoryFile)
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/winapi.c:106:31: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'NTSTATUS (*)(UINT, void *, ULONG, ULONG *)' {aka 'long int (*)(unsigned int, void *, long unsigned int, long unsigned int *)'} [-Wcast-function-type]
106 | pNtQuerySystemInformation = (sNtQuerySystemInformation) GetProcAddress(
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/winapi.c:113:32: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'NTSTATUS (*)(void *, UINT, void *, ULONG, ULONG *)' {aka 'long int (*)(void *, unsigned int, void *, long unsigned int, long unsigned int *)'} [-Wcast-function-type]
113 | pNtQueryInformationProcess = (sNtQueryInformationProcess) GetProcAddress(
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/winapi.c:122:47: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'DWORD (*)(DWORD, void *, void **)' {aka 'long unsigned int (*)(long unsigned int, void *, void **)'} [-Wcast-function-type]
122 | pPowerRegisterSuspendResumeNotification = (sPowerRegisterSuspendResumeNotification)
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/winapi.c:128:24: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'struct HWINEVENTHOOK__ * (*)(UINT, UINT, struct HINSTANCE__ *, void (*)(struct HWINEVENTHOOK__ *, DWORD, struct HWND__ *, LONG, LONG, DWORD, DWORD), DWORD, DWORD, UINT)' {aka 'struct HWINEVENTHOOK__ * (*)(unsigned int, unsigned int, struct HINSTANCE__ *, void (*)(struct HWINEVENTHOOK__ *, long unsigned int, struct HWND__ *, long int, long int, long unsigned int, long unsigned int), long unsigned int, long unsigned int, unsigned int)'} [-Wcast-function-type]
128 | pSetWinEventHook = (sSetWinEventHook)
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/winapi.c:134:21: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'int (*)(WCHAR *, int)' {aka 'int (*)(short unsigned int *, int)'} [-Wcast-function-type]
134 | pGetHostNameW = (uv_sGetHostNameW) GetProcAddress(
| ^
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/win/winapi.c:141:33: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(const WCHAR *, FILE_INFO_BY_NAME_CLASS, void *, ULONG)' {aka 'int (*)(const short unsigned int *, FILE_INFO_BY_NAME_CLASS, void *, long unsigned int)'} [-Wcast-function-type]
141 | pGetFileInformationByName = (sGetFileInformationByName)GetProcAddress(
| ^
[ 75%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/win/winsock.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
[ 77%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/cygwin.c.obj
<command-line>: warning: "_WIN32_WINNT" redefined
<command-line>: note: this is the location of the previous definition
In file included from C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/unix/cygwin.c:23:
C:/msys64/tmp/luarocks_luv-1.50.0-1-6925321/luv-1.50.0-1/deps/libuv/src/unix/internal.h:35:10: fatal error: sys/socket.h: No such file or directory
35 | #include <sys/socket.h>
| ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [deps/libuv/CMakeFiles/uv_a.dir/build.make:597: deps/libuv/CMakeFiles/uv_a.dir/src/unix/cygwin.c.obj] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:1131: deps/libuv/CMakeFiles/uv_a.dir/all] Fehler 2
make: *** [Makefile:136: all] Fehler 2
Error: Build error: Failed building.
The text was updated successfully, but these errors were encountered:
When trying to run
luarocks install luv
underMSYS2-MinGW/UCRT64
it tries to compileunix/cygwin.c
which is incompatible with the MinGW environment (or at least the other 3 distros of the MSYS2 environment), sincesys/socket.h
does not exist.Both 1.49 and 1.50 are affected.
Compilation Log
The text was updated successfully, but these errors were encountered: