!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
29 Nov 2025
@reckenrode:matrix.orgRandy EckenrodeLooks like I’m also hitting unguarded availability errors. 🫠02:27:50
@reckenrode:matrix.orgRandy Eckenrode
nix/var/nix/builds/nix-build-swift-6.2.1.drv-0/b/swift/stdlib/public/core/SwiftNativeNSArray.swift:420:3: error: missing return in instance method expected to return 'R'
  }
  ^
/nix/var/nix/builds/nix-build-swift-6.2.1.drv-0/b/swift/stdlib/public/core/SwiftNativeNSArray.swift:474:3: error: missing return in instance method expected to return 'R'
  }
  ^
03:20:11
@reckenrode:matrix.orgRandy EckenrodeThat’s a weird one.03:20:15
@reckenrode:matrix.orgRandy Eckenrode samasaur: Have you seen anything like that? 04:41:51
@reckenrode:matrix.orgRandy EckenrodeHmm. Actually, it might be similar to https://github.com/swiftlang/swift/pull/8441304:45:13
@reckenrode:matrix.orgRandy Eckenrode

I applied a similar patch and got further.


swift> 1.       Swift version 6.2.1 (swift-6.2.1-RELEASE)
swift> 2.       Compiling with effective version 5.10
swift> 3.       While evaluating request ExecuteSILPipelineRequest(Run pipelines { PrepareOptimizationPasses, EarlyModulePasses, HighLevel,Function+EarlyLoopOpt, HighLevel,Module+StackPromote, MidLevel,Function, ClosureSpecialize, LowLevel,Function, LateLoopOpt, SIL Debug Info Generator } on SIL for _Concurrency)
swift> 4.       While running pass #509344 SILFunctionTransform "CodeSinking" on SILFunction "@$ss6_DequeV8_StorageV13_growCapacity2to8linearlyS2i_SbtFyt_Tg5".
swift>  for '_growCapacity(to:linearly:)' (at /nix/var/nix/builds/nix-build-swift-6.2.1.drv-0/b/swift/stdlib/public/Concurrency/Deque/Deque+Storage.swift:134:12)
swift> Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
swift> 0  libLLVM.dylib            0x000000011bcc085c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 72
swift> 1  libLLVM.dylib            0x000000011bcbe5a0 llvm::sys::RunSignalHandlers() + 108
swift> 2  libLLVM.dylib            0x000000011bcc0f38 SignalHandler(int, __siginfo*, void*) + 324
swift> 3  libsystem_platform.dylib 0x000000019e9cb744 _sigtramp + 56
swift> 4  swift-frontend           0x00000001089b130c (anonymous namespace)::CodeSinkingPass::sinkInstruction(swift::SILInstruction*) + 496
swift> 5  swift-frontend           0x00000001089b130c (anonymous namespace)::CodeSinkingPass::sinkInstruction(swift::SILInstruction*) + 496
swift> 6  swift-frontend           0x00000001089b1048 (anonymous namespace)::CodeSinkingPass::run() + 264
swift> 7  swift-frontend           0x00000001088a03b4 swift::SILPassManager::runFunctionPasses(unsigned int, unsigned int) + 6224
swift> 8  swift-frontend           0x000000010889db44 swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 11880
swift> 9  swift-frontend           0x00000001088b880c swift::SimpleRequest<swift::ExecuteSILPipelineRequest, std::__1::tuple<> (swift::SILPipelineExecutionDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::ExecuteSILPipelineRequest const&, swift::Evaluator&) + 64
swift> 10 swift-frontend           0x00000001088a1638 swift::executePassPipelinePlan(swift::SILModule*, swift::SILPassPipelinePlan const&, bool, swift::irgen::IRGenModule*) + 380
swift> 11 swift-frontend           0x00000001088a4efc swift::runSILOptimizationPasses(swift::SILModule&) + 384
swift> 12 swift-frontend           0x0000000107f68c28 swift::CompilerInstance::performSILProcessing(swift::SILModule*) + 2540
swift> 13 swift-frontend           0x0000000107e10f94 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1252
swift> 14 swift-frontend           0x0000000107e1020c swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 2336
swift> 15 swift-frontend           0x0000000107e23d90 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 7868
swift> 16 swift-frontend           0x0000000107e2110c swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 6440
swift> 17 swift-frontend           0x0000000107da37dc swift::mainEntry(int, char const**) + 5564
swift> 18 dyld                     0x000000019e5f9d54 start + 7184
swift> <unknown>:0: error: unable to execute command: Segmentation fault: 11
swift> <unknown>:0: error: compile command failed due to signal 11 (use -v to see invocation)
05:07:17
@reckenrode:matrix.orgRandy EckenrodeI’m starting to think my time might be better spent on getting 5.10.1 refactored and then add 6.2.1.05:11:59
@reckenrode:matrix.orgRandy Eckenrode(One issue is the SDK ….)05:13:27
@samasaur:matrix.orgsamasaurthat is not an error i am familiar with so im glad you found something similar05:15:22
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/search?q=repo%3Aswiftlang%2Fswift%20-O3&type=code05:17:39
@reckenrode:matrix.orgRandy EckenrodeI wonder if I’m hitting the LLVM 21 codegen bug.05:17:48
@reckenrode:matrix.orgRandy EckenrodeNope, hitting https://github.com/swiftlang/swift/pull/80920#issuecomment-283065622918:05:40
@reckenrode:matrix.orgRandy EckenrodeI really didn’t want to have to maintain Swift 5.x just to bootstrap Swift 6.x, especially with the 14.4 SDK due for removal in the future.18:07:12
@reckenrode:matrix.orgRandy Eckenrode * 18:07:30
@reckenrode:matrix.orgRandy Eckenrode * 18:07:45
@reckenrode:matrix.orgRandy Eckenrode
$ nix build -f . swiftPackages.swiftc
$ result/bin/swiftc -version
<unknown>:0: warning: using (deprecated) legacy driver, Swift installation does not contain swift-driver at: '/nix/store/qv81mmcyl52jzgy32pnq41kxx6v575j9-swift-6.2.1/bin/swift-driver-new'
Swift version 6.2.1 (swift-6.2.1-RELEASE)
Target: arm64-apple-darwin25.1.0
19:18:34
@reckenrode:matrix.orgRandy EckenrodeProgress!19:18:53
@reckenrode:matrix.orgRandy Eckenrode
$ SDKROOT=$(nix eval --raw -f . apple-sdk_26.sdkroot) result/bin/swiftc ../test-cli.swift -o ../test-cli
$ ../test-cli
Hello, Swift!
19:23:51
@reckenrode:matrix.orgRandy EckenrodeNext is swift-driver and swiftpm. Also, the bootstrap story.20:23:55
@reckenrode:matrix.orgRandy Eckenrode One thing I am doing differently is (trying to) build dependencies as packages. I also want to see if I can have actual swift-driver and swift-syntax packages. swiftPackages.swift will just symlink together swiftc and swift-driver. 20:25:55
@reckenrode:matrix.orgRandy EckenrodeOnce I have this working, I want to go back and split out the stdlib into its own package, which should help make cross-compilation possible. It’s not supported currently.20:26:45
@reckenrode:matrix.orgRandy EckenrodeI am working on this for 6.2.1, but I plan to land the changes for 5.10.1 first (moving it into the new pattern). 6.2.1 will be a separate PR.20:27:38
@toonn:matrix.orgtoonn That sounds like a solid plan. 22:55:28
30 Nov 2025
@reckenrode:matrix.orgRandy EckenrodeSo far the alternate approach seems to be working. I can patch sources in Swift packages and then use a hook to expose them to SwiftPM. Unfortunately, the SDK requires observability, which makes the C++-only bootstrap compiler pretty useless.04:05:33
@reckenrode:matrix.orgRandy EckenrodeActually, just importing Foundation blows up the build.04:19:57
@reckenrode:matrix.orgRandy EckenrodeThis sucks. The 26.0 SDK appears to use macros unconditionally in the Observation module. The 14.4 SDK has guards for when macros are disabled, so the module doesn’t blow up.04:25:47
@reckenrode:matrix.orgRandy EckenrodeI don’t know how this bootstrap is going to work in that case.04:26:55
@reckenrode:matrix.orgRandy EckenrodeWe could use the 14.4 SDK for bootstrapping, but we’ll have problems next year when that SDK is dropped. It’s the same problem that Swift 5.8 had this year but worse.04:27:33
@robert:funklause.dedotlambdaDoes anyone want to step up to maintain python3Packages.psutil? It's a dependency of the Darwin stdenv04:29:06

There are no newer messages yet.


Back to Room ListRoom Version: 6