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 (CLANG64) #98

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

Unable to build on MSYS2 (CLANG64) #98

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\clang64\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/libposix.c:23:
In file included from C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/./libposix.h:45:
In file included from C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/./libposix4win.h:25:
C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include/msvclibx.h:34:2: error: The msvclibx library is designed for use with the Microsoft Visual C/C++ tools only.
#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: No msvclibx.lib version for this 64-bits OS.
#    error No msvclibx.lib version for this 64-bits OS.
     ^
In file included from C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/libposix.c:23:
In file included from C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/./libposix.h:45:
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:10: error: pasting formed '/stdio', an invalid preprocessing token
#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:83: note: expanded from macro 'UCRT_INCLUDE_FILE'
#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:123:30: note: expanded from macro 'MSVCLIBX_CONCAT'
#define MSVCLIBX_CONCAT(a,b) MSVCLIBX_CONCAT1(a,b) /* Substitute the arguments, then concatenate the values */
                             ^
C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include/msvclibx.h:122:32: note: expanded from macro 'MSVCLIBX_CONCAT1'
#define MSVCLIBX_CONCAT1(a,b) a##b /* Concatenate the raw arguments */
                               ^
In file included from C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/libposix.c:23:
In file included from C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/./libposix.h:45:
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:10: error: pasting formed 'UCRTINCLUDE/', an invalid preprocessing token
C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include/msvclibx.h:128:55: note: expanded from macro 'UCRT_INCLUDE_FILE'
#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:123:30: note: expanded from macro 'MSVCLIBX_CONCAT'
#define MSVCLIBX_CONCAT(a,b) MSVCLIBX_CONCAT1(a,b) /* Substitute the arguments, then concatenate the values */
                             ^
C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include/msvclibx.h:122:32: note: expanded from macro 'MSVCLIBX_CONCAT1'
#define MSVCLIBX_CONCAT1(a,b) a##b /* Concatenate the raw arguments */
                               ^
In file included from C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/libposix.c:23:
In file included from C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/./libposix.h:45:
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:10: fatal error: 'UCRTINCLUDE/stdio.h' file not found
#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:36: note: expanded from macro 'UCRT_INCLUDE_FILE'
#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:125:31: note: expanded from macro 'MSVCLIBX_STRINGIZE'
#define MSVCLIBX_STRINGIZE(x) MSVCLIBX_STRINGIZE1(x) /* Substitute the argument, then convert its value to a string */
                              ^~~~~~~~~~~~~~~~~~~~~~
C:/msys64/home/Administrator/gear-lib/gear-lib/libposix/MsvcLibX/include/msvclibx.h:124:32: note: expanded from macro 'MSVCLIBX_STRINGIZE1'
#define MSVCLIBX_STRINGIZE1(x) #x /* Convert the raw argument to a string */
                               ^~
<scratch space>:4:1: note: expanded from here
"UCRTINCLUDE/stdio.h"
^~~~~~~~~~~~~~~~~~~~~
5 errors generated.
ninja: build stopped: subcommand failed.
@gozfree
Copy link
Owner

gozfree commented Jul 23, 2023

already fix it, update and try 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

1 participant