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

Can't install vulkan-hpp through xrepo #4794

Open
vspefs opened this issue Jul 30, 2024 · 2 comments
Open

Can't install vulkan-hpp through xrepo #4794

vspefs opened this issue Jul 30, 2024 · 2 comments
Labels

Comments

@vspefs
Copy link
Contributor

vspefs commented Jul 30, 2024

Xmake Version

2.9.3

Operating System Version and Architecture

Windows 11 21H2 Home. Using MSYS2, where this whole scenario takes place.

Describe Bug

Can't install vulkan-hpp from xmake-repo. During installing, cmake error occurs and installation halts.
See the example below.

Expected Behavior

Installation finishes without further information or warning, and the package can be normally used.

Project Configuration

-- xmake.lua
add_requires("vulkan-hpp", { configs = { modules = true, shared = true } })

target("main")
    set_kind("binary")
    add_files("src/main.cpp")
    add_packages("vulkan-hpp")
// src/main.cpp
import vulkan_hpp;
import std;

int main(void)
{
    std::println("{}", vk::makeVersion(1, 0, 0));
}

Additional Information and Error Logs

console output:

$ xmake

note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo-from-github:
  -> vulkan-hpp v1.3.290 [modules:y, shared:y]
please input: y (y/n/m)

  => installing vulkan-hpp .. (1/cl.exe) checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.41.34117
  => install vulkan-hpp v1.3.290 .. failed

CMake Error at CMakeLists.txt:48 (project):
  -- Configuring incomplete, errors occurred!
if you want to get more verbose errors, please see:
  -> C:\Users\vspefs\AppData\Local\.xmake\cache\packages\2407\v\vulkan-hpp\v1.3.290\installdir.failed\logs\install.txt
error: install failed!

logs\install.txt content:

CMake Error at CMakeLists.txt:48 (project):
  -- Configuring incomplete, errors occurred!
@vspefs vspefs added the bug label Jul 30, 2024
@vspefs
Copy link
Contributor Author

vspefs commented Aug 14, 2024

Update: I noticed a few problems on my side, but after fixing them, the vulkan-hpp package still doesn't seem to work. Here's updated information:

Xmake Version

2.9.4

Operating System Version and Architecture

Windows 11 21H2 Home. Using msys2, on clang64 environment.

Describe Bug

Can't install vulkan-hpp from xmake-repo. During installing, cmake error occurs and installation halts.
See the example below.

Expected Behavior

Installation finishes without further information or warning, and the package can be normally used.

Project Configuration

-- xmake.lua
-- glfw is the control group, showing that other packages can be configured and installed correctly
add_requires("glfw", "vulkan-hpp")

set_languages("c++latest")
add_rules("mode.debug", "mode.release")

target("main")

    set_kind("binary")

    add_files("main.cpp")

    add_packages("glfw", "vulkan-hpp")
// main.cpp
#include <print>
#include <vulkan/vulkan_raii.hpp>
#include <GLFW/glfw3.h>

int main(void)
{
    // c++ test
    std::println("Hello, world!");

    // glfw test
    glfwInit();
    glfwTerminate();

    // vulkan test
    vk::raii::Context context{};
    vk::raii::Instance instance{ context, vk::InstanceCreateInfo{} };
}

Additional Information and Error Logs

console output:

$ xmake f -p mingw -a x64 -m debug --toolchain=clang -vD
checking for clang ... ok
checkinfo: cannot runv(unzip -v), No such file or directory
checking for unzip ... no
checking for 7z ... ok
checking for git ... ok
checking for gzip ... ok
checking for tar ... ok
git rev-parse HEAD
checking for cmake ... no
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.41.34117\bin\HostX64\x64\cl.exe
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.41.34117
checking for cmake ... no
checking for cmake ... no
checking for cmake ... ok
checking for xmake-repo-from-github::opengl ... opengl 
finding glfw from xmake ..
checking for xmake::glfw ... no
checking for pacman ... ok
checkinfo: cannot runv(emerge --version), No such file or directory
checking for emerge ... no
finding glfw from vcpkg ..
finding glfw from conan ..
finding glfw from pkgconfig ..
checking for pkg-config ... ok
finding glfw from pacman ..
finding glfw from system ..
checking for clang ... ok
checking for the c compiler (cc) ... clang
> clang -c -Qunused-arguments -m64 -o C:\coding\msys64\tmp\.xmake\240814\_D03E5A41ECFE412088DD3F3168510220.o C:\coding\msys64\tmp\.xmake\240814\_775FB00633BC4F66BF87D39CCDE5CF30.c
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
checking for flags (-fansi-escape-codes) ... ok
> clang "-fansi-escape-codes" "-Qunused-arguments" "-m64"
checking for clang ... ok
checking for the c++ compiler (cxx) ... clang
checking for clang++ ... ok
checking for the linker (ld) ... clang++
> clang++ -o C:\coding\msys64\tmp\.xmake\240814\_D03E5A41ECFE412088DD3F3168510220.b C:\coding\msys64\tmp\.xmake\240814\_D03E5A41ECFE412088DD3F3168510220.o -m64 -lglfw
lld: error: unable to find library -lglfw
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
> checking for c links(glfw)
> checking for c snippet(find_package/glfw)
checkinfo: ...gramdir\core\sandbox\modules\import\core\tool\linker.lua:75: @programdir\core\sandbox\modules\os.lua:378: execv(clang++ -o C:\coding\msys64\tmp\.xmake\240814\_D03E5A41ECFE412088DD3F3168510220.b C:\coding\msys64\tmp\.xmake\240814\_D03E5A41ECFE412088DD3F3168510220.o -m64 -lglfw) failed(1)
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [@programdir\core\sandbox\modules\os.lua:378]: in function 'execv'
    [@programdir\modules\core\tools\gcc.lua:583]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:275]:
    [@programdir\core\tool\linker.lua:222]: in function 'link'
    [...gramdir\core\sandbox\modules\import\core\tool\linker.lua:73]: in function 'link'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:249]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:275]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:236]:
    [@programdir\modules\package\manager\system\find_package.lua:103]:
    [@programdir\modules\package\manager\find_package.lua:84]: in function '_find_package_with_builtin_rule'
    [@programdir\modules\package\manager\find_package.lua:130]: in function '_find_package'
    [@programdir\modules\package\manager\find_package.lua:194]:
    [@programdir\modules\lib\detect\find_package.lua:109]:
    [@programdir\core\package\package.lua:1852]: in function '_fetch_library'
    [@programdir\core\package\package.lua:2022]: in function 'fetch'
    [...modules\private\action\require\impl\install_packages.lua:335]: in function 'jobfunc'
    [@programdir\modules\async\runjobs.lua:241]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:275]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\async\runjobs.lua:223]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:406]:

checking for glfw ... no
finding vulkan-hpp from xmake ..
checking for xmake::vulkan-hpp ... no
finding vulkan-hpp from vcpkg ..
finding vulkan-hpp from conan ..
finding vulkan-hpp from pkgconfig ..
finding vulkan-hpp from pacman ..
finding vulkan-hpp from system ..
> clang -c -Qunused-arguments -m64 -o C:\coding\msys64\tmp\.xmake\240814\_5C19774621934470842CA812DCF23890.o C:\coding\msys64\tmp\.xmake\240814\_775FB00633BC4F66BF87D39CCDE5CF30.c
> clang++ -o C:\coding\msys64\tmp\.xmake\240814\_5C19774621934470842CA812DCF23890.b C:\coding\msys64\tmp\.xmake\240814\_5C19774621934470842CA812DCF23890.o -m64 -lvulkan-hpp
lld: error: unable to find library -lvulkan-hpp
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
> checking for c links(vulkan-hpp)
> checking for c snippet(find_package/vulkan-hpp)
checkinfo: ...gramdir\core\sandbox\modules\import\core\tool\linker.lua:75: @programdir\core\sandbox\modules\os.lua:378: execv(clang++ -o C:\coding\msys64\tmp\.xmake\240814\_5C19774621934470842CA812DCF23890.b C:\coding\msys64\tmp\.xmake\240814\_5C19774621934470842CA812DCF23890.o -m64 -lvulkan-hpp) failed(1)     
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [@programdir\core\sandbox\modules\os.lua:378]: in function 'execv'
    [@programdir\modules\core\tools\gcc.lua:583]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:275]:
    [@programdir\core\tool\linker.lua:222]: in function 'link'
    [...gramdir\core\sandbox\modules\import\core\tool\linker.lua:73]: in function 'link'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:249]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:275]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:236]:
    [@programdir\modules\package\manager\system\find_package.lua:103]:
    [@programdir\modules\package\manager\find_package.lua:84]: in function '_find_package_with_builtin_rule'
    [@programdir\modules\package\manager\find_package.lua:130]: in function '_find_package'
    [@programdir\modules\package\manager\find_package.lua:194]:
    [@programdir\modules\lib\detect\find_package.lua:109]:
    [@programdir\core\package\package.lua:1852]: in function '_fetch_library'
    [@programdir\core\package\package.lua:2022]: in function 'fetch'
    [...modules\private\action\require\impl\install_packages.lua:335]: in function 'jobfunc'
    [@programdir\modules\async\runjobs.lua:241]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:275]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
    [@programdir\modules\async\runjobs.lua:223]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:406]:

checking for vulkan-hpp ... no
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo-from-github:
  -> glfw 3.4 [toolchains:"clang"]
  -> vulkan-hpp v1.3.290
please input: y (y/n/m)

checking for ping ... ok
pinging the host(github.com) ... 187 ms
checking for curl ... ok
curl -SL -x socks5://127.0.0.1:10808 -A "Xmake/2.9.4+20240803 (MSYS;3.5.3-d8b21b8c.x86_64) curl/8.0.1" https://github.com/glfw/glfw/archive/refs/tags/3.4.tar.gz -o 3.4.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  914k    0  914k    0     0   490k      0 --:--:--  0:00:01 --:--:-- 2521k
7z x -y 3.4.tar.gz -oC:\coding\msys64\tmp\.xmake\240814\_F5E429504B264F008C5B04F023A5AE10.tar

7-Zip 24.07 (x64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-06-19

Scanning the drive for archives:
1 file, 936948 bytes (915 KiB)

Extracting archive: 3.4.tar.gz
--
Path = 3.4.tar.gz
Type = gzip
Headers Size = 10

Everything is Ok

Size:       5140480
Compressed: 936948
7z x -y C:\coding\msys64\tmp\.xmake\240814\_F5E429504B264F008C5B04F023A5AE10.tar\3.4.tar -osource.tmp

7-Zip 24.07 (x64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-06-19

Scanning the drive for archives:
1 file, 5140480 bytes (5020 KiB)

Extracting archive: C:\coding\msys64\tmp\.xmake\240814\_F5E429504B264F008C5B04F023A5AE10.tar\3.4.tar
--
Path = C:\coding\msys64\tmp\.xmake\240814\_F5E429504B264F008C5B04F023A5AE10.tar\3.4.tar
Type = tar
Physical Size = 5140480
Headers Size = 99840
Code Page = UTF-8
Characteristics = POSIX ASCII
Comment =
{
pax_global_header
comment=7b6aead9fb88b3623e3b3725ebb42670cbe4c579
}

Everything is Ok

Folders: 15
Files: 167
Size:       4994238
Compressed: 5140480
  => download https://github.com/glfw/glfw/archive/refs/tags/3.4.tar.gz .. ok
checking for clang ... ok
checking for the assember (as) ... clang
checking for ar ... ok
checking for the static library archiver (ar) ... ar
checking for ranlib ... ok
checking for the archive index generator (ranlib) ... ranlib
checking for llvm-rc ... ok
checking for the windows resource compiler (mrc) ... llvm-rc
checking for clang++ ... ok
checking for the shared library linker (sh) ... clang++
checking for cmake ... ok
cmake -DGLFW_BUILD_DOCS=OFF -DGLFW_BUILD_TESTS=OFF -DGLFW_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DGLFW_BUILD_X11=OFF -DGLFW_BUILD_WAYLAND=OFF -DCMAKE_INSTALL_PREFIX=C:\Users\vspefs\AppData\Local\.xmake\packages\g\glfw\3.4\d2857f2e6181496f9c4fbce4f81b479f -DCMAKE_INSTALL_LIBDIR:PATH=lib -G "MSYS Makefiles" -DCMAKE_SYSTEM_PROCESSOR=x64 -DCMAKE_SHARED_LINKER_FLAGS=-m64 -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=BOTH -DCMAKE_RC_COMPILER=llvm-rc.exe -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_C_COMPILER=clang.exe -DCMAKE_RANLIB=ranlib.exe -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=BOTH -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_AR=ar.exe -DCMAKE_CXX_COMPILER=clang.exe -DCMAKE_STATIC_LINKER_FLAGS= -DHAVE_FLAG_SEARCH_PATHS_FIRST=0 -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH -DCMAKE_ASM_COMPILER=clang.exe -DCMAKE_CXX_FLAGS=-m64 -DCMAKE_C_FLAGS=-m64 -DCMAKE_EXE_LINKER_FLAGS=-m64 -DCMAKE_ASM_FLAGS=-m64 C:\Users\vspefs\AppData\Local\.xmake\cache\packages\2408\g\glfw\3.4\source
-- The C compiler identification is Clang 18.1.8
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/coding/msys64/clang64/bin/clang.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Including Win32 support
-- Looking for dinput.h
-- Looking for dinput.h - found
-- Looking for xinput.h
-- Looking for xinput.h - found
-- Configuring done (0.0s)
-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_ASM_COMPILER
    CMAKE_ASM_FLAGS
    CMAKE_CXX_COMPILER
    CMAKE_CXX_FLAGS
    CMAKE_FIND_ROOT_PATH_MODE_LIBRARY
    HAVE_FLAG_SEARCH_PATHS_FIRST


-- Build files have been written to: C:/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e
make -j14 VERBOSE=1
/C/coding/msys64/clang64/bin/cmake.exe -S/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source -B/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e --check-build-system CMakeFiles/Makefile.cmake 0
/C/coding/msys64/clang64/bin/cmake.exe -E cmake_progress_start /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/CMakeFiles /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/c/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e'
make  -f src/CMakeFiles/glfw.dir/build.make src/CMakeFiles/glfw.dir/depend
make[2]: Entering directory '/c/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e'
/C/coding/msys64/clang64/bin/cmake.exe -E cmake_depends "MSYS Makefiles" /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src/CMakeFiles/glfw.dir/DependInfo.cmake "--color="
make[2]: Leaving directory '/c/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e'
make  -f src/CMakeFiles/glfw.dir/build.make src/CMakeFiles/glfw.dir/build
make[2]: Entering directory '/c/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e'
[  4%] Building C object src/CMakeFiles/glfw.dir/context.c.obj
[  9%] Building C object src/CMakeFiles/glfw.dir/init.c.obj
[ 13%] Building C object src/CMakeFiles/glfw.dir/input.c.obj
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/context.c.obj -MF CMakeFiles/glfw.dir/context.c.obj.d -o CMakeFiles/glfw.dir/context.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/context.c
[ 18%] Building C object src/CMakeFiles/glfw.dir/monitor.c.obj
[ 22%] Building C object src/CMakeFiles/glfw.dir/platform.c.obj
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/init.c.obj -MF CMakeFiles/glfw.dir/init.c.obj.d -o CMakeFiles/glfw.dir/init.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/init.c
[ 27%] Building C object src/CMakeFiles/glfw.dir/vulkan.c.obj
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/input.c.obj -MF CMakeFiles/glfw.dir/input.c.obj.d -o CMakeFiles/glfw.dir/input.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/input.c
[ 31%] Building C object src/CMakeFiles/glfw.dir/window.c.obj
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/monitor.c.obj -MF CMakeFiles/glfw.dir/monitor.c.obj.d -o CMakeFiles/glfw.dir/monitor.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/monitor.c
[ 36%] Building C object src/CMakeFiles/glfw.dir/egl_context.c.obj
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/platform.c.obj -MF CMakeFiles/glfw.dir/platform.c.obj.d -o CMakeFiles/glfw.dir/platform.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/platform.c
[ 40%] Building C object src/CMakeFiles/glfw.dir/osmesa_context.c.obj
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/vulkan.c.obj -MF CMakeFiles/glfw.dir/vulkan.c.obj.d -o CMakeFiles/glfw.dir/vulkan.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/vulkan.c
[ 45%] Building C object src/CMakeFiles/glfw.dir/null_init.c.obj
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/window.c.obj -MF CMakeFiles/glfw.dir/window.c.obj.d -o CMakeFiles/glfw.dir/window.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/window.c
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/null_init.c.obj -MF CMakeFiles/glfw.dir/null_init.c.obj.d -o CMakeFiles/glfw.dir/null_init.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/null_init.c
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/egl_context.c.obj -MF CMakeFiles/glfw.dir/egl_context.c.obj.d -o CMakeFiles/glfw.dir/egl_context.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/egl_context.c
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/osmesa_context.c.obj -MF CMakeFiles/glfw.dir/osmesa_context.c.obj.d -o CMakeFiles/glfw.dir/osmesa_context.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/osmesa_context.c
[ 50%] Building C object src/CMakeFiles/glfw.dir/null_monitor.c.obj
[ 54%] Building C object src/CMakeFiles/glfw.dir/null_window.c.obj
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/null_window.c.obj -MF CMakeFiles/glfw.dir/null_window.c.obj.d -o CMakeFiles/glfw.dir/null_window.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/null_window.c
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/null_monitor.c.obj -MF CMakeFiles/glfw.dir/null_monitor.c.obj.d -o CMakeFiles/glfw.dir/null_monitor.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/null_monitor.c
[ 59%] Building C object src/CMakeFiles/glfw.dir/null_joystick.c.obj[ 63%] 
Building C object src/CMakeFiles/glfw.dir/win32_module.c.obj
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/null_joystick.c.obj -MF CMakeFiles/glfw.dir/null_joystick.c.obj.d -o CMakeFiles/glfw.dir/null_joystick.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/null_joystick.c
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/win32_module.c.obj -MF CMakeFiles/glfw.dir/win32_module.c.obj.d -o CMakeFiles/glfw.dir/win32_module.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/win32_module.c
[ 68%] Building C object src/CMakeFiles/glfw.dir/win32_time.c.obj
[ 72%] Building C object src/CMakeFiles/glfw.dir/win32_thread.c.obj
[ 77%] Building C object src/CMakeFiles/glfw.dir/win32_joystick.c.obj
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/win32_time.c.obj -MF CMakeFiles/glfw.dir/win32_time.c.obj.d -o CMakeFiles/glfw.dir/win32_time.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/win32_time.c
[ 81%] Building C object src/CMakeFiles/glfw.dir/win32_init.c.obj
[ 86%] cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/win32_thread.c.obj -MF CMakeFiles/glfw.dir/win32_thread.c.obj.d -o CMakeFiles/glfw.dir/win32_thread.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/win32_thread.c
Building C object src/CMakeFiles/glfw.dir/win32_monitor.c.obj
[ 90%] Building C object src/CMakeFiles/glfw.dir/wgl_context.c.obj
[ 95%] Building C object src/CMakeFiles/glfw.dir/win32_window.c.obj
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/win32_joystick.c.obj -MF CMakeFiles/glfw.dir/win32_joystick.c.obj.d -o CMakeFiles/glfw.dir/win32_joystick.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/win32_joystick.c
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/wgl_context.c.obj -MF CMakeFiles/glfw.dir/wgl_context.c.obj.d -o CMakeFiles/glfw.dir/wgl_context.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/wgl_context.c
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/win32_init.c.obj -MF CMakeFiles/glfw.dir/win32_init.c.obj.d -o CMakeFiles/glfw.dir/win32_init.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/win32_init.c
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/win32_monitor.c.obj -MF CMakeFiles/glfw.dir/win32_monitor.c.obj.d -o CMakeFiles/glfw.dir/win32_monitor.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/win32_monitor.c
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/clang.exe -DUNICODE -DWINVER=0x0501 -D_GLFW_WIN32 -D_UNICODE -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/include -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src -I/C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src -m64 -O3 -DNDEBUG -std=c99 -Wall -MD -MT src/CMakeFiles/glfw.dir/win32_window.c.obj -MF CMakeFiles/glfw.dir/win32_window.c.obj.d -o CMakeFiles/glfw.dir/win32_window.c.obj -c /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/src/win32_window.c
[100%] Linking C static library libglfw3.a
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/cmake.exe -P CMakeFiles/glfw.dir/cmake_clean_target.cmake
cd /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/src && /C/coding/msys64/clang64/bin/cmake.exe -E cmake_link_script CMakeFiles/glfw.dir/link.txt --verbose=1
ar.exe qc libglfw3.a CMakeFiles/glfw.dir/context.c.obj CMakeFiles/glfw.dir/init.c.obj CMakeFiles/glfw.dir/input.c.obj CMakeFiles/glfw.dir/monitor.c.obj CMakeFiles/glfw.dir/platform.c.obj CMakeFiles/glfw.dir/vulkan.c.obj CMakeFiles/glfw.dir/window.c.obj CMakeFiles/glfw.dir/egl_context.c.obj CMakeFiles/glfw.dir/osmesa_context.c.obj CMakeFiles/glfw.dir/null_init.c.obj CMakeFiles/glfw.dir/null_monitor.c.obj CMakeFiles/glfw.dir/null_window.c.obj CMakeFiles/glfw.dir/null_joystick.c.obj CMakeFiles/glfw.dir/win32_module.c.obj CMakeFiles/glfw.dir/win32_time.c.obj CMakeFiles/glfw.dir/win32_thread.c.obj CMakeFiles/glfw.dir/win32_init.c.obj CMakeFiles/glfw.dir/win32_joystick.c.obj CMakeFiles/glfw.dir/win32_monitor.c.obj CMakeFiles/glfw.dir/win32_window.c.obj CMakeFiles/glfw.dir/wgl_context.c.obj
ranlib.exe libglfw3.a
make[2]: Leaving directory '/c/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e'
[100%] Built target glfw
make[1]: Leaving directory '/c/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e'
/C/coding/msys64/clang64/bin/cmake.exe -E cmake_progress_start /C/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/g/glfw/3.4/source/build_d2857f2e/CMakeFiles 0
make install
[100%] Built target glfw
Install the project...
-- Install configuration: "Release"
-- Installing: C:/Users/vspefs/AppData/Local/.xmake/packages/g/glfw/3.4/d2857f2e6181496f9c4fbce4f81b479f/lib/libglfw3.a
-- Installing: C:/Users/vspefs/AppData/Local/.xmake/packages/g/glfw/3.4/d2857f2e6181496f9c4fbce4f81b479f/include/GLFW
-- Installing: C:/Users/vspefs/AppData/Local/.xmake/packages/g/glfw/3.4/d2857f2e6181496f9c4fbce4f81b479f/include/GLFW/glfw3.h
-- Installing: C:/Users/vspefs/AppData/Local/.xmake/packages/g/glfw/3.4/d2857f2e6181496f9c4fbce4f81b479f/include/GLFW/glfw3native.h
-- Installing: C:/Users/vspefs/AppData/Local/.xmake/packages/g/glfw/3.4/d2857f2e6181496f9c4fbce4f81b479f/lib/cmake/glfw3/glfw3Config.cmake
-- Installing: C:/Users/vspefs/AppData/Local/.xmake/packages/g/glfw/3.4/d2857f2e6181496f9c4fbce4f81b479f/lib/cmake/glfw3/glfw3ConfigVersion.cmake
-- Installing: C:/Users/vspefs/AppData/Local/.xmake/packages/g/glfw/3.4/d2857f2e6181496f9c4fbce4f81b479f/lib/cmake/glfw3/glfw3Targets.cmake
-- Installing: C:/Users/vspefs/AppData/Local/.xmake/packages/g/glfw/3.4/d2857f2e6181496f9c4fbce4f81b479f/lib/cmake/glfw3/glfw3Targets-release.cmake
-- Installing: C:/Users/vspefs/AppData/Local/.xmake/packages/g/glfw/3.4/d2857f2e6181496f9c4fbce4f81b479f/lib/pkgconfig/glfw3.pc
finding glfw from xmake ..
checking for xmake::glfw ... glfw 3.4
{
  static = true,
  libfiles = {
    "C:\Users\vspefs\AppData\Local\.xmake\packages\g\glfw\3.4\d2857f2e6181496f9c4fbce4f81b479f\lib\libglfw3.a"
  },
  links = {
    "glfw3"
  },
  defines = "GLFW_INCLUDE_NONE",
  linkdirs = {
    "C:\Users\vspefs\AppData\Local\.xmake\packages\g\glfw\3.4\d2857f2e6181496f9c4fbce4f81b479f\lib"
  },
  license = "zlib",
  syslinks = "gdi32",
  version = "3.4",
  includedirs = {
    "C:\Users\vspefs\AppData\Local\.xmake\packages\g\glfw\3.4\d2857f2e6181496f9c4fbce4f81b479f\include"
  }
}

> clang -c -Qunused-arguments -m64 -std=c11 -IC:\Users\vspefs\AppData\Local\.xmake\packages\g\glfw\3.4\d2857f2e6181496f9c4fbce4f81b479f\include -DGLFW_INCLUDE_NONE -o C:\coding\msys64\tmp\.xmake\240814\_9F50F88734514B208771491E32014040.o C:\coding\msys64\tmp\.xmake\240814\_62CEC7206331407E9A9F3915FE3CDBDA.c    
> clang++ -o C:\coding\msys64\tmp\.xmake\240814\_9F50F88734514B208771491E32014040.b C:\coding\msys64\tmp\.xmake\240814\_9F50F88734514B208771491E32014040.o -m64 -LC:\Users\vspefs\AppData\Local\.xmake\packages\g\glfw\3.4\d2857f2e6181496f9c4fbce4f81b479f\lib -lglfw3 -lopengl32 -lgdi32
> checking for c includes(GLFW/glfw3.h)
> checking for c links(glfw3, opengl32, gdi32)
> checking for c snippet(test)
  => install glfw 3.4 .. ok
git clone https://github.com/KhronosGroup/Vulkan-Hpp.git -c core.fsmonitor=false source.tmp\vulkan-hpp
Cloning into 'source.tmp/vulkan-hpp'...
remote: Enumerating objects: 12415, done.
remote: Total 12415 (delta 0), reused 0 (delta 0), pack-reused 12415 (from 1)
Receiving objects: 100% (12415/12415), 64.43 MiB | 5.82 MiB/s, done.
Resolving deltas: 100% (8600/8600), done.
Updating files: 100% (351/351), done.
git -c core.fsmonitor=false checkout e3b0737d57e81875361bf1943f083eac902dacb7
Note: switching to 'e3b0737d57e81875361bf1943f083eac902dacb7'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at e3b0737 Update Vulkan-Headers to v1.3.290 (#1918)
git -c core.fsmonitor=false submodule update --init --recursive
Submodule 'Vulkan-Headers' (https://github.com/KhronosGroup/Vulkan-Headers.git) registered for path 'Vulkan-Headers'
Submodule 'glfw' (https://github.com/glfw/glfw) registered for path 'glfw'
Submodule 'glm' (https://github.com/g-truc/glm.git) registered for path 'glm'
Submodule 'glslang' (https://github.com/KhronosGroup/glslang.git) registered for path 'glslang'
Submodule 'tinyxml2' (https://github.com/leethomason/tinyxml2.git) registered for path 'tinyxml2'
Cloning into '/c/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/v/vulkan-hpp/v1.3.290/source.tmp/vulkan-hpp/Vulkan-Headers'...
Cloning into '/c/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/v/vulkan-hpp/v1.3.290/source.tmp/vulkan-hpp/glfw'...
Cloning into '/c/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/v/vulkan-hpp/v1.3.290/source.tmp/vulkan-hpp/glm'...
Cloning into '/c/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/v/vulkan-hpp/v1.3.290/source.tmp/vulkan-hpp/glslang'...
Cloning into '/c/Users/vspefs/AppData/Local/.xmake/cache/packages/2408/v/vulkan-hpp/v1.3.290/source.tmp/vulkan-hpp/tinyxml2'...
Submodule path 'Vulkan-Headers': checked out 'fc6c06ac529e4b4b6e34c17cc650a8f62dee2eb0'
Submodule path 'glfw': checked out '8e6c8d7effc54f8aecd30eda17069588298f4ada'
Submodule path 'glm': checked out 'b06b775c1c80af51a1183c0e167f9de3b2351a79'
Submodule path 'glslang': checked out 'f1cb8608b390a7f51b4ae0d62cd415ba47a59b86'
Submodule path 'tinyxml2': checked out 'ff61650517cc32d524689366f977716e73d4f924'
  => clone https://github.com/KhronosGroup/Vulkan-Hpp.git v1.3.290 .. ok
cmake -DCMAKE_INSTALL_PREFIX=C:\Users\vspefs\AppData\Local\.xmake\packages\v\vulkan-hpp\v1.3.290\86da340b24d7468597b453a16bb3a84f -DCMAKE_INSTALL_LIBDIR:PATH=lib -G "Visual Studio 17 2022" -A x64 -DCMAKE_GENERATOR_TOOLSET=v143 -DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=pdb -DCMAKE_POSITION_INDEPENDENT_CODE=ON -Dbuildir=build C:\Users\vspefs\AppData\Local\.xmake\cache\packages\2408\v\vulkan-hpp\v1.3.290\source\vulkan-hpp
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:48 (project):
  No CMAKE_CXX_COMPILER could be found.



-- Configuring incomplete, errors occurred!
error: @programdir\core\sandbox\modules\os.lua:378: execv(cmake -DCMAKE_INSTALL_PREFIX=C:\Users\vspefs\AppData\Local\.xmake\packages\v\vulkan-hpp\v1.3.290\86da340b24d7468597b453a16bb3a84f -DCMAKE_INSTALL_LIBDIR:PATH=lib -G "Visual Studio 17 2022" -A x64 -DCMAKE_GENERATOR_TOOLSET=v143 -DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=pdb -DCMAKE_POSITION_INDEPENDENT_CODE=ON -Dbuildir=build C:\Users\vspefs\AppData\Local\.xmake\cache\packages\2408\v\vulkan-hpp\v1.3.290\source\vulkan-hpp) failed(1)
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [@programdir\core\sandbox\modules\os.lua:378]:
    [@programdir\core\sandbox\modules\os.lua:291]: in function 'vrunv'
    [@programdir\modules\package\tools\cmake.lua:1125]: in function 'build'
    [...s\xmake-repo-from-github\packages\v\vulkan-hpp\xmake.lua:55]: in function 'script'
    [...dir\modules\private\action\require\impl\utils\filter.lua:114]: in function 'call'
    [...\modules\private\action\require\impl\actions\install.lua:404]:

  => install vulkan-hpp v1.3.290 .. failed
error: @programdir\core\main.lua:329: @programdir\modules\async\runjobs.lua:325: ...\modules\private\action\require\impl\actions\install.lua:506: install failed!
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [...\modules\private\action\require\impl\actions\install.lua:506]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [...\modules\private\action\require\impl\actions\install.lua:370]:
    [...modules\private\action\require\impl\install_packages.lua:491]: in function 'jobfunc'
    [@programdir\modules\async\runjobs.lua:241]:

stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:973: in function 'os.raiselevel'
        (...tail calls...)
        @programdir\core\main.lua:329: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399>

@yh-sb
Copy link
Contributor

yh-sb commented Aug 28, 2024

Probably issue with toolchain?
from your log:

-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:48 (project):
  No CMAKE_CXX_COMPILER could be found.

By the way, recently I built project with vulkan-hpp xmake package (xmake v2.9.4) successfully:

add_rules("mode.debug", "mode.release", "plugin.compile_commands.autoupdate", {outputdir = "build"})
set_defaultmode("debug")
set_targetdir("$(buildir)")
set_languages("c++20")

if is_plat("mingw") then
    add_ldflags("-static")
end

add_requires("glfw 3.4", "vulkan-hpp")

target("vulkan-app")
    add_packages("glfw", "vulkan-hpp")
    add_files(
        "main.cpp"
    )

Mingw downloaded from winlibs.com.

gcc.exe (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders, r1) 15.0.0 20240616 (experimental)
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Also try to rebuild your project after xrepo clean -y.

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

2 participants