尝试安装firefox,首先依赖包安装正确。但最后我得到了以下错误:
$nix-env -i firefox-67.0.1
...
post-installation fixup
Moving /nix/store/qx4w4841grng03q819hmaj315j7a9w6r-compiler-rt-7.1.0/include to /nix/store/a0dxd8aiqvpfxwlpv44d0xbpkmcxcq0g-compiler-rt-7.1.0-dev/include
Removing empty /nix/store/qx4w4841grng03q819hmaj315j7a9w6r-compiler-rt-7.1.0/ and (possibly) its parents
strip is /nix/store/ah81jgj71sr7nmvy4pc6x89pgpr6ygvk-binutils-2.31.1/bin/strip
shrinking RPATHs of ELF executables and libraries in /nix/store/a0dxd8aiqvpfxwlpv44d0xbpkmcxcq0g-compiler-rt-7.1.0-dev
strip is /nix/store/ah81jgj71sr7nmvy4pc6x89pgpr6ygvk-binutils-2.31.1/bin/strip
patching script interpreter paths in /nix/store/a0dxd8aiqvpfxwlpv44d0xbpkmcxcq0g-compiler-rt-7.1.0-dev
checking for references to /build/ in /nix/store/a0dxd8aiqvpfxwlpv44d0xbpkmcxcq0g-compiler-rt-7.1.0-dev...
builder for '/nix/store/75sxcn605fsqr3jgbf70chn8550rvk4j-compiler-rt-7.1.0.drv' failed to produce output path '/nix/store/qx4w4841grng03q819hmaj315j7a9w6r-compiler-rt-7.1.0'
cannot build derivation '/nix/store/d6rh69f4gik90sm24p422gf3zpws6svb-clang-wrapper-7.1.0.drv': 1 dependencies couldn't be built
copying path '/nix/store/p7dyx7mwj4llimn0ydm6dkw910j81sgz-gtk+-2.24.32-dev' from 'https://cache.nixos.org'...
cannot build derivation '/nix/store/ihd6b877m513q4aq9q0gddxgl7b6lw2b-firefox-unwrapped-67.0.1.drv': 1 dependencies couldn't be built
copying path '/nix/store/zwrn3cwjl7gs7kaj872pyzzrd0j98kbr-gtk+3-3.24.8-dev' from 'https://cache.nixos.org'...
cannot build derivation '/nix/store/r85ddzbfic2jvypaskj6brbd51fy64h1-firefox-67.0.1.drv': 1 dependencies couldn't be built
error: build of '/nix/store/r85ddzbfic2jvypaskj6brbd51fy64h1-firefox-67.0.1.drv' failed
答案1
问题不在于 Firefox 构建本身,而在于llvmPackages.compiler-rt
.我认为最好使用问题跟踪器来解决此类问题:https://github.com/nixos/nixpkgs/issues
...但无论如何让我尝试提供帮助。过去几周,整个 Firefox 构建在构建农场上显示正常(掌握,19.03),所以:(1)你可能会尝试找出为什么不使用 Hydra 的二进制文件(如果你不是故意的) - 我可以看到路径不在那里,所以你可能有不寻常/意外的来源版本或覆盖; (2)您可能会尝试找出它在本地失败的原因...我的第一个猜测是您禁用了沙箱并且暴露了构建中的一些杂质。