Closed XYenon closed 2 months ago
Unless I got confused this is still a problem on nixos-unstable, but according to https://nixpk.gs/pr-tracker.html?pr=319273 the fix was merged there
building '/nix/store/a7878hz2iz60mzncyxqfby5hf7jjpkcy-neovim-pde-hm-config.drv'...
error: builder for '/nix/store/2p3y1akpq515liz8cfd63xp447qhkv2p-swift-5.8.drv' failed with exit code 1;
last 10 log lines:
> <unknown>:0: warning: unable to perform implicit import of "_Concurrency" module: no such module found
> <unknown>:0: warning: template instantiation for 'std::reverse_iterator' not imported: too many instantiations
> <unknown>:0: warning: template instantiation for 'std::__pointer' not imported: too many instantiations
> <unknown>:0: warning: template instantiation for 'std::remove_volatile' not imported: too many instantiations
> <unknown>:0: warning: template instantiation for 'std::initializer_list' not imported: too many instantiations
> <unknown>:0: warning: template instantiation for 'std::conditional' not imported: too many instantiations
> <unknown>:0: warning: template instantiation for 'std::pair' not imported: too many instantiations
> <unknown>:0: warning: template instantiation for 'std::__add_lvalue_reference_impl' not imported: too many instantiations
> <unknown>:0: error: IR generation failure: Cannot read legacy layout file at '/private/tmp/nix-build-swift-5.8.drv-0/build/swift/bootstrapping0/lib/swift/macosx/layouts-x86_64.yaml'
> ninja: build stopped: subcommand failed.
For full logs, run 'nix log /nix/store/2p3y1akpq515liz8cfd63xp447qhkv2p-swift-5.8.drv'.
error: 1 dependencies of derivation '/nix/store/n170vra2xqp9s4s05vcnh9arlw644a99-mpv-0.38.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/zx9rzy45w2anzwpw553rxn0ypafn7kg7-mpv-with-scripts-0.38.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4izz4ka4yd8h37id60c373kf1kmfl9sk-home-manager-applications.drv' failed to build
error: 1 dependencies of derivation '/nix/store/icswyj7nh2k1gp7kw7snx2n8ni5irh8p-home-manager-fonts.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gpfc9fsk2nlgzi39ljpfrdcpcdh3rhyh-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/y2nk9xq03pgdljzckil299s7grcilz9s-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/b6mz0dmc9sc9z20vk2k4nbilmjijfxsw-user-environment.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wl7npds17jdn81p3jzmmpl3n12bbbf51-activation-konrad.drv' failed to build
error: 1 dependencies of derivation '/nix/store/w61dvcyj6x4sdgd3c226c4ng7vnxsahh-darwin-system-24.11.20240613.e9ee548+darwin4.ff988d7.drv' failed to build
Error: Process completed with exit code 1.
Unless I got confused this is still a problem on nixos-unstable, but according to nixpk.gs/pr-tracker.html?pr=319273 the fix was merged there
building '/nix/store/a7878hz2iz60mzncyxqfby5hf7jjpkcy-neovim-pde-hm-config.drv'... error: builder for '/nix/store/2p3y1akpq515liz8cfd63xp447qhkv2p-swift-5.8.drv' failed with exit code 1; last 10 log lines: > <unknown>:0: warning: unable to perform implicit import of "_Concurrency" module: no such module found > <unknown>:0: warning: template instantiation for 'std::reverse_iterator' not imported: too many instantiations > <unknown>:0: warning: template instantiation for 'std::__pointer' not imported: too many instantiations > <unknown>:0: warning: template instantiation for 'std::remove_volatile' not imported: too many instantiations > <unknown>:0: warning: template instantiation for 'std::initializer_list' not imported: too many instantiations > <unknown>:0: warning: template instantiation for 'std::conditional' not imported: too many instantiations > <unknown>:0: warning: template instantiation for 'std::pair' not imported: too many instantiations > <unknown>:0: warning: template instantiation for 'std::__add_lvalue_reference_impl' not imported: too many instantiations > <unknown>:0: error: IR generation failure: Cannot read legacy layout file at '/private/tmp/nix-build-swift-5.8.drv-0/build/swift/bootstrapping0/lib/swift/macosx/layouts-x86_64.yaml' > ninja: build stopped: subcommand failed. For full logs, run 'nix log /nix/store/2p3y1akpq515liz8cfd63xp447qhkv2p-swift-5.8.drv'. error: 1 dependencies of derivation '/nix/store/n170vra2xqp9s4s05vcnh9arlw644a99-mpv-0.38.0.drv' failed to build error: 1 dependencies of derivation '/nix/store/zx9rzy45w2anzwpw553rxn0ypafn7kg7-mpv-with-scripts-0.38.0.drv' failed to build error: 1 dependencies of derivation '/nix/store/4izz4ka4yd8h37id60c373kf1kmfl9sk-home-manager-applications.drv' failed to build error: 1 dependencies of derivation '/nix/store/icswyj7nh2k1gp7kw7snx2n8ni5irh8p-home-manager-fonts.drv' failed to build error: 1 dependencies of derivation '/nix/store/gpfc9fsk2nlgzi39ljpfrdcpcdh3rhyh-home-manager-path.drv' failed to build error: 1 dependencies of derivation '/nix/store/y2nk9xq03pgdljzckil299s7grcilz9s-home-manager-generation.drv' failed to build error: 1 dependencies of derivation '/nix/store/b6mz0dmc9sc9z20vk2k4nbilmjijfxsw-user-environment.drv' failed to build error: 1 dependencies of derivation '/nix/store/wl7npds17jdn81p3jzmmpl3n12bbbf51-activation-konrad.drv' failed to build error: 1 dependencies of derivation '/nix/store/w61dvcyj6x4sdgd3c226c4ng7vnxsahh-darwin-system-24.11.20240613.e9ee548+darwin4.ff988d7.drv' failed to build Error: Process completed with exit code 1.
It looks like not a same error?
You're right. This one seems like it's originating in swift.
Unless I got confused this is still a problem on nixos-unstable, but according to https://nixpk.gs/pr-tracker.html?pr=319273 the fix was merged there
building '/nix/store/a7878hz2iz60mzncyxqfby5hf7jjpkcy-neovim-pde-hm-config.drv'... error: builder for '/nix/store/2p3y1akpq515liz8cfd63xp447qhkv2p-swift-5.8.drv' failed with exit code 1; last 10 log lines: > <unknown>:0: warning: unable to perform implicit import of "_Concurrency" module: no such module found > <unknown>:0: warning: template instantiation for 'std::reverse_iterator' not imported: too many instantiations > <unknown>:0: warning: template instantiation for 'std::__pointer' not imported: too many instantiations > <unknown>:0: warning: template instantiation for 'std::remove_volatile' not imported: too many instantiations > <unknown>:0: warning: template instantiation for 'std::initializer_list' not imported: too many instantiations > <unknown>:0: warning: template instantiation for 'std::conditional' not imported: too many instantiations > <unknown>:0: warning: template instantiation for 'std::pair' not imported: too many instantiations > <unknown>:0: warning: template instantiation for 'std::__add_lvalue_reference_impl' not imported: too many instantiations > <unknown>:0: error: IR generation failure: Cannot read legacy layout file at '/private/tmp/nix-build-swift-5.8.drv-0/build/swift/bootstrapping0/lib/swift/macosx/layouts-x86_64.yaml' > ninja: build stopped: subcommand failed. For full logs, run 'nix log /nix/store/2p3y1akpq515liz8cfd63xp447qhkv2p-swift-5.8.drv'. error: 1 dependencies of derivation '/nix/store/n170vra2xqp9s4s05vcnh9arlw644a99-mpv-0.38.0.drv' failed to build error: 1 dependencies of derivation '/nix/store/zx9rzy45w2anzwpw553rxn0ypafn7kg7-mpv-with-scripts-0.38.0.drv' failed to build error: 1 dependencies of derivation '/nix/store/4izz4ka4yd8h37id60c373kf1kmfl9sk-home-manager-applications.drv' failed to build error: 1 dependencies of derivation '/nix/store/icswyj7nh2k1gp7kw7snx2n8ni5irh8p-home-manager-fonts.drv' failed to build error: 1 dependencies of derivation '/nix/store/gpfc9fsk2nlgzi39ljpfrdcpcdh3rhyh-home-manager-path.drv' failed to build error: 1 dependencies of derivation '/nix/store/y2nk9xq03pgdljzckil299s7grcilz9s-home-manager-generation.drv' failed to build error: 1 dependencies of derivation '/nix/store/b6mz0dmc9sc9z20vk2k4nbilmjijfxsw-user-environment.drv' failed to build error: 1 dependencies of derivation '/nix/store/wl7npds17jdn81p3jzmmpl3n12bbbf51-activation-konrad.drv' failed to build error: 1 dependencies of derivation '/nix/store/w61dvcyj6x4sdgd3c226c4ng7vnxsahh-darwin-system-24.11.20240613.e9ee548+darwin4.ff988d7.drv' failed to build Error: Process completed with exit code 1.
I was also confused because I have the same error when building mpv, but yeah looks like a swift error. Any solutions?
@konradmalik @ahmedelgabri The build-failure reported in this issue seems to be unrelated to the recent swift breakage on Darwin. Where swift-dependent packages like mpv are currently broken on Darwin.
I suggest opening a separate issue to track mpv's build-failure due to swift on Darwin. There is an open-issue for the swift build failure at #320900.
Steps To Reproduce
Steps to reproduce the behavior:
Build log
Notify maintainers
@AndersonTorres @fpletz @globin @ma27 @tadeokondrak
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.