If I go into the cudaq-quake tool and remove that relative path include, then I get
clang -cc1 version 16.0.6 based upon LLVM 16.0.6 default target arm64-apple-darwin22.6.0
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
/Users/amccaskey/research/cuda-quantum/runtime
/Users/amccaskey/mambaforge/envs/cuda-quantum/include/c++/v1
/Users/amccaskey/mambaforge/envs/cuda-quantum/lib/clang/16/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
In file included from ctor-1.cpp:11:
In file included from /Users/amccaskey/research/cuda-quantum/runtime/cudaq.h:11:
/Users/amccaskey/research/cuda-quantum/runtime/common/NoiseModel.h:11:10: fatal error: cannot open file '/Users/amccaskey/research/cuda-quantum/runtime/array': No such file or directory
#include <array>
If I include the system header path
clang -cc1 version 16.0.6 based upon LLVM 16.0.6 default target arm64-apple-darwin22.6.0
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1
/Users/amccaskey/research/cuda-quantum/runtime
/Users/amccaskey/mambaforge/envs/cuda-quantum/include/c++/v1
/Users/amccaskey/mambaforge/envs/cuda-quantum/lib/clang/16/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
ctor-1.cpp:11:10: fatal error: cannot open file '/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/cudaq.h': No such file or directory
#include <cudaq.h>
I encountered missing headers issues and fixed it in this branch. It is pretty outdated, but errors look identical, so can be used as an inspiration for the fix.
Here's my attempt to build things natively on the mac. I used the conda environment defined in #449
There were a few fixes I had to make
With all this the "library-mode" unittests all pass. The issue with
cudaq-quake
If I go into the cudaq-quake tool and remove that relative path include, then I get
If I include the system header path