-
Notifications
You must be signed in to change notification settings - Fork 239
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
Failed to build with c++23 #656
Comments
Our CI builds with clang for macOS, Windows ARM and Emscripten. In addition macOS/Xcode 14 (clang 14.0.29) is my primary development environment. CI also builds on Ubuntu with GCC. Also I know a user who is successfully building with mingw_llvm. The issue is something specific to your situation and therefore not easy for me to debug. The error appears to be related to the use of |
Changed title because KTX builds fine on Linux with GCC. |
And it works fine, but I think it is a bad idea to fix this. I tried to run PVS studio workflow in my project, but project not compiles and return the same error. And video (maybe to be helpful) simplescreenrecorder-2022-12-09_19.13.35.mp4 |
Is this still an issue for you in |
I just got the same error on Archlinux with Clang 16. |
On which branch? Which errors? The latest code compiles via ClangCL both 15 & 16 in VS 2022. It compiles with clang 14 on macOS and clang 17 in Emscripten. I do not have the bandwidth to work on another platform. If you want this fixed I'll need a PR that fixes it. If the errors are in the |
Latest commit from Changing 2 places in
Fixes build. P.S. With this fix, reading KTX files via |
I can't debug this or test fixes as my machine is arm64-based so SSE code is never compiled. I made a simple reproducer which I'm compiling with AppleClang 15.0.0. The error appears when compiling with @Flone-dnb and @DezlowNG are you building with KTX-Software's CMakeLists.txt? Do you have a parent project that is including it? I'm guessing you must somehow be specifying C++23. Looks like I'll need to explicitly specify the c++ standard when compiling the library. First I'll see if I can find a code fix. |
I opened an issue upstream: BinomialLLC/basis_universal#366. |
Fixed by PR #806. |
That's right. I just tried using the latest commit (f8220ec) and I can confirm that everything builds correctly on Linux now. Thanks. |
Avoid inadvertent compilation with a later standard when included in another project. Later standards may raise warnings or even errors on the library code. Fixes KhronosGroup#774 and KhronosGroup#656.
Avoid inadvertent compilation with a later standard when included in another project. Later standards may raise warnings or even errors on the library code. Fixes KhronosGroup#774 and KhronosGroup#656.
Avoid inadvertent compilation with a later standard when included in another project. Later standards may raise warnings or even errors on the library code. Fixes KhronosGroup#774 and KhronosGroup#656.
Avoid inadvertent compilation with a later standard when included in another project. Later standards may raise warnings or even errors on the library code. Fixes KhronosGroup#774 and KhronosGroup#656.
Hello!
I'm always get error:
non-const lvalue reference to type 'cppspmd_sse41::spmd_kernel::vfloat' cannot bind to a temporary of type 'cppspmd_sse41::spmd_kernel::vfloat
when I'm trying to build KTX.I'm building my project with using GitHub Actions and I get the same error.
Sorry for my English, lol.
Thanks!
cat /etc/os-release
clang --version
The text was updated successfully, but these errors were encountered: