Nothing Special   »   [go: up one dir, main page]

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

Unable to build on MSYS2 (UCRT64) #97

Open
ghost opened this issue Jun 4, 2023 · 1 comment
Open

Unable to build on MSYS2 (UCRT64) #97

ghost opened this issue Jun 4, 2023 · 1 comment

Comments

@ghost
Copy link
ghost commented Jun 4, 2023
$ ninja -j1
[1/72] Building C object gear-lib/libposix/CMakeFiles/posix.dir/libposix.c.obj
FAILED: gear-lib/libposix/CMakeFiles/posix.dir/libposix.c.obj
C:\msys64\ucrt64\bin\cc.exe  -IC:/msys64/home/Administrator/gear-lib/gear-lib/libposix/. -IC:/msys64/home/Administrator/gear-lib/gear-lib/libposix/pthreads4w -IC:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include  -MD -MT gear-lib/libposix/CMakeFiles/posix.dir/libposix.c.obj -MF gear-lib\libposix\CMakeFiles\posix.dir\libposix.c.obj.d -o gear-lib/libposix/CMakeFiles/posix.dir/libposix.c.obj -c C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/libposix.c
In file included from C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/libposix4win.h:25,
                 from C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/libposix.h:45,
                 from C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/libposix.c:23:
C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include/msvclibx.h:34:2: error: #error The msvclibx library is designed for use with the Microsoft Visual C/C++ tools only.
   34 | #error The msvclibx library is designed for use with the Microsoft Visual C/C++ tools only.
      |  ^~~~~
C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include/msvclibx.h:48:6: error: #error No msvclibx.lib version for this 64-bits OS.
   48 | #    error No msvclibx.lib version for this 64-bits OS.
      |      ^~~~~
C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include/msvclibx.h:128:99: error: pasting "/" and "stdio" does not give a valid preprocessing token
  128 | #define UCRT_INCLUDE_FILE(relpath) MSVCLIBX_STRINGIZE(MSVCLIBX_CONCAT(UCRTINCLUDE,MSVCLIBX_CONCAT(/,relpath))) /* C runtime library include files */
      |                                                                                                   ^
C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include/msvclibx.h:122:31: note: in definition of macro 'MSVCLIBX_CONCAT1'
  122 | #define MSVCLIBX_CONCAT1(a,b) a##b /* Concatenate the raw arguments */
      |                               ^
C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include/msvclibx.h:128:83: note: in expansion of macro 'MSVCLIBX_CONCAT'
  128 | #define UCRT_INCLUDE_FILE(relpath) MSVCLIBX_STRINGIZE(MSVCLIBX_CONCAT(UCRTINCLUDE,MSVCLIBX_CONCAT(/,relpath))) /* C runtime library include files */
      |                                                                                   ^~~~~~~~~~~~~~~
C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include/stdio.h:33:10: note: in expansion of macro 'UCRT_INCLUDE_FILE'
   33 | #include UCRT_INCLUDE_FILE(stdio.h) /* Include MSVC's own <stdio.h> file */
      |          ^~~~~~~~~~~~~~~~~
C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include/msvclibx.h:128:71: error: pasting "UCRTINCLUDE" and "/" does not give a valid preprocessing token
  128 | #define UCRT_INCLUDE_FILE(relpath) MSVCLIBX_STRINGIZE(MSVCLIBX_CONCAT(UCRTINCLUDE,MSVCLIBX_CONCAT(/,relpath))) /* C runtime library include files */
      |                                                                       ^~~~~~~~~~~
C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include/msvclibx.h:122:31: note: in definition of macro 'MSVCLIBX_CONCAT1'
  122 | #define MSVCLIBX_CONCAT1(a,b) a##b /* Concatenate the raw arguments */
      |                               ^
C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include/msvclibx.h:128:55: note: in expansion of macro 'MSVCLIBX_CONCAT'
  128 | #define UCRT_INCLUDE_FILE(relpath) MSVCLIBX_STRINGIZE(MSVCLIBX_CONCAT(UCRTINCLUDE,MSVCLIBX_CONCAT(/,relpath))) /* C runtime library include files */
      |                                                       ^~~~~~~~~~~~~~~
C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include/stdio.h:33:10: note: in expansion of macro 'UCRT_INCLUDE_FILE'
   33 | #include UCRT_INCLUDE_FILE(stdio.h) /* Include MSVC's own <stdio.h> file */
      |          ^~~~~~~~~~~~~~~~~
In file included from C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/libposix4win.h:27:
C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include/stdio.h:33:1: fatal error: UCRTINCLUDE/stdio.h: No such file or directory
   33 | #include UCRT_INCLUDE_FILE(stdio.h) /* Include MSVC's own <stdio.h> file */
      | ^~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
@gozfree
Copy link
Owner
gozfree commented Jul 23, 2023

already fix it, msys2 env is similar to linus env

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

1 participant