NVIDIA / NVIDIA/cuda-quantum

[cmake] Configuration issue due to `spdlog` and export sets

Open
#2,962 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dependencies stale-notified
Dominant language
C++
Stars
1.1k
Forks
456
Avg merge
1d 22h
Merged PRs (30d)
165

Description

Required prerequisites
  • Consult the security policy. If reporting a security vulnerability, do not report the bug using this form. Use the process described in the policy to report the issue.
  • Make sure you've read the documentation. Your issue may be addressed there.
  • Search the issue tracker to verify that this hasn't already been reported. +1 or comment there if it has.
  • If possible, make a PR with a failing test to give us a starting point to work on!
Describe the bug

Cmake configuration fails at the end with:

-- Configuring done (14.9s)
CMake Error: install(EXPORT "cudaq-common-targets" ...) includes target "cudaq-common" which requires target "spdlog" that is not in any export set.
-- Generating done (0.2s)
CMake Generate step failed.  Build files cannot be regenerated correctly.
Steps to reproduce the bug

Run CMake configuration:

  • Use a preset file (see attached CMakeUserPresets.json). All paths are examples, please use relevant paths on your system. You can also simply use command line options directly.
  • run cmake --preset debug

The config step with right at the end with:

CMakeUserPresets.json

-- Configuring done (14.9s)
CMake Error: install(EXPORT "cudaq-common-targets" ...) includes target "cudaq-common" which requires target "spdlog" that is not in any export set.
-- Generating done (0.2s)
CMake Generate step failed.  Build files cannot be regenerated correctly.
Expected behavior

Cmake configuration and build are expected to run normally with no blockers (under reasonable local tweaks)

Is this a regression? If it is, put the last known working version (or commit) here.

Not a regression

Environment
  • CUDA-Q version: 12.8.93
  • Python version: 3.13
  • C++ compiler: Clang 19
  • Operating system: Arch Linux
Suggestions

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with CMakeUserPresets.json and reproduce the failure using cmake --preset debug. Trace the cudaq-common-targets export configuration and its dependency on spdlog; done means CMake configuration and generation complete without the reported export-set error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.