| 9 Nov 2025 |
samasaur | at least I assume the error is coming from swift | 05:40:59 |
samasaur | the bootstrap swiftc | 05:41:07 |
samasaur | I just see
swift> [1160/1373] Building swift module Basic
swift> FAILED: bootstrapping1/SwiftCompilerSources/Basic.o /private/tmp/nix-build-swift-5.10.1.drv-10/build/swift/bootstrapping1/SwiftCompilerSources/Basic.o
swift> cd /private/tmp/nix-build-swift-5.10.1.drv-10/src/swift/SwiftCompilerSources && /private/tmp/nix-build-swift-5.10.1.drv-10/build/swift/bootstrapping0/bin/swiftc -c -o /private/tmp/nix-build-swift-5.10.1.drv-10/build/swift/bootstrapping1/SwiftCompilerSources/Basic.o -sdk /nix/store/rrjy7x4jpxp92gs1prpbg79ng0mcl5hj-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -I /private/tmp/nix-build-swift-5.10.1.drv-10/build/swift/bootstrapping0/bin/../lib -I /nix/store/rrjy7x4jpxp92gs1prpbg79ng0mcl5hj-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/lib -target arm64-apple-macosx14.0 -module-name Basic -emit-module -emit-module-path /private/tmp/nix-build-swift-5.10.1.drv-10/build/swift/bootstrapping1/SwiftCompilerSources/Basic.swiftmodule -parse-as-library /private/tmp/nix-build-swift-5.10.1.drv-10/src/swift/SwiftCompilerSources/Sources/Basic/SourceLoc.swift /private/tmp/nix-build-swift-5.10.1.drv-10/src/swift/SwiftCompilerSources/Sources/Basic/Utils.swift -wmo -Xfrontend -validate-tbd-against-ir=none -Xfrontend -enable-experimental-cxx-interop -Xcc -std=c++17 -Xcc -UIBOutlet -Xcc -UIBAction -Xcc -UIBInspectable -Xfrontend -disable-implicit-string-processing-module-import -O -cross-module-optimization -Xcc -DNDEBUG -Xcc -I -Xcc /private/tmp/nix-build-swift-5.10.1.drv-10/src/llvm-project/llvm/include -Xcc -I -Xcc /private/tmp/nix-build-swift-5.10.1.drv-10/build/llvm/include -Xcc -I -Xcc /private/tmp/nix-build-swift-5.10.1.drv-10/src/llvm-project/clang/include -Xcc -I -Xcc /private/tmp/nix-build-swift-5.10.1.drv-10/build/llvm/tools/clang/include -Xcc -I -Xcc /private/tmp/nix-build-swift-5.10.1.drv-10/src/swift/include -Xcc -I -Xcc /private/tmp/nix-build-swift-5.10.1.drv-10/build/swift/SwiftCompilerSources/../include -I /private/tmp/nix-build-swift-5.10.1.drv-10/build/swift/bootstrapping1/SwiftCompilerSources
swift> Warning: supplying the --target arm64-apple-macosx14.0 != arm64-apple-darwin argument to a nix-wrapped compiler may not work correctly - cc-wrapper is currently not designed with multi-target compilers in mind. You may want to use an un-wrapped compiler instead.
swift> <unknown>:0: error: unknown argument: '-Werror=unguarded-availability'
| 05:41:36 |
samasaur | hm | 05:43:47 |
samasaur | okay even running swiftc --help using that bootstrap compiler produces the unknown argument error | 05:44:26 |
samasaur | because it's wrapped and it's passing -Werror=unguarded-availability directly to swift-frontend-unwrapped | 05:45:50 |
samasaur | ah | 05:47:41 |
samasaur | well | 05:47:41 |
samasaur | found out why! | 05:47:43 |
samasaur | swift-wrapper has this in it:
# TODO: If we ever need to expand functionality of this hook, it may no longer
# be compatible with Swift. Right now, it is only used on Darwin to force
# -target, which also happens to work with Swift.
if [[ -e $cc_wrapper/nix-support/add-local-cc-cflags-before.sh ]]; then
source $cc_wrapper/nix-support/add-local-cc-cflags-before.sh
fi
| 05:48:16 |
samasaur | but the -Werror=unguarded-availability flag was added in add-local-cc-cflags-before.sh | 05:48:53 |
samasaur | so it now does not work with swift | 05:49:02 |
samasaur | I'm not sure what the best approach here is | 05:52:45 |
samasaur | I can add some CC_WRAPPER_USED_FOR_SWIFT flag that add-local-cc-cflags-before.sh checks to add -Xcc before the -Werror=unguarded-availability when needed, or we could create a wrapper specifically for swift | 05:53:49 |
samasaur | never mind that was silly, we already have the ability to prefix flags with -Xcc. let me see if that works or if I actually need to drop the flag entirely | 06:04:33 |
| Steve Reed changed their profile picture. | 06:16:11 |
samasaur | okay got it | 06:37:24 |
samasaur | https://github.com/NixOS/nixpkgs/pull/459987 | 07:13:38 |
delafthi | yes, I am | 09:41:51 |
| ghpzin (moved to @ghpzin:envs.net) changed their display name from ghpzin to ghpzin (moved to @ghpzin:envs.net). | 15:03:51 |
| 10 Nov 2025 |
| @ieda:matrix.org left the room. | 13:33:38 |
| 11 Nov 2025 |
| Mirko Lenz changed their display name from mlenz to Mirko Lenz. | 08:07:19 |
purrtner | Interesting. On my machine nixpkgs-review is broken, which is surprising. | 08:18:22 |
delafthi | I‘m usually running nixpks-review with https://github.com/Defelo/nixpkgs-review-gha. But let me test it on my local machine. | 11:48:38 |
| leah changed their display name from saige leah to leah. | 12:23:35 |
delafthi | no, nixpks-review works fine for me | 16:38:59 |
Ben Sparks | In reply to @purrtner:matrix.org Interesting. On my machine nixpkgs-review is broken, which is surprising. Are you getting an error related to a schema? | 16:40:35 |
niklaskorz | I was gonna say "what version are you running" | 16:41:01 |
niklaskorz | In reply to @benjaminsparks:chat.alugha.app Are you getting an error related to a schema? That's been fixed though (the biome thingy) | 16:41:12 |
| oak 🏳️🌈♥️ changed their profile picture. | 19:20:44 |