| 9 Nov 2025 |
Randy Eckenrode | You might be able to work around it by setting the flag to suppress the error if that doesn’t work. | 03:07:50 |
samasaur | yeah I'm pretty sure that suppressing the error would work, but ideally we could get it to target the correct version | 03:08:41 |
samasaur | though I suppose it doesn't matter all that much | 03:08:47 |
Randy Eckenrode | Swift is built twice IIRC in the old derivation. | 03:10:40 |
Randy Eckenrode | Is it setting SWIFT_DARWIN_DEPLOYMENT_VERSION_OSX both times? | 03:10:49 |
Randy Eckenrode | In particular for the concurrency backdeploy, which is useless with a 14.0 minimum version. | 03:11:03 |
Randy Eckenrode | It looks like it. I’d try forcing the host triple. If that doesn’t work, then suppress the error for now. | 03:12:16 |
samasaur | yes, i believe it is setting it for both, but i also think it's failing on the first one | 03:12:35 |
Randy Eckenrode | I was building 5.10.1 with this warning as an error, so it should be possible. It’s just been so long I don’t remember whether I did something else to suppress the error. | 03:13:10 |
Randy Eckenrode | * | 03:13:18 |
samasaur | I think this should fix the error honestly | 03:13:29 |
samasaur | am just mid-build at the moment so I'm letting this finish first | 03:13:40 |
samasaur | okay this does not work | 03:43:57 |
samasaur | trying -Wno-error=unguarded-availability in NIX_CXXFLAGS_COMPILE | 04:10:25 |
samasaur | that didn't work (though i could have done it worng) | 04:23:31 |
samasaur | * that didn't work (though i could have done it wrong) | 04:23:35 |
samasaur | regardless I think I found the real root of the issue which is the COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_OSX cmake variable, which defaults to 10.9 | 04:24:25 |
samasaur | running a build where I override that to 14.0 | 04:24:39 |
samasaur | which does make the "back" part of the backdeployment less effective | 04:24:59 |
Randy Eckenrode | We don’t support older though. (I wonder why I didn’t have this issue on my branch?) | 04:56:43 |
samasaur | is the backdeploy even useful if we don't support older versions? | 04:58:25 |
samasaur | hmm even with COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_OSX set it's still passing -target arm64-apple-macosx10.9 | 05:12:32 |
Randy Eckenrode | It should be NIX_CFLAGS_COMPILE. | 05:13:36 |
Randy Eckenrode | e.g., https://github.com/NixOS/nixpkgs/blob/staging-next/pkgs/by-name/mo/moltenvk/package.nix#L102 | 05:15:57 |
Randy Eckenrode | * | 05:16:26 |
samasaur | could have sworn there was a cxx version as well... | 05:33:34 |
samasaur | regardless setting the correct variable has made it past where the build failed originally | 05:33:51 |
samasaur | we'll see if this succeeds | 05:34:09 |
samasaur | sigh | 05:38:53 |
samasaur | okay that fails because NIX_CFLAGS_COMPILE apparently applies to Swift as well, which results in error: unknown argument: '-Werror=unguarded-availability' when it tries to build the swift module Basic | 05:39:50 |