KhronosGroup / KhronosGroup/SPIRV-LLVM-Translator
errors when compiling with clang
- Dominant language
- LLVM
- Stars
- 625
- Forks
- 279
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 34
Description
(Cross-)Compiling with clang 18, I get the following errors: [errors.log](https://github.com/user-attachments/files/23102229/errors.log).
The build passes if I add `-DCMAKE_CXX_FLAGS="-Wno-error=enum-constexpr-conversion -include vector"`, so seems like there are a couple of missing `#include `s and some missing explicit casts.
Contributor guide
Research direction
Start by reading errors.log and reproducing the cross-compilation with clang 18, using the reported CMAKE_CXX_FLAGS workaround as a comparison. Locate the missing vector includes and enum conversion errors shown in the log, then verify that the build passes without those workaround flags.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system, compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100