pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/60594: pkgsrc must update to LLVM 22 or patch LLVM to support systems based on LLVM 22+ / macOS 27
>Number: 60594
>Category: pkg
>Synopsis: pkgsrc must update to LLVM 22 or patch LLVM to support systems based on LLVM 22+ / macOS 27
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Aug 15 01:00:00 +0000 2026
>Originator: Daniel Bradbury
>Release: pkgsrc-2026Q2
>Organization:
>Environment:
Darwin danmbp 27.0.0 Darwin Kernel Version 27.0.0: Wed Aug 5 22:05:58 PDT 2026; root:xnu-13432.1.6.501.1~1/RELEASE_ARM64_T8142 arm64
>Description:
A change which was made in LLVM 22 makes it impossible to compile versions of LLVM earlier than version 22 when using LLVM 22 or later. This is an issue in the earlier LLVM version's source code, not in the new version of LLVM which is being used to build.
This is documented in the following issue on LLVM's GitHub issue tracker, which was closed while ruling out addressing the issue in previous versions of LLVM upstream: https://github.com/llvm/llvm-project/issues/183908
As mentioned in the report title, macOS 27 is also affected, which is strange, as the version of LLVM distributed with the current Xcode 27 beta seems to be some variant of LLVM 21, assuming that the Apple Clang version number is accurate. Even so, the exact same build issue described in the above GitHub report also happens with the betas for macOS 27, and this issue didn't exist on macOS 26.6. I'm assuming that whatever change started causing the build issue was backported by Apple into Apple Clang 21; I haven't checked.
This means that it is currently impossible to build pkgsrc's LLVM recipe on the macOS 27 betas, and this will remain the case when macOS 27 is released as stable.
To address the issue ahead of time, I am suggesting upgrading to LLVM 22 in `current` to allow the use of pkgsrc on these systems, with the change becoming stable in the 2026Q3 branch.
It may also be possible to introduce a patch in pkgsrc for this issue while staying on LLVM 21 if that is desired and acceptable. Someone in the GitHub thread above reported success with a certain patch, but I haven't yet tested it to find out.
>How-To-Repeat:
Attempt to build pkgsrc's LLVM recipe on macOS 27 + Xcode 27 or another potential affected host system configuration.
>Fix:
Upgrade pkgsrc's LLVM version to LLVM 22 or patch pkgsrc's LLVM to fix the issue.
Home |
Main Index |
Thread Index |
Old Index