Closed ca5ua1 closed 12 months ago
Same happens for nix-shell:
~ ➤ nix-shell -p python311Packages.keyutils
this derivation will be built:
/nix/store/h6qsja7hawy1rs6qaqh8442qx1bijibr-python3.11-keyutils-0.6.drv
these 24 paths will be fetched (2.14 MiB download, 10.30 MiB unpacked):
/nix/store/fcb8y11fqj8wv65qv5vnskys5mg6q43r-die-hook
/nix/store/mlccxaf3ra12bhw18yd7pni3f8nllyfi-ensure-newer-sources-hook
/nix/store/a9wha6jyqrfqi4vhj7n6q5x8q92057wn-keyutils-1.6.3-dev
/nix/store/q7pdfbs3csif2271sqaxcq7604c07njp-make-shell-wrapper-hook
/nix/store/h6xhwlkch9jap3bfv47j8rqdvqpa1974-pip-install-hook
/nix/store/p8rjpksqn5p8x0hac1fndgmyi05bd40x-python-catch-conflicts-hook
/nix/store/y3h4lxh4310ck21f0796glpwrzgaj55k-python-imports-check-hook.sh
/nix/store/blafj15b8fway4rq60w50wmzs88nkx2n-python-namespaces-hook.sh
/nix/store/jgkm47kqbpq7y8yrf91q97amnzji2458-python-output-dist-hook
/nix/store/2d9ifwchmm60qvmqyawdaw62x3q2wv2w-python-remove-bin-bytecode-hook
/nix/store/6hl3dlzny6hl01bmgx4xza150bbplfmx-python-remove-tests-dir-hook
/nix/store/yh5bnk1830p680l1wahrbzx12b5a1765-python3.11-attrs-22.2.0
/nix/store/sdi2mmmpkpsvw2igk763g7fc3s2fm4vn-python3.11-iniconfig-2.0.0
/nix/store/jdfcq45cn95ii9ianakvix3c99w0c8x6-python3.11-packaging-23.0
/nix/store/gvk2k0pylpha0v0ikiznbbjy0smjnjc2-python3.11-pluggy-1.0.0
/nix/store/n6vx69ynff8g9zvxrwa5fv1bihbxvmxg-python3.11-py-1.11.0
/nix/store/mr1csxmm7asz4v4mz63vpg6dfmv3fhxd-python3.11-pytest-7.2.1
/nix/store/q9xlccrpj8iri4mpr72z1yb3w9chpvry-python3.11-pytest-runner-6.0.0
/nix/store/s7znna4kvh74hv84kd30sz8ykb2b67kv-python3.11-setuptools-67.4.0
/nix/store/khxp56q3x5bwl2161982gw7qbl22zjlc-python3.11-tomli-2.0.1
/nix/store/kf6hdq13ldg0xwpr3ijswlxfvpax1s33-python3.11-wheel-0.38.4
/nix/store/8a1v83i1kw8955iy82qs6zh2v3ydjx57-setuptools-check-hook
/nix/store/n4qi08kx2drc3chfy6plaip9bscr8b5i-setuptools-setup-hook
/nix/store/gmzvlyavf8gj67zgv4qi317z7a5aa8fs-wrap-python-hook
copying path '/nix/store/jgkm47kqbpq7y8yrf91q97amnzji2458-python-output-dist-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/2d9ifwchmm60qvmqyawdaw62x3q2wv2w-python-remove-bin-bytecode-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/6hl3dlzny6hl01bmgx4xza150bbplfmx-python-remove-tests-dir-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/fcb8y11fqj8wv65qv5vnskys5mg6q43r-die-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/mlccxaf3ra12bhw18yd7pni3f8nllyfi-ensure-newer-sources-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/a9wha6jyqrfqi4vhj7n6q5x8q92057wn-keyutils-1.6.3-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/h6xhwlkch9jap3bfv47j8rqdvqpa1974-pip-install-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/y3h4lxh4310ck21f0796glpwrzgaj55k-python-imports-check-hook.sh' from 'https://cache.nixos.org'...
copying path '/nix/store/blafj15b8fway4rq60w50wmzs88nkx2n-python-namespaces-hook.sh' from 'https://cache.nixos.org'...
copying path '/nix/store/q9xlccrpj8iri4mpr72z1yb3w9chpvry-python3.11-pytest-runner-6.0.0' from 'https://cache.nixos.org'...
copying path '/nix/store/yh5bnk1830p680l1wahrbzx12b5a1765-python3.11-attrs-22.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/sdi2mmmpkpsvw2igk763g7fc3s2fm4vn-python3.11-iniconfig-2.0.0' from 'https://cache.nixos.org'...
copying path '/nix/store/jdfcq45cn95ii9ianakvix3c99w0c8x6-python3.11-packaging-23.0' from 'https://cache.nixos.org'...
copying path '/nix/store/gvk2k0pylpha0v0ikiznbbjy0smjnjc2-python3.11-pluggy-1.0.0' from 'https://cache.nixos.org'...
copying path '/nix/store/n6vx69ynff8g9zvxrwa5fv1bihbxvmxg-python3.11-py-1.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/s7znna4kvh74hv84kd30sz8ykb2b67kv-python3.11-setuptools-67.4.0' from 'https://cache.nixos.org'...
copying path '/nix/store/khxp56q3x5bwl2161982gw7qbl22zjlc-python3.11-tomli-2.0.1' from 'https://cache.nixos.org'...
copying path '/nix/store/kf6hdq13ldg0xwpr3ijswlxfvpax1s33-python3.11-wheel-0.38.4' from 'https://cache.nixos.org'...
copying path '/nix/store/q7pdfbs3csif2271sqaxcq7604c07njp-make-shell-wrapper-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/gmzvlyavf8gj67zgv4qi317z7a5aa8fs-wrap-python-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/p8rjpksqn5p8x0hac1fndgmyi05bd40x-python-catch-conflicts-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/8a1v83i1kw8955iy82qs6zh2v3ydjx57-setuptools-check-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/n4qi08kx2drc3chfy6plaip9bscr8b5i-setuptools-setup-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/mr1csxmm7asz4v4mz63vpg6dfmv3fhxd-python3.11-pytest-7.2.1' from 'https://cache.nixos.org'...
building '/nix/store/h6qsja7hawy1rs6qaqh8442qx1bijibr-python3.11-keyutils-0.6.drv'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing setuptools-check-hook
Using setuptoolsCheckPhase
unpacking sources
unpacking source archive /nix/store/dxc4n5ln8sm8rm6hpkjxgzfd3c6fi0wz-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tox.ini
patching sources
configuring
no configure script, doing nothing
building
Executing setuptoolsBuildPhase
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-311
creating build/lib.linux-x86_64-cpython-311/keyutils
copying keyutils/__init__.py -> build/lib.linux-x86_64-cpython-311/keyutils
running build_ext
building 'keyutils._keyutils' extension
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/keyutils
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/6j93cr35jnhf4md1rr9w4b5mhilc9203-libxcrypt-4.4.33/include -fPIC -I/nix/store/pa7ad0v5hs8amap6j09dh72cwc36l0sv-python3-3.11.3/include/python3.11 -c keyutils/_keyutils.c -o build/temp.linux-x86_64-cpython-311/keyutils/_keyutils.o
keyutils/_keyutils.c:196:12: fatal error: longintrepr.h: No such file or directory
196 | #include "longintrepr.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/nix/store/d9fndiing52fkalp5knfalrvlb3isi6w-gcc-wrapper-12.2.0/bin/gcc' failed with exit code 1
/nix/store/5wdlffjhcr4i43sfajxcvx3lvnkryh5y-stdenv-linux/setup: line 1604: pop_var_context: head of shell_variables not a function context
error: builder for '/nix/store/h6qsja7hawy1rs6qaqh8442qx1bijibr-python3.11-keyutils-0.6.drv' failed with exit code 1;
last 10 log lines:
> building 'keyutils._keyutils' extension
> creating build/temp.linux-x86_64-cpython-311
> creating build/temp.linux-x86_64-cpython-311/keyutils
> gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/6j93cr35jnhf4md1rr9w4b5mhilc9203-libxcrypt-4.4.33/include -fPIC -I/nix/store/pa7ad0v5hs8amap6j09dh72cwc36l0sv-python3-3.11.3/include/python3.11 -c keyutils/_keyutils.c -o build/temp.linux-x86_64-cpython-311/keyutils/_keyutils.o
> keyutils/_keyutils.c:196:12: fatal error: longintrepr.h: No such file or directory
> 196 | #include "longintrepr.h"
> | ^~~~~~~~~~~~~~~
> compilation terminated.
> error: command '/nix/store/d9fndiing52fkalp5knfalrvlb3isi6w-gcc-wrapper-12.2.0/bin/gcc' failed with exit code 1
> /nix/store/5wdlffjhcr4i43sfajxcvx3lvnkryh5y-stdenv-linux/setup: line 1604: pop_var_context: head of shell_variables not a function context
For full logs, run 'nix log /nix/store/h6qsja7hawy1rs6qaqh8442qx1bijibr-python3.11-keyutils-0.6.drv'.
Next time try to reproduce this with a minimal setup. Luckily the error message looks clear enough.
if anyone else is looking for closing pr: #263500
Steps To Reproduce
Steps to reproduce the behavior:
Build log
Additional context
Notify maintainers
@primeos
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.