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

pip3 install pygit2 fails on ppc64le and s390x platform #6784

Closed
rfan1 opened this issue Mar 29, 2024 · 5 comments
Closed

pip3 install pygit2 fails on ppc64le and s390x platform #6784

rfan1 opened this issue Mar 29, 2024 · 5 comments

Comments

@rfan1
Copy link

rfan1 commented Mar 29, 2024

The issue is not seen on x86_64 and aarch64 platform. but doesn't work on ppc64le and s390x.

Reproduction steps

OS: sles15sp6

  1. install python3.12 on the system
  2. pip3.12 install pygit2
   # pip3.12 install pygit2
      copying pygit2/decl/callbacks.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/checkout.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/clone.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/commit.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/common.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/config.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/describe.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/diff.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/errors.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/graph.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/index.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/indexer.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/merge.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/net.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/oid.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/pack.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/proxy.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/refspec.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/remote.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/repository.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/revert.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/stash.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/strarray.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/submodule.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/transport.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      copying pygit2/decl/types.h -> build/lib.linux-ppc64le-cpython-312/pygit2/decl
      running build_ext
      generating cffi module 'build/temp.linux-ppc64le-cpython-312/pygit2._libgit2.c'
      creating build/temp.linux-ppc64le-cpython-312
      building 'pygit2._pygit2' extension
      creating build/temp.linux-ppc64le-cpython-312/tmp
      creating build/temp.linux-ppc64le-cpython-312/tmp/pip-install-binfj26r
      creating build/temp.linux-ppc64le-cpython-312/tmp/pip-install-binfj26r/pygit2_c11b9988d87a49aaa211b635a46f7506
      creating build/temp.linux-ppc64le-cpython-312/tmp/pip-install-binfj26r/pygit2_c11b9988d87a49aaa211b635a46f7506/src
      gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -DOPENSSL_LOAD_CONF -fwrapv -fno-semantic-interposition -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -IVendor/ -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -IVendor/ -fPIC -I/usr/local/include -I/usr/include/python3.12 -c /tmp/pip-install-binfj26r/pygit2_c11b9988d87a49aaa211b635a46f7506/src/blob.c -o build/temp.linux-ppc64le-cpython-312/tmp/pip-install-binfj26r/pygit2_c11b9988d87a49aaa211b635a46f7506/src/blob.o
      error: command 'gcc' failed: No such file or directory
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pygit2
�[?25hFailed to build pygit2
ERROR: Could not build wheels for pygit2, which is required to install pyproject.toml-based projects

Expected behavior

The installation can pass without any issue

Actual behavior

  ERROR: Failed building wheel for pygit2
�[?25hFailed to build pygit2
ERROR: Could not build wheels for pygit2, which is required to install pyproject.toml-based projects

Version of libgit2 (release number or SHA1)

Operating system(s) tested

SUSE SLE15SP6

@ethomson
Copy link
Member

This looks like a problem in the https://github.com/libgit2/pygit2 build process - have you opened an issue there?

@ethomson
Copy link
Member

(Let’s leave this issue opened here, too, in case it’s a problem with s390 builds, but it looks from a quick glance like it might be a more general problem on pygit2.)

@rfan1
Copy link
Author

rfan1 commented Mar 29, 2024

This looks like a problem in the https://github.com/libgit2/pygit2 build process - have you opened an issue there?

No, let me do, thanks much!

@rfan1
Copy link
Author

rfan1 commented Mar 29, 2024

This looks like a problem in the https://github.com/libgit2/pygit2 build process - have you opened an issue there?

No, let me do, thanks much!

libgit2/pygit2#1284

@ethomson
Copy link
Member

ethomson commented Apr 2, 2024

Looks like libgit2/pygit2#1284 is resolved - thanks!

@ethomson ethomson closed this as completed Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants