Xmake Version
dev
Operating System Version and Architecture
Windows
Describe Bug
msys2 + clang toolchain + windows plat
on_test missing msvc runenvs.
{
links = {
"gmp"
},
sysincludedirs = {
"C:\Users\star\AppData\Local\.xmake\packages\g\gmp\6.3.0\e02ce8ef0d854a5596b9a1dd8df4dca0\include"
},
static = true,
license = "LGPL-3.0",
libfiles = {
"C:\Users\star\AppData\Local\.xmake\packages\g\gmp\6.3.0\e02ce8ef0d854a5596b9a1dd8df4dca0\lib\gmp.lib"
},
version = "6.3.0",
linkdirs = {
"C:\Users\star\AppData\Local\.xmake\packages\g\gmp\6.3.0\e02ce8ef0d854a5596b9a1dd8df4dca0\lib"
}
}
checking for clang ... A:\msys64\ucrt64\bin\clang.exe
checking for the c compiler (cc) ... clang.exe
checking for A:\msys64\ucrt64\bin\clang.exe ... a:\msys64\ucrt64\bin\clang.exe
checking for flags (clang_ms_runtime_lib) ... ok
checking for the linker (ld) ... clang++.exe
checking for A:\msys64\ucrt64\bin\clang++.exe ... a:\msys64\ucrt64\bin\clang++.exe
checking for flags (clang_ms_runtime_lib) ... ok
checking for the shared library linker (sh) ... clang++.exe
checking for flags (clang_ms_runtime_lib) ... ok
checking for flags (-fms-runtime-lib=dll) ... ok
checking for flags (-fdiagnostics-color=always) ... ok
checking for flags (-fansi-escape-codes) ... ok
checking for clang++ ... A:\msys64\ucrt64\bin\clang++.exe
checking for the c++ compiler (cxx) ... clang++.exe
checking for flags (-Wno-gnu-line-marker -Werror) ... ok
clang++: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found]
clang++: error: unable to execute command: program not executable
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
> checking for c includes(gmp.h)
> checking for c funcs(gmp_randinit)
> checking for c links(gmp)
> checking for c snippet(has_cfuncs)
error: execv(A:\msys64\ucrt64\bin\clang++.exe -o A:\msys64\tmp\.xmake\251006\_f88780a4282ee729c64bab710ec07570.b A:\msys64\tmp\.xmake\251006\_f88780a4282ee729c64bab710ec07570.o -m64 --target=x86_64-windows-msvc -nostdlib -LC:\Users\star\AppData\Local\.xmake\packages\g\gmp\6.3.0\e02ce8ef0d854a5596b9a1dd8df4dca0\lib -lgmp) failed(1)
fmt
checking for ccache ... C:\Users\star\scoop\shims\ccache.exe
checking for clang++ ... A:\msys64\ucrt64\bin\clang++.exe
checking for the c++ compiler (cxx) ... clang++.exe
checking for ninja ... C:\Users\star\AppData\Local\.xmake\packages\n\ninja\v1.13.1\535277da072b40cc82fbe8dea089ed00\bin\ninja.exe
checking for clang ... A:\msys64\ucrt64\bin\clang.exe
checking for the c compiler (cc) ... clang.exe
checking for cmake ... C:\Users\star\AppData\Local\.xmake\packages\c\cmake\4.0.3\8bbaf4ce9e114a028062bde15550001d\bin\cmake.exe
checking for A:\msys64\ucrt64\bin\clang.exe ... a:\msys64\ucrt64\bin\clang.exe
checking for flags (clang_ms_runtime_lib) ... ok
checking for A:\msys64\ucrt64\bin\clang++.exe ... a:\msys64\ucrt64\bin\clang++.exe
checking for flags (clang_ms_runtime_lib) ... ok
checking for the linker (ld) ... clang++.exe
checking for flags (clang_ms_runtime_lib) ... ok
checking for llvm-ar ... A:\msys64\ucrt64\bin\llvm-ar.exe
checking for the static library archiver (ar) ... llvm-ar.exe
checking for the shared library linker (sh) ... clang++.exe
checking for flags (clang_ms_runtime_lib) ... ok
C:\Users\star\AppData\Local\.xmake\packages\c\cmake\4.0.3\8bbaf4ce9e114a028062bde15550001d\bin\cmake.exe -DFMT_TEST=OFF -DFMT_DOC=OFF -DFMT_FUZZ=OFF -DCMAKE_CXX_VISIBILITY_PRESET=default -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug -DFMT_UNICODE=ON -DCMAKE_INSTALL_PREFIX=C:\Users\star\AppData\Local\.xmake\packages\f\fmt\12.0.0\99bfcf928b574e02b8d9d235f23d2b58 -DCMAKE_INSTALL_LIBDIR:PATH=lib -G Ninja -DCMAKE_MAKE_PROGRAM=C:\Users\star\AppData\Local\.xmake\packages\n\ninja\v1.13.1\535277da072b40cc82fbe8dea089ed00\bin\ninja.exe -DCMAKE_C_COMPILER=A:/msys64/ucrt64/bin/clang.exe -DCMAKE_CXX_COMPILER=A:/msys64/ucrt64/bin/clang++.exe -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL -DCMAKE_PDB_OUTPUT_DIRECTORY=C:/Users/star/AppData/Local/.xmake/cache/packages/2510/f/fmt/12.0.0/source/build_99bfcf92/pdb -DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=C:/Users/star/AppData/Local/.xmake/cache/packages/2510/f/fmt/12.0.0/source/build_99bfcf92/pdb -DCMAKE_POLICY_VERSION_MINIMUM=3.5 "-DCMAKE_MODULE_LINKER_FLAGS_DEBUG= -nostdlib" -DCMAKE_STATIC_LINKER_FLAGS= "-DCMAKE_CXX_FLAGS= -m64 --target=x86_64-windows-msvc" "-DCMAKE_C_FLAGS= -m64 --target=x86_64-windows-msvc" "-DCMAKE_C_FLAGS_DEBUG=-g -fms-runtime-lib=dll" "-DCMAKE_EXE_LINKER_FLAGS_DEBUG= -nostdlib" "-DCMAKE_CXX_FLAGS_DEBUG=-g -fms-runtime-lib=dll" -DCMAKE_STATIC_LINKER_FLAGS_DEBUG= "-DCMAKE_SHARED_LINKER_FLAGS_DEBUG= -nostdlib" -DCMAKE_SHARED_LINKER_FLAGS= -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache C:\Users\star\AppData\Local\.xmake\cache\packages\2510\f\fmt\12.0.0\source
-- CMake version: 4.0.3
-- The CXX compiler identification is Clang 20.1.3 with GNU-like command-line
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: A:/msys64/ucrt64/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- {fmt} version: 12.0.0
-- Build type: Debug
-- Performing Test HAS_NULLPTR_WARNING
-- Performing Test HAS_NULLPTR_WARNING - Success
-- Configuring done (2.0s)
-- Generating done (0.0s)
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_C_COMPILER
CMAKE_C_FLAGS
CMAKE_C_FLAGS_DEBUG
-- Build files have been written to: C:/Users/star/AppData/Local/.xmake/cache/packages/2510/f/fmt/12.0.0/source/build_99bfcf92
C:\Users\star\AppData\Local\.xmake\packages\n\ninja\v1.13.1\535277da072b40cc82fbe8dea089ed00\bin\ninja.exe install -C C:\Users\star\AppData\Local\.xmake\cache\packages\2510\f\fmt\12.0.0\source\build_99bfcf92 -j 18
ninja: Entering directory `C:\Users\star\AppData\Local\.xmake\cache\packages\2510\f\fmt\12.0.0\source\build_99bfcf92'
[3/4] Install the project...-- Install configuration: "Debug"
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/lib/fmtd.lib
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/bin/fmtd.dll
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/include/fmt/args.h
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/include/fmt/base.h
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/include/fmt/chrono.h
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/include/fmt/color.h
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/include/fmt/compile.h
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/include/fmt/core.h
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/include/fmt/format.h
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/include/fmt/format-inl.h
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/include/fmt/os.h
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/include/fmt/ostream.h
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/include/fmt/printf.h
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/include/fmt/ranges.h
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/include/fmt/std.h
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/include/fmt/xchar.h
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/lib/cmake/fmt/fmt-config.cmake
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/lib/cmake/fmt/fmt-config-version.cmake
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/lib/cmake/fmt/fmt-targets.cmake
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/lib/cmake/fmt/fmt-targets-debug.cmake
-- Installing: C:/Users/star/AppData/Local/.xmake/packages/f/fmt/12.0.0/99bfcf928b574e02b8d9d235f23d2b58/lib/pkgconfig/fmt.pc
checking for xmake::fmt ... fmt 12.0.0
{
linkdirs = {
"C:\Users\star\AppData\Local\.xmake\packages\f\fmt\12.0.0\99bfcf928b574e02b8d9d235f23d2b58\lib"
},
version = "12.0.0",
license = "MIT",
shared = true,
static = true,
sysincludedirs = {
"C:\Users\star\AppData\Local\.xmake\packages\f\fmt\12.0.0\99bfcf928b574e02b8d9d235f23d2b58\include"
},
libfiles = {
"C:\Users\star\AppData\Local\.xmake\packages\f\fmt\12.0.0\99bfcf928b574e02b8d9d235f23d2b58\lib\fmtd.lib",
"C:\Users\star\AppData\Local\.xmake\packages\f\fmt\12.0.0\99bfcf928b574e02b8d9d235f23d2b58\bin\fmtd.dll"
},
links = {
"fmtd"
},
defines = "FMT_LIB_EXPORT"
}
checking for flags (-fms-runtime-lib=dll) ... ok
checking for flags (-fdiagnostics-color=always) ... ok
checking for flags (-Wno-gnu-line-marker -Werror) ... ok
> checking for c++ includes(fmt/format.h)
> checking for c++ links(fmtd)
> checking for c++ snippet(test)
error: In file included from A:\msys64\tmp\.xmake\251006\_c316aafcbcc9a52d2808f724d8b92b41.cpp:2:
In file included from C:\Users\star\AppData\Local\.xmake\packages\f\fmt\12.0.0\99bfcf928b574e02b8d9d235f23d2b58\include/fmt/format.h:41:
C:\Users\star\AppData\Local\.xmake\packages\f\fmt\12.0.0\99bfcf928b574e02b8d9d235f23d2b58\include/fmt/base.h:17:12: fatal error: 'stdio.h' file not found
17 | # include <stdio.h> // FILE
| ^~~~~~~~~
1 error generated.
Expected Behavior
N/A
Project Configuration
N/A
Additional Information and Error Logs
N/A
Xmake Version
dev
Operating System Version and Architecture
Windows
Describe Bug
msys2 + clang toolchain + windows plat
on_test missing msvc runenvs.
fmt
Expected Behavior
N/A
Project Configuration
N/A
Additional Information and Error Logs
N/A