llvm-17.0.0-rc1: compiler_rt results in link errors on macOS 10.12.6 · Issue #64227 · llvm/llvm-project (original) (raw)

This was found while building python-3.11.4 using clang-17.

The change which introduced this problem is Declare _availability_version_check as weak_import instead of looking it.

Reverting this change and rebuilding compiler_rt allows python to build and run.

It appears that this change came directly from Apple. It seems that this change needs some more consideration, or the project needs to say that llvm-17 is not supported on macOS / Darwin before versions such-and-such.