[Nix-dev] Eval error on master: ‘cannot find attribute `cc'

Bjørn Forsman bjorn.forsman at gmail.com
Thu Feb 26 21:01:54 CET 2015


Hi all,

I get this eval error on master now, and the traceback is not helpful.
Where is the missing 'cc' attribute?

$ nix-build pkgs/top-level/release.nix -A tarball
these derivations will be built:
  /nix/store/d37006jvrag3y0kf7q9q866y4q7ggrcf-nixpkgs-tarball-15.05pre1234.abcdef.drv
building path(s)
‘/nix/store/412igwcdclsvgilfis7b51j4j32qfha9-nixpkgs-tarball-15.05pre1234.abcdef’
unpacking sources
unpacking source archive /nix/store/iqdlknbd4ahyxwaxgm87yaf27gp7hh4v-nixpkgs
source root is nixpkgs
patching sources
autoconfPhase
No bootstrap, bootstrap.sh, configure.in or configure.ac. Assuming
this is not an GNU Autotools package.
configuring
release name is nixpkgs-15.05pre1234.abcdef
building
no Makefile, doing nothing
running tests
warning: you did not specify ‘--add-root’; the result might be removed
by the garbage collector
warning: you did not specify ‘--add-root’; the result might be removed
by the garbage collector
checking pkgs/top-level/all-packages.nix on i686-linux
checking pkgs/top-level/all-packages.nix on x86_64-linux
checking pkgs/top-level/all-packages.nix on x86_64-darwin
checking pkgs/top-level/all-packages.nix on i686-freebsd
checking pkgs/top-level/all-packages.nix on x86_64-freebsd
checking eval-release.nix
GC Warning: Repeated allocation of very large block (appr. size 196608):
May lead to memory leak and poor performance.
[...snip a few screens of GC warnings...]
error: while evaluating anonymous function at
"/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/maintainers/scripts/eval-release.nix":21:25,
called from "/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/lib/attrsets.nix":135:52:
while evaluating anonymous function at
"/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/maintainers/scripts/eval-release.nix":7:76,
called from "/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/maintainers/scripts/eval-release.nix":21:56:
while evaluating ‘recurse’ at
"/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/maintainers/scripts/eval-release.nix":13:19,
called from "/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/maintainers/scripts/eval-release.nix":21:69:
while evaluating the attribute ‘"${attr}"’ at
"/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/lib/attrsets.nix":121:41:
while evaluating anonymous function at
"/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/pkgs/top-level/release-lib.nix":50:6,
called from "/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/lib/attrsets.nix":218:43:
while evaluating ‘getPkg’ at
"/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/pkgs/top-level/release-lib.nix":69:18,
called from "/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/pkgs/top-level/release-lib.nix":50:14:
while evaluating ‘getAttrFromPath’ at
"/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/lib/attrsets.nix":36:31,
called from "/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/pkgs/top-level/release-lib.nix":69:24:
while evaluating ‘attrByPath’ at
"/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/lib/attrsets.nix":19:35,
called from "/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/lib/attrsets.nix":38:8:
evaluation aborted with the following error message: ‘cannot find
attribute `cc'’
build time elapsed:  0m0.024s 0m0.014s 2m31.584s 0m4.146s
builder for ‘/nix/store/d37006jvrag3y0kf7q9q866y4q7ggrcf-nixpkgs-tarball-15.05pre1234.abcdef.drv’
failed with exit code 1
error: build of
‘/nix/store/d37006jvrag3y0kf7q9q866y4q7ggrcf-nixpkgs-tarball-15.05pre1234.abcdef.drv’
failed

- Bjørn


More information about the nix-dev mailing list