!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
9 Nov 2025
@samasaur:matrix.orgsamasaurat least I assume the error is coming from swift05:40:59
@samasaur:matrix.orgsamasaurthe bootstrap swiftc05:41:07
@samasaur:matrix.orgsamasaur

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:matrix.orgsamasaurhm05:43:47
@samasaur:matrix.orgsamasaur okay even running swiftc --help using that bootstrap compiler produces the unknown argument error 05:44:26
@samasaur:matrix.orgsamasaur because it's wrapped and it's passing -Werror=unguarded-availability directly to swift-frontend-unwrapped 05:45:50
@samasaur:matrix.orgsamasaurah05:47:41
@samasaur:matrix.orgsamasaurwell05:47:41
@samasaur:matrix.orgsamasaurfound out why!05:47:43
@samasaur:matrix.orgsamasaur

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:matrix.orgsamasaur but the -Werror=unguarded-availability flag was added in add-local-cc-cflags-before.sh 05:48:53
@samasaur:matrix.orgsamasaurso it now does not work with swift05:49:02
@samasaur:matrix.orgsamasaurI'm not sure what the best approach here is05:52:45
@samasaur:matrix.orgsamasaur 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:matrix.orgsamasaur 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
@zhufucdev:matrix.orgSteve Reed changed their profile picture.06:16:11
@samasaur:matrix.orgsamasaurokay got it06:37:24
@samasaur:matrix.orgsamasaurhttps://github.com/NixOS/nixpkgs/pull/45998707:13:38
@delafthi:matrix.orgdelafthiyes, I am09:41:51
@9hp71n:matrix.orgghpzin (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@ieda:matrix.org left the room.13:33:38
11 Nov 2025
@mlenz:matrix.orgMirko Lenz changed their display name from mlenz to Mirko Lenz.08:07:19
@purrtner:matrix.orgpurrtnerInteresting. On my machine nixpkgs-review is broken, which is surprising.08:18:22
@delafthi:matrix.orgdelafthiI‘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
@saige:szp.lolleah changed their display name from saige leah to leah.12:23:35
@delafthi:matrix.orgdelafthino, nixpks-review works fine for me16:38:59
@benjaminsparks:chat.alugha.appBen 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:matrix.orgniklaskorzI was gonna say "what version are you running"16:41:01
@niklaskorz:matrix.orgniklaskorz
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:universumi.fioak 🏳️‍🌈♥️ changed their profile picture.19:20:44

Show newer messages


Back to Room ListRoom Version: 6