We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This issue seems to occur after #257084 . Any package built using:
stdenv = useMoldLinker pkgs.llvmPackages_16.stdenv
will fail to build.
Minimal example:
nix build --impure --expr "with import ./. {}; hello.override ({ stdenv = useMoldLinker pkgs.llvmPackages_16.stdenv; })"
output:
error: output '/nix/store/nyvps4iq0vdyygv9h7dxangr172jpc15-stdenv-linux' is not allowed to refer to the following paths: /nix/store/0p24ldjm3z7xwzfhhi9j5cgp2fplqdh4-isl-0.20 /nix/store/2a9na7bp4r3290yqqzg503325dwglxyq-gzip-1.13 /nix/store/2jp6cv2q4cgh91f5lp57p945rq98ldhr-gnumake-4.4.1 /nix/store/35badg7gpxkhyzcrdyh2dfi9wfd43phz-libffi-3.4.4 /nix/store/4qszs6vbmwx8qkidaaj45b65cvvjy57v-clang-16.0.6-lib /nix/store/5ak15bwxvcbl83qnw48lipcqwwr5bci4-llvm-16.0.6-lib /nix/store/6947mfg2jlid97cnvzvc6cvv6wpj2yhg-bzip2-1.0.8 /nix/store/6gi9l31zh55xijchhs6fh85ma1lzlj5w-ed-1.19 /nix/store/74y3751gsixaz9797ib0hp7c658sp1y5-binutils-2.40 /nix/store/89s3w7b4g78989kpzc7sy4phv0nqfira-gnutar-1.35 /nix/store/8kkn44iwdbgqkrj661nr4cjcpmrqqmx8-gawk-5.2.2 /nix/store/8ny01r2xa5mv5brk9srdmv91wrjvxila-libidn2-2.3.4 /nix/store/8rk5bs4n4x282ynb8kdyh314caryvyav-pcre2-10.42 /nix/store/9cjqs6ng6favcnqjb8ihzlpd2c8aw391-expand-response-params /nix/store/9fn3zfrq6qg7z1c3sls9lm801fnglbpy-attr-2.5.1 /nix/store/b6izr8wh0p7dyvh3cyg14wq2rn8d31ik-findutils-4.9.0 /nix/store/br1p5pan2pgmgrm81kj43qawd9b9nns1-libunistring-1.1 /nix/store/c15ama0p8jr4mn0943yjk4rpa2hxk7ml-patch-2.7.6 /nix/store/d48d0ppksa6gwxjlkwf2i93rilyv9jvq-ncurses-6.4 /nix/store/f6in5kb2y5v06zinz1a6xy6cyg67q026-glibc-2.37-8-bin /nix/store/fbmlwswzpjzvqalyddngcvrk6c0zlf76-compiler-rt-libc-16.0.6 /nix/store/gg9phd7k11j3hnnvsalsj8yyk1xdyr8v-binutils-2.40-lib /nix/store/gxknjk51s7q86llkbzpaqv43kflj9d8j-bzip2-1.0.8-bin /nix/store/h5kvfrjmpw792v8jg7nrzfkffmn0iyy8-gcc-12.3.0 /nix/store/isjc67gd3hhzm989crqzkscvpxljlff3-libmpc-1.3.1 /nix/store/ks4msz5hmdvivf9fm84m1hzqw32swb89-libxml2-2.11.5 /nix/store/ld03l52xq2ssn4x0g5asypsxqls40497-glibc-2.37-8 /nix/store/pnndfnlqvbfj0m86q7dxnyk2lw88k6a8-gnu-config-2023-07-31 /nix/store/q56n7lhjw724i7b33qaqra61p7m7c0cd-diffutils-3.10 /nix/store/r4s1c5mzpf8y63vdp80nrdxf60r119pa-compiler-rt-libc-16.0.6-dev /nix/store/r8sjslc46lwgg2wn4rh5iij3d44c4zqg-linux-headers-6.5 /nix/store/rfckdjskd983ylf05jm9mlsw7y618hyr-xgcc-12.3.0-libgcc /nix/store/rj5azc678q6xvx44k8w56r5awjzs6b0p-gmp-6.3.0 /nix/store/s6598sqqhh7bzhn7qvlzk2gks8476sbj-clang-16.0.6 /nix/store/sb3sxnp4g40gfw758a0m4sjm7slvmax9-xz-5.4.4-bin /nix/store/wb0b9fbs5hqn8bd6czdlaj6pa66b5gyj-mpfr-4.2.1 /nix/store/x1hsrjsj2wczwg0pz1br9qyg2sb3idal-gmp-with-cxx-6.3.0 /nix/store/x23by79p38ll0js1alifmf3y56vqfs49-gnused-4.9 /nix/store/xa1bg4dk78cx7g9zqqs0akhv0my9l7w5-xz-5.4.4 /nix/store/xafzciap7acqhfx84dvqkp18bg4lrai3-gnugrep-3.11 /nix/store/xdqlrixlspkks50m9b0mpvag65m3pf2w-bash-5.2-p15 /nix/store/xfjqspcc9442hi0lm0szv3sw75zswvml-file-5.45 /nix/store/xq05361kqwzcdamcsxr4gzg8ksxrb8sg-gcc-12.3.0-lib /nix/store/xvxaw8q1b4dja27ljmynmc9818aagjz3-gcc-12.3.0-libgcc /nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev /nix/store/y9gr7abwxvzcpg5g73vhnx1fpssr5frr-coreutils-9.3 /nix/store/yxhhqz2p7d62ixjwapxf6nzs0n3pa3k8-acl-2.3.1 error: 1 dependencies of derivation '/nix/store/axzzl71mpmlg90f5wfiirwippajvy6cy-hello-2.12.1.drv' failed to build
this would also happen if gcc13Stdenv or clangStdenv were used instead of llvm stdenv.
gcc13Stdenv
clangStdenv
before then, running the same command will succeed.
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"` - host os: `Linux 6.1.55, NixOS, 23.05 (Stoat), 23.05.4335.898cb2064b6e` - multi-user?: `yes` - sandbox: `yes` - version: `nix-env (Nix) 2.13.5` - channels(root): `"nixos-23.05, unstable"` - channels(quincepie): `""` - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@azahi @nitsky @paveloom
The text was updated successfully, but these errors were encountered:
allowedRequisites
null
useMoldLinker
The easiest solution would be to set allowedRequisites to null, see #261856.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Issue description
This issue seems to occur after #257084 . Any package built using:
will fail to build.
Steps to reproduce
Minimal example:
nix build --impure --expr "with import ./. {}; hello.override ({ stdenv = useMoldLinker pkgs.llvmPackages_16.stdenv; })"
output:
this would also happen if
gcc13Stdenv
orclangStdenv
were used instead of llvm stdenv.before then, running the same command will succeed.
Technical details
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Notify Maintainers
@azahi
@nitsky
@paveloom
The text was updated successfully, but these errors were encountered: