-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
spdlog/fmt/bundled/core.h:472:150: error: 'constexpr ... when compiling a .cu file with nvcc #2893
Comments
Strange enough same code compiles on win11 + intel oneapi 2023.2 + cuda 12.2... |
|
Same issue building with v1.12.0 on SUSE linux with gcc v11.2.0. I get the error in:
It can compile successfully when I revert to spdlog v1.11.0. |
@prospero-x No error message so I don't know anything, but probably a duplicate #2693 (already fixed #2694). |
Sorry I forgot the error code
I can open an issue in the fmt project but could you tell me which fmt version is bundled with spdlog, please? |
fmt version is 9.1.0 in spdlog 1.12.0. fmt issue: fmtlib/fmt#3543 |
Do you plan to move from fmt 9.1.0 to 1.12.0 in the near future? |
I don't now. Lines 91 to 92 in 91807c2
|
It's something I've tried but it doesn't work yet and I don't know why. I'm using spdlog 1.12.0 as a submodule of a bigger project. I tried both combinations (SPDLOG_FMT_EXTERNAL=ON and spdlog::spdlog) and (SPDLOG_FMT_EXTERNAL_HO=ON and spdlog::spdlog_header_only) but it still uses the bundled fmt. I'm still trying tot figure out why. |
There are many reports of using spdlog version 1.12.0 and external fmt, so it is a configuration problem with your CMake project. |
Maybe... but whatever I do to change the SPDLOG_FMT_EXTERNAL or SPDLOG_FMT_EXTERNAL_HO variable, cmake still picks the bundled fmt. Even changing the default option value in your code doesn't change this behavior. |
@EajksEajks Did you know that CMake variables are cached? |
I know they are cached. The whole project is rebuilt within a docker container every time ; the docker cache is disabled so we rebuild from the base image and redo all build steps. |
Docker also has a build cache, so the build cache must be disabled. In any case, that is a CMake issue and any further questions should be made on StackOverflow or the CMake project. |
Hi,
compilation platform ubuntu 22.04 + intel oneapi 2023.2 + nvidia cuda 12.2
spdlog v1.10.0...v1.12.0 used in its header version.
spdlog as submodule in a bigger C++ + CUDA project.
Pure C++ files using spdlog compiled successfully with gcc or icx from Intel.
CU files using spdlog compiled with cuda 12.2 failed on a constexpr in fmt.
All files are compiled using C++20.
I'm looking for a workaround but have found none till now.
The text was updated successfully, but these errors were encountered: