Skip to content

[package] ktx/4.3.2:Does not compile with Clang 20 #27428

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

Open
n0F4x opened this issue May 15, 2025 · 2 comments · May be fixed by #27448
Open

[package] ktx/4.3.2:Does not compile with Clang 20 #27428

n0F4x opened this issue May 15, 2025 · 2 comments · May be fixed by #27448
Labels
bug Something isn't working

Comments

@n0F4x
Copy link

n0F4x commented May 15, 2025

Description

ktx has an outdated version of fmt in its source, which causes the issue.

Package and Environment Details

  • Package Name/Version: ktx/4.3.2
  • Operating System+version: Windows MSYS2
  • Compiler+version: Clang 20
  • Conan version: conan 2.16.1
  • Python version: Python 3.13.1

Conan profile

[settings]
arch=x86_64
build_type=Debug
compiler=clang
compiler.cppstd=26
compiler.libcxx=libc++
compiler.version=20
os=Windows
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.info.package_id:confs=['tools.build:cflags', 'tools.build:cxxflags', 'tools.build:exelinkflags', 'tools.build:sharedlinkflags']
[buildenv]
PATH+=(path)C:/dev/MSYS2/clang64/bin
PATH+=(path)C:/Users/Gabor/AppData/Local/Programs/CLion 2/bin/cmake/win/x64/bin
PATH+=(path)C:/Users/Gabor/AppData/Local/Programs/CLion 2/bin/ninja/win/x64
[runenv]
PATH+=(path)C:/dev/MSYS2/clang64/bin

Steps to reproduce

def requirements(self):
    self.requires("ktx/4.3.2")

conan install .

Logs

Click to expand log
/.conan2/p/b/ktxe2d82b5ecdfa0/b/src/external/fmt/include/fmt/format-inl.h:61:19: error: call to consteval function 'fmt::basic_format_string<char, fmt::basic_string_view<char> &, const char (&)[3]>::basic_format_string<FMT_COMPILE_STRING, 0>' is not a constant expression
   61 |     format_to(it, FMT_STRING("{}{}"), message, SEP);
      |                   ^
...
@n0F4x n0F4x added the bug Something isn't working label May 15, 2025
@AbrilRBS
Copy link
Member

Hi @n0F4x thanks a lot for the report

It seems like ktx is vendorizing fmt in their source code, but this is only used when compiling the tools, so for now the easiest way to avoid this is to compile with the tools=False option set.

We'll look into providing a PR (contributions welcome!) that unvendorizes this for a library coming from CCI, but this issue is something that the people at ktx might want to know about so they can update their vendorized version of fmt for some next release if you are able to report this to them too :)

@n0F4x
Copy link
Author

n0F4x commented May 15, 2025

Thanks for the helpful feedback @AbrilRBS

I also opened an issue on the ktx front. (link)

@AbrilRBS AbrilRBS linked a pull request May 17, 2025 that will close this issue
@AbrilRBS AbrilRBS linked a pull request May 17, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants