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

XMake无法自动发现MSVC编译工具 #3229

Closed
lanjackg2003 opened this issue Dec 30, 2022 · 26 comments
Closed

XMake无法自动发现MSVC编译工具 #3229

lanjackg2003 opened this issue Dec 30, 2022 · 26 comments
Labels
Milestone

Comments

@lanjackg2003
Copy link
Contributor

lanjackg2003 commented Dec 30, 2022

Xmake 版本

xmake v2.7.4+dev.c8d4a72a6

操作系统版本和架构

Windows 11 专业版 22H2

描述问题

系统已经安装了如下版本的VS2022

  • Microsoft Visual Studio Enterprise 2022 (64-bit) - Current
  • Version 17.4.3

但是在xmake/core目录下执行,以下两条命令

xmake g -c
xmake f -c

都无法发现VS版本

期待的结果

能够找到VS2022,并可以在windows 下,直接 msvc 编译出XMake.exe

工程配置

xmake/core目录下的xmake.lua脚本

-- project
set_project("xmake")

-- version
set_version("2.7.4", {build = "%Y%m%d%H%M"})

-- set xmake min version
set_xmakever("2.2.3")

-- set warning all as error
set_warnings("all", "error")

-- set language: c99, c++11
set_languages("c99", "cxx11")

-- add release and debug modes
add_rules("mode.release", "mode.debug")
if is_mode("release") then
    set_optimize("smallest")
    if is_plat("windows") then
        add_ldflags("/LTCG")
    end
end

-- disable some compiler errors
add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing", "-Wno-error=nullability-completeness", "-Wno-error=parentheses-equality")

-- add defines
add_defines("_GNU_SOURCE=1", "_FILE_OFFSET_BITS=64", "_LARGEFILE_SOURCE")

-- add vectorexts
--[[
if is_arch("x86", "x64", "i386", "x86_64") then
    add_vectorexts("sse", "sse2", "sse3", "avx", "avx2")
elseif is_arch("arm.*") then
    add_vectorexts("neon")
end]]

-- for the windows platform (msvc)
if is_plat("windows") then
    add_cxflags("-MT")
    add_ldflags("-nodefaultlib:msvcrt.lib")
    add_links("kernel32", "user32", "gdi32")
end

-- for mode coverage
if is_mode("coverage") then
    add_ldflags("-coverage", "-fprofile-arcs", "-ftest-coverage")
end

-- the runtime option
option("runtime")
    set_showmenu(true)
    set_default("lua")
    set_description("Use luajit or lua runtime")
    set_values("luajit", "lua")
option_end()

-- the readline option
option("readline")
    set_showmenu(true)
    set_description("Enable or disable readline library")
    add_links("readline")
    add_cincludes("readline/readline.h")
    add_cfuncs("readline")
    add_defines("XM_CONFIG_API_HAVE_READLINE")
option_end()

-- the curses option
option("curses")
    set_showmenu(true)
    set_description("Enable or disable curses library")
    add_links("curses")
    add_cincludes("curses.h")
    add_defines("XM_CONFIG_API_HAVE_CURSES")
option_end()

-- the pdcurses option
option("pdcurses")
    set_default(true)
    set_showmenu(true)
    set_description("Enable or disable pdcurses library")
    add_defines("PDCURSES")
    add_defines("XM_CONFIG_API_HAVE_CURSES")
option_end()

-- only build xmake libraries for development?
option("onlylib")
    set_default(false)
    set_showmenu(true)
    set_description("Only build xmake libraries for development")
option_end()

-- suppress warnings
if is_plat("windows") then
    add_defines("_CRT_SECURE_NO_WARNINGS")
    add_cxflags("/utf-8")
end

-- add projects
includes("src/lua-cjson", "src/sv", "src/lz4", "src/tbox", "src/xmake", "src/demo")
if is_config("runtime", "luajit") then
    includes("src/luajit")
else
    includes("src/lua")
end
if is_plat("windows") then
    includes("src/pdcurses")
end

附加信息和错误日志

图片

日志
PS D:\Code\code_server\GitHub\xmake\core> xmake g -c;xmake f -c -vD;
configure
{
    network = public
    proxy_pac = pac.lua
    clean = true
    theme = default
}
checking for platform ... windows
checking for architecture ... x64
checking for vswhere.exe ... C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe
checking for Microsoft Visual Studio (x64) version ... no
checking for clang ... ok
checkinfo: cannot runv(dmd.exe --version), No such file or directory
checking for dmd ... no
checkinfo: cannot runv(ldc2.exe --version), No such file or directory
checking for ldc2 ... no
checkinfo: cannot runv(gdc.exe --version), No such file or directory
checking for gdc ... no
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checking for clang ... ok
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_11D5BA8D8E134370808AED6BEB82FCB0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_CB5F49BA6D594E80BA9E60D09E1BB5FA.c
checking for the c compiler (cc) ... clang
checking for the c compiler (cc) ... clang
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_A62413F2AF49433088E521138F462360.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_FDD7E7C3137C4899A59187CA9492B0A3.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_9D97D799873D4E4081CDC2EEBD14B3A0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_2F8339D9679641C1A803DE1853E2A6D1.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_397DF6B7B78E4550816D8955D337F460.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_91DA54EFC28840FEABBF5DA338B488D4.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_3E8AE71B20504B608003BA08A10F5680.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_11715FC5AC114841AF3D1220A4CE758B.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_2DB5A82F387C4E108EAC0FD1475D0B50.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_84654220105544399AD0129C1F737B1E.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_A607F79C7E34456084632D5CB7715B70.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C81055F1658F46ED9CB32BF57EAACEC4.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_BB78DE9B54074E0083DE3A3AA3263E10.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_218B61C80C5B483994E3AA0A24114B33.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_D04C0731356F46508A893D3926C47A80.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_217FD8E280244CB9AF0853BB7655D636.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_DCE65053FBBE480087A2444B30B52530.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C04055ABBB3B4A18A79C8EFE4536A045.c
checking for the c compiler (cc) ... clang
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_DDB12FF9FC3B4F608590C79E6C7FEAC0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_D0CFC1D403074D9893004F72319FEEF2.c
checking for the c compiler (cc) ... clang
checking for the c compiler (cc) ... clang
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_D3FF6F1DC31C4730882DE3FB95B3B6B0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_1E1B92EFF36C4152BA76FE18AD57EE4F.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_CE206D47275C406084DC6CD5DFF91F80.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_40E9A4DD26504A708E0576634B3F792C.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_DDFCA7ABBE4445208A5857ABD3BA9550.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_4D934ACD359743CC96BDE1547BE6307D.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_103C6D61AF8942408AE71F002F68F3B0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_027E6671FFC1404EA86C920610B23DB9.c
checking for the c compiler (cc) ... clang
checking for the c compiler (cc) ... clang
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_3E2F1CBD3CDC4B508396DEDAF160FF60.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_D7057FC01BC4484286EE7A8490E8EDB7.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_81775F97F23144508C41C33B64813860.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_9315C020459341BF88D4441F8C998C66.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_8DA0C08B699C486084E66AC0E1B974B0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_49A6F85B6DC64869AF0668BFED13D89A.c
checking for the c compiler (cc) ... clang
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_4B7A1A4014F1485084FA35E65E3B8170.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C8264FB7025344DC986991ABFE488883.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -std=c99 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_ACFE00700CEA463089645450A9099670.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_AA0EB580531F437CA371BFA8F15E4F33.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_8F1A7BF1F49946008BBF2FB1A9A69A20.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_EE95C81D64A54D538EA5C885BAE17F77.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_857AA45249354470861EF59836F745E0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_AACC15E0D4B94DBAB5D4BC6D272B3CE8.c
checking for the c compiler (cc) ... clang
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_ABBE39C4B1BA4E508AAED5F4BCCF5260.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C96BF75A73CD4D929A24CA0B8B2CB4E1.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_08A45B7884AF4F00869E7932612C9B40.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_0ECA27C8B189489FA37494915321E7C2.c
checking for the c compiler (cc) ... clang
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_7E46F6F66C2447608AABF13F7994EE60.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_9D06393C5E454377BA9BEE92C665F586.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_FFDE623FBE5040008826715173BF7260.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_2E32ABC9E6E8421790170EC0B724AEDA.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_B7E32E71620748608014940ECDC9DC60.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_7EB4AD38484D4BF7B4308C7CE8235413.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_4796D2BBA10A4B4087798EB6CF5DBAA0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_BD5F166AAC6641EDA5722CAC9944AD95.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_9FA0B25228464960896655522F34EFA0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_76425BF6DD414BC9BA3B4B00B6DDB869.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_884238FCDE8D46708465236C55E851D0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_120D053D8A4F454DB729CE4928404A6E.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_DBB5079B61B84520879A49F80DB8DA70.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_95E670D807864AC7AF9896679AD78064.c
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_66BE25FF07474030834740484C6C1070.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_8C952DDB896C414DA04B03AEBED551E9.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_19C211C2BE13485088CBA22609A11670.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_213FA507D82640639026CF4C2C4D1FE6.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_D9838D6D714A43008B1D8B7D3A63CE20.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_2EE7EEF8C0984FBCB60C7E7062BBD6B4.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strnlen)
checking for libc_strnlen ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_9D06393C5E454377BA9BEE92C665F586.c:6:19: warning: '_InterlockedOr8_acq' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedOr8_acq)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_ACQ)
checking for windows__InterlockedOr8_acq ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcslen)
checking for libc_wcslen ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_2E32ABC9E6E8421790170EC0B724AEDA.c:6:19: warning: '_InterlockedCompareExchange_rel' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedCompareExchange_rel)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_REL)
checking for windows__InterlockedCompareExchange_rel ... ok
> checking for c includes(stdio.h)
> checking for c funcs(fgets)
checking for libc_fgets ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_7EB4AD38484D4BF7B4308C7CE8235413.c:6:19: warning: '_InterlockedExchangeAdd_nf' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchangeAdd_nf)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_NF)
checking for windows__InterlockedExchangeAdd_nf ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
2 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8)
checking for windows__InterlockedOr8 ... ok
> checking for c includes(stdio.h)
> checking for c funcs(fputs)
checking for libc_fputs ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_76425BF6DD414BC9BA3B4B00B6DDB869.c:6:19: warning: '_InterlockedCompareExchange64_nf' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedCompareExchange64_nf)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_NF)
checking for windows__InterlockedCompareExchange64_nf ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(memcpy)
checking for libc_memcpy ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
2 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64)
checking for windows__InterlockedCompareExchange64 ... ok
> checking for c includes(math.h)
> checking for c funcs(acosf)
checking for libm_acosf ... ok
> checking for c includes(math.h)
> checking for c funcs(acos)
checking for libm_acos ... ok
> checking for c includes(stdio.h)
> checking for c funcs(fread)
checking for libc_fread ... ok
> checking for c includes(math.h)
> checking for c funcs(atanf)
checking for libm_atanf ... ok
> checking for c includes(math.h)
> checking for c funcs(atan2f)
checking for libm_atan2f ... ok
> checking for c includes(math.h)
> checking for c funcs(atan)
checking for libm_atan ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(memmove)
checking for libc_memmove ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(memcmp)
checking for libc_memcmp ... ok
> checking for c includes(signal.h, setjmp.h)
> checking for c funcs(signal)
checking for libc_signal ... ok
> checking for c includes(locale.h)
> checking for c funcs(setlocale)
checking for libc_setlocale ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_95E670D807864AC7AF9896679AD78064.c:6:19: warning: '_InterlockedExchangeAdd64_acq' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchangeAdd64_acq)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_ACQ)
checking for windows__InterlockedExchangeAdd64_acq ... ok
> checking for c includes(math.h)
> checking for c funcs(sqrtf)
checking for libm_sqrtf ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_8C952DDB896C414DA04B03AEBED551E9.c:6:19: warning: '_InterlockedExchange8_nf' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchange8_nf)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_NF)
checking for windows__InterlockedExchange8_nf ... ok
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_BC979280B41A4A4085D894434F7B5B60.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_CA3475F3A9934FA8B2535EA0A3A6F7ED.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_04A4058A8EFA46508CD1873F0200ABC0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_A5979AF5C8394D5B8BE0EF3D30063BCA.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_B885C3C9B8D5436082EBB52996887990.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_14E07FDEFB044C6BB47ACEE10021C960.c
> clang -c -Qunused-arguments -m64 -std=c99 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_FE82205C96494C108A18C5778FB4DF80.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_64E7E18CE776477989E0D790937B751C.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_55A3605D43484E408DE5988E5E0F39B0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_E4D8F00BA8D148A69BC6674DF7FD06BB.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C729D9E54FA84D10880B6D55CB375490.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_D0E5F96DD3AB4E9D86B10975235CE9F8.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_5A34D44EBC6C46508E60F83E3B781A50.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_4C590D8D260E424CABD2F588C039DFF9.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_3FDB84564033413087B18023E46BBB40.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_4107745B110741E2AA85FAE9C190B4AF.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_9CDF1162CBF04660801642D643ECE0A0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_F4C824DE2C3643A7BE8D5D845401198E.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C111E756B4294F0085E5E91092F1BA50.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_067BD70DEDB54E05857A9512A122D022.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_371889C3792642108C10A80F80FEF470.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_71FF92B8C36D4E629DF09BCFEDCEFE3A.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_EF3C4C439DC74C708CE56C400710D4D0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_08517E3AB3B54A6D89C81AEBEC86691C.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_10F1741E60EF42008E069F1FE77F3210.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_765AFF0B48824DB0A8E6EB3350E6E3C2.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_BF9A1E9EF52B4E608373BE8E8910D9A0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_F4D0BC22E4204DFBB20CE410AD7902B2.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_82CEA06F3F9B4600871EBC4F7A5F8F20.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_A070192BC6754DC28A6EC9B406440CC9.c
> clang -c -Qunused-arguments -m64 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_1BB117AFACF54C108B4D3A62642A1B40.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_CBE74A28487345B486C44F2A5F52A38D.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C461957CF4E346408B3829D732253270.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_17885FC5CBE548C99CF25C0565AD9503.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_2907A9BA980B4C6088A9362FB01ABAE0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_FB7AED3AED3140DFB5BFB1AC5FE692DA.c
> checking for c includes(stdio.h)
> checking for c funcs(fputc)
checking for libc_fputc ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_213FA507D82640639026CF4C2C4D1FE6.c:6:19: warning: '_InterlockedCompareExchange64_acq' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedCompareExchange64_acq)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_ACQ)
checking for windows__InterlockedCompareExchange64_acq ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_2EE7EEF8C0984FBCB60C7E7062BBD6B4.c:6:19: warning: '_InterlockedOr8_rel' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedOr8_rel)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_REL)
checking for windows__InterlockedOr8_rel ... ok
checking for clang++ ... ok
checking for the linker (ld) ... clang++
> clang++ -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_ACFE00700CEA463089645450A9099670.b C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_ACFE00700CEA463089645450A9099670.o -m64 -lpthread
> checking for c includes(math.h)
> checking for c funcs(tan)
checking for libm_tan ... ok
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
LINK : fatal error LNK1181: cannot open input file 'pthread.lib'
clang++: error: linker command failed with exit code 1181 (use -v to see invocation)
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_11F635EC52014E608A5BF22EB9C9B090.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_D395997C91514BB498DB8C6ABA611781.c
> checking for c includes(math.h)
> checking for c funcs(sqrt)
checking for libm_sqrt ... ok
> clang++ -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_FE82205C96494C108A18C5778FB4DF80.b C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_FE82205C96494C108A18C5778FB4DF80.o -m64 -lpthread
> checking for c includes(math.h)
> checking for c funcs(sin)
checking for libm_sin ... ok
LINK : fatal error LNK1181: cannot open input file 'pthread.lib'
clang++: error: linker command failed with exit code 1181 (use -v to see invocation)
> checking for c includes(math.h)
> checking for c funcs(asin)
checking for libm_asin ... ok
> checking for c includes(math.h)
> checking for c funcs(tanf)
checking for libm_tanf ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcsncmp)
checking for libc_wcsncmp ... ok
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_4B68EABA626C4C608647EFD1153B32C0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_BA53848FBBF0406C97047A2362E2169F.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_D309995932014F20836A29E1D09ABC50.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C8F6E65E5F7241919A6A7D321ABC3E0A.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_35F9DCE1CC8E4D4089F89DE534C429C0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_231DAC3D5C974DA7B20A47B0FE21ACCB.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_257B1B68620F41208546EE75A8228820.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C5312D0B15E5436E94DE06A5F8E18CC7.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C46A77635DC143408B8DF01DB9460970.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_5C114AE0BB69449AA3BF37DCBFAEC881.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_288C3DCEEE4C483085D826B94024A9A0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_BA77FDD635E645C08620A8D7EC627FB6.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_CE7BD265A7C04A008B841B430411F070.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_92BD9F2415084C3D9D36558C20CE4AC0.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_95BAEB013E4945708003D87547A662D0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_405B26E1CC3F4FEE85C4C954E216674F.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_96805E40C3944D00885D736814139240.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_15FF726F5BFE4238961B377DAA12E3C7.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_43D85DB4032542108D47B6E06F311530.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_DC4CB329C5B54BA49B0FB2B6EE33E457.c
> clang -c -Qunused-arguments -m64 -DXM_CONFIG_API_HAVE_CURSES -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_6A0F0DDB7EE44C408B0B788D8C3D1DA0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_5FB43531620541A4926EECBFA003E8D5.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_3755878AFE4F4840884CDDD1C6F0A8A0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_DE2221B2FB5F454381B39F245AA13FCC.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_1FE5F4D47CC74800886E94033FC3C630.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_97E8A18EEDA94E9483D48C4F73C1BF6E.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_B84C10CCED264F408ABBDB8619711D60.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_08FBE6903B4D415BB829DA9DA04A1B12.c
> checking for c includes(math.h)
> checking for c funcs(cos)
checking for libm_cos ... ok
> checking for c includes(math.h)
> checking for c funcs(expf)
checking for libm_expf ... ok
> checking for c includes(stdlib.h)
> checking for c funcs(srandom)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_217FD8E280244CB9AF0853BB7655D636.c:8:39: error: use of undeclared identifier 'srandom'; did you mean 'psrandom'?
    volatile void* psrandom = (void*)&srandom;;
                                      ^~~~~~~
                                      psrandom
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_217FD8E280244CB9AF0853BB7655D636.c:8:20: note: 'psrandom' declared here
    volatile void* psrandom = (void*)&srandom;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_srandom ... no
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcscasecmp)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C04055ABBB3B4A18A79C8EFE4536A045.c:9:42: error: use of undeclared identifier 'wcscasecmp'; did you mean 'pwcscasecmp'?
    volatile void* pwcscasecmp = (void*)&wcscasecmp;;
                                         ^~~~~~~~~~
                                         pwcscasecmp
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C04055ABBB3B4A18A79C8EFE4536A045.c:9:20: note: 'pwcscasecmp' declared here
    volatile void* pwcscasecmp = (void*)&wcscasecmp;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcscasecmp ... no
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_5325C6932BDA43608AEEAA34444EB070.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_E904A04956A544019995FBB89DCF8B9D.c
> clang -c -Qunused-arguments -m64 -std=c99 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_9732D0EEF6D84A40857A486290283B40.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_EB161F944D3B48EE945FA320E4F36C7B.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_8594B78D4D29424089391DCD90B09980.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_EDA7A2AA10B242078F6C905A65AD2220.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_74C9C050FCE54010884A21200E368E80.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_26F6FED279E748388B2C9D8965780EED.c
> checking for c links(pthread)
> checking for c snippet(TB_CONFIG_KEYWORD_HAVE_Thread_local)
checkinfo: ...gramdir\core\sandbox\modules\import\core\tool\linker.lua:75: @programdir\core\sandbox\modules\os.lua:372: execv(clang++ -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_ACFE00700CEA463089645450A9099670.b C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_ACFE00700CEA463089645450A9099670.o -m64 -lpthread) failed(1181)
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\core\sandbox\modules\os.lua:372]: in function 'execv'
    [@programdir\modules\core\tools\gcc.lua:398]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...gramdir\core\sandbox\modules\import\core\tool\linker.lua:73]: in function 'link'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:223]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for keyword_thread_local ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strcasecmp)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C81055F1658F46ED9CB32BF57EAACEC4.c:9:42: error: use of undeclared identifier 'strcasecmp'; did you mean 'pstrcasecmp'?
    volatile void* pstrcasecmp = (void*)&strcasecmp;;
                                         ^~~~~~~~~~
                                         pstrcasecmp
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C81055F1658F46ED9CB32BF57EAACEC4.c:9:20: note: 'pstrcasecmp' declared here
    volatile void* pstrcasecmp = (void*)&strcasecmp;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_strcasecmp ... no
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcsncasecmp)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_9315C020459341BF88D4441F8C998C66.c:9:43: error: use of undeclared identifier 'wcsncasecmp'; did you mean 'pwcsncasecmp'?
    volatile void* pwcsncasecmp = (void*)&wcsncasecmp;;
                                          ^~~~~~~~~~~
                                          pwcsncasecmp
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_9315C020459341BF88D4441F8C998C66.c:9:20: note: 'pwcsncasecmp' declared here
    volatile void* pwcsncasecmp = (void*)&wcsncasecmp;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcsncasecmp ... no
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(mbstowcs)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_91DA54EFC28840FEABBF5DA338B488D4.c:9:40: error: 'mbstowcs' is deprecated: This function or variable may be unsafe. Consider using mbstowcs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pmbstowcs = (void*)&mbstowcs;;
                                       ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdlib.h:924:1: note: 'mbstowcs' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:891:5: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE'
    __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX(_DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2)
    ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:1962:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec size_t __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_mbstowcs ... no
> checking for c links(pthread)
> checking for c snippet(TB_CONFIG_KEYWORD_HAVE__thread)
checkinfo: ...gramdir\core\sandbox\modules\import\core\tool\linker.lua:75: @programdir\core\sandbox\modules\os.lua:372: execv(clang++ -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_FE82205C96494C108A18C5778FB4DF80.b C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_FE82205C96494C108A18C5778FB4DF80.o -m64 -lpthread) failed(1181)
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\core\sandbox\modules\os.lua:372]: in function 'execv'
    [@programdir\modules\core\tools\gcc.lua:398]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...gramdir\core\sandbox\modules\import\core\tool\linker.lua:73]: in function 'link'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:223]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for keyword_thread ... no
> checking for c includes(time.h)
> checking for c funcs(mktime)
checking for libc_mktime ... ok
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_D1C84FE2E34C4A108ED40C52886F3860.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_6FC0AF22D3784AFD9C67AB317CF662CB.c
> clang -c -Qunused-arguments -m64 -DXM_CONFIG_API_HAVE_READLINE -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_F5DC1CBEEF0B4D408C4ADCC6F2062E80.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_2AA3EA6E441547A4AA66B416BFCE638C.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_49A0D663B88F4C108BA5CC938D412540.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_037B6F8E825640C9B64087A6B02E0353.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_82A29E6994BF4640896E4F4586C9A780.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_A2E91B842ED247FF9A2B9929FB438B0E.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_7E7805F9613744208BE4AF7BFD872070.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_BC80AFFCC4954CE195A13FF4FF15EA1F.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C072BC454E714D40819B6CC86F756F40.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_9CD032C2CC9A4116A9F493D18291D116.c
> checking for c includes(math.h)
> checking for c funcs(sincosf)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_1E1B92EFF36C4152BA76FE18AD57EE4F.c:8:39: error: use of undeclared identifier 'sincosf'; did you mean 'psincosf'?
    volatile void* psincosf = (void*)&sincosf;;
                                      ^~~~~~~
                                      psincosf
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_1E1B92EFF36C4152BA76FE18AD57EE4F.c:8:20: note: 'psincosf' declared here
    volatile void* psincosf = (void*)&sincosf;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libm_sincosf ... no
> checking for c snippet(TB_CONFIG_FEATURE_HAVE_ANONYMOUS_UNION)
checking for feature_anonymous_union ... ok
> checking for c includes(math.h)
> checking for c funcs(fmodf)
checking for libm_fmodf ... ok
> checking for c includes(time.h)
> checking for c funcs(localtime)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_4107745B110741E2AA85FAE9C190B4AF.c:8:41: error: 'localtime' is deprecated: This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* plocaltime = (void*)&localtime;;
                                        ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\time.h:494:9: note: 'localtime' has been explicitly marked deprecated here
        _CRT_INSECURE_DEPRECATE(localtime_s)
        ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_localtime ... no
> checking for c includes(math.h)
> checking for c funcs(sincos)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_E4D8F00BA8D148A69BC6674DF7FD06BB.c:8:38: error: use of undeclared identifier 'sincos'; did you mean 'psincos'?
    volatile void* psincos = (void*)&sincos;;
                                     ^~~~~~
                                     psincos
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_E4D8F00BA8D148A69BC6674DF7FD06BB.c:8:20: note: 'psincos' declared here
    volatile void* psincos = (void*)&sincos;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libm_sincos ... no
> checking for c includes(curses.h)
> checking for c links(curses)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_5FB43531620541A4926EECBFA003E8D5.c:2:10: fatal error: 'curses.h' file not found
#include <curses.h>
         ^~~~~~~~~~
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for curses ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strncat)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_A5979AF5C8394D5B8BE0EF3D30063BCA.c:9:39: error: 'strncat' is deprecated: This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pstrncat = (void*)&strncat;;
                                      ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\string.h:262:1: note: 'strncat' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:1935:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_strncat ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strcat)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_4C590D8D260E424CABD2F588C039DFF9.c:9:38: error: 'strcat' is deprecated: This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pstrcat = (void*)&strcat;;
                                     ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\string.h:91:5: note: 'strcat' has been explicitly marked deprecated here
    __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1(
    ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:835:5: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1'
    __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1)
    ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:1894:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_strcat ... no
> checking for c types(wchar_t)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_CBE74A28487345B486C44F2A5F52A38D.c:3:9: error: unknown type name 'wchar_t'
typedef wchar_t __type_wchar_t;
        ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for wchar ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strncpy)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_067BD70DEDB54E05857A9512A122D022.c:9:39: error: 'strncpy' is deprecated: This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pstrncpy = (void*)&strncpy;;
                                      ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\string.h:334:1: note: 'strncpy' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:1935:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_strncpy ... no
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_D395997C91514BB498DB8C6ABA611781.c:6:19: warning: '_InterlockedCompareExchange_nf' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedCompareExchange_nf)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_NF)
checking for windows__InterlockedCompareExchange_nf ... ok
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_31A8DCF683394B1089ABC5C2722C7A70.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_A59D0667E3C44E94958F63FA57AB4EDA.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_DD4DA52F91DA45308CDBBE4D83C66A40.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_73EDD960586C4FFE9A172935143B1A84.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_2DBF35DAEB3D4F7086FDFAC7398732F0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_628869C0DE4548C3ACF6E1250D63AB3C.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_ACA0A73AB0374B3086D13243AF253BB0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_2E5A3C9383D3482994C5E92B184A36C9.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C1B5FE1BBD7B46208C05BDB24DC87F20.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_55EC3557F4F8477C93B812A8AB1BC58A.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_40229F01C87345508CB9232DD4C09660.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_ABE3866E678E4DE9A86C22AF62F86771.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_F9212987CE644D508F2089A6F2F3A560.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_50B513CA0E434A7EB5FBE55484A939A3.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_14BE612A2E1B432089164910FED82290.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_FA3BFA851F044D69AAD8516819237000.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_A2B7D4F528584C70898B611CC056A1F0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_3428C9825F3948848D9BD0151352F09D.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_FED42F450A004C50893649AFE70A04C0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_BAA773396073484B8AA1449516D7C81D.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_397E7FC7648E4A008290BF0D6CFDBC70.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_D5169B9B52D64907A7393335EC1CA128.c
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strcasestr)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_765AFF0B48824DB0A8E6EB3350E6E3C2.c:9:42: error: use of undeclared identifier 'strcasestr'; did you mean 'pstrcasestr'?
    volatile void* pstrcasestr = (void*)&strcasestr;;
                                         ^~~~~~~~~~
                                         pstrcasestr
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_765AFF0B48824DB0A8E6EB3350E6E3C2.c:9:20: note: 'pstrcasestr' declared here
    volatile void* pstrcasestr = (void*)&strcasestr;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_strcasestr ... no
> checking for c includes(math.h)
> checking for c funcs(exp)
checking for libm_exp ... ok
> checking for c includes(stdio.h)
> checking for c funcs(fgetc)
checking for libc_fgetc ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_BA53848FBBF0406C97047A2362E2169F.c:6:19: warning: '_InterlockedExchange_acq' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchange_acq)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_ACQ)
checking for windows__InterlockedExchange_acq ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_231DAC3D5C974DA7B20A47B0FE21ACCB.c:6:19: warning: '_InterlockedExchange_nf' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchange_nf)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_NF)
checking for windows__InterlockedExchange_nf ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_BA77FDD635E645C08620A8D7EC627FB6.c:6:19: warning: '_InterlockedExchangeAdd64_nf' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchangeAdd64_nf)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_NF)
checking for windows__InterlockedExchangeAdd64_nf ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
2 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE)
checking for windows__InterlockedExchange ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C8F6E65E5F7241919A6A7D321ABC3E0A.c:6:19: warning: '_InterlockedCompareExchange_acq' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedCompareExchange_acq)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_ACQ)
checking for windows__InterlockedCompareExchange_acq ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcscasestr)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_F4D0BC22E4204DFBB20CE410AD7902B2.c:9:42: error: use of undeclared identifier 'wcscasestr'; did you mean 'pwcscasestr'?
    volatile void* pwcscasestr = (void*)&wcscasestr;;
                                         ^~~~~~~~~~
                                         pwcscasestr
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_F4D0BC22E4204DFBB20CE410AD7902B2.c:9:20: note: 'pwcscasestr' declared here
    volatile void* pwcscasestr = (void*)&wcscasestr;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcscasestr ... no
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcslcpy)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_A070192BC6754DC28A6EC9B406440CC9.c:9:39: error: use of undeclared identifier 'wcslcpy'
    volatile void* pwcslcpy = (void*)&wcslcpy;;
                                      ^
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_A070192BC6754DC28A6EC9B406440CC9.c:9:39: error: 'wcsncpy' is deprecated: This function or variable may be unsafe. Consider using wcsncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_wstring.h:200:1: note: 'wcsncpy' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:1935:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
2 errors generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcslcpy ... no
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
2 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8)
checking for windows__InterlockedExchange8 ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_92BD9F2415084C3D9D36558C20CE4AC0.c:6:19: warning: '_InterlockedExchange8_rel' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchange8_rel)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_REL)
checking for windows__InterlockedExchange8_rel ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_15FF726F5BFE4238961B377DAA12E3C7.c:6:19: warning: '_InterlockedOr8_nf' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedOr8_nf)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_NF)
checking for windows__InterlockedOr8_nf ... ok
> checking for c includes(signal.h, setjmp.h)
> checking for c funcs(sigsetjmp)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_08FBE6903B4D415BB829DA9DA04A1B12.c:9:5: error: unknown type name 'sigjmp_buf'; did you mean 'jmp_buf'?
    sigjmp_buf buf; sigsetjmp(buf, 0);;
    ^~~~~~~~~~
    jmp_buf
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\setjmp.h:148:21: note: 'jmp_buf' declared here
    typedef _JBTYPE jmp_buf[_JBLEN];
                    ^
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_08FBE6903B4D415BB829DA9DA04A1B12.c:9:21: error: call to undeclared function 'sigsetjmp'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
    sigjmp_buf buf; sigsetjmp(buf, 0);;
                    ^
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_08FBE6903B4D415BB829DA9DA04A1B12.c:9:21: note: did you mean '_setjmp'?
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\setjmp.h:160:13: note: '_setjmp' declared here
int __cdecl setjmp(
            ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\setjmp.h:154:20: note: expanded from macro 'setjmp'
    #define setjmp _setjmp
                   ^
2 errors generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_sigsetjmp ... no
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
2 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD)
checking for windows__InterlockedExchangeAdd ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcscat)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_405B26E1CC3F4FEE85C4C954E216674F.c:9:38: error: 'wcscat' is deprecated: This function or variable may be unsafe. Consider using wcscat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pwcscat = (void*)&wcscat;;
                                     ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_wstring.h:100:5: note: 'wcscat' has been explicitly marked deprecated here
    __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1(
    ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:835:5: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1'
    __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1)
    ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:1894:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcscat ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strlcpy)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_97E8A18EEDA94E9483D48C4F73C1BF6E.c:9:39: error: use of undeclared identifier 'strlcpy'
    volatile void* pstrlcpy = (void*)&strlcpy;;
                                      ^
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_97E8A18EEDA94E9483D48C4F73C1BF6E.c:9:39: error: 'strncpy' is deprecated: This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\string.h:334:1: note: 'strncpy' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:1935:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
2 errors generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_strlcpy ... no
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_7891F98F57FE42108A22978906EAAE80.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_34C344B2B4CB42C8B4825AC3E14B0064.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_61852C5B51A4444081EDBA513479E840.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_11CA091CAD1642EEB04332452CB6BF7B.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_A35087BBB63F4E308FBEA70FC89A7AB0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_B39376EC0ADF4EA5A7066C3BE02D6C12.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_A4AE858CF3544E608D2A13C76AB0DE70.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C86331682E424259AE17ABBEFBDB695C.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_0E9B3FFAF94D4E4082668DA11D270AC0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_4CFF4EE286534852A005E00795C6D6B7.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_3C4EA8C84E644730899A5E2E7625D850.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_72430FD136B24B2298C37234B072F43E.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_84EEA60560054D20807755A2DAB07B60.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_18E931E980D64B2C8EE6157D6F7D8CBC.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_8C1BFDF90DAA4830872D2713012F57B0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_FC518BCBB96A4EDCA0D1B0E287DD70B1.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_32ACA71E19A146208D211E273FF4D750.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C58989525E444E37A2670DE3E5BAE933.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_FF42DBBC0D394F308A3D1095B485DA90.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_9962E886F1B04E5DAC1AE52C1A3AA6A0.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_784C3463358E4C508DC403D8A1B21690.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_177788B3934E4F57B81E9979C917F6E7.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_F2C3DFE7492446608E058FE3CDCFF6A0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_FAD82F9CF9E743CEB05AA04E96006C6E.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_E5AF15852C8C4F30877F1E28DDCEC470.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_B45B611B26024717B7357F3BC42701EC.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_763F8322CB014970897D58D5EA884380.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_9669D8F683C6400F9BE3C24BC75955E4.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_EF0FB6ABD63E4B408316C6D8CBFAFF70.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_4E9F112D0B96448194AB269E0A9E8DE6.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_AD0137DC3558464088E05E6C95B44C90.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_72366670DD8D433683C0E57A1E141799.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_1958F4F9286F45608A1A17B6C1929C60.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_B0CD58A9A6C144F19CAA87F1B2606BB6.c
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strcmp)
checking for libc_strcmp ... ok
> checking for c includes(math.h)
> checking for c funcs(log2)
checking for libm_log2 ... ok
> checking for c includes(math.h)
> checking for c funcs(cosf)
checking for libm_cosf ... ok
> checking for c includes(math.h)
> checking for c funcs(powf)
checking for libm_powf ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_EDA7A2AA10B242078F6C905A65AD2220.c:6:19: warning: '_InterlockedExchangeAdd_rel' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchangeAdd_rel)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_REL)
checking for windows__InterlockedExchangeAdd_rel ... ok
> checking for c includes(readline/readline.h)
> checking for c funcs(readline)
> checking for c links(readline)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_2AA3EA6E441547A4AA66B416BFCE638C.c:2:10: fatal error: 'readline/readline.h' file not found
#include <readline/readline.h>
         ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for readline ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(memset)
checking for libc_memset ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcsstr)
checking for libc_wcsstr ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
2 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64)
checking for windows__InterlockedExchangeAdd64 ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_037B6F8E825640C9B64087A6B02E0353.c:6:19: warning: '_InterlockedCompareExchange64_rel' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedCompareExchange64_rel)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_REL)
checking for windows__InterlockedCompareExchange64_rel ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcscpy)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_26F6FED279E748388B2C9D8965780EED.c:9:38: error: 'wcscpy' is deprecated: This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pwcscpy = (void*)&wcscpy;;
                                     ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_wstring.h:119:1: note: 'wcscpy' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:835:5: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1'
    __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1)
    ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:1894:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcscpy ... no
> checking for c includes(math.h)
> checking for c funcs(atan2)
checking for libm_atan2 ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strlen)
checking for libc_strlen ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcscmp)
checking for libc_wcscmp ... ok
> checking for c includes(math.h)
> checking for c funcs(fmod)
checking for libm_fmod ... ok
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C365854488A74C608EA4142E50D2F3C0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_1774ED763C0441148BE63413AD34DFB4.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_0865BC4519304A00846C7A9F314AC620.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_574D491843094989B87F6A4F9E1C5FF9.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_3312DBF4BC92465086757F0384E53360.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_9A84172259184BED87C5FD3E8CC59A7C.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_7F02A9F378D745008780B18E0D78F260.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_892A629365714E12B210672E20CC77E1.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_14A8F7DD9354477088D69C6B7BB28E80.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_92E97B14B38643C1AB41E3740AC15E8E.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_6FC639D6B7C94C60856BF5128A27F1C0.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_D58F757BBEC643C0884E2DA4FD6BB2EB.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_355FD53FA7D642708343779F7A69DA80.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_33348E3A796A46D79BDBC3DC18B2A564.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_E4B48E7283524C70853717D82D9ED280.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_4E10342AF9EE49CCA96871C36B01ABDC.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_1D0D8833141C42308B0984FD3055CC60.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_6DFA479004E04E94B1744F9446C06442.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_02073A82180042508AC1AC43A2376190.o C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_CF2E5B717B984956909FF8218C47E9AD.c
> checking for c includes(math.h)
> checking for c funcs(asinf)
checking for libm_asinf ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcsnlen)
checking for libc_wcsnlen ... ok
> checking for c includes(math.h)
> checking for c funcs(log2f)
checking for libm_log2f ... ok
> checking for c includes(math.h)
> checking for c funcs(pow)
checking for libm_pow ... ok
> checking for c includes(stdio.h)
> checking for c funcs(ungetc)
checking for libc_ungetc ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strchr)
checking for libc_strchr ... ok
> checking for c includes(stdio.h)
> checking for c funcs(fwrite)
checking for libc_fwrite ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_628869C0DE4548C3ACF6E1250D63AB3C.c:6:19: warning: '_InterlockedExchangeAdd_acq' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchangeAdd_acq)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_ACQ)
checking for windows__InterlockedExchangeAdd_acq ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_D5169B9B52D64907A7393335EC1CA128.c:6:19: warning: '_InterlockedExchange8_acq' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchange8_acq)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_ACQ)
checking for windows__InterlockedExchange8_acq ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcstombs)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_A2E91B842ED247FF9A2B9929FB438B0E.c:9:40: error: 'wcstombs' is deprecated: This function or variable may be unsafe. Consider using wcstombs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pwcstombs = (void*)&wcstombs;;
                                       ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdlib.h:1012:1: note: 'wcstombs' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:891:5: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE'
    __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX(_DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2)
    ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:1962:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec size_t __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcstombs ... no
> checking for c includes(time.h)
> checking for c funcs(gmtime)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_2E5A3C9383D3482994C5E92B184A36C9.c:8:38: error: 'gmtime' is deprecated: This function or variable may be unsafe. Consider using gmtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pgmtime = (void*)&gmtime;;
                                     ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\time.h:487:24: note: 'gmtime' has been explicitly marked deprecated here
        _Check_return_ _CRT_INSECURE_DEPRECATE(gmtime_s)
                       ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_gmtime ... no
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_11CA091CAD1642EEB04332452CB6BF7B.c:6:19: warning: '_InterlockedExchange_rel' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchange_rel)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_REL)
checking for windows__InterlockedExchange_rel ... ok
> checking for c includes(signal.h, setjmp.h)
> checking for c funcs(setjmp)
checking for libc_setjmp ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
2 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE)
checking for windows__InterlockedCompareExchange ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strncmp)
checking for libc_strncmp ... ok
> checking for c includes(math.h)
> checking for c funcs(sinf)
checking for libm_sinf ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strrchr)
checking for libc_strrchr ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strstr)
checking for libc_strstr ... ok
> checking for c includes(valgrind/valgrind.h)
> checking for c funcs(VALGRIND_STACK_REGISTER)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_B0CD58A9A6C144F19CAA87F1B2606BB6.c:2:10: fatal error: 'valgrind/valgrind.h' file not found
#include <valgrind/valgrind.h>
         ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for valgrind_VALGRIND_STACK_REGISTER ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strncasecmp)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_BAA773396073484B8AA1449516D7C81D.c:9:43: error: use of undeclared identifier 'strncasecmp'; did you mean 'pstrncasecmp'?
    volatile void* pstrncasecmp = (void*)&strncasecmp;;
                                          ^~~~~~~~~~~
                                          pstrncasecmp
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_BAA773396073484B8AA1449516D7C81D.c:9:20: note: 'pstrncasecmp' declared here
    volatile void* pstrncasecmp = (void*)&strncasecmp;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_strncasecmp ... no
> checking for c includes(signal.h, setjmp.h)
> checking for c funcs(kill)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_FC518BCBB96A4EDCA0D1B0E287DD70B1.c:9:36: error: use of undeclared identifier 'kill'; did you mean 'pkill'?
    volatile void* pkill = (void*)&kill;;
                                   ^~~~
                                   pkill
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_FC518BCBB96A4EDCA0D1B0E287DD70B1.c:9:20: note: 'pkill' declared here
    volatile void* pkill = (void*)&kill;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_kill ... no
> checking for c includes(execinfo.h)
> checking for c funcs(backtrace)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_1774ED763C0441148BE63413AD34DFB4.c:2:10: fatal error: 'execinfo.h' file not found
#include <execinfo.h>
         ^~~~~~~~~~~~
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_backtrace ... no
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcsncat)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_A59D0667E3C44E94958F63FA57AB4EDA.c:9:39: error: 'wcsncat' is deprecated: This function or variable may be unsafe. Consider using wcsncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pwcsncat = (void*)&wcsncat;;
                                      ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_wstring.h:178:1: note: 'wcsncat' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:1935:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcsncat ... no
> checking for c includes(sys/time.h)
> checking for c funcs(gettimeofday)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_574D491843094989B87F6A4F9E1C5FF9.c:2:10: fatal error: 'sys/time.h' file not found
#include <sys/time.h>
         ^~~~~~~~~~~~
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_gettimeofday ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strcpy)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_C86331682E424259AE17ABBEFBDB695C.c:9:38: error: 'strcpy' is deprecated: This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pstrcpy = (void*)&strcpy;;
                                     ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\string.h:130:1: note: 'strcpy' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:835:5: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1'
    __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1)
    ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:1894:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_strcpy ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(memmem)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_72430FD136B24B2298C37234B072F43E.c:9:38: error: use of undeclared identifier 'memmem'; did you mean 'pmemmem'?
    volatile void* pmemmem = (void*)&memmem;;
                                     ^~~~~~
                                     pmemmem
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_72430FD136B24B2298C37234B072F43E.c:9:20: note: 'pmemmem' declared here
    volatile void* pmemmem = (void*)&memmem;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_memmem ... no
> checking for c includes(stdlib.h)
> checking for c funcs(random)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_892A629365714E12B210672E20CC77E1.c:8:38: error: use of undeclared identifier 'random'; did you mean 'prandom'?
    volatile void* prandom = (void*)&random;;
                                     ^~~~~~
                                     prandom
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_892A629365714E12B210672E20CC77E1.c:8:20: note: 'prandom' declared here
    volatile void* prandom = (void*)&random;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_random ... no
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_9A84172259184BED87C5FD3E8CC59A7C.c:6:19: warning: '_InterlockedExchangeAdd64_rel' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchangeAdd64_rel)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_REL)
checking for windows__InterlockedExchangeAdd64_rel ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcsncpy)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\221230\_33348E3A796A46D79BDBC3DC18B2A564.c:9:39: error: 'wcsncpy' is deprecated: This function or variable may be unsafe. Consider using wcsncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pwcsncpy = (void*)&wcsncpy;;
                                      ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_wstring.h:200:1: note: 'wcsncpy' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h:1935:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcsncpy ... no
generating src\tbox\tbox\src\tbox\tbox.config.h.in to build\windows\x64\release\tbox.config.h ..
checking for git ... ok
  > replace VERSION -> 1.7.1
  > replace VERSION_MAJOR -> 1
  > replace VERSION_MINOR -> 7
  > replace VERSION_ALTER -> 1
  > replace VERSION_BUILD -> 202212300849
  > replace OS -> WINDOWS
  > replace _GNU_SOURCE -> #define _GNU_SOURCE 1
  > replace _REENTRANT -> #define _REENTRANT 1
  > replace TB_CONFIG_SMALL -> #define TB_CONFIG_SMALL 1
  > replace TB_CONFIG_MICRO_ENABLE -> /* #undef TB_CONFIG_MICRO_ENABLE */
  > replace TB_CONFIG_TYPE_HAVE_WCHAR -> /* #undef TB_CONFIG_TYPE_HAVE_WCHAR */
  > replace TB_CONFIG_TYPE_HAVE_FLOAT -> #define TB_CONFIG_TYPE_HAVE_FLOAT 1
  > replace TB_CONFIG_FORCE_UTF8 -> #define TB_CONFIG_FORCE_UTF8 1
  > replace TB_CONFIG_API_HAVE_DEPRECATED -> /* #undef TB_CONFIG_API_HAVE_DEPRECATED */
  > replace TB_CONFIG_EXCEPTION_ENABLE -> /* #undef TB_CONFIG_EXCEPTION_ENABLE */
  > replace TB_CONFIG_KEYWORD_HAVE__thread -> /* #undef TB_CONFIG_KEYWORD_HAVE__thread */
  > replace TB_CONFIG_KEYWORD_HAVE_Thread_local -> /* #undef TB_CONFIG_KEYWORD_HAVE_Thread_local */
  > replace TB_CONFIG_FEATURE_HAVE_ANONYMOUS_UNION -> #define TB_CONFIG_FEATURE_HAVE_ANONYMOUS_UNION 1
  > replace TB_CONFIG_MODULE_HAVE_XML -> /* #undef TB_CONFIG_MODULE_HAVE_XML */
  > replace TB_CONFIG_MODULE_HAVE_ZIP -> /* #undef TB_CONFIG_MODULE_HAVE_ZIP */
  > replace TB_CONFIG_MODULE_HAVE_HASH -> #define TB_CONFIG_MODULE_HAVE_HASH 1
  > replace TB_CONFIG_MODULE_HAVE_REGEX -> /* #undef TB_CONFIG_MODULE_HAVE_REGEX */
  > replace TB_CONFIG_MODULE_HAVE_OBJECT -> /* #undef TB_CONFIG_MODULE_HAVE_OBJECT */
  > replace TB_CONFIG_MODULE_HAVE_CHARSET -> #define TB_CONFIG_MODULE_HAVE_CHARSET 1
  > replace TB_CONFIG_MODULE_HAVE_DATABASE -> /* #undef TB_CONFIG_MODULE_HAVE_DATABASE */
  > replace TB_CONFIG_MODULE_HAVE_COROUTINE -> /* #undef TB_CONFIG_MODULE_HAVE_COROUTINE */
  > replace TB_CONFIG_PACKAGE_HAVE_ZLIB -> /* #undef TB_CONFIG_PACKAGE_HAVE_ZLIB */
  > replace TB_CONFIG_PACKAGE_HAVE_MYSQL -> /* #undef TB_CONFIG_PACKAGE_HAVE_MYSQL */
  > replace TB_CONFIG_PACKAGE_HAVE_SQLITE3 -> /* #undef TB_CONFIG_PACKAGE_HAVE_SQLITE3 */
  > replace TB_CONFIG_PACKAGE_HAVE_OPENSSL -> /* #undef TB_CONFIG_PACKAGE_HAVE_OPENSSL */
  > replace TB_CONFIG_PACKAGE_HAVE_POLARSSL -> /* #undef TB_CONFIG_PACKAGE_HAVE_POLARSSL */
  > replace TB_CONFIG_PACKAGE_HAVE_MBEDTLS -> /* #undef TB_CONFIG_PACKAGE_HAVE_MBEDTLS */
  > replace TB_CONFIG_PACKAGE_HAVE_PCRE2 -> /* #undef TB_CONFIG_PACKAGE_HAVE_PCRE2 */
  > replace TB_CONFIG_PACKAGE_HAVE_PCRE -> /* #undef TB_CONFIG_PACKAGE_HAVE_PCRE */
  > replace TB_CONFIG_LIBC_HAVE_MEMCPY -> #define TB_CONFIG_LIBC_HAVE_MEMCPY 1
  > replace TB_CONFIG_LIBC_HAVE_MEMSET -> #define TB_CONFIG_LIBC_HAVE_MEMSET 1
  > replace TB_CONFIG_LIBC_HAVE_MEMMOVE -> #define TB_CONFIG_LIBC_HAVE_MEMMOVE 1
  > replace TB_CONFIG_LIBC_HAVE_MEMCMP -> #define TB_CONFIG_LIBC_HAVE_MEMCMP 1
  > replace TB_CONFIG_LIBC_HAVE_MEMMEM -> /* #undef TB_CONFIG_LIBC_HAVE_MEMMEM */
  > replace TB_CONFIG_LIBC_HAVE_STRCAT -> /* #undef TB_CONFIG_LIBC_HAVE_STRCAT */
  > replace TB_CONFIG_LIBC_HAVE_STRNCAT -> /* #undef TB_CONFIG_LIBC_HAVE_STRNCAT */
  > replace TB_CONFIG_LIBC_HAVE_STRCPY -> /* #undef TB_CONFIG_LIBC_HAVE_STRCPY */
  > replace TB_CONFIG_LIBC_HAVE_STRNCPY -> /* #undef TB_CONFIG_LIBC_HAVE_STRNCPY */
  > replace TB_CONFIG_LIBC_HAVE_STRLCPY -> /* #undef TB_CONFIG_LIBC_HAVE_STRLCPY */
  > replace TB_CONFIG_LIBC_HAVE_STRLEN -> #define TB_CONFIG_LIBC_HAVE_STRLEN 1
  > replace TB_CONFIG_LIBC_HAVE_STRNLEN -> #define TB_CONFIG_LIBC_HAVE_STRNLEN 1
  > replace TB_CONFIG_LIBC_HAVE_STRCHR -> #define TB_CONFIG_LIBC_HAVE_STRCHR 1
  > replace TB_CONFIG_LIBC_HAVE_STRRCHR -> #define TB_CONFIG_LIBC_HAVE_STRRCHR 1
  > replace TB_CONFIG_LIBC_HAVE_STRSTR -> #define TB_CONFIG_LIBC_HAVE_STRSTR 1
  > replace TB_CONFIG_LIBC_HAVE_STRCASESTR -> /* #undef TB_CONFIG_LIBC_HAVE_STRCASESTR */
  > replace TB_CONFIG_LIBC_HAVE_STRCMP -> #define TB_CONFIG_LIBC_HAVE_STRCMP 1
  > replace TB_CONFIG_LIBC_HAVE_STRCASECMP -> /* #undef TB_CONFIG_LIBC_HAVE_STRCASECMP */
  > replace TB_CONFIG_LIBC_HAVE_STRNCMP -> #define TB_CONFIG_LIBC_HAVE_STRNCMP 1
  > replace TB_CONFIG_LIBC_HAVE_STRNCASECMP -> /* #undef TB_CONFIG_LIBC_HAVE_STRNCASECMP */
  > replace TB_CONFIG_LIBC_HAVE_WCSCAT -> /* #undef TB_CONFIG_LIBC_HAVE_WCSCAT */
  > replace TB_CONFIG_LIBC_HAVE_WCSNCAT -> /* #undef TB_CONFIG_LIBC_HAVE_WCSNCAT */
  > replace TB_CONFIG_LIBC_HAVE_WCSCPY -> /* #undef TB_CONFIG_LIBC_HAVE_WCSCPY */
  > replace TB_CONFIG_LIBC_HAVE_WCSNCPY -> /* #undef TB_CONFIG_LIBC_HAVE_WCSNCPY */
  > replace TB_CONFIG_LIBC_HAVE_WCSLCPY -> /* #undef TB_CONFIG_LIBC_HAVE_WCSLCPY */
  > replace TB_CONFIG_LIBC_HAVE_WCSLEN -> #define TB_CONFIG_LIBC_HAVE_WCSLEN 1
  > replace TB_CONFIG_LIBC_HAVE_WCSNLEN -> #define TB_CONFIG_LIBC_HAVE_WCSNLEN 1
  > replace TB_CONFIG_LIBC_HAVE_WCSSTR -> #define TB_CONFIG_LIBC_HAVE_WCSSTR 1
  > replace TB_CONFIG_LIBC_HAVE_WCSCASESTR -> /* #undef TB_CONFIG_LIBC_HAVE_WCSCASESTR */
  > replace TB_CONFIG_LIBC_HAVE_WCSCMP -> #define TB_CONFIG_LIBC_HAVE_WCSCMP 1
  > replace TB_CONFIG_LIBC_HAVE_WCSCASECMP -> /* #undef TB_CONFIG_LIBC_HAVE_WCSCASECMP */
  > replace TB_CONFIG_LIBC_HAVE_WCSNCMP -> #define TB_CONFIG_LIBC_HAVE_WCSNCMP 1
  > replace TB_CONFIG_LIBC_HAVE_WCSNCASECMP -> /* #undef TB_CONFIG_LIBC_HAVE_WCSNCASECMP */
  > replace TB_CONFIG_LIBC_HAVE_WCSTOMBS -> /* #undef TB_CONFIG_LIBC_HAVE_WCSTOMBS */
  > replace TB_CONFIG_LIBC_HAVE_MBSTOWCS -> /* #undef TB_CONFIG_LIBC_HAVE_MBSTOWCS */
  > replace TB_CONFIG_LIBC_HAVE_GMTIME -> /* #undef TB_CONFIG_LIBC_HAVE_GMTIME */
  > replace TB_CONFIG_LIBC_HAVE_MKTIME -> #define TB_CONFIG_LIBC_HAVE_MKTIME 1
  > replace TB_CONFIG_LIBC_HAVE_LOCALTIME -> /* #undef TB_CONFIG_LIBC_HAVE_LOCALTIME */
  > replace TB_CONFIG_LIBC_HAVE_GETTIMEOFDAY -> /* #undef TB_CONFIG_LIBC_HAVE_GETTIMEOFDAY */
  > replace TB_CONFIG_LIBC_HAVE_SIGNAL -> #define TB_CONFIG_LIBC_HAVE_SIGNAL 1
  > replace TB_CONFIG_LIBC_HAVE_SETJMP -> #define TB_CONFIG_LIBC_HAVE_SETJMP 1
  > replace TB_CONFIG_LIBC_HAVE_SIGSETJMP -> /* #undef TB_CONFIG_LIBC_HAVE_SIGSETJMP */
  > replace TB_CONFIG_LIBC_HAVE_KILL -> /* #undef TB_CONFIG_LIBC_HAVE_KILL */
  > replace TB_CONFIG_LIBC_HAVE_BACKTRACE -> /* #undef TB_CONFIG_LIBC_HAVE_BACKTRACE */
  > replace TB_CONFIG_LIBC_HAVE_SETLOCALE -> #define TB_CONFIG_LIBC_HAVE_SETLOCALE 1
  > replace TB_CONFIG_LIBC_HAVE_FPUTC -> #define TB_CONFIG_LIBC_HAVE_FPUTC 1
  > replace TB_CONFIG_LIBC_HAVE_FGETC -> #define TB_CONFIG_LIBC_HAVE_FGETC 1
  > replace TB_CONFIG_LIBC_HAVE_UNGETC -> #define TB_CONFIG_LIBC_HAVE_UNGETC 1
  > replace TB_CONFIG_LIBC_HAVE_FPUTS -> #define TB_CONFIG_LIBC_HAVE_FPUTS 1
  > replace TB_CONFIG_LIBC_HAVE_FGETS -> #define TB_CONFIG_LIBC_HAVE_FGETS 1
  > replace TB_CONFIG_LIBC_HAVE_FREAD -> #define TB_CONFIG_LIBC_HAVE_FREAD 1
  > replace TB_CONFIG_LIBC_HAVE_FWRITE -> #define TB_CONFIG_LIBC_HAVE_FWRITE 1
  > replace TB_CONFIG_LIBC_HAVE_SRANDOM -> /* #undef TB_CONFIG_LIBC_HAVE_SRANDOM */
  > replace TB_CONFIG_LIBC_HAVE_RANDOM -> /* #undef TB_CONFIG_LIBC_HAVE_RANDOM */
  > replace TB_CONFIG_LIBM_HAVE_SINCOS -> /* #undef TB_CONFIG_LIBM_HAVE_SINCOS */
  > replace TB_CONFIG_LIBM_HAVE_SINCOSF -> /* #undef TB_CONFIG_LIBM_HAVE_SINCOSF */
  > replace TB_CONFIG_LIBM_HAVE_LOG2 -> #define TB_CONFIG_LIBM_HAVE_LOG2 1
  > replace TB_CONFIG_LIBM_HAVE_LOG2F -> #define TB_CONFIG_LIBM_HAVE_LOG2F 1
  > replace TB_CONFIG_LIBM_HAVE_SQRT -> #define TB_CONFIG_LIBM_HAVE_SQRT 1
  > replace TB_CONFIG_LIBM_HAVE_SQRTF -> #define TB_CONFIG_LIBM_HAVE_SQRTF 1
  > replace TB_CONFIG_LIBM_HAVE_ACOS -> #define TB_CONFIG_LIBM_HAVE_ACOS 1
  > replace TB_CONFIG_LIBM_HAVE_ACOSF -> #define TB_CONFIG_LIBM_HAVE_ACOSF 1
  > replace TB_CONFIG_LIBM_HAVE_ASIN -> #define TB_CONFIG_LIBM_HAVE_ASIN 1
  > replace TB_CONFIG_LIBM_HAVE_ASINF -> #define TB_CONFIG_LIBM_HAVE_ASINF 1
  > replace TB_CONFIG_LIBM_HAVE_POW -> #define TB_CONFIG_LIBM_HAVE_POW 1
  > replace TB_CONFIG_LIBM_HAVE_POWF -> #define TB_CONFIG_LIBM_HAVE_POWF 1
  > replace TB_CONFIG_LIBM_HAVE_FMOD -> #define TB_CONFIG_LIBM_HAVE_FMOD 1
  > replace TB_CONFIG_LIBM_HAVE_FMODF -> #define TB_CONFIG_LIBM_HAVE_FMODF 1
  > replace TB_CONFIG_LIBM_HAVE_TAN -> #define TB_CONFIG_LIBM_HAVE_TAN 1
  > replace TB_CONFIG_LIBM_HAVE_TANF -> #define TB_CONFIG_LIBM_HAVE_TANF 1
  > replace TB_CONFIG_LIBM_HAVE_ATAN -> #define TB_CONFIG_LIBM_HAVE_ATAN 1
  > replace TB_CONFIG_LIBM_HAVE_ATANF -> #define TB_CONFIG_LIBM_HAVE_ATANF 1
  > replace TB_CONFIG_LIBM_HAVE_ATAN2 -> #define TB_CONFIG_LIBM_HAVE_ATAN2 1
  > replace TB_CONFIG_LIBM_HAVE_ATAN2F -> #define TB_CONFIG_LIBM_HAVE_ATAN2F 1
  > replace TB_CONFIG_LIBM_HAVE_COS -> #define TB_CONFIG_LIBM_HAVE_COS 1
  > replace TB_CONFIG_LIBM_HAVE_COSF -> #define TB_CONFIG_LIBM_HAVE_COSF 1
  > replace TB_CONFIG_LIBM_HAVE_SIN -> #define TB_CONFIG_LIBM_HAVE_SIN 1
  > replace TB_CONFIG_LIBM_HAVE_SINF -> #define TB_CONFIG_LIBM_HAVE_SINF 1
  > replace TB_CONFIG_LIBM_HAVE_EXP -> #define TB_CONFIG_LIBM_HAVE_EXP 1
  > replace TB_CONFIG_LIBM_HAVE_EXPF -> #define TB_CONFIG_LIBM_HAVE_EXPF 1
  > replace TB_CONFIG_POSIX_HAVE_POLL -> /* #undef TB_CONFIG_POSIX_HAVE_POLL */
  > replace TB_CONFIG_POSIX_HAVE_SELECT -> /* #undef TB_CONFIG_POSIX_HAVE_SELECT */
  > replace TB_CONFIG_POSIX_HAVE_PTHREAD_MUTEX_INIT -> /* #undef TB_CONFIG_POSIX_HAVE_PTHREAD_MUTEX_INIT */
  > replace TB_CONFIG_POSIX_HAVE_PTHREAD_CREATE -> /* #undef TB_CONFIG_POSIX_HAVE_PTHREAD_CREATE */
  > replace TB_CONFIG_POSIX_HAVE_PTHREAD_SETSPECIFIC -> /* #undef TB_CONFIG_POSIX_HAVE_PTHREAD_SETSPECIFIC */
  > replace TB_CONFIG_POSIX_HAVE_PTHREAD_GETSPECIFIC -> /* #undef TB_CONFIG_POSIX_HAVE_PTHREAD_GETSPECIFIC */
  > replace TB_CONFIG_POSIX_HAVE_PTHREAD_KEY_CREATE -> /* #undef TB_CONFIG_POSIX_HAVE_PTHREAD_KEY_CREATE */
  > replace TB_CONFIG_POSIX_HAVE_PTHREAD_KEY_DELETE -> /* #undef TB_CONFIG_POSIX_HAVE_PTHREAD_KEY_DELETE */
  > replace TB_CONFIG_POSIX_HAVE_PTHREAD_SETAFFINITY_NP -> /* #undef TB_CONFIG_POSIX_HAVE_PTHREAD_SETAFFINITY_NP */
  > replace TB_CONFIG_POSIX_HAVE_SOCKET -> /* #undef TB_CONFIG_POSIX_HAVE_SOCKET */
  > replace TB_CONFIG_POSIX_HAVE_OPENDIR -> /* #undef TB_CONFIG_POSIX_HAVE_OPENDIR */
  > replace TB_CONFIG_POSIX_HAVE_DLOPEN -> /* #undef TB_CONFIG_POSIX_HAVE_DLOPEN */
  > replace TB_CONFIG_POSIX_HAVE_OPEN -> /* #undef TB_CONFIG_POSIX_HAVE_OPEN */
  > replace TB_CONFIG_POSIX_HAVE_STAT64 -> /* #undef TB_CONFIG_POSIX_HAVE_STAT64 */
  > replace TB_CONFIG_POSIX_HAVE_LSTAT64 -> /* #undef TB_CONFIG_POSIX_HAVE_LSTAT64 */
  > replace TB_CONFIG_POSIX_HAVE_GETHOSTNAME -> /* #undef TB_CONFIG_POSIX_HAVE_GETHOSTNAME */
  > replace TB_CONFIG_POSIX_HAVE_GETIFADDRS -> /* #undef TB_CONFIG_POSIX_HAVE_GETIFADDRS */
  > replace TB_CONFIG_POSIX_HAVE_SEM_INIT -> /* #undef TB_CONFIG_POSIX_HAVE_SEM_INIT */
  > replace TB_CONFIG_POSIX_HAVE_GETPAGESIZE -> /* #undef TB_CONFIG_POSIX_HAVE_GETPAGESIZE */
  > replace TB_CONFIG_POSIX_HAVE_SYSCONF -> /* #undef TB_CONFIG_POSIX_HAVE_SYSCONF */
  > replace TB_CONFIG_POSIX_HAVE_SCHED_YIELD -> /* #undef TB_CONFIG_POSIX_HAVE_SCHED_YIELD */
  > replace TB_CONFIG_POSIX_HAVE_SCHED_SETAFFINITY -> /* #undef TB_CONFIG_POSIX_HAVE_SCHED_SETAFFINITY */
  > replace TB_CONFIG_POSIX_HAVE_REGCOMP -> /* #undef TB_CONFIG_POSIX_HAVE_REGCOMP */
  > replace TB_CONFIG_POSIX_HAVE_REGEXEC -> /* #undef TB_CONFIG_POSIX_HAVE_REGEXEC */
  > replace TB_CONFIG_POSIX_HAVE_READV -> /* #undef TB_CONFIG_POSIX_HAVE_READV */
  > replace TB_CONFIG_POSIX_HAVE_WRITEV -> /* #undef TB_CONFIG_POSIX_HAVE_WRITEV */
  > replace TB_CONFIG_POSIX_HAVE_PREADV -> /* #undef TB_CONFIG_POSIX_HAVE_PREADV */
  > replace TB_CONFIG_POSIX_HAVE_PWRITEV -> /* #undef TB_CONFIG_POSIX_HAVE_PWRITEV */
  > replace TB_CONFIG_POSIX_HAVE_PREAD64 -> /* #undef TB_CONFIG_POSIX_HAVE_PREAD64 */
  > replace TB_CONFIG_POSIX_HAVE_PWRITE64 -> /* #undef TB_CONFIG_POSIX_HAVE_PWRITE64 */
  > replace TB_CONFIG_POSIX_HAVE_FDATASYNC -> /* #undef TB_CONFIG_POSIX_HAVE_FDATASYNC */
  > replace TB_CONFIG_POSIX_HAVE_COPYFILE -> /* #undef TB_CONFIG_POSIX_HAVE_COPYFILE */
  > replace TB_CONFIG_POSIX_HAVE_SENDFILE -> /* #undef TB_CONFIG_POSIX_HAVE_SENDFILE */
  > replace TB_CONFIG_POSIX_HAVE_EPOLL_CREATE -> /* #undef TB_CONFIG_POSIX_HAVE_EPOLL_CREATE */
  > replace TB_CONFIG_POSIX_HAVE_EPOLL_WAIT -> /* #undef TB_CONFIG_POSIX_HAVE_EPOLL_WAIT */
  > replace TB_CONFIG_POSIX_HAVE_POSIX_SPAWNP -> /* #undef TB_CONFIG_POSIX_HAVE_POSIX_SPAWNP */
  > replace TB_CONFIG_POSIX_HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR_NP -> /* #undef TB_CONFIG_POSIX_HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR_NP */
  > replace TB_CONFIG_POSIX_HAVE_EXECVP -> /* #undef TB_CONFIG_POSIX_HAVE_EXECVP */
  > replace TB_CONFIG_POSIX_HAVE_EXECVPE -> /* #undef TB_CONFIG_POSIX_HAVE_EXECVPE */
  > replace TB_CONFIG_POSIX_HAVE_FORK -> /* #undef TB_CONFIG_POSIX_HAVE_FORK */
  > replace TB_CONFIG_POSIX_HAVE_VFORK -> /* #undef TB_CONFIG_POSIX_HAVE_VFORK */
  > replace TB_CONFIG_POSIX_HAVE_WAITPID -> /* #undef TB_CONFIG_POSIX_HAVE_WAITPID */
  > replace TB_CONFIG_POSIX_HAVE_GETDTABLESIZE -> /* #undef TB_CONFIG_POSIX_HAVE_GETDTABLESIZE */
  > replace TB_CONFIG_POSIX_HAVE_GETRLIMIT -> /* #undef TB_CONFIG_POSIX_HAVE_GETRLIMIT */
  > replace TB_CONFIG_POSIX_HAVE_GETADDRINFO -> /* #undef TB_CONFIG_POSIX_HAVE_GETADDRINFO */
  > replace TB_CONFIG_POSIX_HAVE_GETNAMEINFO -> /* #undef TB_CONFIG_POSIX_HAVE_GETNAMEINFO */
  > replace TB_CONFIG_POSIX_HAVE_GETHOSTBYNAME -> /* #undef TB_CONFIG_POSIX_HAVE_GETHOSTBYNAME */
  > replace TB_CONFIG_POSIX_HAVE_GETHOSTBYADDR -> /* #undef TB_CONFIG_POSIX_HAVE_GETHOSTBYADDR */
  > replace TB_CONFIG_POSIX_HAVE_FCNTL -> /* #undef TB_CONFIG_POSIX_HAVE_FCNTL */
  > replace TB_CONFIG_POSIX_HAVE_PIPE -> /* #undef TB_CONFIG_POSIX_HAVE_PIPE */
  > replace TB_CONFIG_POSIX_HAVE_PIPE2 -> /* #undef TB_CONFIG_POSIX_HAVE_PIPE2 */
  > replace TB_CONFIG_POSIX_HAVE_MKFIFO -> /* #undef TB_CONFIG_POSIX_HAVE_MKFIFO */
  > replace TB_CONFIG_POSIX_HAVE_MMAP -> /* #undef TB_CONFIG_POSIX_HAVE_MMAP */
  > replace TB_CONFIG_POSIX_HAVE_FUTIMENS -> /* #undef TB_CONFIG_POSIX_HAVE_FUTIMENS */
  > replace TB_CONFIG_POSIX_HAVE_UTIMENSAT -> /* #undef TB_CONFIG_POSIX_HAVE_UTIMENSAT */
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_NF -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_NF 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_ACQ -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_ACQ 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_REL -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_REL 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8 -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_NF -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_NF 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_ACQ -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_ACQ 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_REL -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_REL 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8 -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_NF -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_NF 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_ACQ -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_ACQ 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_REL -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_REL 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_NF -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_NF 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_ACQ -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_ACQ 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_REL -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_REL 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64 -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_NF -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_NF 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_ACQ -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_ACQ 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_REL -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_REL 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_NF -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_NF 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_ACQ -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_ACQ 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_REL -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_REL 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64 -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_NF -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_NF 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_ACQ -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_ACQ 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_REL -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_REL 1
  > replace TB_CONFIG_BSD_HAVE_FLOCK -> /* #undef TB_CONFIG_BSD_HAVE_FLOCK */
  > replace TB_CONFIG_SYSTEMV_HAVE_SEMGET -> /* #undef TB_CONFIG_SYSTEMV_HAVE_SEMGET */
  > replace TB_CONFIG_SYSTEMV_HAVE_SEMTIMEDOP -> /* #undef TB_CONFIG_SYSTEMV_HAVE_SEMTIMEDOP */
  > replace TB_CONFIG_LINUX_HAVE_INOTIFY_INIT -> /* #undef TB_CONFIG_LINUX_HAVE_INOTIFY_INIT */
  > replace TB_CONFIG_VALGRIND_HAVE_VALGRIND_STACK_REGISTER -> /* #undef TB_CONFIG_VALGRIND_HAVE_VALGRIND_STACK_REGISTER */
generating src\tbox\tbox\src\tbox\tbox.config.h.in ... ok
generating src\xmake\xmake.config.h.in to build\windows\x64\release\xmake.config.h ..
  > replace VERSION -> 2.7.4
  > replace VERSION_MAJOR -> 2
  > replace VERSION_MINOR -> 7
  > replace VERSION_ALTER -> 4
  > replace VERSION_BUILD -> 202212300849
  > replace GIT_BRANCH -> master
  > replace GIT_COMMIT -> 784ffcfa4
generating src\xmake\xmake.config.h.in ... ok
configure
{
    float = true
    kind = static
    pcre = false
    mbedtls = false
    openssl = false
    clean = true
    pdcurses = true
    ccache = true
    demo = false
    runtime = lua
    mode = release
    charset = true
    zlib = false
    database = false
    mysql = false
    pcre2 = false
    sqlite3 = false
    coroutine = false
    proxy_pac = pac.lua
    info = false
    exception = false
    force-utf8 = true
    theme = default
    wchar = false
    regex = false
    arch = x64
    onlylib = false
    object = false
    curses = false
    hash = true
    ndk_stdcxx = true
    readline = false
    buildir = build
    network = public
    small = true
    host = windows
    plat = windows
    zip = false
    xml = false
    polarssl = false
    deprecated = false
    micro = false
}
@waruqi
Copy link
Member

waruqi commented Dec 30, 2022

在非工程目录执行下 xmake l detect.sdks.find_vstudio 看看

感觉你 vs 没装完整,c++ 相关装了么,自己打开 vs prompt cmd 看下,cl 是否能正常执行,如果正常。。

找下 vcvarsall.bat 文件在哪?

@lanjackg2003
Copy link
Contributor Author

在非工程目录执行下 xmake l detect.sdks.find_vstudio 看看

感觉你 vs 没装完整,c++ 相关装了么,自己打开 vs prompt cmd 看下,cl 是否能正常执行,如果正常。。

找下 vcvarsall.bat 文件在哪?

PS E:\Desktop> xmake l detect.sdks.find_vstudio
{
  "2022" = {
    version = "17.0",
    vcvarsall_bat = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat",
    vcvarsall = { }
  }
}

我编译一个C++写的console都没有问题,所以我觉得应该是安装了的
图片

@waruqi
Copy link
Member

waruqi commented Dec 30, 2022

是通过 vcvarsall.bat 获取的环境变量信息。。你看下 vs prompt 里面 cl 执行是否正常。

不行就调下这里

local outdata = try {function () return os.iorun(genvcvars_bat) end}

@lanjackg2003
Copy link
Contributor Author

是通过 vcvarsall.bat 获取的环境变量信息。。你看下 vs prompt 里面 cl 执行是否正常。

不行就调下这里

local outdata = try {function () return os.iorun(genvcvars_bat) end}

奇怪,安装好VS2015的才可以找到

PS D:\Code\code_server\GitHub\xmake\core> xmake f -c
checking for platform ... windows
checking for architecture ... x64
checking for Microsoft Visual Studio (x64) version ... 2015
checking for Microsoft C/C++ Compiler (x64) version ... 19.00.24245
checking for libm_powf ... ok
checking for libc_fgetc ... ok
checking for libm_log2 ... ok
checking for libc_memcmp ... ok
checking for libm_cos ... ok
checking for libc_wcscmp ... ok
checking for libc_mbstowcs ... ok
checking for libc_strncat ... ok
checking for libm_acosf ... ok
checking for libc_memset ... ok
checking for libm_fmod ... ok
checking for libc_wcscpy ... ok
checking for libc_strcat ... ok
checking for libc_signal ... ok
checking for libm_tan ... ok
checking for libm_sin ... ok
checking for libc_setjmp ... ok
checking for libc_memmove ... ok
checking for libc_memcpy ... ok
checking for libc_strnlen ... ok
checking for libc_wcsnlen ... ok
checking for libc_fputs ... ok
checking for libc_setlocale ... ok
checking for libm_sqrt ... ok
checking for libc_fgets ... ok
checking for libc_wcslen ... ok
checking for libm_asin ... ok
checking for curses ... no
checking for readline ... no
checking for keyword_thread_local ... no
checking for libc_gettimeofday ... no
checking for libm_sqrtf ... ok
checking for libc_fputc ... ok
checking for libc_strlen ... ok
checking for libm_cosf ... ok
checking for wchar ... no
checking for libc_memmem ... no
checking for libc_wcsstr ... no
checking for libc_wcsncpy ... ok
checking for libm_sincos ... no
checking for libc_kill ... no
checking for libc_strcmp ... ok
checking for libc_strchr ... no
checking for libc_wcsncasecmp ... no
checking for libc_gmtime ... ok
checking for libm_asinf ... ok
checking for libm_exp ... ok
checking for libc_strncmp ... ok
checking for libc_strcasestr ... no
checking for libc_sigsetjmp ... no
checking for libc_fwrite ... ok
checking for libm_fmodf ... ok
checking for windows__InterlockedCompareExchange64 ... ok
checking for windows__InterlockedExchange8 ... ok
checking for windows__InterlockedOr8 ... ok
checking for libc_strstr ... no
checking for libc_wcstombs ... ok
checking for libm_atanf ... ok
checking for libm_atan2 ... ok
checking for libc_strncpy ... ok
checking for libm_pow ... ok
checking for keyword_thread ... no
checking for libm_atan2f ... ok
checking for libm_log2f ... ok
checking for libm_tanf ... ok
checking for libc_strcpy ... ok
checking for libc_wcsncat ... ok
checking for libc_strrchr ... no
checking for libc_mktime ... ok
checking for feature_anonymous_union ... ok
checking for libm_acos ... ok
checking for libm_expf ... ok
checking for windows__InterlockedExchangeAdd_acq ... no
checking for windows__InterlockedOr8_nf ... no
checking for windows__InterlockedExchangeAdd64_nf ... no
checking for windows__InterlockedExchangeAdd_nf ... no
checking for windows__InterlockedExchange_nf ... no
checking for windows__InterlockedOr8_acq ... no
checking for libc_srandom ... no
checking for windows__InterlockedExchange8_acq ... no
checking for windows__InterlockedExchange_acq ... no
checking for windows__InterlockedCompareExchange_acq ... no
checking for libc_wcscasecmp ... no
checking for libc_strlcpy ... no
checking for libc_localtime ... ok
checking for windows__InterlockedCompareExchange64_acq ... no
checking for libc_wcslcpy ... no
checking for windows__InterlockedExchangeAdd64_acq ... no
checking for libc_strcasecmp ... no
checking for windows__InterlockedCompareExchange_rel ... no
checking for libc_strncasecmp ... no
checking for libc_random ... no
checking for windows__InterlockedExchange ... no
checking for windows__InterlockedCompareExchange64_nf ... no
checking for windows__InterlockedCompareExchange_nf ... no
checking for libm_atan ... ok
checking for libc_wcscat ... ok
checking for libc_wcscasestr ... no
checking for windows__InterlockedExchangeAdd_rel ... no
checking for libc_wcsncmp ... ok
checking for windows__InterlockedExchangeAdd64 ... ok
checking for windows__InterlockedCompareExchange64_rel ... no
checking for windows__InterlockedExchange_rel ... no
checking for windows__InterlockedCompareExchange ... no
checking for windows__InterlockedExchangeAdd ... no
checking for libm_sincosf ... no
checking for libc_backtrace ... no
checking for libm_sinf ... ok
checking for libc_fread ... ok
checking for libc_ungetc ... ok
checking for valgrind_VALGRIND_STACK_REGISTER ... no
checking for windows__InterlockedExchangeAdd64_rel ... no
checking for windows__InterlockedExchange8_nf ... no
checking for windows__InterlockedExchange8_rel ... no
checking for windows__InterlockedOr8_rel ... no
generating src\tbox\tbox\src\tbox\tbox.config.h.in ... ok
generating src\xmake\xmake.config.h.in ... ok

@lanjackg2003
Copy link
Contributor Author

编译快完成出现以下错误
图片

[ 92%]: cache compiling.release src\demo\xmake.c
error: ...mdir\core\sandbox\modules\import\core\base\scheduler.lua:56: cannot get program for mrc
stack traceback:
        @programdir\core\base\utils.lua:290: in function <@programdir\core\base\utils.lua:280>
        [C]: in function 'error'
        @programdir\core\base\os.lua:897: in function 'base/os.raiselevel'
        (...tail calls...)
        ...mdir\core\sandbox\modules\import\core\base\scheduler.lua:56: in field 'co_start_withopt'
        @programdir\modules\private\async\runjobs.lua:217: in function <@programdir\modules\private\async\runjobs.lua:162>
        [C]: in function 'xpcall'
        @programdir\core\base\utils.lua:280: in function 'sandbox/modules/utils.trycall'
        @programdir\core\base\scheduler.lua:520: in function 'base/scheduler.co_group_begin'
        ...mdir\core\sandbox\modules\import\core\base\scheduler.lua:94: in field 'co_group_begin'
        @programdir\modules\private\async\runjobs.lua:162: in function <@programdir\modules\private\async\runjobs.lua:56>
        (...tail calls...)
        @programdir\actions\build\build.lua:259: in function <@programdir\actions\build\build.lua:247>
        (...tail calls...)
        @programdir\actions\build\main.lua:108: in global '_do_build'
        @programdir\actions\build\main.lua:155: in function <@programdir\actions\build\main.lua:149>
        [C]: in function 'xpcall'
        @programdir\core\base\utils.lua:280: in function 'sandbox/modules/utils.trycall'
        @programdir\core\sandbox\modules\try.lua:117: in global 'try'
        @programdir\actions\build\main.lua:147: in function <@programdir\actions\build\main.lua:113>
        (...tail calls...)
        [C]: in function 'xpcall'
        @programdir\core\base\utils.lua:280: in function 'sandbox/modules/utils.trycall'
        (...tail calls...)
        @programdir\core\base\task.lua:501: in function 'base/task.run'
        @programdir\core\main.lua:278: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:404: in function <@programdir\core\base\scheduler.lua:397>

@xq114
Copy link
Contributor

xq114 commented Jan 2, 2023

#2927 是不是cmd有问题

@waruqi
Copy link
Member

waruqi commented Jan 2, 2023

还是按我之前说的 自己调下

local outdata = try {function () return os.iorun(genvcvars_bat) end}

相关位置,才能知道哪里失败了

@lanjackg2003
Copy link
Contributor Author

还是按我之前说的 自己调下

local outdata = try {function () return os.iorun(genvcvars_bat) end}

相关位置,才能知道哪里失败了

我特地将vs2015的组件再次删除,
然后在find_vstudio.lua添加打印变量genvcvars_bat的值重新运行命令xmake l detect.sdks.find_vstudio的日志如下

C:\Users\Jack>xmake l detect.sdks.find_vstudio
 genvcvars_bat ==> C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_E490BA8338C7455081FC1F352721DDC0_genvcvars.bat
 genvcvars_bat ==> C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_EF0854E5A8B74D5081E78DF3DBE74370_genvcvars.bat
 genvcvars_bat ==> C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_5BF87BA8B2D74D608B08C5E4350A8380_genvcvars.bat
{
  "2022" = {
    vcvarsall_bat = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat",
    version = "17.0",
    vcvarsall = { }
  }
}

@lanjackg2003
Copy link
Contributor Author

执行xmake f -c -vD命令的日志

日志
D:\Code\code_server\GitHub\xmake\core>xmake f -c -vD
checking for platform ... windows
checking for architecture ... x64
checking for vswhere.exe ... C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe
 genvcvars_bat ==> C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_0C7D7634AD484F008AD20087367DE160_genvcvars.bat
 genvcvars_bat ==> C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_E94FDDA75DC9424088AB8D43034CBA50_genvcvars.bat
 genvcvars_bat ==> C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_E4DA88DEFC64417081DDEE15B2208FD0_genvcvars.bat
checking for Microsoft Visual Studio (x64) version ... no
checking for clang ... ok
checkinfo: cannot runv(dmd.exe --version), No such file or directory
checking for dmd ... no
checkinfo: cannot runv(ldc2.exe --version), No such file or directory
checking for ldc2 ... no
checkinfo: cannot runv(gdc.exe --version), No such file or directory
checking for gdc ... no
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checking for clang ... ok
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_072FA2E75BA8495083A3EB4E72F0A3A0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_50B513CA0E434A7EB5FBE55484A939A3.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_D3713FE646094B2088A1B348BEFE5B70.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_2F8339D9679641C1A803DE1853E2A6D1.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_F9836301EC5542308D7DA7D837263770.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_72366670DD8D433683C0E57A1E141799.c
checking for the c compiler (cc) ... clang
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_6346FAB939E340308279046B40832950.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_FDD7E7C3137C4899A59187CA9492B0A3.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_B196BCAA05E24230816FBB229A7A7180.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_18E931E980D64B2C8EE6157D6F7D8CBC.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_6EDD758EC6B94520886CFEBDAD7CCB40.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_08517E3AB3B54A6D89C81AEBEC86691C.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_7BB8A0E63E8848108277F8585F6C6E10.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_CA3475F3A9934FA8B2535EA0A3A6F7ED.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_BB6EC4024F8E464084D9B58DEA2CCF60.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_FB7AED3AED3140DFB5BFB1AC5FE692DA.c
checking for the c compiler (cc) ... clang
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_B37D90EF9E644D008DD74F00DB2D8D50.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_4E9F112D0B96448194AB269E0A9E8DE6.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_906D589366444350815C09D22C7603B0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_D0E5F96DD3AB4E9D86B10975235CE9F8.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_8541D66E38BC4B6088815A9A9AC8FAA0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_FA3BFA851F044D69AAD8516819237000.c
checking for the c compiler (cc) ... clang
checking for the c compiler (cc) ... clang
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C4D2714988694A608BC76AFBEA060280.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_765AFF0B48824DB0A8E6EB3350E6E3C2.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_6651BE5AA84246608CB06C591C6A83D0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_3428C9825F3948848D9BD0151352F09D.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_D685BE059CBC4870838D4D3C973D6AD0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_A070192BC6754DC28A6EC9B406440CC9.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_3FC3027BC332495084DF3770CB680CB0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_A5979AF5C8394D5B8BE0EF3D30063BCA.c
checking for the c compiler (cc) ... clang
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_66E83C8495874A2085D55EBABC3641A0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_92E97B14B38643C1AB41E3740AC15E8E.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_B68A8CACD9A943608B93D66A7B8C3ED0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_73EDD960586C4FFE9A172935143B1A84.c
checking for the c compiler (cc) ... clang
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -std=c99 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_5F7116BD79A94E3089EBCF1A767D4E40.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_64E7E18CE776477989E0D790937B751C.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_0EF292E014464C108BFF2480A1F6D060.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_17885FC5CBE548C99CF25C0565AD9503.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_A0B88689156F40008F18C1D03C353370.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_ABE3866E678E4DE9A86C22AF62F86771.c
checking for the c compiler (cc) ... clang
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_5A4731F3A061455082CE34CC969D3DB0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_1774ED763C0441148BE63413AD34DFB4.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_7236C259AFCD4B7087D343513AF510D0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_218B61C80C5B483994E3AA0A24114B33.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_5F824BB9E8E8480088B8A9578E85AF30.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_9669D8F683C6400F9BE3C24BC75955E4.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_0A98B92E051B4A5081507024B8D42290.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_E904A04956A544019995FBB89DCF8B9D.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_8523D852E4B0461088931AC46B6E2220.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_CF2E5B717B984956909FF8218C47E9AD.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_8CB58FEF73B140108EF08A8385866880.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_027E6671FFC1404EA86C920610B23DB9.c
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_E1230D93B5524D3087E8138158BDEE50.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_34C344B2B4CB42C8B4825AC3E14B0064.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_D8C46CA2FA7A43108F7C78EF67972E30.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_231DAC3D5C974DA7B20A47B0FE21ACCB.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_7272AFEBC42242008F0D23ACE60C6A70.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_15FF726F5BFE4238961B377DAA12E3C7.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_CC3EB6C6A255442089071A1E02573260.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_2E32ABC9E6E8421790170EC0B724AEDA.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_CD3589B8DFDB4430819C2CE537D3D750.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_120D053D8A4F454DB729CE4928404A6E.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_D767323D25BA4E6084DC02642F10CAE0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_037B6F8E825640C9B64087A6B02E0353.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_6BAC8B41ADF94410857D4EB3430FD730.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_8C952DDB896C414DA04B03AEBED551E9.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_893C13CE19C240208477169589233630.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_213FA507D82640639026CF4C2C4D1FE6.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
> checking for c includes(math.h)
> checking for c funcs(powf)
checking for libm_powf ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strlen)
checking for libc_strlen ... ok
> checking for c includes(stdio.h)
> checking for c funcs(fwrite)
checking for libc_fwrite ... ok
> checking for c includes(stdio.h)
> checking for c funcs(fgets)
checking for libc_fgets ... ok
> checking for c includes(math.h)
> checking for c funcs(expf)
checking for libm_expf ... ok
> checking for c includes(execinfo.h)
> checking for c funcs(backtrace)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_1774ED763C0441148BE63413AD34DFB4.c:2:10: fatal error: 'execinfo.h' file not found
#include <execinfo.h>
         ^~~~~~~~~~~~
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_backtrace ... no
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_6A19326479C442508D24B71A959BCBB0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_D7057FC01BC4484286EE7A8490E8EDB7.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_524095939FD3451083EA0E6DFE3FC650.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C04055ABBB3B4A18A79C8EFE4536A045.c
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(memset)
checking for libc_memset ... ok
> checking for c includes(math.h)
> checking for c funcs(fmodf)
checking for libm_fmodf ... ok
> checking for c includes(signal.h, setjmp.h)
> checking for c funcs(signal)
checking for libc_signal ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strcmp)
checking for libc_strcmp ... ok
> checking for c includes(math.h)
> checking for c funcs(sin)
checking for libm_sin ... ok
> checking for c includes(stdio.h)
> checking for c funcs(fputs)
checking for libc_fputs ... ok
> checking for c includes(math.h)
> checking for c funcs(tan)
checking for libm_tan ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strstr)
checking for libc_strstr ... ok
> checking for c includes(math.h)
> checking for c funcs(pow)
checking for libm_pow ... ok
> checking for c includes(math.h)
> checking for c funcs(cos)
checking for libm_cos ... ok
> checking for c includes(math.h)
> checking for c funcs(tanf)
checking for libm_tanf ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strchr)
checking for libc_strchr ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strncmp)
checking for libc_strncmp ... ok
> checking for c includes(stdio.h)
> checking for c funcs(fputc)
checking for libc_fputc ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcsstr)
checking for libc_wcsstr ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_2E32ABC9E6E8421790170EC0B724AEDA.c:6:19: warning: '_InterlockedCompareExchange_rel' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedCompareExchange_rel)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_REL)
checking for windows__InterlockedCompareExchange_rel ... ok
> checking for c includes(math.h)
> checking for c funcs(cosf)
checking for libm_cosf ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
2 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64)
checking for windows__InterlockedCompareExchange64 ... ok
> checking for c includes(math.h)
> checking for c funcs(atan2)
checking for libm_atan2 ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_231DAC3D5C974DA7B20A47B0FE21ACCB.c:6:19: warning: '_InterlockedExchange_nf' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchange_nf)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_NF)
checking for windows__InterlockedExchange_nf ... ok
checking for flags (-WX -W3) ... ok
> clang "-WX" "-W3" "-Qunused-arguments" "-m64"
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_56CDD3190E1F4B708A4CEFCAC36EB6A0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C5312D0B15E5436E94DE06A5F8E18CC7.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_867E267E66B345108CE081F6221E8E70.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C8F6E65E5F7241919A6A7D321ABC3E0A.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_B4B8591D39134B6087175B833D7A80E0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_BA53848FBBF0406C97047A2362E2169F.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_DF6B603A0F28483086FA216D52EC0E60.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_76425BF6DD414BC9BA3B4B00B6DDB869.c                                              > clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_0CA8801EFF9B49708483B BA8A914577E0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_55EC3557F4F8477C93B812A8AB1BC58A.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_F784782E75FE45508720A63D4B4195D0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_D395997C91514BB498DB8C6ABA611781.c                                                 > clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_304A3CC5B3BE4F4085CAAA88C17F1C7B0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_2E5A3C9383D3482994C5E92B184A36C9.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_1B1BBCE933114240804113955C912890.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_BC80AFFCC4954CE195A13FF4FF15EA1F.c                                                   > clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C0DCD192D68F474089E5011DD8406E2B0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_D0CFC1D403074D9893004F72319FEEF2.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_62FDFB2105CA46208A657DA0F555AF70.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_067BD70DEDB54E05857A9512A122D022.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_B522E802F4C5466087580F406EF5B170.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_72430FD136B24B2298C37234B072F43E.c                                                     > clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_EEC82ECE9BE9471085A39492440F17F10.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_CB5F49BA6D594E80BA9E60D09E1BB5FA.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_6C8B9F71C39F486081EAB7C5A99788E0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_1E1B92EFF36C4152BA76FE18AD57EE4F.c                                                        > clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_76C6CF3F765B4020873EE6BAA9 98F4690.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_08FBE6903B4D415BB829DA9DA04A1B12.c
> clang -c -Qunused-arguments -m64 -DXM_CONFIG_API_HAVE_CURSES -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_F02F221FC1054250888A3DCA0ADC9560.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_5FB43531620541A4926EECBFA003E8D5.c                                                                > clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_0D8A8699ED714B708BB62E340F1449680.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C81055F1658F46ED9CB32BF57EAACEC4.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_1B896630768A494087A4DE590325E090.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_49A6F85B6DC64869AF0668BFED13D89A.c                                                             > clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_E79F75D09AC44430819150120F7EDD0A0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_7EB4AD38484D4BF7B4308C7CE8235413.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_5CBC7A4774C4476082DF11F963464D90.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_9315C020459341BF88D4441F8C998C66.c                                                               > clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_E0FFCBC49C0E4220825D9FBC7BA40AA80.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_71FF92B8C36D4E629DF09BCFEDCEFE3A.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_D8C4F637220C450086F1C60A4A3E4130.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_EE95C81D64A54D538EA5C885BAE17F77.c                                                                 > clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_51506F2005AB4810895C2316550A02990.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_A59D0667E3C44E94958F63FA57AB4EDA.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_766A24640275425087DD3495725466C0.o
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_92BD9F2415084C3D9D36558C20CE4AC0.c                                                                     > clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_0451C541F5D44300829DA84DD5D88520  0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_405B26E1CC3F4FEE85C4C954E216674F.c
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_15FF726F5BFE4238961B377DAA12E3C7.c:6:19: warning: '_InterlockedOr8_nf' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedOr8_nf)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_NF)
checking for windows__InterlockedOr8_nf ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_037B6F8E825640C9B64087A6B02E0353.c:6:19: warning: '_InterlockedCompareExchange64_rel' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedCompareExchange64_rel)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_REL)
checking for windows__InterlockedCompareExchange64_rel ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strcasestr)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_765AFF0B48824DB0A8E6EB3350E6E3C2.c:9:42: error: use of undeclared identifier 'strcasestr'; did you mean 'pstrcasestr'?
    volatile void* pstrcasestr = (void*)&strcasestr;;
                                         ^~~~~~~~~~
                                         pstrcasestr
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_765AFF0B48824DB0A8E6EB3350E6E3C2.c:9:20: note: 'pstrcasestr' declared here
    volatile void* pstrcasestr = (void*)&strcasestr;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_strcasestr ... no
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_8C952DDB896C414DA04B03AEBED551E9.c:6:19: warning: '_InterlockedExchange8_nf' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchange8_nf)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_NF)
checking for windows__InterlockedExchange8_nf ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_213FA507D82640639026CF4C2C4D1FE6.c:6:19: warning: '_InterlockedCompareExchange64_acq' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedCompareExchange64_acq)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_ACQ)
checking for windows__InterlockedCompareExchange64_acq ... ok
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_AAC8A7875AF1421084FDEF0DBF4F8270.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_4D934ACD359743CC96BDE1547BE6307D.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_9427EE2C4DC84F50863F2D3A092089A0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_6DFA479004E04E94B1744F9446C06442.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_066BCE0D14C6497080979401468DCCA0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_A2E91B842ED247FF9A2B9929FB438B0E.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_754020765D6A45108478010E74A1FA60.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_9D06393C5E454377BA9BEE92C665F586.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_167A24B1FCA6456084C773A3F61241D0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_B39376EC0ADF4EA5A7066C3BE02D6C12.c
checking for clang++ ... ok
checking for the linker (ld) ... clang++
> clang++ -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_5F7116BD79A94E3089EBCF1A767D4E40.b C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_5F7116BD79A94E3089EBCF1A767D4E40.o -m64 -lpthread
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcslcpy)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_A070192BC6754DC28A6EC9B406440CC9.c:9:39: error: use of undeclared identifier 'wcslcpy'
    volatile void* pwcslcpy = (void*)&wcslcpy;;
                                      ^
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_A070192BC6754DC28A6EC9B406440CC9.c:9:39: error: 'wcsncpy' is deprecated: This function or variable may be unsafe. Consider using wcsncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_wstring.h:200:1: note: 'wcsncpy' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:1935:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
2 errors generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcslcpy ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strncat)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_A5979AF5C8394D5B8BE0EF3D30063BCA.c:9:39: error: 'strncat' is deprecated: This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pstrncat = (void*)&strncat;;
                                      ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\string.h:262:1: note: 'strncat' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:1935:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_strncat ... no
LINK : fatal error LNK1181: cannot open input file 'pthread.lib'
clang++: error: linker command failed with exit code 1181 (use -v to see invocation)
> checking for c includes(math.h)
> checking for c funcs(acosf)
checking for libm_acosf ... ok
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_DA7F27A976FB497082B70F33007530C0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_FC518BCBB96A4EDCA0D1B0E287DD70B1.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_13F2F29ED88D48408F6D5ABEBC6ED780.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_9A84172259184BED87C5FD3E8CC59A7C.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_681B0E68A5BA49008226A56A36F4B560.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_11715FC5AC114841AF3D1220A4CE758B.c
> checking for c links(pthread)
> checking for c snippet(TB_CONFIG_KEYWORD_HAVE__thread)
checkinfo: ...gramdir\core\sandbox\modules\import\core\tool\linker.lua:75: @programdir\core\sandbox\modules\os.lua:372: execv(clang++ -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_5F7116BD79A94E3089EBCF1A767D4E40.b C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_5F7116BD79A94E3089EBCF1A767D4E40.o -m64 -lpthread) failed(1181)
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\core\sandbox\modules\os.lua:372]: in function 'execv'
    [@programdir\modules\core\tools\gcc.lua:398]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...gramdir\core\sandbox\modules\import\core\tool\linker.lua:73]: in function 'link'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:223]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for keyword_thread ... no
> checking for c includes(math.h)
> checking for c funcs(log2)
checking for libm_log2 ... ok
> checking for c includes(math.h)
> checking for c funcs(exp)
checking for libm_exp ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcslen)
checking for libc_wcslen ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strnlen)
checking for libc_strnlen ... ok
> clang -c -Qunused-arguments -m64 -DXM_CONFIG_API_HAVE_READLINE -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_E9601541DC01487088DA5C18914060D0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_2AA3EA6E441547A4AA66B416BFCE638C.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_B0E61B5E8E1D405083FD5DB85B8F4860.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_EDA7A2AA10B242078F6C905A65AD2220.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_35B6E19948614C408B42A72A6CF24F90.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_84654220105544399AD0129C1F737B1E.c
> clang -c -Qunused-arguments -m64 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_8754F7E7EAEC4D008EF10336E3E59E50.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_CBE74A28487345B486C44F2A5F52A38D.c
> clang -c -Qunused-arguments -m64 -std=c99 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_4B8E419A0F8C4C1080AF011D10B96520.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_EB161F944D3B48EE945FA320E4F36C7B.c
> checking for c includes(curses.h)
> checking for c links(curses)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_5FB43531620541A4926EECBFA003E8D5.c:2:10: fatal error: 'curses.h' file not found
#include <curses.h>
         ^~~~~~~~~~
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for curses ... no
> checking for c includes(stdio.h)
> checking for c funcs(fread)
checking for libc_fread ... ok
> checking for c includes(math.h)
> checking for c funcs(asin)
checking for libm_asin ... ok
> checking for c includes(math.h)
> checking for c funcs(atanf)
checking for libm_atanf ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcscasecmp)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C04055ABBB3B4A18A79C8EFE4536A045.c:9:42: error: use of undeclared identifier 'wcscasecmp'; did you mean 'pwcscasecmp'?
    volatile void* pwcscasecmp = (void*)&wcscasecmp;;
                                         ^~~~~~~~~~
                                         pwcscasecmp
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C04055ABBB3B4A18A79C8EFE4536A045.c:9:20: note: 'pwcscasecmp' declared here
    volatile void* pwcscasecmp = (void*)&wcscasecmp;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcscasecmp ... no
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_BA53848FBBF0406C97047A2362E2169F.c:6:19: warning: '_InterlockedExchange_acq' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchange_acq)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_ACQ)
checking for windows__InterlockedExchange_acq ... ok
> checking for c includes(math.h)
> checking for c funcs(sinf)
checking for libm_sinf ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(memcpy)
checking for libc_memcpy ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
2 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE)
checking for windows__InterlockedExchange ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C8F6E65E5F7241919A6A7D321ABC3E0A.c:6:19: warning: '_InterlockedCompareExchange_acq' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedCompareExchange_acq)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_ACQ)
checking for windows__InterlockedCompareExchange_acq ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_76425BF6DD414BC9BA3B4B00B6DDB869.c:6:19: warning: '_InterlockedCompareExchange64_nf' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedCompareExchange64_nf)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_NF)
checking for windows__InterlockedCompareExchange64_nf ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_D395997C91514BB498DB8C6ABA611781.c:6:19: warning: '_InterlockedCompareExchange_nf' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedCompareExchange_nf)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_NF)
checking for windows__InterlockedCompareExchange_nf ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_92BD9F2415084C3D9D36558C20CE4AC0.c:6:19: warning: '_InterlockedExchange8_rel' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchange8_rel)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_REL)
checking for windows__InterlockedExchange8_rel ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_7EB4AD38484D4BF7B4308C7CE8235413.c:6:19: warning: '_InterlockedExchangeAdd_nf' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchangeAdd_nf)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_NF)
checking for windows__InterlockedExchangeAdd_nf ... ok
> checking for c includes(time.h)
> checking for c funcs(gmtime)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_2E5A3C9383D3482994C5E92B184A36C9.c:8:38: error: 'gmtime' is deprecated: This function or variable may be unsafe. Consider using gmtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pgmtime = (void*)&gmtime;;
                                     ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\time.h:517:24: note: 'gmtime' has been explicitly marked deprecated here
        _Check_return_ _CRT_INSECURE_DEPRECATE(gmtime_s)
                       ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_gmtime ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strncpy)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_067BD70DEDB54E05857A9512A122D022.c:9:39: error: 'strncpy' is deprecated: This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pstrncpy = (void*)&strncpy;;
                                      ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\string.h:334:1: note: 'strncpy' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:1935:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_strncpy ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(memmem)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_72430FD136B24B2298C37234B072F43E.c:9:38: error: use of undeclared identifier 'memmem'; did you mean 'pmemmem'?
    volatile void* pmemmem = (void*)&memmem;;
                                     ^~~~~~
                                     pmemmem
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_72430FD136B24B2298C37234B072F43E.c:9:20: note: 'pmemmem' declared here
    volatile void* pmemmem = (void*)&memmem;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_memmem ... no
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_B28FA68C032A412089F9F74A3637C140.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_DE2221B2FB5F454381B39F245AA13FCC.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_54CCA53301D24830862E852769D63C90.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_B45B611B26024717B7357F3BC42701EC.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_7B4D8CD60F6D402083116E89CD32B370.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_0ECA27C8B189489FA37494915321E7C2.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_8391423AFC9D43708E048614418361B0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_BD5F166AAC6641EDA5722CAC9944AD95.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_3B8FFAB5FD3F46708252844C6BA3C3C0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C8264FB7025344DC986991ABFE488883.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_9D82096FF10141208ED9D263AFE8C390.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_E4D8F00BA8D148A69BC6674DF7FD06BB.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_AC6D2C369EC04F40881C655161391C90.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_40E9A4DD26504A708E0576634B3F792C.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_7722CB857E33432084801D83D22C0440.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_4C590D8D260E424CABD2F588C039DFF9.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_EC01CC2EB22A49108AB7FB3E94D34840.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_574D491843094989B87F6A4F9E1C5FF9.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_31143A3B9F284E108ED9E16044F7E680.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_217FD8E280244CB9AF0853BB7655D636.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_B5BEF81FC2A7492084235D7A29628A70.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_FAD82F9CF9E743CEB05AA04E96006C6E.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_2C798AC5311A466086FDA109DDD49390.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_91DA54EFC28840FEABBF5DA338B488D4.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_5B7230F61AE34A308B3D0F16D29D8B70.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_97E8A18EEDA94E9483D48C4F73C1BF6E.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_6584A49C4E9340308418C8BBEBB6FDA0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_11CA091CAD1642EEB04332452CB6BF7B.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_24B500958DAC4D108D380780B5C09E60.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_4107745B110741E2AA85FAE9C190B4AF.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_3848315E0243433086AEDB3F18835B40.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C58989525E444E37A2670DE3E5BAE933.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_035FD31BD32E47108361C39CC2E64070.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_892A629365714E12B210672E20CC77E1.c
> checking for c includes(math.h)
> checking for c funcs(sincosf)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_1E1B92EFF36C4152BA76FE18AD57EE4F.c:8:39: error: use of undeclared identifier 'sincosf'; did you mean 'psincosf'?
    volatile void* psincosf = (void*)&sincosf;;
                                      ^~~~~~~
                                      psincosf
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_1E1B92EFF36C4152BA76FE18AD57EE4F.c:8:20: note: 'psincosf' declared here
    volatile void* psincosf = (void*)&sincosf;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libm_sincosf ... no
> checking for c includes(signal.h, setjmp.h)
> checking for c funcs(sigsetjmp)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_08FBE6903B4D415BB829DA9DA04A1B12.c:9:5: error: unknown type name 'sigjmp_buf'; did you mean 'jmp_buf'?
    sigjmp_buf buf; sigsetjmp(buf, 0);;
    ^~~~~~~~~~
    jmp_buf
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\setjmp.h:148:21: note: 'jmp_buf' declared here
    typedef _JBTYPE jmp_buf[_JBLEN];
                    ^
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_08FBE6903B4D415BB829DA9DA04A1B12.c:9:21: error: call to undeclared function 'sigsetjmp'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
    sigjmp_buf buf; sigsetjmp(buf, 0);;
                    ^
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_08FBE6903B4D415BB829DA9DA04A1B12.c:9:21: note: did you mean '_setjmp'?
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\setjmp.h:160:13: note: '_setjmp' declared here
int __cdecl setjmp(
            ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\setjmp.h:154:20: note: expanded from macro 'setjmp'
    #define setjmp _setjmp
                   ^
2 errors generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_sigsetjmp ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strcasecmp)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C81055F1658F46ED9CB32BF57EAACEC4.c:9:42: error: use of undeclared identifier 'strcasecmp'; did you mean 'pstrcasecmp'?
    volatile void* pstrcasecmp = (void*)&strcasecmp;;
                                         ^~~~~~~~~~
                                         pstrcasecmp
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C81055F1658F46ED9CB32BF57EAACEC4.c:9:20: note: 'pstrcasecmp' declared here
    volatile void* pstrcasecmp = (void*)&strcasecmp;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_strcasecmp ... no
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcsncasecmp)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_9315C020459341BF88D4441F8C998C66.c:9:43: error: use of undeclared identifier 'wcsncasecmp'; did you mean 'pwcsncasecmp'?
    volatile void* pwcsncasecmp = (void*)&wcsncasecmp;;
                                          ^~~~~~~~~~~
                                          pwcsncasecmp
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_9315C020459341BF88D4441F8C998C66.c:9:20: note: 'pwcsncasecmp' declared here
    volatile void* pwcsncasecmp = (void*)&wcsncasecmp;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcsncasecmp ... no
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_9D06393C5E454377BA9BEE92C665F586.c:6:19: warning: '_InterlockedOr8_acq' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedOr8_acq)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_ACQ)
checking for windows__InterlockedOr8_acq ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcsncat)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_A59D0667E3C44E94958F63FA57AB4EDA.c:9:39: error: 'wcsncat' is deprecated: This function or variable may be unsafe. Consider using wcsncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pwcsncat = (void*)&wcsncat;;
                                      ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_wstring.h:178:1: note: 'wcsncat' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:1935:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcsncat ... no
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcscat)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_405B26E1CC3F4FEE85C4C954E216674F.c:9:38: error: 'wcscat' is deprecated: This function or variable may be unsafe. Consider using wcscat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pwcscat = (void*)&wcscat;;
                                     ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_wstring.h:100:5: note: 'wcscat' has been explicitly marked deprecated here
    __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1(
    ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:835:5: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1'
    __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1)
    ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:1894:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcscat ... no
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
2 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE)
checking for windows__InterlockedCompareExchange ... ok
> checking for c includes(math.h)
> checking for c funcs(atan2f)
checking for libm_atan2f ... ok
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_72B308894FF64D0085403DA8E5C54E00.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_AACC15E0D4B94DBAB5D4BC6D272B3CE8.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_B77975441D8D40508172008E2DDEF3C0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_14E07FDEFB044C6BB47ACEE10021C960.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_5A61E1F6A56344508544273E0855C870.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_BA77FDD635E645C08620A8D7EC627FB6.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_1A56BC490F11413081AEA55D03020140.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_5C114AE0BB69449AA3BF37DCBFAEC881.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_76A10D77CD594C008E38CD23BA007870.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_33348E3A796A46D79BDBC3DC18B2A564.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_41A744BF25244D50867BADC23E830AD0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_2EE7EEF8C0984FBCB60C7E7062BBD6B4.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_0E3E2BBFC3D0464083397B455F6E03C0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_4CFF4EE286534852A005E00795C6D6B7.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_B522866335C34370842C9C4C8DF35B80.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C86331682E424259AE17ABBEFBDB695C.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_BE21BC96444A49408D0BF4E4223A5690.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_6FC0AF22D3784AFD9C67AB317CF662CB.c
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcstombs)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_A2E91B842ED247FF9A2B9929FB438B0E.c:9:40: error: 'wcstombs' is deprecated: This function or variable may be unsafe. Consider using wcstombs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pwcstombs = (void*)&wcstombs;;
                                       ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stdlib.h:1012:1: note: 'wcstombs' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:891:5: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE'
    __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX(_DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2)
    ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:1962:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec size_t __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcstombs ... no
> checking for c includes(readline/readline.h)
> checking for c funcs(readline)
> checking for c links(readline)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_2AA3EA6E441547A4AA66B416BFCE638C.c:2:10: fatal error: 'readline/readline.h' file not found
#include <readline/readline.h>
         ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for readline ... no
> checking for c includes(locale.h)
> checking for c funcs(setlocale)
checking for libc_setlocale ... ok
> checking for c snippet(TB_CONFIG_FEATURE_HAVE_ANONYMOUS_UNION)
checking for feature_anonymous_union ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_9A84172259184BED87C5FD3E8CC59A7C.c:6:19: warning: '_InterlockedExchangeAdd64_rel' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchangeAdd64_rel)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_REL)
checking for windows__InterlockedExchangeAdd64_rel ... ok
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_359DCC3B078E4E50816100F8F27AE860.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_D58F757BBEC643C0884E2DA4FD6BB2EB.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_9686F01B0E3D41008D5C99D95A86A570.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_628869C0DE4548C3ACF6E1250D63AB3C.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_F0DB75B536CB46208BCB66652ABF8730.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_D5169B9B52D64907A7393335EC1CA128.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_0462D7287897441081F2738F084F6680.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_B0CD58A9A6C144F19CAA87F1B2606BB6.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_99CF7D86740F4F208C62FF66526AB560.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_DC4CB329C5B54BA49B0FB2B6EE33E457.c
> checking for c includes(signal.h, setjmp.h)
> checking for c funcs(kill)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_FC518BCBB96A4EDCA0D1B0E287DD70B1.c:9:36: error: use of undeclared identifier 'kill'; did you mean 'pkill'?
    volatile void* pkill = (void*)&kill;;
                                   ^~~~
                                   pkill
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_FC518BCBB96A4EDCA0D1B0E287DD70B1.c:9:20: note: 'pkill' declared here
    volatile void* pkill = (void*)&kill;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_kill ... no
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_EDA7A2AA10B242078F6C905A65AD2220.c:6:19: warning: '_InterlockedExchangeAdd_rel' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchangeAdd_rel)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_REL)
checking for windows__InterlockedExchangeAdd_rel ... ok
> checking for c includes(stdio.h)
> checking for c funcs(ungetc)
checking for libc_ungetc ... ok
> checking for c includes(math.h)
> checking for c funcs(sqrtf)
checking for libm_sqrtf ... ok
> checking for c includes(math.h)
> checking for c funcs(atan)
checking for libm_atan ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(memmove)
checking for libc_memmove ... ok
> checking for c includes(sys/time.h)
> checking for c funcs(gettimeofday)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_574D491843094989B87F6A4F9E1C5FF9.c:2:10: fatal error: 'sys/time.h' file not found
#include <sys/time.h>
         ^~~~~~~~~~~~
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_gettimeofday ... no
> checking for c includes(math.h)
> checking for c funcs(log2f)
checking for libm_log2f ... ok
> checking for c types(wchar_t)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_CBE74A28487345B486C44F2A5F52A38D.c:3:9: error: unknown type name 'wchar_t'
typedef wchar_t __type_wchar_t;
        ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for wchar ... no
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_69EC517DED80457085EED9753E1031C0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_F4D0BC22E4204DFBB20CE410AD7902B2.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_6376EB9063F04B30878CFF2A64D95FA0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_26F6FED279E748388B2C9D8965780EED.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_8A3CB6980A20405083439E7995ACB060.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C96BF75A73CD4D929A24CA0B8B2CB4E1.c
> clang -c -Qunused-arguments -m64 -std=c99 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_BB15D6DFD8BE425082E37996EE7B68A0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_AA0EB580531F437CA371BFA8F15E4F33.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_64C72FA3DF9641308901F46C79633080.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_4E10342AF9EE49CCA96871C36B01ABDC.c
> clang -c -Qunused-arguments -m64 -std=c99 -D_GNU_SOURCE=1 -WX -W3 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_221048E15F4E44208803FEF51B1C7290.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_95E670D807864AC7AF9896679AD78064.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_5ABBB0E31B354930885E139E702002B0.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_F4C824DE2C3643A7BE8D5D845401198E.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_361C9F1880C44010808D5248AB74A780.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_9962E886F1B04E5DAC1AE52C1A3AA6A0.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_70CCA958875A48008383DD98EF8EA010.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_BAA773396073484B8AA1449516D7C81D.c
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcsnlen)
checking for libc_wcsnlen ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
2 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD)
checking for windows__InterlockedExchangeAdd ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
2 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8)
checking for windows__InterlockedOr8 ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_11CA091CAD1642EEB04332452CB6BF7B.c:6:19: warning: '_InterlockedExchange_rel' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchange_rel)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_REL)
checking for windows__InterlockedExchange_rel ... ok
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(memcmp)
checking for libc_memcmp ... ok
> checking for c includes(math.h)
> checking for c funcs(sqrt)
checking for libm_sqrt ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcscmp)
checking for libc_wcscmp ... ok
> checking for c includes(math.h)
> checking for c funcs(sincos)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_E4D8F00BA8D148A69BC6674DF7FD06BB.c:8:38: error: use of undeclared identifier 'sincos'; did you mean 'psincos'?
    volatile void* psincos = (void*)&sincos;;
                                     ^~~~~~
                                     psincos
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_E4D8F00BA8D148A69BC6674DF7FD06BB.c:8:20: note: 'psincos' declared here
    volatile void* psincos = (void*)&sincos;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libm_sincos ... no
> checking for c includes(stdlib.h)
> checking for c funcs(srandom)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_217FD8E280244CB9AF0853BB7655D636.c:8:39: error: use of undeclared identifier 'srandom'; did you mean 'psrandom'?
    volatile void* psrandom = (void*)&srandom;;
                                      ^~~~~~~
                                      psrandom
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_217FD8E280244CB9AF0853BB7655D636.c:8:20: note: 'psrandom' declared here
    volatile void* psrandom = (void*)&srandom;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_srandom ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strcat)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_4C590D8D260E424CABD2F588C039DFF9.c:9:38: error: 'strcat' is deprecated: This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pstrcat = (void*)&strcat;;
                                     ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\string.h:91:5: note: 'strcat' has been explicitly marked deprecated here
    __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1(
    ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:835:5: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1'
    __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1)
    ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:1894:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_strcat ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strlcpy)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_97E8A18EEDA94E9483D48C4F73C1BF6E.c:9:39: error: use of undeclared identifier 'strlcpy'
    volatile void* pstrlcpy = (void*)&strlcpy;;
                                      ^
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_97E8A18EEDA94E9483D48C4F73C1BF6E.c:9:39: error: 'strncpy' is deprecated: This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\string.h:334:1: note: 'strncpy' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:1935:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
2 errors generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_strlcpy ... no
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(mbstowcs)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_91DA54EFC28840FEABBF5DA338B488D4.c:9:40: error: 'mbstowcs' is deprecated: This function or variable may be unsafe. Consider using mbstowcs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pmbstowcs = (void*)&mbstowcs;;
                                       ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stdlib.h:924:1: note: 'mbstowcs' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:891:5: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE'
    __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX(_DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2)
    ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:1962:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec size_t __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_mbstowcs ... no
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_7C6DBA662D704E108E9407E27F37F370.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_9CD032C2CC9A4116A9F493D18291D116.c
> clang -c -Qunused-arguments -m64 -Werror -std=c99 -D_GNU_SOURCE=1 -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_2844741D1B1A41208C41A3E1D460B780.o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_177788B3934E4F57B81E9979C917F6E7.c
> checking for c includes(time.h)
> checking for c funcs(localtime)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_4107745B110741E2AA85FAE9C190B4AF.c:8:41: error: 'localtime' is deprecated: This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* plocaltime = (void*)&localtime;;
                                        ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\time.h:524:9: note: 'localtime' has been explicitly marked deprecated here
        _CRT_INSECURE_DEPRECATE(localtime_s)
        ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_localtime ... no
> checking for c includes(stdlib.h)
> checking for c funcs(random)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_892A629365714E12B210672E20CC77E1.c:8:38: error: use of undeclared identifier 'random'; did you mean 'prandom'?
    volatile void* prandom = (void*)&random;;
                                     ^~~~~~
                                     prandom
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_892A629365714E12B210672E20CC77E1.c:8:20: note: 'prandom' declared here
    volatile void* prandom = (void*)&random;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_random ... no
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
2 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8)
checking for windows__InterlockedExchange8 ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_BA77FDD635E645C08620A8D7EC627FB6.c:6:19: warning: '_InterlockedExchangeAdd64_nf' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchangeAdd64_nf)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_NF)
checking for windows__InterlockedExchangeAdd64_nf ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_2EE7EEF8C0984FBCB60C7E7062BBD6B4.c:6:19: warning: '_InterlockedOr8_rel' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedOr8_rel)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_REL)
checking for windows__InterlockedOr8_rel ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
2 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64)
checking for windows__InterlockedExchangeAdd64 ... ok
> checking for c includes(signal.h, setjmp.h)
> checking for c funcs(setjmp)
checking for libc_setjmp ... ok
> checking for c includes(valgrind/valgrind.h)
> checking for c funcs(VALGRIND_STACK_REGISTER)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_B0CD58A9A6C144F19CAA87F1B2606BB6.c:2:10: fatal error: 'valgrind/valgrind.h' file not found
#include <valgrind/valgrind.h>
         ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for valgrind_VALGRIND_STACK_REGISTER ... no
> checking for c includes(time.h)
> checking for c funcs(mktime)
checking for libc_mktime ... ok
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_628869C0DE4548C3ACF6E1250D63AB3C.c:6:19: warning: '_InterlockedExchangeAdd_acq' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchangeAdd_acq)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_ACQ)
checking for windows__InterlockedExchangeAdd_acq ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcsncpy)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_33348E3A796A46D79BDBC3DC18B2A564.c:9:39: error: 'wcsncpy' is deprecated: This function or variable may be unsafe. Consider using wcsncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pwcsncpy = (void*)&wcsncpy;;
                                      ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_wstring.h:200:1: note: 'wcsncpy' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:1935:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcsncpy ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strcpy)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C86331682E424259AE17ABBEFBDB695C.c:9:38: error: 'strcpy' is deprecated: This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pstrcpy = (void*)&strcpy;;
                                     ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\string.h:130:1: note: 'strcpy' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:835:5: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1'
    __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1)
    ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:1894:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_strcpy ... no
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_D5169B9B52D64907A7393335EC1CA128.c:6:19: warning: '_InterlockedExchange8_acq' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchange8_acq)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_ACQ)
checking for windows__InterlockedExchange8_acq ... ok
> checking for c includes(math.h)
> checking for c funcs(acos)
checking for libm_acos ... ok
> clang++ -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_BB15D6DFD8BE425082E37996EE7B68A0.b C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_BB15D6DFD8BE425082E37996EE7B68A0.o -m64 -lpthread
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strrchr)
checking for libc_strrchr ... ok
> checking for c includes(math.h)
> checking for c funcs(fmod)
checking for libm_fmod ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcsncmp)
checking for libc_wcsncmp ... ok
LINK : fatal error LNK1181: cannot open input file 'pthread.lib'
clang++: error: linker command failed with exit code 1181 (use -v to see invocation)
warning: unknown warning option '-WX' [-Wunknown-warning-option]
warning: unknown warning option '-W3' [-Wunknown-warning-option]
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_95E670D807864AC7AF9896679AD78064.c:6:19: warning: '_InterlockedExchangeAdd64_acq' is not a recognized builtin; consider including <intrin.h> to access non-builtin intrinsics [-Wignored-pragma-intrinsic]
#pragma intrinsic(_InterlockedExchangeAdd64_acq)
                  ^
3 warnings generated.
> checking for c includes(windows.h)
> checking for c snippet(TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_ACQ)
checking for windows__InterlockedExchangeAdd64_acq ... ok
> checking for c includes(stdio.h)
> checking for c funcs(fgetc)
checking for libc_fgetc ... ok
> checking for c includes(math.h)
> checking for c funcs(asinf)
checking for libm_asinf ... ok
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcscasestr)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_F4D0BC22E4204DFBB20CE410AD7902B2.c:9:42: error: use of undeclared identifier 'wcscasestr'; did you mean 'pwcscasestr'?
    volatile void* pwcscasestr = (void*)&wcscasestr;;
                                         ^~~~~~~~~~
                                         pwcscasestr
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_F4D0BC22E4204DFBB20CE410AD7902B2.c:9:20: note: 'pwcscasestr' declared here
    volatile void* pwcscasestr = (void*)&wcscasestr;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcscasestr ... no
> checking for c includes(wchar.h, stdlib.h)
> checking for c funcs(wcscpy)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_26F6FED279E748388B2C9D8965780EED.c:9:38: error: 'wcscpy' is deprecated: This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Werror,-Wdeprecated-declarations]
    volatile void* pwcscpy = (void*)&wcscpy;;
                                     ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_wstring.h:119:1: note: 'wcscpy' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1(
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:835:5: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1'
    __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1)
    ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:1894:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1);
                ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:355:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vcruntime.h:345:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_wcscpy ... no
> checking for c links(pthread)
> checking for c snippet(TB_CONFIG_KEYWORD_HAVE_Thread_local)
checkinfo: ...gramdir\core\sandbox\modules\import\core\tool\linker.lua:75: @programdir\core\sandbox\modules\os.lua:372: execv(clang++ -o C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_BB15D6DFD8BE425082E37996EE7B68A0.b C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_BB15D6DFD8BE425082E37996EE7B68A0.o -m64 -lpthread) failed(1181)
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\core\sandbox\modules\os.lua:372]: in function 'execv'
    [@programdir\modules\core\tools\gcc.lua:398]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...gramdir\core\sandbox\modules\import\core\tool\linker.lua:73]: in function 'link'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:223]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for keyword_thread_local ... no
> checking for c includes(string.h, stdlib.h)
> checking for c funcs(strncasecmp)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:709: C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_BAA773396073484B8AA1449516D7C81D.c:9:43: error: use of undeclared identifier 'strncasecmp'; did you mean 'pstrncasecmp'?
    volatile void* pstrncasecmp = (void*)&strncasecmp;;
                                          ^~~~~~~~~~~
                                          pstrncasecmp
C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_BAA773396073484B8AA1449516D7C81D.c:9:20: note: 'pstrncasecmp' declared here
    volatile void* pstrncasecmp = (void*)&strncasecmp;;
                   ^
1 error generated.
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:897]:
    [@programdir\modules\core\tools\gcc.lua:709]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [@programdir\modules\core\tools\gcc.lua:650]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:82]: in function 'compile'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:218]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:212]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\core\project\option.lua:178]: in function '_do_check_cxsnippets'
    [@programdir\core\project\option.lua:231]:
    [@programdir\core\project\option.lua:279]: in function '_check'
    [@programdir\core\project\option.lua:336]: in function 'check'
    [...dir\core\sandbox\modules\import\core\project\project.lua:107]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:404]:

checking for libc_strncasecmp ... no
generating src\xmake\xmake.config.h.in to build\windows\x64\release\xmake.config.h ..
checking for git ... ok
  > replace VERSION -> 2.7.4
  > replace VERSION_MAJOR -> 2
  > replace VERSION_MINOR -> 7
  > replace VERSION_ALTER -> 4
  > replace VERSION_BUILD -> 202301071228
  > replace GIT_BRANCH -> master
  > replace GIT_COMMIT -> 784ffcfa4
generating src\xmake\xmake.config.h.in ... ok
generating src\tbox\tbox\src\tbox\tbox.config.h.in to build\windows\x64\release\tbox.config.h ..
  > replace VERSION -> 1.7.1
  > replace VERSION_MAJOR -> 1
  > replace VERSION_MINOR -> 7
  > replace VERSION_ALTER -> 1
  > replace VERSION_BUILD -> 202301071228
  > replace OS -> WINDOWS
  > replace _GNU_SOURCE -> #define _GNU_SOURCE 1
  > replace _REENTRANT -> #define _REENTRANT 1
  > replace TB_CONFIG_SMALL -> #define TB_CONFIG_SMALL 1
  > replace TB_CONFIG_MICRO_ENABLE -> /* #undef TB_CONFIG_MICRO_ENABLE */
  > replace TB_CONFIG_TYPE_HAVE_WCHAR -> /* #undef TB_CONFIG_TYPE_HAVE_WCHAR */
  > replace TB_CONFIG_TYPE_HAVE_FLOAT -> #define TB_CONFIG_TYPE_HAVE_FLOAT 1
  > replace TB_CONFIG_FORCE_UTF8 -> #define TB_CONFIG_FORCE_UTF8 1
  > replace TB_CONFIG_API_HAVE_DEPRECATED -> /* #undef TB_CONFIG_API_HAVE_DEPRECATED */
  > replace TB_CONFIG_EXCEPTION_ENABLE -> /* #undef TB_CONFIG_EXCEPTION_ENABLE */
  > replace TB_CONFIG_KEYWORD_HAVE__thread -> /* #undef TB_CONFIG_KEYWORD_HAVE__thread */
  > replace TB_CONFIG_KEYWORD_HAVE_Thread_local -> /* #undef TB_CONFIG_KEYWORD_HAVE_Thread_local */
  > replace TB_CONFIG_FEATURE_HAVE_ANONYMOUS_UNION -> #define TB_CONFIG_FEATURE_HAVE_ANONYMOUS_UNION 1
  > replace TB_CONFIG_MODULE_HAVE_XML -> /* #undef TB_CONFIG_MODULE_HAVE_XML */
  > replace TB_CONFIG_MODULE_HAVE_ZIP -> /* #undef TB_CONFIG_MODULE_HAVE_ZIP */
  > replace TB_CONFIG_MODULE_HAVE_HASH -> #define TB_CONFIG_MODULE_HAVE_HASH 1
  > replace TB_CONFIG_MODULE_HAVE_REGEX -> /* #undef TB_CONFIG_MODULE_HAVE_REGEX */
  > replace TB_CONFIG_MODULE_HAVE_OBJECT -> /* #undef TB_CONFIG_MODULE_HAVE_OBJECT */
  > replace TB_CONFIG_MODULE_HAVE_CHARSET -> #define TB_CONFIG_MODULE_HAVE_CHARSET 1
  > replace TB_CONFIG_MODULE_HAVE_DATABASE -> /* #undef TB_CONFIG_MODULE_HAVE_DATABASE */
  > replace TB_CONFIG_MODULE_HAVE_COROUTINE -> /* #undef TB_CONFIG_MODULE_HAVE_COROUTINE */
  > replace TB_CONFIG_PACKAGE_HAVE_ZLIB -> /* #undef TB_CONFIG_PACKAGE_HAVE_ZLIB */
  > replace TB_CONFIG_PACKAGE_HAVE_MYSQL -> /* #undef TB_CONFIG_PACKAGE_HAVE_MYSQL */
  > replace TB_CONFIG_PACKAGE_HAVE_SQLITE3 -> /* #undef TB_CONFIG_PACKAGE_HAVE_SQLITE3 */
  > replace TB_CONFIG_PACKAGE_HAVE_OPENSSL -> /* #undef TB_CONFIG_PACKAGE_HAVE_OPENSSL */
  > replace TB_CONFIG_PACKAGE_HAVE_POLARSSL -> /* #undef TB_CONFIG_PACKAGE_HAVE_POLARSSL */
  > replace TB_CONFIG_PACKAGE_HAVE_MBEDTLS -> /* #undef TB_CONFIG_PACKAGE_HAVE_MBEDTLS */
  > replace TB_CONFIG_PACKAGE_HAVE_PCRE2 -> /* #undef TB_CONFIG_PACKAGE_HAVE_PCRE2 */
  > replace TB_CONFIG_PACKAGE_HAVE_PCRE -> /* #undef TB_CONFIG_PACKAGE_HAVE_PCRE */
  > replace TB_CONFIG_LIBC_HAVE_MEMCPY -> #define TB_CONFIG_LIBC_HAVE_MEMCPY 1
  > replace TB_CONFIG_LIBC_HAVE_MEMSET -> #define TB_CONFIG_LIBC_HAVE_MEMSET 1
  > replace TB_CONFIG_LIBC_HAVE_MEMMOVE -> #define TB_CONFIG_LIBC_HAVE_MEMMOVE 1
  > replace TB_CONFIG_LIBC_HAVE_MEMCMP -> #define TB_CONFIG_LIBC_HAVE_MEMCMP 1
  > replace TB_CONFIG_LIBC_HAVE_MEMMEM -> /* #undef TB_CONFIG_LIBC_HAVE_MEMMEM */
  > replace TB_CONFIG_LIBC_HAVE_STRCAT -> /* #undef TB_CONFIG_LIBC_HAVE_STRCAT */
  > replace TB_CONFIG_LIBC_HAVE_STRNCAT -> /* #undef TB_CONFIG_LIBC_HAVE_STRNCAT */
  > replace TB_CONFIG_LIBC_HAVE_STRCPY -> /* #undef TB_CONFIG_LIBC_HAVE_STRCPY */
  > replace TB_CONFIG_LIBC_HAVE_STRNCPY -> /* #undef TB_CONFIG_LIBC_HAVE_STRNCPY */
  > replace TB_CONFIG_LIBC_HAVE_STRLCPY -> /* #undef TB_CONFIG_LIBC_HAVE_STRLCPY */
  > replace TB_CONFIG_LIBC_HAVE_STRLEN -> #define TB_CONFIG_LIBC_HAVE_STRLEN 1
  > replace TB_CONFIG_LIBC_HAVE_STRNLEN -> #define TB_CONFIG_LIBC_HAVE_STRNLEN 1
  > replace TB_CONFIG_LIBC_HAVE_STRCHR -> #define TB_CONFIG_LIBC_HAVE_STRCHR 1
  > replace TB_CONFIG_LIBC_HAVE_STRRCHR -> #define TB_CONFIG_LIBC_HAVE_STRRCHR 1
  > replace TB_CONFIG_LIBC_HAVE_STRSTR -> #define TB_CONFIG_LIBC_HAVE_STRSTR 1
  > replace TB_CONFIG_LIBC_HAVE_STRCASESTR -> /* #undef TB_CONFIG_LIBC_HAVE_STRCASESTR */
  > replace TB_CONFIG_LIBC_HAVE_STRCMP -> #define TB_CONFIG_LIBC_HAVE_STRCMP 1
  > replace TB_CONFIG_LIBC_HAVE_STRCASECMP -> /* #undef TB_CONFIG_LIBC_HAVE_STRCASECMP */
  > replace TB_CONFIG_LIBC_HAVE_STRNCMP -> #define TB_CONFIG_LIBC_HAVE_STRNCMP 1
  > replace TB_CONFIG_LIBC_HAVE_STRNCASECMP -> /* #undef TB_CONFIG_LIBC_HAVE_STRNCASECMP */
  > replace TB_CONFIG_LIBC_HAVE_WCSCAT -> /* #undef TB_CONFIG_LIBC_HAVE_WCSCAT */
  > replace TB_CONFIG_LIBC_HAVE_WCSNCAT -> /* #undef TB_CONFIG_LIBC_HAVE_WCSNCAT */
  > replace TB_CONFIG_LIBC_HAVE_WCSCPY -> /* #undef TB_CONFIG_LIBC_HAVE_WCSCPY */
  > replace TB_CONFIG_LIBC_HAVE_WCSNCPY -> /* #undef TB_CONFIG_LIBC_HAVE_WCSNCPY */
  > replace TB_CONFIG_LIBC_HAVE_WCSLCPY -> /* #undef TB_CONFIG_LIBC_HAVE_WCSLCPY */
  > replace TB_CONFIG_LIBC_HAVE_WCSLEN -> #define TB_CONFIG_LIBC_HAVE_WCSLEN 1
  > replace TB_CONFIG_LIBC_HAVE_WCSNLEN -> #define TB_CONFIG_LIBC_HAVE_WCSNLEN 1
  > replace TB_CONFIG_LIBC_HAVE_WCSSTR -> #define TB_CONFIG_LIBC_HAVE_WCSSTR 1
  > replace TB_CONFIG_LIBC_HAVE_WCSCASESTR -> /* #undef TB_CONFIG_LIBC_HAVE_WCSCASESTR */
  > replace TB_CONFIG_LIBC_HAVE_WCSCMP -> #define TB_CONFIG_LIBC_HAVE_WCSCMP 1
  > replace TB_CONFIG_LIBC_HAVE_WCSCASECMP -> /* #undef TB_CONFIG_LIBC_HAVE_WCSCASECMP */
  > replace TB_CONFIG_LIBC_HAVE_WCSNCMP -> #define TB_CONFIG_LIBC_HAVE_WCSNCMP 1
  > replace TB_CONFIG_LIBC_HAVE_WCSNCASECMP -> /* #undef TB_CONFIG_LIBC_HAVE_WCSNCASECMP */
  > replace TB_CONFIG_LIBC_HAVE_WCSTOMBS -> /* #undef TB_CONFIG_LIBC_HAVE_WCSTOMBS */
  > replace TB_CONFIG_LIBC_HAVE_MBSTOWCS -> /* #undef TB_CONFIG_LIBC_HAVE_MBSTOWCS */
  > replace TB_CONFIG_LIBC_HAVE_GMTIME -> /* #undef TB_CONFIG_LIBC_HAVE_GMTIME */
  > replace TB_CONFIG_LIBC_HAVE_MKTIME -> #define TB_CONFIG_LIBC_HAVE_MKTIME 1
  > replace TB_CONFIG_LIBC_HAVE_LOCALTIME -> /* #undef TB_CONFIG_LIBC_HAVE_LOCALTIME */
  > replace TB_CONFIG_LIBC_HAVE_GETTIMEOFDAY -> /* #undef TB_CONFIG_LIBC_HAVE_GETTIMEOFDAY */
  > replace TB_CONFIG_LIBC_HAVE_SIGNAL -> #define TB_CONFIG_LIBC_HAVE_SIGNAL 1
  > replace TB_CONFIG_LIBC_HAVE_SETJMP -> #define TB_CONFIG_LIBC_HAVE_SETJMP 1
  > replace TB_CONFIG_LIBC_HAVE_SIGSETJMP -> /* #undef TB_CONFIG_LIBC_HAVE_SIGSETJMP */
  > replace TB_CONFIG_LIBC_HAVE_KILL -> /* #undef TB_CONFIG_LIBC_HAVE_KILL */
  > replace TB_CONFIG_LIBC_HAVE_BACKTRACE -> /* #undef TB_CONFIG_LIBC_HAVE_BACKTRACE */
  > replace TB_CONFIG_LIBC_HAVE_SETLOCALE -> #define TB_CONFIG_LIBC_HAVE_SETLOCALE 1
  > replace TB_CONFIG_LIBC_HAVE_FPUTC -> #define TB_CONFIG_LIBC_HAVE_FPUTC 1
  > replace TB_CONFIG_LIBC_HAVE_FGETC -> #define TB_CONFIG_LIBC_HAVE_FGETC 1
  > replace TB_CONFIG_LIBC_HAVE_UNGETC -> #define TB_CONFIG_LIBC_HAVE_UNGETC 1
  > replace TB_CONFIG_LIBC_HAVE_FPUTS -> #define TB_CONFIG_LIBC_HAVE_FPUTS 1
  > replace TB_CONFIG_LIBC_HAVE_FGETS -> #define TB_CONFIG_LIBC_HAVE_FGETS 1
  > replace TB_CONFIG_LIBC_HAVE_FREAD -> #define TB_CONFIG_LIBC_HAVE_FREAD 1
  > replace TB_CONFIG_LIBC_HAVE_FWRITE -> #define TB_CONFIG_LIBC_HAVE_FWRITE 1
  > replace TB_CONFIG_LIBC_HAVE_SRANDOM -> /* #undef TB_CONFIG_LIBC_HAVE_SRANDOM */
  > replace TB_CONFIG_LIBC_HAVE_RANDOM -> /* #undef TB_CONFIG_LIBC_HAVE_RANDOM */
  > replace TB_CONFIG_LIBM_HAVE_SINCOS -> /* #undef TB_CONFIG_LIBM_HAVE_SINCOS */
  > replace TB_CONFIG_LIBM_HAVE_SINCOSF -> /* #undef TB_CONFIG_LIBM_HAVE_SINCOSF */
  > replace TB_CONFIG_LIBM_HAVE_LOG2 -> #define TB_CONFIG_LIBM_HAVE_LOG2 1
  > replace TB_CONFIG_LIBM_HAVE_LOG2F -> #define TB_CONFIG_LIBM_HAVE_LOG2F 1
  > replace TB_CONFIG_LIBM_HAVE_SQRT -> #define TB_CONFIG_LIBM_HAVE_SQRT 1
  > replace TB_CONFIG_LIBM_HAVE_SQRTF -> #define TB_CONFIG_LIBM_HAVE_SQRTF 1
  > replace TB_CONFIG_LIBM_HAVE_ACOS -> #define TB_CONFIG_LIBM_HAVE_ACOS 1
  > replace TB_CONFIG_LIBM_HAVE_ACOSF -> #define TB_CONFIG_LIBM_HAVE_ACOSF 1
  > replace TB_CONFIG_LIBM_HAVE_ASIN -> #define TB_CONFIG_LIBM_HAVE_ASIN 1
  > replace TB_CONFIG_LIBM_HAVE_ASINF -> #define TB_CONFIG_LIBM_HAVE_ASINF 1
  > replace TB_CONFIG_LIBM_HAVE_POW -> #define TB_CONFIG_LIBM_HAVE_POW 1
  > replace TB_CONFIG_LIBM_HAVE_POWF -> #define TB_CONFIG_LIBM_HAVE_POWF 1
  > replace TB_CONFIG_LIBM_HAVE_FMOD -> #define TB_CONFIG_LIBM_HAVE_FMOD 1
  > replace TB_CONFIG_LIBM_HAVE_FMODF -> #define TB_CONFIG_LIBM_HAVE_FMODF 1
  > replace TB_CONFIG_LIBM_HAVE_TAN -> #define TB_CONFIG_LIBM_HAVE_TAN 1
  > replace TB_CONFIG_LIBM_HAVE_TANF -> #define TB_CONFIG_LIBM_HAVE_TANF 1
  > replace TB_CONFIG_LIBM_HAVE_ATAN -> #define TB_CONFIG_LIBM_HAVE_ATAN 1
  > replace TB_CONFIG_LIBM_HAVE_ATANF -> #define TB_CONFIG_LIBM_HAVE_ATANF 1
  > replace TB_CONFIG_LIBM_HAVE_ATAN2 -> #define TB_CONFIG_LIBM_HAVE_ATAN2 1
  > replace TB_CONFIG_LIBM_HAVE_ATAN2F -> #define TB_CONFIG_LIBM_HAVE_ATAN2F 1
  > replace TB_CONFIG_LIBM_HAVE_COS -> #define TB_CONFIG_LIBM_HAVE_COS 1
  > replace TB_CONFIG_LIBM_HAVE_COSF -> #define TB_CONFIG_LIBM_HAVE_COSF 1
  > replace TB_CONFIG_LIBM_HAVE_SIN -> #define TB_CONFIG_LIBM_HAVE_SIN 1
  > replace TB_CONFIG_LIBM_HAVE_SINF -> #define TB_CONFIG_LIBM_HAVE_SINF 1
  > replace TB_CONFIG_LIBM_HAVE_EXP -> #define TB_CONFIG_LIBM_HAVE_EXP 1
  > replace TB_CONFIG_LIBM_HAVE_EXPF -> #define TB_CONFIG_LIBM_HAVE_EXPF 1
  > replace TB_CONFIG_POSIX_HAVE_POLL -> /* #undef TB_CONFIG_POSIX_HAVE_POLL */
  > replace TB_CONFIG_POSIX_HAVE_SELECT -> /* #undef TB_CONFIG_POSIX_HAVE_SELECT */
  > replace TB_CONFIG_POSIX_HAVE_PTHREAD_MUTEX_INIT -> /* #undef TB_CONFIG_POSIX_HAVE_PTHREAD_MUTEX_INIT */
  > replace TB_CONFIG_POSIX_HAVE_PTHREAD_CREATE -> /* #undef TB_CONFIG_POSIX_HAVE_PTHREAD_CREATE */
  > replace TB_CONFIG_POSIX_HAVE_PTHREAD_SETSPECIFIC -> /* #undef TB_CONFIG_POSIX_HAVE_PTHREAD_SETSPECIFIC */
  > replace TB_CONFIG_POSIX_HAVE_PTHREAD_GETSPECIFIC -> /* #undef TB_CONFIG_POSIX_HAVE_PTHREAD_GETSPECIFIC */
  > replace TB_CONFIG_POSIX_HAVE_PTHREAD_KEY_CREATE -> /* #undef TB_CONFIG_POSIX_HAVE_PTHREAD_KEY_CREATE */
  > replace TB_CONFIG_POSIX_HAVE_PTHREAD_KEY_DELETE -> /* #undef TB_CONFIG_POSIX_HAVE_PTHREAD_KEY_DELETE */
  > replace TB_CONFIG_POSIX_HAVE_PTHREAD_SETAFFINITY_NP -> /* #undef TB_CONFIG_POSIX_HAVE_PTHREAD_SETAFFINITY_NP */
  > replace TB_CONFIG_POSIX_HAVE_SOCKET -> /* #undef TB_CONFIG_POSIX_HAVE_SOCKET */
  > replace TB_CONFIG_POSIX_HAVE_OPENDIR -> /* #undef TB_CONFIG_POSIX_HAVE_OPENDIR */
  > replace TB_CONFIG_POSIX_HAVE_DLOPEN -> /* #undef TB_CONFIG_POSIX_HAVE_DLOPEN */
  > replace TB_CONFIG_POSIX_HAVE_OPEN -> /* #undef TB_CONFIG_POSIX_HAVE_OPEN */
  > replace TB_CONFIG_POSIX_HAVE_STAT64 -> /* #undef TB_CONFIG_POSIX_HAVE_STAT64 */
  > replace TB_CONFIG_POSIX_HAVE_LSTAT64 -> /* #undef TB_CONFIG_POSIX_HAVE_LSTAT64 */
  > replace TB_CONFIG_POSIX_HAVE_GETHOSTNAME -> /* #undef TB_CONFIG_POSIX_HAVE_GETHOSTNAME */
  > replace TB_CONFIG_POSIX_HAVE_GETIFADDRS -> /* #undef TB_CONFIG_POSIX_HAVE_GETIFADDRS */
  > replace TB_CONFIG_POSIX_HAVE_SEM_INIT -> /* #undef TB_CONFIG_POSIX_HAVE_SEM_INIT */
  > replace TB_CONFIG_POSIX_HAVE_GETPAGESIZE -> /* #undef TB_CONFIG_POSIX_HAVE_GETPAGESIZE */
  > replace TB_CONFIG_POSIX_HAVE_SYSCONF -> /* #undef TB_CONFIG_POSIX_HAVE_SYSCONF */
  > replace TB_CONFIG_POSIX_HAVE_SCHED_YIELD -> /* #undef TB_CONFIG_POSIX_HAVE_SCHED_YIELD */
  > replace TB_CONFIG_POSIX_HAVE_SCHED_SETAFFINITY -> /* #undef TB_CONFIG_POSIX_HAVE_SCHED_SETAFFINITY */
  > replace TB_CONFIG_POSIX_HAVE_REGCOMP -> /* #undef TB_CONFIG_POSIX_HAVE_REGCOMP */
  > replace TB_CONFIG_POSIX_HAVE_REGEXEC -> /* #undef TB_CONFIG_POSIX_HAVE_REGEXEC */
  > replace TB_CONFIG_POSIX_HAVE_READV -> /* #undef TB_CONFIG_POSIX_HAVE_READV */
  > replace TB_CONFIG_POSIX_HAVE_WRITEV -> /* #undef TB_CONFIG_POSIX_HAVE_WRITEV */
  > replace TB_CONFIG_POSIX_HAVE_PREADV -> /* #undef TB_CONFIG_POSIX_HAVE_PREADV */
  > replace TB_CONFIG_POSIX_HAVE_PWRITEV -> /* #undef TB_CONFIG_POSIX_HAVE_PWRITEV */
  > replace TB_CONFIG_POSIX_HAVE_PREAD64 -> /* #undef TB_CONFIG_POSIX_HAVE_PREAD64 */
  > replace TB_CONFIG_POSIX_HAVE_PWRITE64 -> /* #undef TB_CONFIG_POSIX_HAVE_PWRITE64 */
  > replace TB_CONFIG_POSIX_HAVE_FDATASYNC -> /* #undef TB_CONFIG_POSIX_HAVE_FDATASYNC */
  > replace TB_CONFIG_POSIX_HAVE_COPYFILE -> /* #undef TB_CONFIG_POSIX_HAVE_COPYFILE */
  > replace TB_CONFIG_POSIX_HAVE_SENDFILE -> /* #undef TB_CONFIG_POSIX_HAVE_SENDFILE */
  > replace TB_CONFIG_POSIX_HAVE_EPOLL_CREATE -> /* #undef TB_CONFIG_POSIX_HAVE_EPOLL_CREATE */
  > replace TB_CONFIG_POSIX_HAVE_EPOLL_WAIT -> /* #undef TB_CONFIG_POSIX_HAVE_EPOLL_WAIT */
  > replace TB_CONFIG_POSIX_HAVE_POSIX_SPAWNP -> /* #undef TB_CONFIG_POSIX_HAVE_POSIX_SPAWNP */
  > replace TB_CONFIG_POSIX_HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR_NP -> /* #undef TB_CONFIG_POSIX_HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR_NP */
  > replace TB_CONFIG_POSIX_HAVE_EXECVP -> /* #undef TB_CONFIG_POSIX_HAVE_EXECVP */
  > replace TB_CONFIG_POSIX_HAVE_EXECVPE -> /* #undef TB_CONFIG_POSIX_HAVE_EXECVPE */
  > replace TB_CONFIG_POSIX_HAVE_FORK -> /* #undef TB_CONFIG_POSIX_HAVE_FORK */
  > replace TB_CONFIG_POSIX_HAVE_VFORK -> /* #undef TB_CONFIG_POSIX_HAVE_VFORK */
  > replace TB_CONFIG_POSIX_HAVE_WAITPID -> /* #undef TB_CONFIG_POSIX_HAVE_WAITPID */
  > replace TB_CONFIG_POSIX_HAVE_GETDTABLESIZE -> /* #undef TB_CONFIG_POSIX_HAVE_GETDTABLESIZE */
  > replace TB_CONFIG_POSIX_HAVE_GETRLIMIT -> /* #undef TB_CONFIG_POSIX_HAVE_GETRLIMIT */
  > replace TB_CONFIG_POSIX_HAVE_GETADDRINFO -> /* #undef TB_CONFIG_POSIX_HAVE_GETADDRINFO */
  > replace TB_CONFIG_POSIX_HAVE_GETNAMEINFO -> /* #undef TB_CONFIG_POSIX_HAVE_GETNAMEINFO */
  > replace TB_CONFIG_POSIX_HAVE_GETHOSTBYNAME -> /* #undef TB_CONFIG_POSIX_HAVE_GETHOSTBYNAME */
  > replace TB_CONFIG_POSIX_HAVE_GETHOSTBYADDR -> /* #undef TB_CONFIG_POSIX_HAVE_GETHOSTBYADDR */
  > replace TB_CONFIG_POSIX_HAVE_FCNTL -> /* #undef TB_CONFIG_POSIX_HAVE_FCNTL */
  > replace TB_CONFIG_POSIX_HAVE_PIPE -> /* #undef TB_CONFIG_POSIX_HAVE_PIPE */
  > replace TB_CONFIG_POSIX_HAVE_PIPE2 -> /* #undef TB_CONFIG_POSIX_HAVE_PIPE2 */
  > replace TB_CONFIG_POSIX_HAVE_MKFIFO -> /* #undef TB_CONFIG_POSIX_HAVE_MKFIFO */
  > replace TB_CONFIG_POSIX_HAVE_MMAP -> /* #undef TB_CONFIG_POSIX_HAVE_MMAP */
  > replace TB_CONFIG_POSIX_HAVE_FUTIMENS -> /* #undef TB_CONFIG_POSIX_HAVE_FUTIMENS */
  > replace TB_CONFIG_POSIX_HAVE_UTIMENSAT -> /* #undef TB_CONFIG_POSIX_HAVE_UTIMENSAT */
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_NF -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_NF 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_ACQ -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_ACQ 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_REL -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE_REL 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8 -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_NF -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_NF 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_ACQ -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_ACQ 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_REL -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGE8_REL 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8 -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_NF -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_NF 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_ACQ -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_ACQ 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_REL -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDOR8_REL 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_NF -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_NF 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_ACQ -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_ACQ 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_REL -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD_REL 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64 -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_NF -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_NF 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_ACQ -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_ACQ 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_REL -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDEXCHANGEADD64_REL 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_NF -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_NF 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_ACQ -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_ACQ 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_REL -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE_REL 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64 -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_NF -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_NF 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_ACQ -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_ACQ 1
  > replace TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_REL -> #define TB_CONFIG_WINDOWS_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_REL 1
  > replace TB_CONFIG_BSD_HAVE_FLOCK -> /* #undef TB_CONFIG_BSD_HAVE_FLOCK */
  > replace TB_CONFIG_SYSTEMV_HAVE_SEMGET -> /* #undef TB_CONFIG_SYSTEMV_HAVE_SEMGET */
  > replace TB_CONFIG_SYSTEMV_HAVE_SEMTIMEDOP -> /* #undef TB_CONFIG_SYSTEMV_HAVE_SEMTIMEDOP */
  > replace TB_CONFIG_LINUX_HAVE_INOTIFY_INIT -> /* #undef TB_CONFIG_LINUX_HAVE_INOTIFY_INIT */
  > replace TB_CONFIG_VALGRIND_HAVE_VALGRIND_STACK_REGISTER -> /* #undef TB_CONFIG_VALGRIND_HAVE_VALGRIND_STACK_REGISTER */
generating src\tbox\tbox\src\tbox\tbox.config.h.in ... ok
configure
{
    clean = true
    polarssl = false
    zlib = false
    coroutine = false
    deprecated = false
    ndk_stdcxx = true
    xml = false
    arch = x64
    plat = windows
    ccache = true
    mbedtls = false
    regex = false
    micro = false
    pcre = false
    pcre2 = false
    buildir = build
    curses = false
    sqlite3 = false
    runtime = lua
    network = public
    float = true
    database = false
    force-utf8 = true
    proxy_pac = pac.lua
    exception = false
    host = windows
    mode = release
    kind = static
    readline = false
    info = false
    small = true
    onlylib = false
    mysql = false
    charset = true
    openssl = false
    pdcurses = true
    demo = false
    hash = true
    object = false
    wchar = false
    zip = false
    theme = default
}

@lanjackg2003
Copy link
Contributor Author

查看temp目录下的脚本C:\Users\Jack\AppData\Local\Temp\.xmake\230107\_C07D8C2A329E40508D3FB2E4C9758C80_genvcvars.bat

@echo off
chcp 65001
set VSCMD_SKIP_SENDTELEMETRY=yes
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64  > nul
echo path = %path%
echo lib = %lib%
echo libpath = %libpath%
echo include = %include%
echo DevEnvdir = %DevEnvdir%
echo VSInstallDir = %VSInstallDir%
echo VCInstallDir = %VCInstallDir%
echo WindowsSdkDir = %WindowsSdkDir%
echo WindowsLibPath = %WindowsLibPath%
echo WindowsSDKVersion = %WindowsSDKVersion%
echo WindowsSdkBinPath = %WindowsSdkBinPath%
echo WindowsSdkVerBinPath = %WindowsSdkVerBinPath%
echo ExtensionSdkDir = %ExtensionSdkDir%
echo UniversalCRTSdkDir = %UniversalCRTSdkDir%
echo UCRTVersion = %UCRTVersion%
echo VCToolsVersion = %VCToolsVersion%
echo VCIDEInstallDir = %VCIDEInstallDir%
echo VCToolsInstallDir = %VCToolsInstallDir%
echo VCToolsRedistDir = %VCToolsRedistDir%
echo VisualStudioVersion = %VisualStudioVersion%
echo VSCMD_VER = %VSCMD_VER%
echo VSCMD_ARG_app_plat = %VSCMD_ARG_app_plat%
echo VSCMD_ARG_HOST_ARCH = %VSCMD_ARG_HOST_ARCH%
echo VSCMD_ARG_TGT_ARCH = %VSCMD_ARG_TGT_ARCH%
echo VS150COMNTOOLS = %VS150COMNTOOLS%
echo VS160COMNTOOLS = %VS160COMNTOOLS%
echo VS120COMNTOOLS = %VS120COMNTOOLS%
echo VS140COMNTOOLS = %VS140COMNTOOLS%
echo VS100COMNTOOLS = %VS100COMNTOOLS%
echo VS90COMNTOOLS = %VS90COMNTOOLS%
echo VS60COMNTOOLS = %VS60COMNTOOLS%
echo VS70COMNTOOLS = %VS70COMNTOOLS%
echo VS71COMNTOOLS = %VS71COMNTOOLS%
echo VS170COMNTOOLS = %VS170COMNTOOLS%
echo VS80COMNTOOLS = %VS80COMNTOOLS%
echo VS50COMNTOOLS = %VS50COMNTOOLS%
echo VS42COMNTOOLS = %VS42COMNTOOLS%
echo VS110COMNTOOLS = %VS110COMNTOOLS%
echo VS150COMNTOOLS = %VS150COMNTOOLS%
echo VS160COMNTOOLS = %VS160COMNTOOLS%
echo VS120COMNTOOLS = %VS120COMNTOOLS%
echo VS140COMNTOOLS = %VS140COMNTOOLS%
echo VS100COMNTOOLS = %VS100COMNTOOLS%
echo VS90COMNTOOLS = %VS90COMNTOOLS%
echo VS60COMNTOOLS = %VS60COMNTOOLS%
echo VS70COMNTOOLS = %VS70COMNTOOLS%
echo VS71COMNTOOLS = %VS71COMNTOOLS%
echo VS170COMNTOOLS = %VS170COMNTOOLS%
echo VS80COMNTOOLS = %VS80COMNTOOLS%
echo VS50COMNTOOLS = %VS50COMNTOOLS%
echo VS42COMNTOOLS = %VS42COMNTOOLS%
echo VS110COMNTOOLS = %VS110COMNTOOLS%

手动在命令行运行

"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64  > nul

出现异常日志

C:\Users\Jack>call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64  > nul
此时不应有 "}},"anonymousId":"jack-pc\\jack。

所以是否存在VS2022的vcvarsall.bat传参跟之前的版本不一致导致的?

@lanjackg2003
Copy link
Contributor Author

#2927 是不是cmd有问题

请问你如何定位到问题的
怎么确定是cmd的问题?

@waruqi
Copy link
Member

waruqi commented Jan 7, 2023

所以是否存在VS2022的vcvarsall.bat传参跟之前的版本不一致导致的?

参数一般不会变,其他用户 2022 的也没遇到类似问题。可以检查下 vcvarsall.bat 里面的脚本

@xq114
Copy link
Contributor

xq114 commented Jan 7, 2023

请问你如何定位到问题的 怎么确定是cmd的问题?

运行一下 xmake l winos.version ,如果正常输出cmd就没问题,不能的话就是cmd问题。xmake是通过cmd调用vcvarsall.bat的,我那里vcvarsall.bat没问题,就只能是cmd有问题了

@lanjackg2003
Copy link
Contributor Author

请问你如何定位到问题的 怎么确定是cmd的问题?

运行一下 xmake l winos.version ,如果正常输出cmd就没问题,不能的话就是cmd问题。xmake是通过cmd调用vcvarsall.bat的,我那里vcvarsall.bat没问题,就只能是cmd有问题了

谢谢
通过xmake l winos.version我也是能够输出版本信息

C:\Users\Jack>xmake l winos.version
10.0.22621+963

vcvarsall.bat文件是安装VS2022自带,我没有去动过他,应该没有问题才对。

如果如你所说的cmd有问题,那真的不好找问题

@lanjackg2003
Copy link
Contributor Author

所以是否存在VS2022的vcvarsall.bat传参跟之前的版本不一致导致的?

参数一般不会变,其他用户 2022 的也没遇到类似问题。可以检查下 vcvarsall.bat 里面的脚本

我看了vcvarsall_x64.bat 调用方法也是跟xmake里面的调用方法一致
估计还是系统哪里参数有问题导致的

@waruqi
Copy link
Member

waruqi commented Jan 7, 2023

可以调下你的 vcvarsall.bat 脚本,看下为啥手动执行也失败,xmake 依赖 vcvarsall.bat,它手动执行也失败 那跟 xmake 其实关系不大,你可以调下它。

@lanjackg2003
Copy link
Contributor Author

lanjackg2003 commented Jan 8, 2023

可以调下你的 vcvarsall.bat 脚本,看下为啥手动执行也失败,xmake 依赖 vcvarsall.bat,它手动执行也失败 那跟 xmake 其实关系不大,你可以调下它。

是的,跟xmake关系不大

xmake的编译 MSVC至少要什么版本以上才可以?
MSVC V140 - VS2015 这个我试过可以找到,但无法编译xmake
图片

@waruqi
Copy link
Member

waruqi commented Jan 8, 2023

报什么错,理论上 2008 以上的都应该可以编译

@lanjackg2003
Copy link
Contributor Author

"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64\\cl.exe" -c -nologo -W3 -WX -O1 -GL -TP -ID:\Code\code_server\GitHub\xmake\core -ID:\Code\code_server\GitHub\xmake\core\src -Isrc -Isrc\sv\sv\include -Isrc\lua\lua -Isrc\lz4\lz4\lib -Isrc\tbox\tbox\src -Ibuild\windows\x64\release -Isrc\pdcurses\pdcurses -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_CRT_SECURE_NO_WARNINGS -D__tb_prefix__=\"xmake\" -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_3 /EHsc -MT /utf-8 -DNDEBUG -Fobuild\.objs\demo\windows\x64\release\src\demo\xmake.c.obj src\demo\xmake.c
checking for rc.exe ... no
checking for the windows resource compiler (mrc: rc.exe) ... no
error: ...mdir\core\sandbox\modules\import\core\base\scheduler.lua:56: cannot get program for mrc
stack traceback:
        @programdir\core\base\utils.lua:290: in function <@programdir\core\base\utils.lua:280>
        [C]: in function 'error'
        @programdir\core\base\os.lua:897: in function 'os.raiselevel'
        (...tail calls...)
        ...mdir\core\sandbox\modules\import\core\base\scheduler.lua:56: in field 'co_start_withopt'
        @programdir\modules\private\async\runjobs.lua:217: in function <@programdir\modules\private\async\runjobs.lua:162>
        [C]: in function 'xpcall'
        @programdir\core\base\utils.lua:280: in function 'sandbox/modules/utils.trycall'
        @programdir\core\base\scheduler.lua:520: in function 'base/scheduler.co_group_begin'
        ...mdir\core\sandbox\modules\import\core\base\scheduler.lua:94: in field 'co_group_begin'
        @programdir\modules\private\async\runjobs.lua:162: in function <@programdir\modules\private\async\runjobs.lua:56>
        (...tail calls...)
        @programdir\actions\build\build.lua:259: in function <@programdir\actions\build\build.lua:247>
        (...tail calls...)
        @programdir\actions\build\main.lua:108: in global '_do_build'
        @programdir\actions\build\main.lua:155: in function <@programdir\actions\build\main.lua:149>
        [C]: in function 'xpcall'
        @programdir\core\base\utils.lua:280: in function 'sandbox/modules/utils.trycall'
        @programdir\core\sandbox\modules\try.lua:117: in global 'try'
        @programdir\actions\build\main.lua:147: in function <@programdir\actions\build\main.lua:113>
        (...tail calls...)
        [C]: in function 'xpcall'
        @programdir\core\base\utils.lua:280: in function 'sandbox/modules/utils.trycall'
        (...tail calls...)
        @programdir\core\base\task.lua:501: in function 'base/task.run'
        @programdir\core\main.lua:278: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:404: in function <@programdir\core\base\scheduler.lua:397>

图片

但是我在
C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64路径下可以找到rc.exe
图片

@waruqi
Copy link
Member

waruqi commented Jan 8, 2023

我记得修复过这个问题,这是因为 2015 上, rc.exe 的 bin 路径并没有被 vcvaralls.bat 加载进 PATH 里面导致。。

if envs and envs.WindowsSdkDir and envs.WindowsSDKVersion then

你可以调下这里,按理 xmake 应该加进去了。要么就是 WindowsSDKVersion 或者 WindowsSdkDir 不对,导致没进去

@lanjackg2003
Copy link
Contributor Author

我记得修复过这个问题,这是因为 2015 上, rc.exe 的 bin 路径并没有被 vcvaralls.bat 加载进 PATH 里面导致。。

if envs and envs.WindowsSdkDir and envs.WindowsSDKVersion then

你可以调下这里,按理 xmake 应该加进去了。要么就是 WindowsSDKVersion 或者 WindowsSdkDir 不对,导致没进去

OK

我也搜到之前的问题 #225

@lanjackg2003
Copy link
Contributor Author

find_rc.lua中没有获取到rc.exe全路径
图片

PS D:\Code\code_server\GitHub\xmake\core> xmake -v
 WindowsSdkDir ==> C:\Program Files (x86)\Windows Kits\10\
 WindowsSDKVersion ==> 10.0.22621.0
 opt.program ==> rc.exe
checking for the windows resource compiler (mrc: rc.exe) ... no
error: ...mdir\core\sandbox\modules\import\core\base\scheduler.lua:56: cannot get program for mrc
stack traceback:
        @programdir\core\base\utils.lua:290: in function <@programdir\core\base\utils.lua:280>
        [C]: in function 'error'
        @programdir\core\base\os.lua:897: in function 'base/os.raiselevel'
        (...tail calls...)
        ...mdir\core\sandbox\modules\import\core\base\scheduler.lua:56: in field 'co_start_withopt'
        @programdir\modules\private\async\runjobs.lua:217: in function <@programdir\modules\private\async\runjobs.lua:162>
        [C]: in function 'xpcall'
        @programdir\core\base\utils.lua:280: in function 'base/utils.trycall'
        @programdir\core\base\scheduler.lua:520: in function 'base/scheduler.co_group_begin'
        ...mdir\core\sandbox\modules\import\core\base\scheduler.lua:94: in field 'co_group_begin'
        @programdir\modules\private\async\runjobs.lua:162: in function <@programdir\modules\private\async\runjobs.lua:56>
        (...tail calls...)
        @programdir\actions\build\build.lua:259: in function <@programdir\actions\build\build.lua:247>
        (...tail calls...)
        @programdir\actions\build\main.lua:108: in global '_do_build'
        @programdir\actions\build\main.lua:155: in function <@programdir\actions\build\main.lua:149>
        [C]: in function 'xpcall'
        @programdir\core\base\utils.lua:280: in function 'base/utils.trycall'
        @programdir\core\sandbox\modules\try.lua:117: in global 'try'
        @programdir\actions\build\main.lua:147: in function <@programdir\actions\build\main.lua:113>
        (...tail calls...)
        [C]: in function 'xpcall'
        @programdir\core\base\utils.lua:280: in function 'base/utils.trycall'
        (...tail calls...)
        @programdir\core\base\task.lua:501: in function 'base/task.run'
        @programdir\core\main.lua:278: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:404: in function <@programdir\core\base\scheduler.lua:397>

@lanjackg2003
Copy link
Contributor Author

手动将rc.exe的目录C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\添加到环境变量PATH
然后执行xmake f -c命令
最后在执行编译命令xmake -v
成功编译
图片

@lanjackg2003
Copy link
Contributor Author

总结一下
1、安装VS2022时候单独安装MSVC V143 这个版本,由于我系统问题,无法使用自带的vcvarsall.bat正确得到相关参数,所以XMake也是无法得到;
2、虽说MSVC V143 这个版本不行,但是MSVC V140 - VS2015 这个版本可以通过vcvarsall.bat正确得到相关参,所以可以使用这个版本
3、rc.exe的路径需要添加到PATH环境变量中,并且需要执行xmake f -c命令之后,再执行编译命令xmake -r

@waruqi
Copy link
Member

waruqi commented Jan 8, 2023

不用加 path ,要调 find_rc.lua ,分析为啥没找到,然后改进下就好了。。

7894e62

刚改进过了,应该能找到了。

@waruqi waruqi added this to the v2.7.6 milestone Jan 8, 2023
@lanjackg2003
Copy link
Contributor Author

不用加 path ,要调 find_rc.lua ,分析为啥没找到,然后改进下就好了。。

7894e62

刚改进过了,应该能找到了。

去掉PATH中的rc.exe路径后,重新编译成功。

图片

这个修复没问题

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

No branches or pull requests

3 participants