Skip to content
New issue

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

Build failure: pylzma #390218

Closed
3 tasks done
danwdart opened this issue Mar 15, 2025 · 6 comments · Fixed by #390480
Closed
3 tasks done

Build failure: pylzma #390218

danwdart opened this issue Mar 15, 2025 · 6 comments · Fixed by #390480
Labels
0.kind: build failure A package fails to build

Comments

@danwdart
Copy link

Nixpkgs version

  • Unstable (25.05)

Steps to reproduce

nix-shell -p python312Packages.pylzma
or
nix-shell -p python313Packages.pylzma

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

https://hydra.nixos.org/build/292383037

Relevant log output

building '/nix/store/73ijx6mgnsa32rpi0hw009c92c4smgqf-python3.13-pylzma-0.5.0.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
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Running phase: unpackPhase
unpacking source archive /nix/store/q3gmfw08cb1q0rxcpgjlm7fs24q91spp-pylzma-0.5.0.tar.gz
source root is pylzma-0.5.0
setting SOURCE_DATE_EPOCH to timestamp 1537987412 of file "pylzma-0.5.0/setup.cfg"
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
no configure script, doing nothing
Running phase: buildPhase
Executing setuptoolsBuildPhase
setup.py build flags: ''
/nix/store/49hg6cgj179pabdiyjy23yz3byw6axi0-python3.13-setuptools-75.8.0/lib/python3.13/site-packages/setuptools/_distutils/dist.py:270: UserWarning: Unknown distribution option: 'tests_require'
  warnings.warn(msg)
/nix/store/49hg6cgj179pabdiyjy23yz3byw6axi0-python3.13-setuptools-75.8.0/lib/python3.13/site-packages/setuptools/_distutils/dist.py:270: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-313
copying py7zlib.py -> build/lib.linux-x86_64-cpython-313
running build_ext
setup.py:105: UnsupportedPlatformWarning: Multithreading is not supported on the platform "linux",
please contact mail@joachim-bauch.de for more informations.
  warn("""\
building 'pylzma' extension
creating build/temp.linux-x86_64-cpython-313/src/compat
creating build/temp.linux-x86_64-cpython-313/src/pylzma
creating build/temp.linux-x86_64-cpython-313/src/sdk/C
gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -I/nix/store/h8wi6kwl1cywxr3f22836vgrrb11fvlb-libxcrypt-4.4.38/include -fPIC -DPY_SSIZE_T_CLEAN=1 -DWITH_COMPAT=1 -DPYLZMA_VERSION=0.5.0 -D_7ZIP_ST=1 -Isrc/sdk/C -I/nix/store/1031nlccnpdp7ljbjm4ja0q7gqadsl3m-python3-3.13.2/include/python3.13 -c src/compat/LzmaCompatDecode.c -o build/temp.linux-x86_64-cpython-313/src/compat/LzmaCompatDecode.o
gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -I/nix/store/h8wi6kwl1cywxr3f22836vgrrb11fvlb-libxcrypt-4.4.38/include -fPIC -DPY_SSIZE_T_CLEAN=1 -DWITH_COMPAT=1 -DPYLZMA_VERSION=0.5.0 -D_7ZIP_ST=1 -Isrc/sdk/C -I/nix/store/1031nlccnpdp7ljbjm4ja0q7gqadsl3m-python3-3.13.2/include/python3.13 -c src/pylzma/pylzma.c -o build/temp.linux-x86_64-cpython-313/src/pylzma/pylzma.o
src/pylzma/pylzma.c: In function ‘PyInit_pylzma’:
src/pylzma/pylzma.c:296:5: warning: ‘PyEval_InitThreads’ is deprecated []
  296 |     PyEval_InitThreads();
      |     ^~~~~~~~~~~~~~~~~~
In file included from /nix/store/1031nlccnpdp7ljbjm4ja0q7gqadsl3m-python3-3.13.2/include/python3.13/Python.h:124,
                 from src/pylzma/pylzma.c:26:
/nix/store/1031nlccnpdp7ljbjm4ja0q7gqadsl3m-python3-3.13.2/include/python3.13/ceval.h:114:37: note: declared here
  114 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
      |                                     ^~~~~~~~~~~~~~~~~~
gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -I/nix/store/h8wi6kwl1cywxr3f22836vgrrb11fvlb-libxcrypt-4.4.38/include -fPIC -DPY_SSIZE_T_CLEAN=1 -DWITH_COMPAT=1 -DPYLZMA_VERSION=0.5.0 -D_7ZIP_ST=1 -Isrc/sdk/C -I/nix/store/1031nlccnpdp7ljbjm4ja0q7gqadsl3m-python3-3.13.2/include/python3.13 -c src/pylzma/pylzma_aes.c -o build/temp.linux-x86_64-cpython-313/src/pylzma/pylzma_aes.o
src/pylzma/pylzma_aes.c:158:5: error: initialization of ‘long int’ from ‘void *’ makes integer from pointer without a cast []
  158 |     NULL,                                /* printfunc  tp_print;   */
      |     ^~~~
src/pylzma/pylzma_aes.c:158:5: note: (near initialization for ‘CAESDecrypt_Type.tp_vectorcall_offset’)
error: command '/nix/store/gj9lra51hwhxnhz05jqk5lh03wipamv0-gcc-wrapper-14-20241116/bin/gcc' failed with exit code 1
error: builder for '/nix/store/73ijx6mgnsa32rpi0hw009c92c4smgqf-python3.13-pylzma-0.5.0.drv' failed with exit code 1;
       last 25 log lines:
       > running build_ext
       > setup.py:105: UnsupportedPlatformWarning: Multithreading is not supported on the platform "linux",
       > please contact mail@joachim-bauch.de for more informations.
       >   warn("""\
       > building 'pylzma' extension
       > creating build/temp.linux-x86_64-cpython-313/src/compat
       > creating build/temp.linux-x86_64-cpython-313/src/pylzma
       > creating build/temp.linux-x86_64-cpython-313/src/sdk/C
       > gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -I/nix/store/h8wi6kwl1cywxr3f22836vgrrb11fvlb-libxcrypt-4.4.38/include -fPIC -DPY_SSIZE_T_CLEAN=1 -DWITH_COMPAT=1 -DPYLZMA_VERSION=0.5.0 -D_7ZIP_ST=1 -Isrc/sdk/C -I/nix/store/1031nlccnpdp7ljbjm4ja0q7gqadsl3m-python3-3.13.2/include/python3.13 -c src/compat/LzmaCompatDecode.c -o build/temp.linux-x86_64-cpython-313/src/compat/LzmaCompatDecode.o
       > gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -I/nix/store/h8wi6kwl1cywxr3f22836vgrrb11fvlb-libxcrypt-4.4.38/include -fPIC -DPY_SSIZE_T_CLEAN=1 -DWITH_COMPAT=1 -DPYLZMA_VERSION=0.5.0 -D_7ZIP_ST=1 -Isrc/sdk/C -I/nix/store/1031nlccnpdp7ljbjm4ja0q7gqadsl3m-python3-3.13.2/include/python3.13 -c src/pylzma/pylzma.c -o build/temp.linux-x86_64-cpython-313/src/pylzma/pylzma.o
       > src/pylzma/pylzma.c: In function ‘PyInit_pylzma’:
       > src/pylzma/pylzma.c:296:5: warning: ‘PyEval_InitThreads’ is deprecated []
       >   296 |     PyEval_InitThreads();
       >       |     ^~~~~~~~~~~~~~~~~~
       > In file included from /nix/store/1031nlccnpdp7ljbjm4ja0q7gqadsl3m-python3-3.13.2/include/python3.13/Python.h:124,
       >                  from src/pylzma/pylzma.c:26:
       > /nix/store/1031nlccnpdp7ljbjm4ja0q7gqadsl3m-python3-3.13.2/include/python3.13/ceval.h:114:37: note: declared here
       >   114 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
       >       |                                     ^~~~~~~~~~~~~~~~~~
       > gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -I/nix/store/h8wi6kwl1cywxr3f22836vgrrb11fvlb-libxcrypt-4.4.38/include -fPIC -DPY_SSIZE_T_CLEAN=1 -DWITH_COMPAT=1 -DPYLZMA_VERSION=0.5.0 -D_7ZIP_ST=1 -Isrc/sdk/C -I/nix/store/1031nlccnpdp7ljbjm4ja0q7gqadsl3m-python3-3.13.2/include/python3.13 -c src/pylzma/pylzma_aes.c -o build/temp.linux-x86_64-cpython-313/src/pylzma/pylzma_aes.o
       > src/pylzma/pylzma_aes.c:158:5: error: initialization of ‘long int’ from ‘void *’ makes integer from pointer without a cast []
       >   158 |     NULL,                                /* printfunc  tp_print;   */
       >       |     ^~~~
       > src/pylzma/pylzma_aes.c:158:5: note: (near initialization for ‘CAESDecrypt_Type.tp_vectorcall_offset’)
       > error: command '/nix/store/gj9lra51hwhxnhz05jqk5lh03wipamv0-gcc-wrapper-14-20241116/bin/gcc' failed with exit code 1
       For full logs, run 'nix log /nix/store/73ijx6mgnsa32rpi0hw009c92c4smgqf-python3.13-pylzma-0.5.0.drv'.

Additional context

Also happens in all python versions in nixpkgs - 3.9 to 3.14

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.13.6, NixOS, 25.05 (Warbler), 25.05beta767267.6607cf789e54
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.12
  • channels(root): "nixos"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Notify maintainers

@dandellion


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@danwdart danwdart added the 0.kind: build failure A package fails to build label Mar 15, 2025
@danwdart
Copy link
Author

This could well be due to the gcc upgrade I'm assuming

@kirillrdy
Copy link
Member

last commit https://github.com/fancycode/pylzma 6 years ago, this will most likely be marked as broken and removed

@danwdart
Copy link
Author

Strange.

Works on stable and is a dependency of some frequently used mobile flashing software such as edl, which also works on stable.

@kirillrdy
Copy link
Member

#390480

@danwdart
Copy link
Author

Ah, amazing, thanks

@Sigmanificient
Copy link
Member

(related to #388196)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants