!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1172 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org190 Servers

Load older messages


SenderMessageTime
15 Dec 2025
@reckenrode:matrix.orgRandy EckenrodeI didn’t even read the comment. 😂22:35:24
@emilazy:matrix.orgemilywe could just patch that flag out but seems worth an upstream report. what's the APIs?22:35:26
@emilazy:matrix.orgemilywondering about "Note this is not used on arm64 builds." too22:36:01
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/pypy/pypy/blob/376cb12babe6bc8f43a550d2981a322513be24de/rpython/translator/platform/darwin.py#L3122:36:07
@reckenrode:matrix.orgRandy EckenrodePretty sure frame pointers are part of the ABI on ARM64 Darwin.22:36:35
@emilazy:matrix.orgemilywouldn't be surprised if PyPy has its own calling convention22:37:19
@niklaskorz:matrix.orgniklaskorzthe actual APIs being referenced from 10.15+ have been used in pypy for three years though, so it just looks like they were never aware they're actually requiring newer versions23:01:42
@niklaskorz:matrix.orgniklaskorz
pypy>   implement_15.c:210:14: error: 'ffi_prep_cif_var' is only available on macOS 10.15 or newer [-Werror,-Wunguarded-availability-new]
pypy>     210 |         l_v371524 = ffi_prep_cif_var(l_a0_299, l_a1_191, l_a2_92, l_a3_37, l_a4_21, l_a5_11);
pypy>         |                     ^~~~~~~~~~~~~~~~
pypy>   /nix/store/4867zlym6n0ffcj1ymxszx3cqa721w8d-libffi-40-dev/include/ffi.h:509:12: note: 'ffi_prep_cif_var' has been marked as being introduced in macOS 10.15 here, but the deployment target is macOS 10.13.0
pypy>     509 | ffi_status ffi_prep_cif_var(ffi_cif *cif,
pypy>         |            ^
pypy>   implement_15.c:210:14: note: enclose 'ffi_prep_cif_var' in a __builtin_available check to silence this warning
pypy>     210 |         l_v371524 = ffi_prep_cif_var(l_a0_299, l_a1_191, l_a2_92, l_a3_37, l_a4_21, l_a5_11);
pypy>         |                     ^~~~~~~~~~~~~~~~
pypy>   implement_15.c:4823:14: error: 'ffi_prep_closure_loc' is only available on macOS 10.15 or newer [-Werror,-Wunguarded-availability-new]
pypy>    4823 |         l_v371837 = ffi_prep_closure_loc(l_a0_344, l_a1_226, l_a2_119, l_a3_49, l_a4_32);
pypy>         |                     ^~~~~~~~~~~~~~~~~~~~
pypy>   /nix/store/4867zlym6n0ffcj1ymxszx3cqa721w8d-libffi-40-dev/include/ffi.h:388:1: note: 'ffi_prep_closure_loc' has been marked as being introduced in macOS 10.15 here, but the deployment target is macOS 10.13.0
pypy>     388 | ffi_prep_closure_loc (ffi_closure*,
pypy>         | ^
pypy>   implement_15.c:4823:14: note: enclose 'ffi_prep_closure_loc' in a __builtin_available check to silence this warning
pypy>    4823 |         l_v371837 = ffi_prep_closure_loc(l_a0_344, l_a1_226, l_a2_119, l_a3_49, l_a4_32);
pypy>         |                     ^~~~~~~~~~~~~~~~~~~~
pypy>   2 errors generated.
23:02:28
@emilazy:matrix.orgemilymake sure that's not an issue with our libffi package.23:10:02
@emilazy:matrix.orgemilybut yes sounds like fallout of us turning the availability checks warning on23:10:25
@emilazy:matrix.orgemilydo they only use it on AArch64 or otherwise guard it?23:10:42
@reckenrode:matrix.orgRandy EckenrodeWe should remove the availability annotations from our package (even though it shouldn’t matter for our default deployment target).23:11:33
@reckenrode:matrix.orgRandy Eckenrode * 23:11:50
@niklaskorz:matrix.orgniklaskorzno it's used for variadic args ffi on all platforms23:16:05
@niklaskorz:matrix.orgniklaskorzhttps://github.com/pypy/pypy/blob/376cb12babe6bc8f43a550d2981a322513be24de/rpython/rlib/clibffi.py#L502-L50723:16:15
@emilazy:matrix.orgemilysounds like they should probably just bump their target again then23:17:27
@emilazy:matrix.orgemilyit won't fail to build with Apple toolchain but the warnings will probably show23:17:57
@emilazy:matrix.orgemilyI think this is the first time us setting that error has caught something23:18:24
@emilazy:matrix.orgemilyalbeit something irrelevant for us23:18:30
@reckenrode:matrix.orgRandy Eckenrode

It caught something in one of the source ports.

https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/darwin/apple-source-releases/system_cmds/patches/conditionalize-security-transition-shims.patch

23:19:59
@niklaskorz:matrix.orgniklaskorz after bumping it to 10.15 I hit the next one 😄 pthread_jit_write_protect_np requires 11+ 23:22:13
@niklaskorz:matrix.orgniklaskorzbut that is indeed only used on arm6423:22:31
@niklaskorz:matrix.orgniklaskorzwell for the nixpkgs fix I'd prefer to just remove the deployment target altogether, but I'll report it upstream23:24:17
@emilazy:matrix.orgemily they should probably either -Wno-... (e.g. with a local pragma), guard it, or pass 11.0 on AArch64 23:28:42
@niklaskorz:matrix.orgniklaskorzdoes rpy have pragmas? I'm not sure I want to go down that rabbithole23:30:04
@emilazy:matrix.orgemilyah, yeah that's a mystery :)23:33:54
@emilazy:matrix.orgemilythe latter solution might be easiest for them23:34:01
16 Dec 2025
@reckenrode:matrix.orgRandy EckenrodeWhen did SwiftPM get support for traits?03:11:38
@samasaur:matrix.orgsamasaurvery recently! 6.2 I think03:58:27
@niklaskorz:matrix.orgniklaskorztailscale cli fails for {aarch64,x86_64}-darwin on both unstable and 25.11 due to test failures (something about a closed connection), they pass on 25.05, hm11:08:57

Show newer messages


Back to Room ListRoom Version: 6