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

Compilation error of the SDK on Windows using clang-cl and vcpkg #7907

Open
abique opened this issue Apr 25, 2024 · 2 comments
Open

Compilation error of the SDK on Windows using clang-cl and vcpkg #7907

abique opened this issue Apr 25, 2024 · 2 comments
Labels
Build Issues with the build

Comments

@abique
Copy link

abique commented Apr 25, 2024

See the vcpkg related issue:
microsoft/vcpkg#38418

In short, the vcpkg maintainers thinks the vulkan sdk is doing something wrong, see this comment: microsoft/vcpkg#38418 (comment)

The issue was also reported here as well: https://vulkan.lunarg.com/issue/view/662a58cd5df11251c5c72468

Thanks,
Alex

@charles-lunarg
Copy link
Contributor

charles-lunarg commented Apr 25, 2024

Going to copy what looks to be the 'problem' in VVL:

Looks like upstream tries to always install PDBs and clang-cl is not generating them.

Specifically, validation has the following install code

if (MSVC)
    install(FILES $<TARGET_PDB_FILE:vvl> DESTINATION ${LAYER_INSTALL_DIR})
endif()

Which appears to break when compiling with clang-cl because it doesn't generate pdb's. Why doesn't it? I don't know. I would have thought it did, maybe a compile flag to force pdb output is needed during a Release build.

@FrankXie05
Copy link

How about adding -g?

if(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
    add_compile_options(
        -Wconversion
        -Wimplicit-fallthrough
        -Wstring-conversion
        -g -gcodeview
    )
endif()

if(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")

@spencer-lunarg spencer-lunarg added the Build Issues with the build label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Issues with the build
Projects
None yet
Development

No branches or pull requests

4 participants