Hi, I tried using the cmake integration on python 3.10, M1 MacOS 12.5.1, but I can't reproduce the example repo jclay/cppyy-knearestneighbors-example; I get a missing symbols error.
I understand this is not a configuration easy to support, but I would be thankful for some steps or resources to get started debugging it.
Hi, I tried using the cmake integration on python 3.10, M1 MacOS 12.5.1, but I can't reproduce the example repo jclay/cppyy-knearestneighbors-example; I get a missing symbols error.
I understand this is not a configuration easy to support, but I would be thankful for some steps or resources to get started debugging it.
Steps to reproduce
System: M1, MacOS 12.5.1.
Clone cppyy-knearestneighbors-example.
Create a conda environment:
mamba create -n cppyy cppyy python cmake ninja python-clang
Activate it:
conda activate cppyy
Save/export with:
mamba list > mamba_list.txt
mamba env export -n cppyy > env.yml.txt
(instead of creating as above, exactly reproduce the one I had by running
mamba create -n cppyy -f env.yml
).By trial and error I figured out that python-clang was required otherwise FindLibClang would fail in the cmake config step.
Dump environment variables:
env > env.txt
.Home directory and conda base environment path replaced by
$HOME
and$CONDA_BASE_DIR
, respectively.Perform successfully the check in
README.md
:Attempt to build it:
(rm -rdf build && mkdir build && cd build && cmake -G Ninja .. && cmake --build . ) > build_log.txt 2>&1
build_log.txt
is attached. Excerpt:mamba_list.txt env.txt env.yml.txt build_log.txt