[Nix-dev] GCC in pkgs.buildEnv.paths

Kirill Elagin kirelagin at gmail.com
Sun May 25 08:25:53 CEST 2014


Hi Peter,

Just for the record: this issue is not due to Pavel's misconfiguration, I
can confirm the behaviour he described.

In my case it is

~~~~~
% nix-env --dry-run -iA nixos.pkgs.gcc
(dry run; not doing anything)
installing `gcc-wrapper-4.8.2'
% readlink -f $(which gcc)
/nix/store/agf8fk4xj2aqr3jccfcypqsmvkz3smn8-gcc-wrapper-4.8.2/bin/gcc
~~~~~~~~~~~

(I don't know how to force `nix-env` to print computed hash of an already
present package.)

~~~~~~
% nix-env --dry-run -iA nixos.pkgs.testgcc
(dry run; not doing anything)
installing `testgcc'
these derivations will be built:
  /nix/store/41nacbfpr8jzsk3k03jjlqb2r2xis5gf-gcc-wrapper-4.8.2.drv
  /nix/store/7z26jxbwkc5hx9gwrj47dhcpfxwg5b67-binutils-2.23.1.drv
  /nix/store/di54xrm0pkrs67fv61g7j53qhsm8vm55-testgcc.drv
these paths will be fetched (13.86 MiB download, 79.74 MiB unpacked):
  /nix/store/1rymlfk7y0pjwmhh6ngp0azw3173v5a0-gcc-4.8.2
~~~~~~~~~~~~~~

So please note that hashes don't much not only for `gcc-wrapper` and
`binutils`, but also for `gcc` and,
strangely enough, that another `gcc` is available on the channel!

~~~~~~~~
% nix-store -q -R $(which gcc) | grep gcc-4
/nix/store/9fb027n5a2lf9qwpb98v77iycqq552pf-gcc-4.8.2
~~~~~~~~~~~

Probably, comparing inputs of `gcc`'s with given hashes might shed some
light on the case.

Answering your questions:

~~~~~~
% nix-env -qaP | grep testgcc
nixos.pkgs.testgcc
testgcc
~~~~~~~

And removing `~/.nix-defexpr/channels` doesn't change anything.



--
Кирилл Елагин


On Sun, May 25, 2014 at 1:55 AM, Peter Simons <simons at cryp.to> wrote:

> Hi Pavel,
>
> could you please restore original ~/.nixpkgs/config.nix file you were
> using when you started this thread and run:
>
>   $ nix-env -qaP \* | grep testgcc
>
> What is the output of that command?
>
> Afterwards, please delete the symlink ~/.nix-defexpr/channels (so that
> ~/.nix-defexpr/channels_root is the only remaining entry in that
> directory). Then, please run:
>
>   $ nix-env -iA nixos.pkgs.testgcc --dry-run
>
> Does the command still try to re-build gcc, glibc, etc.?
>
> Take care,
> Peter
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140525/02656492/attachment-0001.html 


More information about the nix-dev mailing list