Failing tests when building against libc++
bettinaheim opened this issue · 2 comments
bettinaheim commented
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
CUDA-Q currently is built against libstdc++. Building against a different standard library generally requires updates to the compiler.
Specifically, when building against libc++ (built from source along with the other LLVM dependencies), the following llvm-lit tests fail:
In test folder:
- AST-Quake/reverse.cpp
- AST-Quake/vector_ctor_initlist.cpp
- AST-Quake/vector_ctor_initlist_int.cpp
- AST-Quake/vector_ctor_sized.cpp
- AST-Quake/vector_front_back.cpp
In targettests folder:
- execution/mapping_test-1-cpp17.cpp
- execution/mapping_test-1.cpp
- execution/qir_cond_for_loop-3.cpp
- execution/sim_gate_timing-cpp17.cpp
- execution/sim_gate_timing.cpp
Steps to reproduce the bug
Check out the PR branch #1603, and remove the excludes listed under this bug in docker/build/assets.Dockerfile.
Expected behavior
All tests should pass.
Is this a regression? If it is, put the last known working version (or commit) here.
Possibly, but we haven't tested for libc++ so far
Environment
ghcr.io/nvidia/cuda-quantum-assets docker image
Suggestions
No response