NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.96k stars 13.98k forks source link

NixOS build failure - python3.11-keyutils-0.6 #263845

Closed ca5ua1 closed 12 months ago

ca5ua1 commented 12 months ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. Update nix flake
  2. Update system

Build log

➤ nix flake update                                                                                                           git:main*
warning: Git tree '/mnt/HDD/General/Nextcloud/Documents/_Projects/2023/nixos' is dirty
warning: updating lock file '/mnt/HDD/General/Nextcloud/Documents/_Projects/2023/nixos/flake.lock':
• Updated input 'erosanix':
    'github:emmanuelrosa/erosanix/1f7b4153603b64db0b1110052b0b8e80e6264631' (2023-10-19)
  → 'github:emmanuelrosa/erosanix/85ef3f524b8fbb5d83034d99758a561b928ce863' (2023-10-25)
• Updated input 'home-manager':
    'github:nix-community/home-manager/ae631b0b20f06f7d239d160723d228891ddb2fe0' (2023-10-20)
  → 'github:nix-community/home-manager/1369d2cefb6f128c30e42fabcdebbacc07e18b3f' (2023-10-27)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/72d53d51704295f1645d20384cd13aecc182f624' (2023-10-19)
  → 'github:NixOS/nixos-hardware/80d98a7d55c6e27954a166cb583a41325e9512d7' (2023-10-23)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/7c9cc5a6e5d38010801741ac830a3f8fd667a7a0' (2023-10-19)
  → 'github:NixOS/nixpkgs/8efd5d1e283604f75a808a20e6cde0ef313d07d4' (2023-10-24)
• Updated input 'nur':
    'github:nix-community/NUR/70ee6e93df6f6f5a59f4f6d1ed8dfa6fe371d3a4' (2023-10-21)
  → 'github:nix-community/NUR/60aa3c58ff1de876a6e00e9129415298dc7dd3b9' (2023-10-27)
• Updated input 'stylix':
    'github:danth/stylix/b2f73724d11868d020207fb87fb2d9c3ae96976d' (2023-10-19)
  → 'github:danth/stylix/91e46dec675ec37fd3f9745754d10bb7e392db98' (2023-10-23)
nixos ➤ nix flake update                                                                                                         git:main*
warning: Git tree '/mnt/HDD/General/Nextcloud/Documents/_Projects/2023/nixos' is dirty
warning: updating lock file '/mnt/HDD/General/Nextcloud/Documents/_Projects/2023/nixos/flake.lock':
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/8efd5d1e283604f75a808a20e6cde0ef313d07d4' (2023-10-24)
  → 'github:NixOS/nixpkgs/63678e9f3d3afecfeafa0acead6239cdb447574c' (2023-10-26)
• Updated input 'nur':
    'github:nix-community/NUR/60aa3c58ff1de876a6e00e9129415298dc7dd3b9' (2023-10-27)
  → 'github:nix-community/NUR/8fceb8a24c6494d03dc909cb55a6f9f0fd086b00' (2023-10-27)
warning: Git tree '/mnt/HDD/General/Nextcloud/Documents/_Projects/2023/nixos' is dirty
nixos ➤ sudo nixos-rebuild switch --flake ./                                                                                     git:main*
[sudo] password for casual:
warning: Git tree '/mnt/HDD/General/Nextcloud/Documents/_Projects/2023/nixos' is dirty
building the system configuration...
warning: Git tree '/mnt/HDD/General/Nextcloud/Documents/_Projects/2023/nixos' is dirty
trace: warning: optionsDocBook is deprecated since 23.11 and will be removed in 24.05
trace: warning: optionsDocBook is deprecated since 23.11 and will be removed in 24.05
trace: warning: optionsDocBook is deprecated since 23.11 and will be removed in 24.05
trace: warning: casual profile: The option `programs.zsh.enableSyntaxHighlighting' defined in `/nix/store/kjb3b400l2khi9b3lya2z02ssnhakzfz-source/casual/zsh.nix' has been renamed to `programs.zsh.syntaxHighlighting.enable'.
error: builder for '/nix/store/dglpy0yhqhvl8r28mn49z8fjb860g3iz-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/pgvy92m2rk4sw656nzsrz9lixarkw8z1-libxcrypt-4.4.36/include -fPIC -I/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/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/zlzz2z48s7ry0hkl55xiqp5a73b4mzrg-gcc-wrapper-12.3.0/bin/gcc' failed with exit code 1
       > /nix/store/bbxdw4rgwwl3gnajri82yidr1nlsfskf-stdenv-linux/setup: line 1596: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/dglpy0yhqhvl8r28mn49z8fjb860g3iz-python3.11-keyutils-0.6.drv'.
error: 1 dependencies of derivation '/nix/store/yicnssbkb5cb97s6k9vmrby15jfg5cx7-udiskie-2.5.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fwkgqgvwhkrx3sr6xdymg39d780rrkjr-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/g1674asyj6klw3cl9pfd257p8543gnr2-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/w53kzklm8w8dsla7j2ndffzfkp0rd5ig-unit-home-manager-casual.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fx2x5ac1bfgncnjvvc1gk0q5vgik6rly-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/z4nzgsfmbkvdjzcjmhxhzdkqzjynqywy-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/d91qn05nsl2cpn16xgrfscdw34p12bip-nixos-system-Casual-PC-23.11.20231026.63678e9.drv' failed to build
nixos ➤ nix log /nix/store/dglpy0yhqhvl8r28mn49z8fjb860g3iz-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 pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing setuptools-check-hook
Using setuptoolsCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
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
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
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/pgvy92m2rk4sw656nzsrz9lixarkw8z1-libxcrypt-4.4.36/include -fPIC -I/nix/store/ffll6glz3gwx342z0ch8wx30p5cnqz1z-python3-3.11.5/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/zlzz2z48s7ry0hkl55xiqp5a73b4mzrg-gcc-wrapper-12.3.0/bin/gcc' failed with exit code 1
/nix/store/bbxdw4rgwwl3gnajri82yidr1nlsfskf-stdenv-linux/setup: line 1596: pop_var_context: head of shell_variables not a function context
(END)

Additional context

Notify maintainers

@primeos

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
this path will be fetched (0.00 MiB download, 0.00 MiB unpacked):
  /nix/store/wfsbr2vjijkr5nax29y83vizz36ym34a-nix-info
copying path '/nix/store/wfsbr2vjijkr5nax29y83vizz36ym34a-nix-info' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 6.5.7-zen2, NixOS, 23.11 (Tapir), 23.11.20231019.7c9cc5a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.1`
 - channels(root): `"nixos-23.05, nixpkgs"`
 - channels(casual): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
ca5ua1 commented 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'.
AndersonTorres commented 12 months ago

Next time try to reproduce this with a minimal setup. Luckily the error message looks clear enough.

atagen commented 12 months ago

if anyone else is looking for closing pr: #263500