12 May 2025 |
WeetHet | Randy Eckenrode reading the swift channel in the ladybird discord, cxx interop might not be there yet https://github.com/LadybirdBrowser/ladybird/issues/933 | 17:17:22 |
WeetHet | I'm not sure about the ld64 partial rewrite | 17:17:57 |
| rm changed their profile picture. | 18:00:25 |
Randy Eckenrode | Thanks. It looks like most of those have been fixed, and the CMake issues wouldn’t affect it. I did run into the deployment target issue when working on some of the upgrades. | 20:46:53 |
Randy Eckenrode | Anyway, any changes to ld64 are a ways off. Hopefully, things will be better by then (in Swift 6.2?). | 20:47:18 |
13 May 2025 |
Randy Eckenrode | Got the Swift 6.1 bootstrap compiler building. I’m not running into a problem building the Swift 6.1 compiler with the 15.4 SDK, which should be the same SDK used by Apple’s build.
[1506/1791] Building swift module Basic
FAILED: bootstrapping1/SwiftCompilerSources/Basic.o /tmp/nix-build-swift-6.1.drv-0/swift/build/bootstrapping1/SwiftCompilerSources/Basic.o
cd /tmp/nix-build-swift-6.1.drv-0/swift/SwiftCompilerSources && /tmp/nix-build-swift-6.1.drv-0/swift/build/bootstrapping0/bin/swiftc -c -o /tmp/nix-build-swift-6.1.drv-0/swift/build/bootstrapping1/SwiftCompilerSources/Basic.o -sdk /nix/store/z868b7yrfz96vqp8yhf36a9lmp563144-apple-sdk-15.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk -I /tmp/nix-build-swift-6.1.drv-0/swift/build/bootstrapping0/bin/../lib -I /nix/store/z868b7yrfz96vqp8yhf36a9lmp563144-apple-sdk-15.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/lib -target arm64-apple-macosx14.0 -module-name Basic -emit-module -emit-module-path /tmp/nix-build-swift-6.1.drv-0/swift/build/bootstrapping1/SwiftCompilerSources/Basic.swiftmodule -parse-as-library /private/tmp/nix-build-swift-6.1.drv-0/swift/SwiftCompilerSources/Sources/Basic/SourceLoc.swift /private/tmp/nix-build-swift-6.1.drv-0/swift/SwiftCompilerSources/Sources/Basic/StringParser.swift /private/tmp/nix-build-swift-6.1.drv-0/swift/SwiftCompilerSources/Sources/Basic/Utils.swift -wmo -color-diagnostics -Xfrontend -validate-tbd-against-ir=none -Xfrontend -disable-target-os-checking -Xcc -std=c++17 -Xcc -DCOMPILED_WITH_SWIFT -Xcc -DSWIFT_TARGET -Xcc -UIBOutlet -Xcc -UIBAction -Xcc -UIBInspectable -cxx-interoperability-mode=default -Xfrontend -min-runtime-version -Xfrontend 6.1 -Xfrontend -disable-implicit-string-processing-module-import -Xfrontend -cxx-interop-use-opaque-pointer-for-moveonly -O -cross-module-optimization -Xcc -DNDEBUG -Xcc -I -Xcc /nix/store/8vk3v74x325bxapsvzbgskg7np0fhmsg-llvm-19.1.4+swift-6.1-dev/include -Xcc -I -Xcc /nix/store/8vk3v74x325bxapsvzbgskg7np0fhmsg-llvm-19.1.4+swift-6.1-dev/include -Xcc -I -Xcc /nix/store/b7ghg3sf2g5ww830jiyx2q601ff6ac0i-clang-19.1.4+swift-6.1-dev/include -Xcc -I -Xcc /private/tmp/nix-build-swift-6.1.drv-0/swift/include -Xcc -I -Xcc /tmp/nix-build-swift-6.1.drv-0/swift/build/SwiftCompilerSources/../include -I /tmp/nix-build-swift-6.1.drv-0/swift/build/bootstrapping1/SwiftCompilerSources
<unknown>:0: warning: using (deprecated) legacy driver, Swift installation does not contain swift-driver at: '/private/tmp/nix-build-swift-6.1.drv-0/swift/build/bootstrapping0/bin/swift-driver-new'
/nix/store/z868b7yrfz96vqp8yhf36a9lmp563144-apple-sdk-15.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/lib/swift/Swift.swiftmodule/arm64e-apple-macos.swiftinterface:27128:17: error: Using type 'Int32' can cause metadata allocation or locks
27126 |
27127 | let queryVersion = (Int(major), Int(minor), Int(patch))
27128 | let major32 = Int32(truncatingIfNeeded:Int(queryVersion.0))
| `- error: Using type 'Int32' can cause metadata allocation or locks
27129 | let minor32 = Int32(truncatingIfNeeded:Int(queryVersion.1))
27130 | let patch32 = Int32(truncatingIfNeeded:Int(queryVersion.2))
| 00:25:02 |
🐰 xiaoxiangmoe | Randy Eckenrode: Do you know why emulatorAvailable is needed? | 04:34:59 |
| NixOS Moderation Botchanged room power levels. | 09:47:17 |
| NixOS Moderation Botchanged room power levels. | 09:47:34 |
| K900changed room power levels. | 09:48:08 |
| K900 invited truh. | 09:48:25 |
| truh joined the room. | 09:48:52 |
| K900changed room power levels. | 09:48:56 |
K900 | OK, everyone should be able to invite others to this room now | 09:49:11 |
emily | because there may not be an emulator for the given platform | 12:35:55 |
emily | (I think the original nitpick was sorta gratuitous though, canExecute is basically fine there) | 12:36:30 |
Randy Eckenrode | What emily said. The derivation probably wants to generate completions when cross-compiling. | 12:46:17 |
Randy Eckenrode | Though I feel like it probably should use buildPackages.ast-grep if an emulator is not available. | 12:46:36 |
Randy Eckenrode | I wish I knew what was going on with Swift. | 12:47:49 |
spewdins | is this issue being looked into?
https://github.com/nix-darwin/nix-darwin/issues/1415
I'm also getting this error, after setting nix.enable = false; with a nix-determinite installation on macos | 13:44:20 |
spewdins | should I uninstall nix determinite to solve it | 13:49:51 |
| @adam:robins.wtf left the room. | 14:42:36 |
xsova | Is anyone else getting build errors due to mold ? I ran nix flake update and darwin-rebuild switch , and it's saying that the mold package is broken for darwin, but it seems that the darwin-system build depends on it? I'm not sure what to do, but if the new version of mold isn't explicitly needed, I'd still like to update my system and just keep the older version. I've tried --fallback --keep-going and it still won't build my system. | 16:17:31 |
xsova | building the system configuration...
error: builder for '/nix/store/9nayy28s65cnb4s7qmmqj6b6kkjyxr7p-mold-2.39.0.drv' failed with exit code 2;
last 25 log lines:
> [511/513] Building CXX object CMakeFiles/mold.dir/src/arch-ppc64v1.cc.o
> [512/513] Building CXX object CMakeFiles/mold.dir/lib/signal-unix.cc.o
> [513/513] Linking CXX executable mold
> buildPhase completed in 1 minutes 25 seconds
> Running phase: installPhase
> install flags: -j14 install
> [1/4] cd /tmp/nix-build-mold-2.39.0.drv-0/source/build && /nix/store/nbxamy6yl7jffgpv4zzajqdp6j0z2xqp-cmake-3.31.6/bin/cmake -DSOURCE_DIR=/tmp/nix-build-mold-2.39.0.drv-0/source -DOUTPUT_FILE=/tmp/nix-build-mold-2.39.0.drv-0/source/build/git-hash.cc -P /tmp/nix-build-mold-2.39.0.drv-0/source/lib/update-git-hash.cmake
> [1/2] Install the project...
> -- Install configuration: "Release"
> -- Installing: /nix/store/3dlk4i33n38i4q6q8vm8d5x5n7wzidca-mold-2.39.0/bin/mold
> -- Installing: /nix/store/3dlk4i33n38i4q6q8vm8d5x5n7wzidca-mold-2.39.0/share/man/man1/mold.1
> -- Installing: /nix/store/3dlk4i33n38i4q6q8vm8d5x5n7wzidca-mold-2.39.0/share/doc/mold/LICENSE
> -- Installing symlink: /nix/store/3dlk4i33n38i4q6q8vm8d5x5n7wzidca-mold-2.39.0/libexec/mold/ld -> ../../bin/mold
> -- Installing symlink: /nix/store/3dlk4i33n38i4q6q8vm8d5x5n7wzidca-mold-2.39.0/bin/ld.mold -> mold
> -- Installing symlink: /nix/store/3dlk4i33n38i4q6q8vm8d5x5n7wzidca-mold-2.39.0/share/man/man1/ld.mold.1 -> mold.1
> Running phase: fixupPhase
> checking for references to /private/tmp/nix-build-mold-2.39.0.drv-0/ in /nix/store/3dlk4i33n38i4q6q8vm8d5x5n7wzidca-mold-2.39.0...
> gzipping man pages under /nix/store/3dlk4i33n38i4q6q8vm8d5x5n7wzidca-mold-2.39.0/share/man/
> patching script interpreter paths in /nix/store/3dlk4i33n38i4q6q8vm8d5x5n7wzidca-mold-2.39.0
> stripping (with command strip and flags -S) in /nix/store/3dlk4i33n38i4q6q8vm8d5x5n7wzidca-mold-2.39.0/libexec /nix/store/3dlk4i33n38i4q6q8vm8d5x5n7wzidca-mold-2.39.0/bin
> rewriting symlink /nix/store/3dlk4i33n38i4q6q8vm8d5x5n7wzidca-mold-2.39.0/share/man/man1/ld.mold.1.gz to be relative to /nix/store/3dlk4i33n38i4q6q8vm8d5x5n7wzidca-mold-2.39.0
> Running phase: installCheckPhase
> Executing versionCheckPhase
> Did not find version 2.39.0 in the output of the command /nix/store/3dlk4i33n38i4q6q8vm8d5x5n7wzidca-mold-2.39.0/bin/mold --version
>
For full logs, run:
nix log /nix/store/9nayy28s65cnb4s7qmmqj6b6kkjyxr7p-mold-2.39.0.drv
error: 1 dependencies of derivation '/nix/store/m22z9zlnakqmwcra8p6r4b7m8xim1qna-evcxr-0.19.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/w9yd49w2rcbivdlricrbzgxv9j4nq5nm-applications.drv' failed to build
error: 1 dependencies of derivation '/nix/store/mz0ciz0vynfm7p192jswb3hajh81w04r-darwin-system-25.05.f88be00.drv' failed to build
| 16:18:16 |
xsova | I looked at https://github.com/NixOS/nixpkgs/commit/59a57736847d941843bc210ca48885b2f771462f and it looks like this is the commit that made it broken for darwin, but I'm not sure how to force the previously (non-broken) version to be what is used by darwin-nix | 16:23:50 |
Katalin 🔪 | the evcxr package depends on it | 16:25:23 |
Katalin 🔪 | from the update PR for that it sounds to me like mold might only be required for the tests so you might get away from removing it from the dependencies | 16:31:48 |
Katalin 🔪 | https://github.com/NixOS/nixpkgs/pull/402167 | 16:31:51 |
xsova | How would I go about doing that? | 16:35:32 |
Katalin 🔪 | I’m currently trying to build pkgs.excvr.override { mold = null; } | 16:40:44 |