Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: cmake #49

Open
cristianadam opened this issue Jul 31, 2024 · 7 comments
Open

Request: cmake #49

cristianadam opened this issue Jul 31, 2024 · 7 comments

Comments

@cristianadam
Copy link

I've opened up a ticket at upstream CMake https://gitlab.kitware.com/cmake/cmake/-/issues/26180

I think having CMake as a cosmopolitan binary would help some Linux users that have old versions in their distribution.

CMake has some files in their Modules directory, I guess it needs patching in order to have them inside the zip as it works for Python.

@ahgamut
Copy link
Owner

ahgamut commented Jul 31, 2024

I had to upgrade my system CMake binary to build LLVM 😅 let me see what CMake needs for a bulid.

@cristianadam
Copy link
Author

cristianadam commented Aug 6, 2024

I've tried building CMake and got errors like:

Errors
[1/424] Building C object Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/fs-poll.c.o
FAILED: Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/fs-poll.c.o 
/home/cristian/Projects/cosmopolitan/repo/cosmocc/bin/cosmocc  -I/home/cristian/Projects/cmake/build-cosmo/Utilities -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix -I/home/cristian/Projects/cmake/build-cosmo/Source -isystem /home/cristian/Projects/cmake/repo/Utilities/std -isystem /home/cristian/Projects/cmake/repo/Utilities -w -O3 -DNDEBUG -std=gnu11 -MD -MT Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/fs-poll.c.o -MF Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/fs-poll.c.o.d -o Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/fs-poll.c.o -c /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/fs-poll.c
In file included from /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/fs-poll.c:22:
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_E2BIG' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:77:3: note: in expansion of macro 'XX'
   77 |   XX(E2BIG, "argument list too long")                                         \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EACCES' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:78:3: note: in expansion of macro 'XX'
   78 |   XX(EACCES, "permission denied")                                             \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EADDRINUSE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:79:3: note: in expansion of macro 'XX'
   79 |   XX(EADDRINUSE, "address already in use")                                    \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EADDRNOTAVAIL' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:80:3: note: in expansion of macro 'XX'
   80 |   XX(EADDRNOTAVAIL, "address not available")                                  \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EAFNOSUPPORT' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:81:3: note: in expansion of macro 'XX'
   81 |   XX(EAFNOSUPPORT, "address family not supported")                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EAGAIN' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:82:3: note: in expansion of macro 'XX'
   82 |   XX(EAGAIN, "resource temporarily unavailable")                              \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EALREADY' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:97:3: note: in expansion of macro 'XX'
   97 |   XX(EALREADY, "connection already in progress")                              \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EBADF' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:98:3: note: in expansion of macro 'XX'
   98 |   XX(EBADF, "bad file descriptor")                                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EBUSY' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:99:3: note: in expansion of macro 'XX'
   99 |   XX(EBUSY, "resource busy or locked")                                        \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ECANCELED' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:100:3: note: in expansion of macro 'XX'
  100 |   XX(ECANCELED, "operation canceled")                                         \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ECONNABORTED' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:102:3: note: in expansion of macro 'XX'
  102 |   XX(ECONNABORTED, "software caused connection abort")                        \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ECONNREFUSED' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:103:3: note: in expansion of macro 'XX'
  103 |   XX(ECONNREFUSED, "connection refused")                                      \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ECONNRESET' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:104:3: note: in expansion of macro 'XX'
  104 |   XX(ECONNRESET, "connection reset by peer")                                  \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EDESTADDRREQ' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:105:3: note: in expansion of macro 'XX'
  105 |   XX(EDESTADDRREQ, "destination address required")                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EEXIST' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:106:3: note: in expansion of macro 'XX'
  106 |   XX(EEXIST, "file already exists")                                           \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EFAULT' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:107:3: note: in expansion of macro 'XX'
  107 |   XX(EFAULT, "bad address in system call argument")                           \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EFBIG' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:108:3: note: in expansion of macro 'XX'
  108 |   XX(EFBIG, "file too large")                                                 \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EHOSTUNREACH' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:109:3: note: in expansion of macro 'XX'
  109 |   XX(EHOSTUNREACH, "host is unreachable")                                     \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EINTR' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:110:3: note: in expansion of macro 'XX'
  110 |   XX(EINTR, "interrupted system call")                                        \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EINVAL' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:111:3: note: in expansion of macro 'XX'
  111 |   XX(EINVAL, "invalid argument")                                              \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EIO' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:112:3: note: in expansion of macro 'XX'
  112 |   XX(EIO, "i/o error")                                                        \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EISCONN' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:113:3: note: in expansion of macro 'XX'
  113 |   XX(EISCONN, "socket is already connected")                                  \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EISDIR' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:114:3: note: in expansion of macro 'XX'
  114 |   XX(EISDIR, "illegal operation on a directory")                              \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ELOOP' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:115:3: note: in expansion of macro 'XX'
  115 |   XX(ELOOP, "too many symbolic links encountered")                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EMFILE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:116:3: note: in expansion of macro 'XX'
  116 |   XX(EMFILE, "too many open files")                                           \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EMSGSIZE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:117:3: note: in expansion of macro 'XX'
  117 |   XX(EMSGSIZE, "message too long")                                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENAMETOOLONG' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:118:3: note: in expansion of macro 'XX'
  118 |   XX(ENAMETOOLONG, "name too long")                                           \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENETDOWN' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:119:3: note: in expansion of macro 'XX'
  119 |   XX(ENETDOWN, "network is down")                                             \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENETUNREACH' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:120:3: note: in expansion of macro 'XX'
  120 |   XX(ENETUNREACH, "network is unreachable")                                   \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENFILE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:121:3: note: in expansion of macro 'XX'
  121 |   XX(ENFILE, "file table overflow")                                           \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOBUFS' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:122:3: note: in expansion of macro 'XX'
  122 |   XX(ENOBUFS, "no buffer space available")                                    \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENODEV' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:123:3: note: in expansion of macro 'XX'
  123 |   XX(ENODEV, "no such device")                                                \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOENT' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:124:3: note: in expansion of macro 'XX'
  124 |   XX(ENOENT, "no such file or directory")                                     \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOMEM' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:125:3: note: in expansion of macro 'XX'
  125 |   XX(ENOMEM, "not enough memory")                                             \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENONET' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:126:3: note: in expansion of macro 'XX'
  126 |   XX(ENONET, "machine is not on the network")                                 \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOPROTOOPT' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:127:3: note: in expansion of macro 'XX'
  127 |   XX(ENOPROTOOPT, "protocol not available")                                   \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOSPC' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:128:3: note: in expansion of macro 'XX'
  128 |   XX(ENOSPC, "no space left on device")                                       \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOSYS' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:129:3: note: in expansion of macro 'XX'
  129 |   XX(ENOSYS, "function not implemented")                                      \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOTCONN' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:130:3: note: in expansion of macro 'XX'
  130 |   XX(ENOTCONN, "socket is not connected")                                     \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOTDIR' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:131:3: note: in expansion of macro 'XX'
  131 |   XX(ENOTDIR, "not a directory")                                              \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOTEMPTY' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:132:3: note: in expansion of macro 'XX'
  132 |   XX(ENOTEMPTY, "directory not empty")                                        \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOTSOCK' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:133:3: note: in expansion of macro 'XX'
  133 |   XX(ENOTSOCK, "socket operation on non-socket")                              \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOTSUP' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:134:3: note: in expansion of macro 'XX'
  134 |   XX(ENOTSUP, "operation not supported on socket")                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EOVERFLOW' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:135:3: note: in expansion of macro 'XX'
  135 |   XX(EOVERFLOW, "value too large for defined data type")                      \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EPERM' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:136:3: note: in expansion of macro 'XX'
  136 |   XX(EPERM, "operation not permitted")                                        \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EPIPE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:137:3: note: in expansion of macro 'XX'
  137 |   XX(EPIPE, "broken pipe")                                                    \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EPROTO' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:138:3: note: in expansion of macro 'XX'
  138 |   XX(EPROTO, "protocol error")                                                \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EPROTONOSUPPORT' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:139:3: note: in expansion of macro 'XX'
  139 |   XX(EPROTONOSUPPORT, "protocol not supported")                               \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EPROTOTYPE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:140:3: note: in expansion of macro 'XX'
  140 |   XX(EPROTOTYPE, "protocol wrong type for socket")                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ERANGE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:141:3: note: in expansion of macro 'XX'
  141 |   XX(ERANGE, "result too large")                                              \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EROFS' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:142:3: note: in expansion of macro 'XX'
  142 |   XX(EROFS, "read-only file system")                                          \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ESHUTDOWN' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:143:3: note: in expansion of macro 'XX'
  143 |   XX(ESHUTDOWN, "cannot send after transport endpoint shutdown")              \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ESPIPE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:144:3: note: in expansion of macro 'XX'
  144 |   XX(ESPIPE, "invalid seek")                                                  \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ESRCH' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:145:3: note: in expansion of macro 'XX'
  145 |   XX(ESRCH, "no such process")                                                \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ETIMEDOUT' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:146:3: note: in expansion of macro 'XX'
  146 |   XX(ETIMEDOUT, "connection timed out")                                       \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ETXTBSY' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:147:3: note: in expansion of macro 'XX'
  147 |   XX(ETXTBSY, "text file is busy")                                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EXDEV' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:148:3: note: in expansion of macro 'XX'
  148 |   XX(EXDEV, "cross-device link not permitted")                                \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENXIO' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:151:3: note: in expansion of macro 'XX'
  151 |   XX(ENXIO, "no such device or address")                                      \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EMLINK' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:152:3: note: in expansion of macro 'XX'
  152 |   XX(EMLINK, "too many links")                                                \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EHOSTDOWN' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:153:3: note: in expansion of macro 'XX'
  153 |   XX(EHOSTDOWN, "host is down")                                               \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOTTY' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:155:3: note: in expansion of macro 'XX'
  155 |   XX(ENOTTY, "inappropriate ioctl for device")                                \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EFTYPE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:156:3: note: in expansion of macro 'XX'
  156 |   XX(EFTYPE, "inappropriate file type or format")                             \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EILSEQ' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:157:3: note: in expansion of macro 'XX'
  157 |   XX(EILSEQ, "illegal byte sequence")                                         \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ESOCKTNOSUPPORT' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:158:3: note: in expansion of macro 'XX'
  158 |   XX(ESOCKTNOSUPPORT, "socket type not supported")                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
[2/424] Building C object Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/idna.c.o
FAILED: Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/idna.c.o 
/home/cristian/Projects/cosmopolitan/repo/cosmocc/bin/cosmocc  -I/home/cristian/Projects/cmake/build-cosmo/Utilities -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix -I/home/cristian/Projects/cmake/build-cosmo/Source -isystem /home/cristian/Projects/cmake/repo/Utilities/std -isystem /home/cristian/Projects/cmake/repo/Utilities -w -O3 -DNDEBUG -std=gnu11 -MD -MT Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/idna.c.o -MF Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/idna.c.o.d -o Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/idna.c.o -c /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/idna.c
In file included from /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/idna.c:20:
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_E2BIG' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:77:3: note: in expansion of macro 'XX'
   77 |   XX(E2BIG, "argument list too long")                                         \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EACCES' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:78:3: note: in expansion of macro 'XX'
   78 |   XX(EACCES, "permission denied")                                             \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EADDRINUSE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:79:3: note: in expansion of macro 'XX'
   79 |   XX(EADDRINUSE, "address already in use")                                    \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EADDRNOTAVAIL' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:80:3: note: in expansion of macro 'XX'
   80 |   XX(EADDRNOTAVAIL, "address not available")                                  \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EAFNOSUPPORT' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:81:3: note: in expansion of macro 'XX'
   81 |   XX(EAFNOSUPPORT, "address family not supported")                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EAGAIN' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:82:3: note: in expansion of macro 'XX'
   82 |   XX(EAGAIN, "resource temporarily unavailable")                              \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EALREADY' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:97:3: note: in expansion of macro 'XX'
   97 |   XX(EALREADY, "connection already in progress")                              \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EBADF' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:98:3: note: in expansion of macro 'XX'
   98 |   XX(EBADF, "bad file descriptor")                                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EBUSY' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:99:3: note: in expansion of macro 'XX'
   99 |   XX(EBUSY, "resource busy or locked")                                        \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ECANCELED' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:100:3: note: in expansion of macro 'XX'
  100 |   XX(ECANCELED, "operation canceled")                                         \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ECONNABORTED' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:102:3: note: in expansion of macro 'XX'
  102 |   XX(ECONNABORTED, "software caused connection abort")                        \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ECONNREFUSED' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:103:3: note: in expansion of macro 'XX'
  103 |   XX(ECONNREFUSED, "connection refused")                                      \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ECONNRESET' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:104:3: note: in expansion of macro 'XX'
  104 |   XX(ECONNRESET, "connection reset by peer")                                  \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EDESTADDRREQ' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:105:3: note: in expansion of macro 'XX'
  105 |   XX(EDESTADDRREQ, "destination address required")                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EEXIST' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:106:3: note: in expansion of macro 'XX'
  106 |   XX(EEXIST, "file already exists")                                           \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EFAULT' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:107:3: note: in expansion of macro 'XX'
  107 |   XX(EFAULT, "bad address in system call argument")                           \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EFBIG' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:108:3: note: in expansion of macro 'XX'
  108 |   XX(EFBIG, "file too large")                                                 \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EHOSTUNREACH' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:109:3: note: in expansion of macro 'XX'
  109 |   XX(EHOSTUNREACH, "host is unreachable")                                     \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EINTR' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:110:3: note: in expansion of macro 'XX'
  110 |   XX(EINTR, "interrupted system call")                                        \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EINVAL' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:111:3: note: in expansion of macro 'XX'
  111 |   XX(EINVAL, "invalid argument")                                              \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EIO' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:112:3: note: in expansion of macro 'XX'
  112 |   XX(EIO, "i/o error")                                                        \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EISCONN' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:113:3: note: in expansion of macro 'XX'
  113 |   XX(EISCONN, "socket is already connected")                                  \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EISDIR' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:114:3: note: in expansion of macro 'XX'
  114 |   XX(EISDIR, "illegal operation on a directory")                              \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ELOOP' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:115:3: note: in expansion of macro 'XX'
  115 |   XX(ELOOP, "too many symbolic links encountered")                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EMFILE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:116:3: note: in expansion of macro 'XX'
  116 |   XX(EMFILE, "too many open files")                                           \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EMSGSIZE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:117:3: note: in expansion of macro 'XX'
  117 |   XX(EMSGSIZE, "message too long")                                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENAMETOOLONG' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:118:3: note: in expansion of macro 'XX'
  118 |   XX(ENAMETOOLONG, "name too long")                                           \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENETDOWN' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:119:3: note: in expansion of macro 'XX'
  119 |   XX(ENETDOWN, "network is down")                                             \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENETUNREACH' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:120:3: note: in expansion of macro 'XX'
  120 |   XX(ENETUNREACH, "network is unreachable")                                   \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENFILE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:121:3: note: in expansion of macro 'XX'
  121 |   XX(ENFILE, "file table overflow")                                           \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOBUFS' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:122:3: note: in expansion of macro 'XX'
  122 |   XX(ENOBUFS, "no buffer space available")                                    \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENODEV' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:123:3: note: in expansion of macro 'XX'
  123 |   XX(ENODEV, "no such device")                                                \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOENT' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:124:3: note: in expansion of macro 'XX'
  124 |   XX(ENOENT, "no such file or directory")                                     \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOMEM' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:125:3: note: in expansion of macro 'XX'
  125 |   XX(ENOMEM, "not enough memory")                                             \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENONET' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:126:3: note: in expansion of macro 'XX'
  126 |   XX(ENONET, "machine is not on the network")                                 \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOPROTOOPT' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:127:3: note: in expansion of macro 'XX'
  127 |   XX(ENOPROTOOPT, "protocol not available")                                   \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOSPC' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:128:3: note: in expansion of macro 'XX'
  128 |   XX(ENOSPC, "no space left on device")                                       \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOSYS' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:129:3: note: in expansion of macro 'XX'
  129 |   XX(ENOSYS, "function not implemented")                                      \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOTCONN' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:130:3: note: in expansion of macro 'XX'
  130 |   XX(ENOTCONN, "socket is not connected")                                     \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOTDIR' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:131:3: note: in expansion of macro 'XX'
  131 |   XX(ENOTDIR, "not a directory")                                              \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOTEMPTY' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:132:3: note: in expansion of macro 'XX'
  132 |   XX(ENOTEMPTY, "directory not empty")                                        \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOTSOCK' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:133:3: note: in expansion of macro 'XX'
  133 |   XX(ENOTSOCK, "socket operation on non-socket")                              \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOTSUP' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:134:3: note: in expansion of macro 'XX'
  134 |   XX(ENOTSUP, "operation not supported on socket")                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EOVERFLOW' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:135:3: note: in expansion of macro 'XX'
  135 |   XX(EOVERFLOW, "value too large for defined data type")                      \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EPERM' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:136:3: note: in expansion of macro 'XX'
  136 |   XX(EPERM, "operation not permitted")                                        \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EPIPE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:137:3: note: in expansion of macro 'XX'
  137 |   XX(EPIPE, "broken pipe")                                                    \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EPROTO' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:138:3: note: in expansion of macro 'XX'
  138 |   XX(EPROTO, "protocol error")                                                \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EPROTONOSUPPORT' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:139:3: note: in expansion of macro 'XX'
  139 |   XX(EPROTONOSUPPORT, "protocol not supported")                               \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EPROTOTYPE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:140:3: note: in expansion of macro 'XX'
  140 |   XX(EPROTOTYPE, "protocol wrong type for socket")                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ERANGE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:141:3: note: in expansion of macro 'XX'
  141 |   XX(ERANGE, "result too large")                                              \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EROFS' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:142:3: note: in expansion of macro 'XX'
  142 |   XX(EROFS, "read-only file system")                                          \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ESHUTDOWN' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:143:3: note: in expansion of macro 'XX'
  143 |   XX(ESHUTDOWN, "cannot send after transport endpoint shutdown")              \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ESPIPE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:144:3: note: in expansion of macro 'XX'
  144 |   XX(ESPIPE, "invalid seek")                                                  \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ESRCH' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:145:3: note: in expansion of macro 'XX'
  145 |   XX(ESRCH, "no such process")                                                \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ETIMEDOUT' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:146:3: note: in expansion of macro 'XX'
  146 |   XX(ETIMEDOUT, "connection timed out")                                       \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ETXTBSY' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:147:3: note: in expansion of macro 'XX'
  147 |   XX(ETXTBSY, "text file is busy")                                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EXDEV' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:148:3: note: in expansion of macro 'XX'
  148 |   XX(EXDEV, "cross-device link not permitted")                                \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENXIO' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:151:3: note: in expansion of macro 'XX'
  151 |   XX(ENXIO, "no such device or address")                                      \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EMLINK' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:152:3: note: in expansion of macro 'XX'
  152 |   XX(EMLINK, "too many links")                                                \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EHOSTDOWN' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:153:3: note: in expansion of macro 'XX'
  153 |   XX(EHOSTDOWN, "host is down")                                               \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ENOTTY' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:155:3: note: in expansion of macro 'XX'
  155 |   XX(ENOTTY, "inappropriate ioctl for device")                                \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EFTYPE' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:156:3: note: in expansion of macro 'XX'
  156 |   XX(EFTYPE, "inappropriate file type or format")                             \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_EILSEQ' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:157:3: note: in expansion of macro 'XX'
  157 |   XX(EILSEQ, "illegal byte sequence")                                         \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:191:28: error: enumerator value for 'UV_ESOCKTNOSUPPORT' is not an integer constant
  191 | #define XX(code, not_used) UV_ ## code = UV__ ## code,
      |                            ^~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:158:3: note: in expansion of macro 'XX'
  158 |   XX(ESOCKTNOSUPPORT, "socket type not supported")                            \
      |   ^~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: note: in expansion of macro 'UV_ERRNO_MAP'
  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
[3/424] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmUVJobServerClient.cxx.o
FAILED: Source/CMakeFiles/CTestLib.dir/CTest/cmUVJobServerClient.cxx.o 
/home/cristian/Projects/cosmopolitan/repo/cosmocc/bin/cosmoc++ -DCURL_STATICLIB -DLIBARCHIVE_STATIC -I/home/cristian/Projects/cmake/build-cosmo/Utilities -I/home/cristian/Projects/cmake/repo/Source/CTest -I/home/cristian/Projects/cmake/build-cosmo/Source -I/home/cristian/Projects/cmake/repo/Source -I/home/cristian/Projects/cmake/repo/Source/LexerParser -isystem /home/cristian/Projects/cmake/repo/Utilities/std -isystem /home/cristian/Projects/cmake/repo/Utilities -fexceptions -frtti -Wnon-virtual-dtor -Wcast-align -Wchar-subscripts -Wall -W -Wshadow -Wpointer-arith -Wformat-security -Wundef -O3 -DNDEBUG -std=c++17 -MD -MT Source/CMakeFiles/CTestLib.dir/CTest/cmUVJobServerClient.cxx.o -MF Source/CMakeFiles/CTestLib.dir/CTest/cmUVJobServerClient.cxx.o.d -o Source/CMakeFiles/CTestLib.dir/CTest/cmUVJobServerClient.cxx.o -c /home/cristian/Projects/cmake/repo/Source/CTest/cmUVJobServerClient.cxx
In file included from /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:58,
                 from /home/cristian/Projects/cmake/repo/Utilities/cm3p/uv.h:10,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmUVJobServerClient.h:12,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmUVJobServerClient.cxx:3:
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h: In function 'int uv_tty_set_mode(uv_tty_t*, int)':
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
[4/424] Building CXX object Source/CMakeFiles/CTestLib.dir/LexerParser/cmCTestResourceGroupsLexer.cxx.o
FAILED: Source/CMakeFiles/CTestLib.dir/LexerParser/cmCTestResourceGroupsLexer.cxx.o 
/home/cristian/Projects/cosmopolitan/repo/cosmocc/bin/cosmoc++ -DCURL_STATICLIB -DLIBARCHIVE_STATIC -I/home/cristian/Projects/cmake/build-cosmo/Utilities -I/home/cristian/Projects/cmake/repo/Source/CTest -I/home/cristian/Projects/cmake/build-cosmo/Source -I/home/cristian/Projects/cmake/repo/Source -I/home/cristian/Projects/cmake/repo/Source/LexerParser -isystem /home/cristian/Projects/cmake/repo/Utilities/std -isystem /home/cristian/Projects/cmake/repo/Utilities -fexceptions -frtti -Wnon-virtual-dtor -Wcast-align -Wchar-subscripts -Wall -W -Wshadow -Wpointer-arith -Wformat-security -Wundef -O3 -DNDEBUG -std=c++17 -MD -MT Source/CMakeFiles/CTestLib.dir/LexerParser/cmCTestResourceGroupsLexer.cxx.o -MF Source/CMakeFiles/CTestLib.dir/LexerParser/cmCTestResourceGroupsLexer.cxx.o.d -o Source/CMakeFiles/CTestLib.dir/LexerParser/cmCTestResourceGroupsLexer.cxx.o -c /home/cristian/Projects/cmake/repo/Source/LexerParser/cmCTestResourceGroupsLexer.cxx
In file included from /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:58,
                 from /home/cristian/Projects/cmake/repo/Utilities/cm3p/uv.h:10,
                 from /home/cristian/Projects/cmake/repo/Source/cmSystemTools.h:21,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestGenericHandler.h:13,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestTestHandler.h:23,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestResourceGroupsLexerHelper.h:8,
                 from /home/cristian/Projects/cmake/repo/Source/LexerParser/cmCTestResourceGroupsLexer.cxx:664:
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h: In function 'int uv_tty_set_mode(uv_tty_t*, int)':
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
[5/424] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestHG.cxx.o
FAILED: Source/CMakeFiles/CTestLib.dir/CTest/cmCTestHG.cxx.o 
/home/cristian/Projects/cosmopolitan/repo/cosmocc/bin/cosmoc++ -DCURL_STATICLIB -DLIBARCHIVE_STATIC -I/home/cristian/Projects/cmake/build-cosmo/Utilities -I/home/cristian/Projects/cmake/repo/Source/CTest -I/home/cristian/Projects/cmake/build-cosmo/Source -I/home/cristian/Projects/cmake/repo/Source -I/home/cristian/Projects/cmake/repo/Source/LexerParser -isystem /home/cristian/Projects/cmake/repo/Utilities/std -isystem /home/cristian/Projects/cmake/repo/Utilities -fexceptions -frtti -Wnon-virtual-dtor -Wcast-align -Wchar-subscripts -Wall -W -Wshadow -Wpointer-arith -Wformat-security -Wundef -O3 -DNDEBUG -std=c++17 -MD -MT Source/CMakeFiles/CTestLib.dir/CTest/cmCTestHG.cxx.o -MF Source/CMakeFiles/CTestLib.dir/CTest/cmCTestHG.cxx.o.d -o Source/CMakeFiles/CTestLib.dir/CTest/cmCTestHG.cxx.o -c /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestHG.cxx
In file included from /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:58,
                 from /home/cristian/Projects/cmake/repo/Utilities/cm3p/uv.h:10,
                 from /home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.h:16,
                 from /home/cristian/Projects/cmake/repo/Source/cmProcessTools.h:13,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestVC.h:12,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestGlobalVC.h:13,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestHG.h:10,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestHG.cxx:3:
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h: In function 'int uv_tty_set_mode(uv_tty_t*, int)':
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
[6/424] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestBZR.cxx.o
FAILED: Source/CMakeFiles/CTestLib.dir/CTest/cmCTestBZR.cxx.o 
/home/cristian/Projects/cosmopolitan/repo/cosmocc/bin/cosmoc++ -DCURL_STATICLIB -DLIBARCHIVE_STATIC -I/home/cristian/Projects/cmake/build-cosmo/Utilities -I/home/cristian/Projects/cmake/repo/Source/CTest -I/home/cristian/Projects/cmake/build-cosmo/Source -I/home/cristian/Projects/cmake/repo/Source -I/home/cristian/Projects/cmake/repo/Source/LexerParser -isystem /home/cristian/Projects/cmake/repo/Utilities/std -isystem /home/cristian/Projects/cmake/repo/Utilities -fexceptions -frtti -Wnon-virtual-dtor -Wcast-align -Wchar-subscripts -Wall -W -Wshadow -Wpointer-arith -Wformat-security -Wundef -O3 -DNDEBUG -std=c++17 -MD -MT Source/CMakeFiles/CTestLib.dir/CTest/cmCTestBZR.cxx.o -MF Source/CMakeFiles/CTestLib.dir/CTest/cmCTestBZR.cxx.o.d -o Source/CMakeFiles/CTestLib.dir/CTest/cmCTestBZR.cxx.o -c /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestBZR.cxx
In file included from /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:58,
                 from /home/cristian/Projects/cmake/repo/Utilities/cm3p/uv.h:10,
                 from /home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.h:16,
                 from /home/cristian/Projects/cmake/repo/Source/cmProcessTools.h:13,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestVC.h:12,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestGlobalVC.h:13,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestBZR.h:10,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestBZR.cxx:3:
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h: In function 'int uv_tty_set_mode(uv_tty_t*, int)':
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
[7/424] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestP4.cxx.o
FAILED: Source/CMakeFiles/CTestLib.dir/CTest/cmCTestP4.cxx.o 
/home/cristian/Projects/cosmopolitan/repo/cosmocc/bin/cosmoc++ -DCURL_STATICLIB -DLIBARCHIVE_STATIC -I/home/cristian/Projects/cmake/build-cosmo/Utilities -I/home/cristian/Projects/cmake/repo/Source/CTest -I/home/cristian/Projects/cmake/build-cosmo/Source -I/home/cristian/Projects/cmake/repo/Source -I/home/cristian/Projects/cmake/repo/Source/LexerParser -isystem /home/cristian/Projects/cmake/repo/Utilities/std -isystem /home/cristian/Projects/cmake/repo/Utilities -fexceptions -frtti -Wnon-virtual-dtor -Wcast-align -Wchar-subscripts -Wall -W -Wshadow -Wpointer-arith -Wformat-security -Wundef -O3 -DNDEBUG -std=c++17 -MD -MT Source/CMakeFiles/CTestLib.dir/CTest/cmCTestP4.cxx.o -MF Source/CMakeFiles/CTestLib.dir/CTest/cmCTestP4.cxx.o.d -o Source/CMakeFiles/CTestLib.dir/CTest/cmCTestP4.cxx.o -c /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestP4.cxx
In file included from /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:58,
                 from /home/cristian/Projects/cmake/repo/Utilities/cm3p/uv.h:10,
                 from /home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.h:16,
                 from /home/cristian/Projects/cmake/repo/Source/cmProcessTools.h:13,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestVC.h:12,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestGlobalVC.h:13,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestP4.h:12,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestP4.cxx:3:
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h: In function 'int uv_tty_set_mode(uv_tty_t*, int)':
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
[8/424] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestSVN.cxx.o
FAILED: Source/CMakeFiles/CTestLib.dir/CTest/cmCTestSVN.cxx.o 
/home/cristian/Projects/cosmopolitan/repo/cosmocc/bin/cosmoc++ -DCURL_STATICLIB -DLIBARCHIVE_STATIC -I/home/cristian/Projects/cmake/build-cosmo/Utilities -I/home/cristian/Projects/cmake/repo/Source/CTest -I/home/cristian/Projects/cmake/build-cosmo/Source -I/home/cristian/Projects/cmake/repo/Source -I/home/cristian/Projects/cmake/repo/Source/LexerParser -isystem /home/cristian/Projects/cmake/repo/Utilities/std -isystem /home/cristian/Projects/cmake/repo/Utilities -fexceptions -frtti -Wnon-virtual-dtor -Wcast-align -Wchar-subscripts -Wall -W -Wshadow -Wpointer-arith -Wformat-security -Wundef -O3 -DNDEBUG -std=c++17 -MD -MT Source/CMakeFiles/CTestLib.dir/CTest/cmCTestSVN.cxx.o -MF Source/CMakeFiles/CTestLib.dir/CTest/cmCTestSVN.cxx.o.d -o Source/CMakeFiles/CTestLib.dir/CTest/cmCTestSVN.cxx.o -c /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestSVN.cxx
In file included from /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:58,
                 from /home/cristian/Projects/cmake/repo/Utilities/cm3p/uv.h:10,
                 from /home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.h:16,
                 from /home/cristian/Projects/cmake/repo/Source/cmProcessTools.h:13,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestVC.h:12,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestGlobalVC.h:13,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestSVN.h:12,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestSVN.cxx:3:
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h: In function 'int uv_tty_set_mode(uv_tty_t*, int)':
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
[9/424] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestGIT.cxx.o
FAILED: Source/CMakeFiles/CTestLib.dir/CTest/cmCTestGIT.cxx.o 
/home/cristian/Projects/cosmopolitan/repo/cosmocc/bin/cosmoc++ -DCURL_STATICLIB -DLIBARCHIVE_STATIC -I/home/cristian/Projects/cmake/build-cosmo/Utilities -I/home/cristian/Projects/cmake/repo/Source/CTest -I/home/cristian/Projects/cmake/build-cosmo/Source -I/home/cristian/Projects/cmake/repo/Source -I/home/cristian/Projects/cmake/repo/Source/LexerParser -isystem /home/cristian/Projects/cmake/repo/Utilities/std -isystem /home/cristian/Projects/cmake/repo/Utilities -fexceptions -frtti -Wnon-virtual-dtor -Wcast-align -Wchar-subscripts -Wall -W -Wshadow -Wpointer-arith -Wformat-security -Wundef -O3 -DNDEBUG -std=c++17 -MD -MT Source/CMakeFiles/CTestLib.dir/CTest/cmCTestGIT.cxx.o -MF Source/CMakeFiles/CTestLib.dir/CTest/cmCTestGIT.cxx.o.d -o Source/CMakeFiles/CTestLib.dir/CTest/cmCTestGIT.cxx.o -c /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestGIT.cxx
In file included from /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:58,
                 from /home/cristian/Projects/cmake/repo/Utilities/cm3p/uv.h:10,
                 from /home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.h:16,
                 from /home/cristian/Projects/cmake/repo/Source/cmProcessTools.h:13,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestVC.h:12,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestGlobalVC.h:13,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestGIT.h:10,
                 from /home/cristian/Projects/cmake/repo/Source/CTest/cmCTestGIT.cxx:3:
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h: In function 'int uv_tty_set_mode(uv_tty_t*, int)':
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
[10/424] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmEvaluatedTargetProperty.cxx.o
FAILED: Source/CMakeFiles/CMakeLib.dir/cmEvaluatedTargetProperty.cxx.o 
/home/cristian/Projects/cosmopolitan/repo/cosmocc/bin/cosmoc++ -DCURL_STATICLIB -DLIBARCHIVE_STATIC -I/home/cristian/Projects/cmake/build-cosmo/Utilities -I/home/cristian/Projects/cmake/build-cosmo/Source -I/home/cristian/Projects/cmake/repo/Source -I/home/cristian/Projects/cmake/repo/Source/LexerParser -isystem /home/cristian/Projects/cmake/repo/Utilities/std -isystem /home/cristian/Projects/cmake/repo/Utilities -fexceptions -frtti -Wnon-virtual-dtor -Wcast-align -Wchar-subscripts -Wall -W -Wshadow -Wpointer-arith -Wformat-security -Wundef -O3 -DNDEBUG -std=c++17 -MD -MT Source/CMakeFiles/CMakeLib.dir/cmEvaluatedTargetProperty.cxx.o -MF Source/CMakeFiles/CMakeLib.dir/cmEvaluatedTargetProperty.cxx.o.d -o Source/CMakeFiles/CMakeLib.dir/cmEvaluatedTargetProperty.cxx.o -c /home/cristian/Projects/cmake/repo/Source/cmEvaluatedTargetProperty.cxx
In file included from /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:58,
                 from /home/cristian/Projects/cmake/repo/Utilities/cm3p/uv.h:10,
                 from /home/cristian/Projects/cmake/repo/Source/cmSystemTools.h:21,
                 from /home/cristian/Projects/cmake/repo/Source/cmListFileCache.h:17,
                 from /home/cristian/Projects/cmake/repo/Source/cmLinkItem.h:16,
                 from /home/cristian/Projects/cmake/repo/Source/cmGeneratorTarget.h:21,
                 from /home/cristian/Projects/cmake/repo/Source/cmEvaluatedTargetProperty.h:9,
                 from /home/cristian/Projects/cmake/repo/Source/cmEvaluatedTargetProperty.cxx:3:
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h: In function 'int uv_tty_set_mode(uv_tty_t*, int)':
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:192:3: error: unable to substitute constant

  192 |   UV_ERRNO_MAP(XX)
      |   ^~~~~~~~~~~~

@cristianadam
Copy link
Author

cristianadam commented Aug 6, 2024

By applying the following patch, the errors above are gone.

errno patch
diff --git a/Utilities/cmlibuv/include/uv.h b/Utilities/cmlibuv/include/uv.h
index 42e34467ef..16ff9bcc3c 100644
--- a/Utilities/cmlibuv/include/uv.h
+++ b/Utilities/cmlibuv/include/uv.h
@@ -188,7 +188,7 @@ extern "C" {
   XX(RANDOM, random)                                                          \
 
 typedef enum {
-#define XX(code, _) UV_ ## code = UV__ ## code,
+#define XX(code, not_used) UV_ ## code = UV__ ## code,
   UV_ERRNO_MAP(XX)
 #undef XX
   UV_ERRNO_MAX = UV__EOF - 1
diff --git a/Utilities/cmlibuv/include/uv/errno.h b/Utilities/cmlibuv/include/uv/errno.h
index 71906b3f5e..87e18ab6aa 100644
--- a/Utilities/cmlibuv/include/uv/errno.h
+++ b/Utilities/cmlibuv/include/uv/errno.h
@@ -50,355 +50,355 @@
 /* Only map to the system errno on non-Windows platforms. It's apparently
  * a fairly common practice for Windows programmers to redefine errno codes.
  */
-#if defined(E2BIG) && !defined(_WIN32)
+#if defined(E2BIG) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__E2BIG UV__ERR(E2BIG)
 #else
 # define UV__E2BIG (-4093)
 #endif
 
-#if defined(EACCES) && !defined(_WIN32)
+#if defined(EACCES) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EACCES UV__ERR(EACCES)
 #else
 # define UV__EACCES (-4092)
 #endif
 
-#if defined(EADDRINUSE) && !defined(_WIN32)
+#if defined(EADDRINUSE) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EADDRINUSE UV__ERR(EADDRINUSE)
 #else
 # define UV__EADDRINUSE (-4091)
 #endif
 
-#if defined(EADDRNOTAVAIL) && !defined(_WIN32)
+#if defined(EADDRNOTAVAIL) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EADDRNOTAVAIL UV__ERR(EADDRNOTAVAIL)
 #else
 # define UV__EADDRNOTAVAIL (-4090)
 #endif
 
-#if defined(EAFNOSUPPORT) && !defined(_WIN32)
+#if defined(EAFNOSUPPORT) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EAFNOSUPPORT UV__ERR(EAFNOSUPPORT)
 #else
 # define UV__EAFNOSUPPORT (-4089)
 #endif
 
-#if defined(EAGAIN) && !defined(_WIN32)
+#if defined(EAGAIN) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EAGAIN UV__ERR(EAGAIN)
 #else
 # define UV__EAGAIN (-4088)
 #endif
 
-#if defined(EALREADY) && !defined(_WIN32)
+#if defined(EALREADY) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EALREADY UV__ERR(EALREADY)
 #else
 # define UV__EALREADY (-4084)
 #endif
 
-#if defined(EBADF) && !defined(_WIN32)
+#if defined(EBADF) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EBADF UV__ERR(EBADF)
 #else
 # define UV__EBADF (-4083)
 #endif
 
-#if defined(EBUSY) && !defined(_WIN32)
+#if defined(EBUSY) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EBUSY UV__ERR(EBUSY)
 #else
 # define UV__EBUSY (-4082)
 #endif
 
-#if defined(ECANCELED) && !defined(_WIN32)
+#if defined(ECANCELED) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ECANCELED UV__ERR(ECANCELED)
 #else
 # define UV__ECANCELED (-4081)
 #endif
 
-#if defined(ECHARSET) && !defined(_WIN32)
+#if defined(ECHARSET) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ECHARSET UV__ERR(ECHARSET)
 #else
 # define UV__ECHARSET (-4080)
 #endif
 
-#if defined(ECONNABORTED) && !defined(_WIN32)
+#if defined(ECONNABORTED) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ECONNABORTED UV__ERR(ECONNABORTED)
 #else
 # define UV__ECONNABORTED (-4079)
 #endif
 
-#if defined(ECONNREFUSED) && !defined(_WIN32)
+#if defined(ECONNREFUSED) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ECONNREFUSED UV__ERR(ECONNREFUSED)
 #else
 # define UV__ECONNREFUSED (-4078)
 #endif
 
-#if defined(ECONNRESET) && !defined(_WIN32)
+#if defined(ECONNRESET) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ECONNRESET UV__ERR(ECONNRESET)
 #else
 # define UV__ECONNRESET (-4077)
 #endif
 
-#if defined(EDESTADDRREQ) && !defined(_WIN32)
+#if defined(EDESTADDRREQ) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EDESTADDRREQ UV__ERR(EDESTADDRREQ)
 #else
 # define UV__EDESTADDRREQ (-4076)
 #endif
 
-#if defined(EEXIST) && !defined(_WIN32)
+#if defined(EEXIST) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EEXIST UV__ERR(EEXIST)
 #else
 # define UV__EEXIST (-4075)
 #endif
 
-#if defined(EFAULT) && !defined(_WIN32)
+#if defined(EFAULT) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EFAULT UV__ERR(EFAULT)
 #else
 # define UV__EFAULT (-4074)
 #endif
 
-#if defined(EHOSTUNREACH) && !defined(_WIN32)
+#if defined(EHOSTUNREACH) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EHOSTUNREACH UV__ERR(EHOSTUNREACH)
 #else
 # define UV__EHOSTUNREACH (-4073)
 #endif
 
-#if defined(EINTR) && !defined(_WIN32)
+#if defined(EINTR) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EINTR UV__ERR(EINTR)
 #else
 # define UV__EINTR (-4072)
 #endif
 
-#if defined(EINVAL) && !defined(_WIN32)
+#if defined(EINVAL) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EINVAL UV__ERR(EINVAL)
 #else
 # define UV__EINVAL (-4071)
 #endif
 
-#if defined(EIO) && !defined(_WIN32)
+#if defined(EIO) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EIO UV__ERR(EIO)
 #else
 # define UV__EIO (-4070)
 #endif
 
-#if defined(EISCONN) && !defined(_WIN32)
+#if defined(EISCONN) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EISCONN UV__ERR(EISCONN)
 #else
 # define UV__EISCONN (-4069)
 #endif
 
-#if defined(EISDIR) && !defined(_WIN32)
+#if defined(EISDIR) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EISDIR UV__ERR(EISDIR)
 #else
 # define UV__EISDIR (-4068)
 #endif
 
-#if defined(ELOOP) && !defined(_WIN32)
+#if defined(ELOOP) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ELOOP UV__ERR(ELOOP)
 #else
 # define UV__ELOOP (-4067)
 #endif
 
-#if defined(EMFILE) && !defined(_WIN32)
+#if defined(EMFILE) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EMFILE UV__ERR(EMFILE)
 #else
 # define UV__EMFILE (-4066)
 #endif
 
-#if defined(EMSGSIZE) && !defined(_WIN32)
+#if defined(EMSGSIZE) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EMSGSIZE UV__ERR(EMSGSIZE)
 #else
 # define UV__EMSGSIZE (-4065)
 #endif
 
-#if defined(ENAMETOOLONG) && !defined(_WIN32)
+#if defined(ENAMETOOLONG) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENAMETOOLONG UV__ERR(ENAMETOOLONG)
 #else
 # define UV__ENAMETOOLONG (-4064)
 #endif
 
-#if defined(ENETDOWN) && !defined(_WIN32)
+#if defined(ENETDOWN) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENETDOWN UV__ERR(ENETDOWN)
 #else
 # define UV__ENETDOWN (-4063)
 #endif
 
-#if defined(ENETUNREACH) && !defined(_WIN32)
+#if defined(ENETUNREACH) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENETUNREACH UV__ERR(ENETUNREACH)
 #else
 # define UV__ENETUNREACH (-4062)
 #endif
 
-#if defined(ENFILE) && !defined(_WIN32)
+#if defined(ENFILE) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENFILE UV__ERR(ENFILE)
 #else
 # define UV__ENFILE (-4061)
 #endif
 
-#if defined(ENOBUFS) && !defined(_WIN32)
+#if defined(ENOBUFS) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENOBUFS UV__ERR(ENOBUFS)
 #else
 # define UV__ENOBUFS (-4060)
 #endif
 
-#if defined(ENODEV) && !defined(_WIN32)
+#if defined(ENODEV) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENODEV UV__ERR(ENODEV)
 #else
 # define UV__ENODEV (-4059)
 #endif
 
-#if defined(ENOENT) && !defined(_WIN32)
+#if defined(ENOENT) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENOENT UV__ERR(ENOENT)
 #else
 # define UV__ENOENT (-4058)
 #endif
 
-#if defined(ENOMEM) && !defined(_WIN32)
+#if defined(ENOMEM) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENOMEM UV__ERR(ENOMEM)
 #else
 # define UV__ENOMEM (-4057)
 #endif
 
-#if defined(ENONET) && !defined(_WIN32)
+#if defined(ENONET) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENONET UV__ERR(ENONET)
 #else
 # define UV__ENONET (-4056)
 #endif
 
-#if defined(ENOSPC) && !defined(_WIN32)
+#if defined(ENOSPC) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENOSPC UV__ERR(ENOSPC)
 #else
 # define UV__ENOSPC (-4055)
 #endif
 
-#if defined(ENOSYS) && !defined(_WIN32)
+#if defined(ENOSYS) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENOSYS UV__ERR(ENOSYS)
 #else
 # define UV__ENOSYS (-4054)
 #endif
 
-#if defined(ENOTCONN) && !defined(_WIN32)
+#if defined(ENOTCONN) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENOTCONN UV__ERR(ENOTCONN)
 #else
 # define UV__ENOTCONN (-4053)
 #endif
 
-#if defined(ENOTDIR) && !defined(_WIN32)
+#if defined(ENOTDIR) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENOTDIR UV__ERR(ENOTDIR)
 #else
 # define UV__ENOTDIR (-4052)
 #endif
 
-#if defined(ENOTEMPTY) && !defined(_WIN32)
+#if defined(ENOTEMPTY) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENOTEMPTY UV__ERR(ENOTEMPTY)
 #else
 # define UV__ENOTEMPTY (-4051)
 #endif
 
-#if defined(ENOTSOCK) && !defined(_WIN32)
+#if defined(ENOTSOCK) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENOTSOCK UV__ERR(ENOTSOCK)
 #else
 # define UV__ENOTSOCK (-4050)
 #endif
 
-#if defined(ENOTSUP) && !defined(_WIN32)
+#if defined(ENOTSUP) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENOTSUP UV__ERR(ENOTSUP)
 #else
 # define UV__ENOTSUP (-4049)
 #endif
 
-#if defined(EPERM) && !defined(_WIN32)
+#if defined(EPERM) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EPERM UV__ERR(EPERM)
 #else
 # define UV__EPERM (-4048)
 #endif
 
-#if defined(EPIPE) && !defined(_WIN32)
+#if defined(EPIPE) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EPIPE UV__ERR(EPIPE)
 #else
 # define UV__EPIPE (-4047)
 #endif
 
-#if defined(EPROTO) && !defined(_WIN32)
+#if defined(EPROTO) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EPROTO UV__ERR(EPROTO)
 #else
 # define UV__EPROTO (-4046)
 #endif
 
-#if defined(EPROTONOSUPPORT) && !defined(_WIN32)
+#if defined(EPROTONOSUPPORT) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EPROTONOSUPPORT UV__ERR(EPROTONOSUPPORT)
 #else
 # define UV__EPROTONOSUPPORT (-4045)
 #endif
 
-#if defined(EPROTOTYPE) && !defined(_WIN32)
+#if defined(EPROTOTYPE) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EPROTOTYPE UV__ERR(EPROTOTYPE)
 #else
 # define UV__EPROTOTYPE (-4044)
 #endif
 
-#if defined(EROFS) && !defined(_WIN32)
+#if defined(EROFS) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EROFS UV__ERR(EROFS)
 #else
 # define UV__EROFS (-4043)
 #endif
 
-#if defined(ESHUTDOWN) && !defined(_WIN32)
+#if defined(ESHUTDOWN) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ESHUTDOWN UV__ERR(ESHUTDOWN)
 #else
 # define UV__ESHUTDOWN (-4042)
 #endif
 
-#if defined(ESPIPE) && !defined(_WIN32)
+#if defined(ESPIPE) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ESPIPE UV__ERR(ESPIPE)
 #else
 # define UV__ESPIPE (-4041)
 #endif
 
-#if defined(ESRCH) && !defined(_WIN32)
+#if defined(ESRCH) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ESRCH UV__ERR(ESRCH)
 #else
 # define UV__ESRCH (-4040)
 #endif
 
-#if defined(ETIMEDOUT) && !defined(_WIN32)
+#if defined(ETIMEDOUT) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ETIMEDOUT UV__ERR(ETIMEDOUT)
 #else
 # define UV__ETIMEDOUT (-4039)
 #endif
 
-#if defined(ETXTBSY) && !defined(_WIN32)
+#if defined(ETXTBSY) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ETXTBSY UV__ERR(ETXTBSY)
 #else
 # define UV__ETXTBSY (-4038)
 #endif
 
-#if defined(EXDEV) && !defined(_WIN32)
+#if defined(EXDEV) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EXDEV UV__ERR(EXDEV)
 #else
 # define UV__EXDEV (-4037)
 #endif
 
-#if defined(EFBIG) && !defined(_WIN32)
+#if defined(EFBIG) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EFBIG UV__ERR(EFBIG)
 #else
 # define UV__EFBIG (-4036)
 #endif
 
-#if defined(ENOPROTOOPT) && !defined(_WIN32)
+#if defined(ENOPROTOOPT) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENOPROTOOPT UV__ERR(ENOPROTOOPT)
 #else
 # define UV__ENOPROTOOPT (-4035)
 #endif
 
-#if defined(ERANGE) && !defined(_WIN32)
+#if defined(ERANGE) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ERANGE UV__ERR(ERANGE)
 #else
 # define UV__ERANGE (-4034)
 #endif
 
-#if defined(ENXIO) && !defined(_WIN32)
+#if defined(ENXIO) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENXIO UV__ERR(ENXIO)
 #else
 # define UV__ENXIO (-4033)
 #endif
 
-#if defined(EMLINK) && !defined(_WIN32)
+#if defined(EMLINK) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EMLINK UV__ERR(EMLINK)
 #else
 # define UV__EMLINK (-4032)
@@ -408,7 +408,7 @@
  * defined. Fortunately, its value is always 64 so it's possible albeit
  * icky to hard-code it.
  */
-#if defined(EHOSTDOWN) && !defined(_WIN32)
+#if defined(EHOSTDOWN) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EHOSTDOWN UV__ERR(EHOSTDOWN)
 #elif defined(__APPLE__) || \
       defined(__DragonFly__) || \
@@ -421,37 +421,37 @@
 # define UV__EHOSTDOWN (-4031)
 #endif
 
-#if defined(EREMOTEIO) && !defined(_WIN32)
+#if defined(EREMOTEIO) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EREMOTEIO UV__ERR(EREMOTEIO)
 #else
 # define UV__EREMOTEIO (-4030)
 #endif
 
-#if defined(ENOTTY) && !defined(_WIN32)
+#if defined(ENOTTY) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ENOTTY UV__ERR(ENOTTY)
 #else
 # define UV__ENOTTY (-4029)
 #endif
 
-#if defined(EFTYPE) && !defined(_WIN32)
+#if defined(EFTYPE) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EFTYPE UV__ERR(EFTYPE)
 #else
 # define UV__EFTYPE (-4028)
 #endif
 
-#if defined(EILSEQ) && !defined(_WIN32)
+#if defined(EILSEQ) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EILSEQ UV__ERR(EILSEQ)
 #else
 # define UV__EILSEQ (-4027)
 #endif
 
-#if defined(EOVERFLOW) && !defined(_WIN32)
+#if defined(EOVERFLOW) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__EOVERFLOW UV__ERR(EOVERFLOW)
 #else
 # define UV__EOVERFLOW (-4026)
 #endif
 
-#if defined(ESOCKTNOSUPPORT) && !defined(_WIN32)
+#if defined(ESOCKTNOSUPPORT) && !defined(_WIN32) && !defined(__COSMOPOLITAN__)
 # define UV__ESOCKTNOSUPPORT UV__ERR(ESOCKTNOSUPPORT)
 #else
 # define UV__ESOCKTNOSUPPORT (-4025)

and one new batch of errors showed up:

[1/22] Building C object Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/unix/getaddrinfo.c.o
FAILED: Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/unix/getaddrinfo.c.o 
/home/cristian/Projects/cosmopolitan/repo/cosmocc/bin/cosmocc  -I/home/cristian/Projects/cmake/build-cosmo/Utilities -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix -I/home/cristian/Projects/cmake/build-cosmo/Source -isystem /home/cristian/Projects/cmake/repo/Utilities/std -isystem /home/cristian/Projects/cmake/repo/Utilities -w -O3 -DNDEBUG -std=gnu11 -MD -MT Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/unix/getaddrinfo.c.o -MF Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/unix/getaddrinfo.c.o.d -o Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/unix/getaddrinfo.c.o -c /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix/getaddrinfo.c
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix/getaddrinfo.c: In function 'uv_if_indextoname':
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix/getaddrinfo.c:233:7: error: implicit declaration of function 'if_indextoname'; did you mean 'uv_if_indextoname'? [-Wimplicit-function-declaration]
  233 |   if (if_indextoname(ifindex, ifname_buf) == NULL)
      |       ^~~~~~~~~~~~~~
      |       uv_if_indextoname
[2/22] Building C object Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/unix/udp.c.o
FAILED: Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/unix/udp.c.o 
/home/cristian/Projects/cosmopolitan/repo/cosmocc/bin/cosmocc  -I/home/cristian/Projects/cmake/build-cosmo/Utilities -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix -I/home/cristian/Projects/cmake/build-cosmo/Source -isystem /home/cristian/Projects/cmake/repo/Utilities/std -isystem /home/cristian/Projects/cmake/repo/Utilities -w -O3 -DNDEBUG -std=gnu11 -MD -MT Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/unix/udp.c.o -MF Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/unix/udp.c.o.d -o Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/unix/udp.c.o -c /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix/udp.c
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix/udp.c: In function 'uv__udp_set_source_membership4':
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix/udp.c:953:25: error: storage size of 'mreq' isn't known
  953 |   struct ip_mreq_source mreq;
      |                         ^~~~
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix/udp.c: In function 'uv__udp_set_source_membership6':
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix/udp.c:998:27: error: storage size of 'mreq' isn't known
  998 |   struct group_source_req mreq;
      |                           ^~~~
At top level:
cc1: note: rewrote 1 switch statements
[3/22] Building C object Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/unix/thread.c.o
FAILED: Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/unix/thread.c.o 
/home/cristian/Projects/cosmopolitan/repo/cosmocc/bin/cosmocc  -I/home/cristian/Projects/cmake/build-cosmo/Utilities -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix -I/home/cristian/Projects/cmake/build-cosmo/Source -isystem /home/cristian/Projects/cmake/repo/Utilities/std -isystem /home/cristian/Projects/cmake/repo/Utilities -w -O3 -DNDEBUG -std=gnu11 -MD -MT Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/unix/thread.c.o -MF Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/unix/thread.c.o.d -o Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/unix/thread.c.o -c /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix/thread.c
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix/thread.c: In function 'uv_cond_init':
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix/thread.c:733:9: error: implicit declaration of function 'pthread_condattr_setclock'; did you mean 'pthread_condattr_destroy'? [-Wimplicit-function-declaration]
  733 |   err = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
      |         pthread_condattr_destroy
[4/22] Building C object Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/uv-common.c.o
FAILED: Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/uv-common.c.o 
/home/cristian/Projects/cosmopolitan/repo/cosmocc/bin/cosmocc  -I/home/cristian/Projects/cmake/build-cosmo/Utilities -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src -I/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/unix -I/home/cristian/Projects/cmake/build-cosmo/Source -isystem /home/cristian/Projects/cmake/repo/Utilities/std -isystem /home/cristian/Projects/cmake/repo/Utilities -w -O3 -DNDEBUG -std=gnu11 -MD -MT Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/uv-common.c.o -MF Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/uv-common.c.o.d -o Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/uv-common.c.o -c /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/uv-common.c
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/uv-common.c: In function 'uv_ip6_addr':
/home/cristian/Projects/cmake/repo/Utilities/cmlibuv/src/uv-common.c:260:27: error: implicit declaration of function 'if_nametoindex' [-Wimplicit-function-declaration]
  260 |     addr->sin6_scope_id = if_nametoindex(zone_index);
      |                           ^~~~~~~~~~~~~~
At top level:
cc1: note: rewrote 1 switch statements
[5/22] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmUVProcessChain.cxx.o
FAILED: Source/CMakeFiles/CMakeLib.dir/cmUVProcessChain.cxx.o 
/home/cristian/Projects/cosmopolitan/repo/cosmocc/bin/cosmoc++ -DCURL_STATICLIB -DLIBARCHIVE_STATIC -I/home/cristian/Projects/cmake/build-cosmo/Utilities -I/home/cristian/Projects/cmake/build-cosmo/Source -I/home/cristian/Projects/cmake/repo/Source -I/home/cristian/Projects/cmake/repo/Source/LexerParser -isystem /home/cristian/Projects/cmake/repo/Utilities/std -isystem /home/cristian/Projects/cmake/repo/Utilities -fexceptions -frtti -Wnon-virtual-dtor -Wcast-align -Wchar-subscripts -Wall -W -Wshadow -Wpointer-arith -Wformat-security -Wundef -O3 -DNDEBUG -std=c++17 -MD -MT Source/CMakeFiles/CMakeLib.dir/cmUVProcessChain.cxx.o -MF Source/CMakeFiles/CMakeLib.dir/cmUVProcessChain.cxx.o.d -o Source/CMakeFiles/CMakeLib.dir/cmUVProcessChain.cxx.o -c /home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.cxx
In file included from /home/cristian/Projects/cosmopolitan/repo/cosmocc/include/signal.h:10,
                 from /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv/unix.h:44,
                 from /home/cristian/Projects/cmake/repo/Utilities/cmlibuv/include/uv.h:72,
                 from /home/cristian/Projects/cmake/repo/Utilities/cm3p/uv.h:10,
                 from /home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.h:16,
                 from /home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.cxx:3:
/home/cristian/Projects/cosmopolitan/repo/cosmocc/include/third_party/libcxx/__utility/pair.h: In instantiation of 'static constexpr bool std::__1::pair< <template-parameter-1-1>, <template-parameter-1-2> >::_CheckArgs::__is_pair_constructible() [with _U1 = const cmUVProcessChain::ExceptionCode&; _U2 = char* const&; _T1 = cmUVProcessChain::ExceptionCode; _T2 = std::__1::basic_string<char>]':
/home/cristian/Projects/cosmopolitan/repo/cosmocc/include/third_party/libcxx/__utility/pair.h:208:95:   required by substitution of 'template<class _U1, class _U2, typename std::__1::enable_if<__is_pair_constructible<const _U1&, const _U2&>(), int>::type <anonymous> > constexpr std::__1::pair<cmUVProcessChain::ExceptionCode, std::__1::basic_string<char> >::pair(const std::__1::pair<_T1, _T2>&) [with _U1 = cmUVProcessChain::ExceptionCode; _U2 = char*; typename std::__1::enable_if<__is_pair_constructible<const _U1&, const _U2&>(), int>::type <anonymous> = <missing>]'
  208 |             __enable_if_t<_CheckArgs::template __is_pair_constructible<_U1 const&, _U2 const&>(), int> = 0>
      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.cxx:712:56:   required from here
  712 |         return std::make_pair(ExceptionCode::Other, buf);
      |                                                        ^
/home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.cxx:567:12: error: unable to substitute constant

  567 |       case SIGBUS:
      |            ^~~~~~
/home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.cxx:615:12: error: unable to substitute constant

  615 |       case SIGUSR1:
      |            ^~~~~~~
/home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.cxx:619:12: error: unable to substitute constant

  619 |       case SIGUSR2:
      |            ^~~~~~~
/home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.cxx:635:12: error: unable to substitute constant

  635 |       case SIGCHLD:
      |            ^~~~~~~
/home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.cxx:642:12: error: unable to substitute constant

  642 |       case SIGCONT:
      |            ^~~~~~~
/home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.cxx:646:12: error: unable to substitute constant

  646 |       case SIGSTOP:
      |            ^~~~~~~
/home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.cxx:650:12: error: unable to substitute constant

  650 |       case SIGTSTP:
      |            ^~~~~~~
/home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.cxx:662:12: error: unable to substitute constant

  662 |       case SIGURG:
      |            ^~~~~~
/home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.cxx:696:12: error: unable to substitute constant

  696 |       case SIGPWR:
      |            ^~~~~~
/home/cristian/Projects/cmake/repo/Source/cmUVProcessChain.cxx:700:12: error: unable to substitute constant

  700 |       case SIGSYS:
      |            ^~~~~~
ninja: build stopped: cannot make progress due to previous errors.

@ahgamut
Copy link
Owner

ahgamut commented Aug 6, 2024

for now, a fix would be to replace the enum declaration with

typedef int uv_errno_t;
#define XX(code, not_used) static int UV_ ## code = UV__ ## code;

@ahgamut
Copy link
Owner

ahgamut commented Aug 6, 2024

it also seems like a if_indextoname is being called in an impl of getaddrinfo?

@cristianadam
Copy link
Author

With the patch below I was able to compile CMake with Cosmopolitan 🎉

cmake-cosmopolitan.patch
diff --git a/Source/CTest/cmProcess.cxx b/Source/CTest/cmProcess.cxx
index 2c809b6e97..d1a55826ad 100644
--- a/Source/CTest/cmProcess.cxx
+++ b/Source/CTest/cmProcess.cxx
@@ -534,6 +534,76 @@ std::string cmProcess::GetExitExceptionString() const
       snprintf(buf, sizeof(buf), fmt, this->ExitValue);
       exception_str.assign(buf);
   }
+#elif defined(__COSMOPOLITAN__)
+  if (this->Signal == SIGSEGV) {
+      exception_str = "Segmentation fault";
+  } else if (this->Signal == SIGBUS) {
+      exception_str = "Bus error";
+  } else if (this->Signal == SIGFPE) {
+      exception_str = "Floating-point exception";
+  } else if (this->Signal == SIGILL) {
+      exception_str = "Illegal instruction";
+  } else if (this->Signal == SIGILL) {
+      exception_str = "User interrupt";
+  } else if (this->Signal == SIGABRT) {
+      exception_str = "Subprocess aborted";
+  } else if (this->Signal == SIGKILL) {
+      exception_str = "Subprocess killed";
+  } else if (this->Signal == SIGTERM) {
+      exception_str = "Subprocess terminated";
+  } else if (this->Signal == SIGHUP) {
+      exception_str = "SIGHUP";
+  } else if (this->Signal == SIGQUIT) {
+      exception_str = "SIGQUIT";
+  } else if (this->Signal == SIGTRAP) {
+      exception_str = "SIGTRAP";
+  } else if (this->Signal == SIGIOT) {
+      exception_str = "SIGIOT";
+  } else if (this->Signal == SIGUSR1) {
+      exception_str = "SIGUSR1";
+  } else if (this->Signal == SIGUSR2) {
+      exception_str = "SIGUSR2";
+  } else if (this->Signal == SIGPIPE) {
+      exception_str = "SIGPIPE";
+  } else if (this->Signal == SIGALRM) {
+      exception_str = "SIGALRM";
+  } else if (this->Signal == SIGSTKFLT) {
+      exception_str = "SIGSTKFLT";
+  } else if (this->Signal == SIGCHLD) {
+      exception_str = "SIGCHLD";
+  } else if (this->Signal == SIGCONT) {
+      exception_str = "SIGCONT";
+  } else if (this->Signal == SIGSTOP) {
+      exception_str = "SIGSTOP";
+  } else if (this->Signal == SIGTSTP) {
+      exception_str = "SIGTSTP";
+  } else if (this->Signal == SIGTTIN) {
+      exception_str = "SIGTTIN";
+  } else if (this->Signal == SIGTTOU) {
+      exception_str = "SIGTTOU";
+  } else if (this->Signal == SIGURG) {
+      exception_str = "SIGURG";
+  } else if (this->Signal == SIGXCPU) {
+      exception_str = "SIGXCPU";
+  } else if (this->Signal == SIGXFSZ) {
+      exception_str = "SIGXFSZ";
+  } else if (this->Signal == SIGVTALRM) {
+      exception_str = "SIGVTALRM";
+  } else if (this->Signal == SIGPROF) {
+      exception_str = "SIGPROF";
+  } else if (this->Signal == SIGWINCH) {
+      exception_str = "SIGWINCH";
+  } else if (this->Signal == SIGPOLL) {
+      exception_str = "SIGPOLL";
+  } else if (this->Signal == SIGIO) {
+      exception_str = "SIGIO";
+  } else if (this->Signal == SIGPWR) {
+      exception_str = "SIGPWR";
+  } else if (this->Signal == SIGSYS) {
+      exception_str = "SIGSYS";
+  } else {
+      exception_str = cmStrCat("Signal ", this->Signal);
+  }
 #else
   switch (this->Signal) {
 #  ifdef SIGSEGV
diff --git a/Source/cmUVProcessChain.cxx b/Source/cmUVProcessChain.cxx
index b787f19943..0e7f6db672 100644
--- a/Source/cmUVProcessChain.cxx
+++ b/Source/cmUVProcessChain.cxx
@@ -555,6 +555,84 @@ cmUVProcessChain::Status::GetException() const
       }
     }
   }
+#elif defined(__COSMOPOLITAN__)
+  if (this->Finished && this->TermSignal) {
+    if (this->TermSignal == SIGSEGV) {
+        return std::make_pair(ExceptionCode::Fault, "Segmentation fault");
+    } else if (this->TermSignal == SIGBUS) {
+        return std::make_pair(ExceptionCode::Fault, "Bus error");
+    } else if (this->TermSignal == SIGFPE) {
+        return std::make_pair(ExceptionCode::Numerical,
+                              "Floating-point exception");
+    } else if (this->TermSignal == SIGILL) {
+        return std::make_pair(ExceptionCode::Illegal, "Illegal instruction");
+    } else if (this->TermSignal == SIGINT) {
+        return std::make_pair(ExceptionCode::Interrupt, "User interrupt");
+    } else if (this->TermSignal == SIGABRT) {
+        return std::make_pair(ExceptionCode::Other, "Subprocess aborted");
+    } else if (this->TermSignal == SIGKILL) {
+        return std::make_pair(ExceptionCode::Other, "Subprocess killed");
+    } else if (this->TermSignal == SIGTERM) {
+        return std::make_pair(ExceptionCode::Other, "Subprocess terminated");
+    } else if (this->TermSignal == SIGHUP) {
+        return std::make_pair(ExceptionCode::Other, "SIGHUP");
+    } else if (this->TermSignal == SIGQUIT) {
+        return std::make_pair(ExceptionCode::Other, "SIGQUIT");
+    } else if (this->TermSignal == SIGTRAP) {
+        return std::make_pair(ExceptionCode::Other, "SIGTRAP");
+    } else if (this->TermSignal == SIGIOT) {
+        return std::make_pair(ExceptionCode::Other, "SIGIOT");
+    } else if (this->TermSignal == SIGUSR1) {
+        return std::make_pair(ExceptionCode::Other, "SIGUSR1");
+    } else if (this->TermSignal == SIGUSR2) {
+        return std::make_pair(ExceptionCode::Other, "SIGUSR2");
+    } else if (this->TermSignal == SIGPIPE) {
+        return std::make_pair(ExceptionCode::Other, "SIGPIPE");
+    } else if (this->TermSignal == SIGALRM) {
+        return std::make_pair(ExceptionCode::Other, "SIGALRM");
+    } else if (this->TermSignal == SIGSTKFLT) {
+        return std::make_pair(ExceptionCode::Other, "SIGSTKFLT");
+    } else if (this->TermSignal == SIGCHLD) {
+        return std::make_pair(ExceptionCode::Other, "SIGCHLD");
+    } else if (this->TermSignal == SIGFPE) {
+        return std::make_pair(ExceptionCode::Other, "SIGCLD");
+    } else if (this->TermSignal == SIGCONT) {
+        return std::make_pair(ExceptionCode::Other, "SIGCONT");
+    } else if (this->TermSignal == SIGSTOP) {
+        return std::make_pair(ExceptionCode::Other, "SIGSTOP");
+    } else if (this->TermSignal == SIGTSTP) {
+        return std::make_pair(ExceptionCode::Other, "SIGTSTP");
+    } else if (this->TermSignal == SIGTTIN) {
+        return std::make_pair(ExceptionCode::Other, "SIGTTIN");
+    } else if (this->TermSignal == SIGTTOU) {
+        return std::make_pair(ExceptionCode::Other, "SIGTTOU");
+    } else if (this->TermSignal == SIGURG) {
+        return std::make_pair(ExceptionCode::Other, "SIGURG");
+    } else if (this->TermSignal == SIGXCPU) {
+        return std::make_pair(ExceptionCode::Other, "SIGXCPU");
+    } else if (this->TermSignal == SIGXFSZ) {
+        return std::make_pair(ExceptionCode::Other, "SIGXFSZ");
+    } else if (this->TermSignal == SIGVTALRM) {
+        return std::make_pair(ExceptionCode::Other, "SIGVTALRM");
+    } else if (this->TermSignal == SIGPROF) {
+        return std::make_pair(ExceptionCode::Other, "SIGPROF");
+    } else if (this->TermSignal == SIGWINCH) {
+        return std::make_pair(ExceptionCode::Other, "SIGWINCH");
+    } else if (this->TermSignal == SIGPOLL) {
+        return std::make_pair(ExceptionCode::Other, "SIGPOLL");
+    } else if (this->TermSignal == SIGIO) {
+        return std::make_pair(ExceptionCode::Other, "SIGIO");
+    } else if (this->TermSignal == SIGPWR) {
+        return std::make_pair(ExceptionCode::Other, "SIGPWR");
+    } else if (this->TermSignal == SIGSYS) {
+        return std::make_pair(ExceptionCode::Other, "SIGSYS");
+    } else {
+        char buf[256];
+        snprintf(buf, sizeof(buf), "Signal %d", this->TermSignal);
+        return std::make_pair(ExceptionCode::Other, buf);
+    }
+  }
+
 #else
   if (this->Finished && this->TermSignal) {
     switch (this->TermSignal) {
diff --git a/Utilities/cmlibuv/CMakeLists.txt b/Utilities/cmlibuv/CMakeLists.txt
index a0b161b5c0..ef379260b2 100644
--- a/Utilities/cmlibuv/CMakeLists.txt
+++ b/Utilities/cmlibuv/CMakeLists.txt
@@ -343,6 +343,18 @@ if(CMAKE_SYSTEM_NAME STREQUAL "QNX")
     )
 endif()
 
+if(COSMOPOLITAN)
+    list(APPEND uv_headers
+      include/uv/posix.h
+      )
+    list(APPEND uv_sources
+      src/unix/posix-hrtime.c
+      src/unix/posix-poll.c
+      src/unix/no-fsevents.c
+      src/unix/no-proctitle.c
+      )
+endif()
+
 include_directories(
   ${uv_includes}
   ${KWSYS_HEADER_ROOT}
diff --git a/Utilities/cmlibuv/include/uv/errno.h b/Utilities/cmlibuv/include/uv/errno.h
index 71906b3f5e..8ba3b75221 100644
--- a/Utilities/cmlibuv/include/uv/errno.h
+++ b/Utilities/cmlibuv/include/uv/errno.h
@@ -50,6 +50,14 @@
 /* Only map to the system errno on non-Windows platforms. It's apparently
  * a fairly common practice for Windows programmers to redefine errno codes.
  */
+
+#if defined(__COSMOPOLITAN__)
+/* Cosmo hass isuess with the libuv macro magic for errno. Therfore use
+ * the _WIN32 code path.
+ */
+#define _WIN32
+#endif
+
 #if defined(E2BIG) && !defined(_WIN32)
 # define UV__E2BIG UV__ERR(E2BIG)
 #else
@@ -457,4 +465,8 @@
 # define UV__ESOCKTNOSUPPORT (-4025)
 #endif
 
+#if defined(__COSMOPOLITAN__)
+#undef _WIN32
+#endif
+
 #endif /* UV_ERRNO_H_ */
diff --git a/Utilities/cmlibuv/include/uv/unix.h b/Utilities/cmlibuv/include/uv/unix.h
index 7a5a3cb54b..61e4ccd1a1 100644
--- a/Utilities/cmlibuv/include/uv/unix.h
+++ b/Utilities/cmlibuv/include/uv/unix.h
@@ -74,7 +74,8 @@
       defined(__MSYS__)   || \
       defined(__HAIKU__)  || \
       defined(__QNX__)    || \
-      defined(__GNU__)
+      defined(__GNU__)    || \
+      defined(__COSMOPOLITAN__)
 # include "posix.h"
 #endif
 
diff --git a/Utilities/cmlibuv/src/unix/getaddrinfo.c b/Utilities/cmlibuv/src/unix/getaddrinfo.c
index 77337ace94..40cfc9c26e 100644
--- a/Utilities/cmlibuv/src/unix/getaddrinfo.c
+++ b/Utilities/cmlibuv/src/unix/getaddrinfo.c
@@ -32,6 +32,10 @@
 #include <string.h>
 #include <net/if.h> /* if_indextoname() */
 
+#ifdef __COSMOPOLITAN__
+#include <sys/ioctl.h>
+#endif
+
 /* EAI_* constants. */
 #include <netdb.h>
 
@@ -222,7 +226,7 @@ void uv_freeaddrinfo(struct addrinfo* ai) {
     freeaddrinfo(ai);
 }
 
-
+#if !defined(__COSMOPOLITAN__)
 int uv_if_indextoname(unsigned int ifindex, char* buffer, size_t* size) {
   char ifname_buf[UV_IF_NAMESIZE];
   size_t len;
@@ -246,6 +250,36 @@ int uv_if_indextoname(unsigned int ifindex, char* buffer, size_t* size) {
 
   return 0;
 }
+#else
+int uv_if_indextoname(unsigned int index, char *name, size_t* size) {
+  int fd = socket(AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, AF_UNSPEC);
+
+  if (fd == -1)
+    return ENXIO;
+
+  struct ifreq ifr;
+  ifr.ifr_ifindex = index;
+
+  int res = 0;
+  int ret = ioctl(fd, SIOCGIFNAME, &ifr, &res);
+  close(fd);
+
+  if (ret) {
+    if(ret == ENODEV)
+      return ENXIO;
+    return ret;
+  }
+
+  if (*size <= IF_NAMESIZE) {
+    *size = IF_NAMESIZE + 1;
+    return UV_ENOBUFS;
+  }
+
+  strncpy(name, ifr.ifr_name, IF_NAMESIZE);
+
+  return 0;
+}
+#endif
 
 int uv_if_indextoiid(unsigned int ifindex, char* buffer, size_t* size) {
   return uv_if_indextoname(ifindex, buffer, size);
diff --git a/Utilities/cmlibuv/src/unix/thread.c b/Utilities/cmlibuv/src/unix/thread.c
index 5a07b027ea..9a47703f1c 100644
--- a/Utilities/cmlibuv/src/unix/thread.c
+++ b/Utilities/cmlibuv/src/unix/thread.c
@@ -729,7 +729,7 @@ int uv_cond_init(uv_cond_t* cond) {
   if (err)
     return UV__ERR(err);
 
-#if !defined(__hpux)
+#if !defined(__hpux) && !defined(__COSMOPOLITAN__)
   err = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
   if (err)
     goto error2;
diff --git a/Utilities/cmlibuv/src/unix/udp.c b/Utilities/cmlibuv/src/unix/udp.c
index 83acf13e5b..72f735d0b0 100644
--- a/Utilities/cmlibuv/src/unix/udp.c
+++ b/Utilities/cmlibuv/src/unix/udp.c
@@ -944,7 +944,8 @@ static int uv__udp_set_membership6(uv_udp_t* handle,
     !defined(__ANDROID__) &&                                        \
     !defined(__DragonFly__) &&                                      \
     !defined(__QNX__) &&                                            \
-    !defined(__GNU__)
+    !defined(__GNU__) &&                                            \
+    !defined(__COSMOPOLITAN__)
 static int uv__udp_set_source_membership4(uv_udp_t* handle,
                                           const struct sockaddr_in* multicast_addr,
                                           const char* interface_addr,
@@ -1137,7 +1138,8 @@ int uv_udp_set_source_membership(uv_udp_t* handle,
     !defined(__ANDROID__) &&                                        \
     !defined(__DragonFly__) &&                                      \
     !defined(__QNX__) &&                                            \
-    !defined(__GNU__)
+    !defined(__GNU__) &&                                            \
+    !defined(__COSMOPOLITAN__)
   int err;
   union uv__sockaddr mcast_addr;
   union uv__sockaddr src_addr;
diff --git a/Utilities/cmlibuv/src/uv-common.c b/Utilities/cmlibuv/src/uv-common.c
index d8f7b0e487..a9147992ba 100644
--- a/Utilities/cmlibuv/src/uv-common.c
+++ b/Utilities/cmlibuv/src/uv-common.c
@@ -254,7 +254,7 @@ int uv_ip6_addr(const char* ip, int port, struct sockaddr_in6* addr) {
 
     zone_index++; /* skip '%' */
     /* NOTE: unknown interface (id=0) is silently ignored */
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__COSMOPOLITAN__)
     addr->sin6_scope_id = atoi(zone_index);
 #else
     addr->sin6_scope_id = if_nametoindex(zone_index);

@franalbani
Copy link

@cristianadam are you planning to add cmake to superconfigure?

Right now, this repo depends externally on Ubuntu cmake in .github/scripts/setup. It may be nice to drop it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants