using /usr/bin/python3 on Ventura +

Joshua Root jmr at macports.org
Sun Nov 27 03:45:15 UTC 2022


On 2022-11-27 13:18 , Ken Cunningham wrote:
> Well, it didn’t take very long for that to be a problem. Building llvm and clang-9.0 went OK, but building lldb-9.0 fails:
> 
> - Check size of el_rfunc_t - done
> -- Found PythonLibs: /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/libpython3.10.dylib (found version "3.10.8")  CMake Error at tools/lldb/cmake/modules/LLDBConfig.cmake:234 (message):
>    Found incompatible Python interpreter (3.9) and Python libraries (3.10)
> Call Stack (most recent call first):
>    tools/lldb/CMakeLists.txt:20 (include)

This is just cmake being extra helpful and finding the latest python 
version on the system. You're explicitly overriding PYTHON_EXECUTABLE so 
that doesn't match what cmake is finding itself. You would also need to 
set an explicit Python_ROOT_DIR or Python_LIBRARIES etc for things that 
need those.

- Josh


More information about the macports-dev mailing list