pygit2 version is too new so that won't pass compilation
shiywang opened this issue · 0 comments
shiywang commented
Running setup.py install for pygit2: finished with status 'error'
Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-1RqAJw/pygit2/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-hXLQpv/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/pygit2
copying pygit2/utils.py -> build/lib.linux-x86_64-2.7/pygit2
copying pygit2/submodule.py -> build/lib.linux-x86_64-2.7/pygit2
copying pygit2/_run.py -> build/lib.linux-x86_64-2.7/pygit2
copying pygit2/credentials.py -> build/lib.linux-x86_64-2.7/pygit2
copying pygit2/repository.py -> build/lib.linux-x86_64-2.7/pygit2
copying pygit2/__init__.py -> build/lib.linux-x86_64-2.7/pygit2
copying pygit2/refspec.py -> build/lib.linux-x86_64-2.7/pygit2
copying pygit2/ffi.py -> build/lib.linux-x86_64-2.7/pygit2
copying pygit2/config.py -> build/lib.linux-x86_64-2.7/pygit2
copying pygit2/remote.py -> build/lib.linux-x86_64-2.7/pygit2
copying pygit2/settings.py -> build/lib.linux-x86_64-2.7/pygit2
copying pygit2/blame.py -> build/lib.linux-x86_64-2.7/pygit2
copying pygit2/errors.py -> build/lib.linux-x86_64-2.7/pygit2
copying pygit2/_build.py -> build/lib.linux-x86_64-2.7/pygit2
copying pygit2/index.py -> build/lib.linux-x86_64-2.7/pygit2
creating build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/proxy.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/refspec.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/common.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/errors.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/transport.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/attr.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/buffer.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/strarray.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/merge.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/clone.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/checkout.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/remote.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/revert.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/index.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/oid.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/submodule.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/repository.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/config.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/types.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/blame.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/describe.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/pack.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/diff.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/net.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/graph.h -> build/lib.linux-x86_64-2.7/pygit2/decl
copying pygit2/decl/stash.h -> build/lib.linux-x86_64-2.7/pygit2/decl
running build_ext
generating cffi module 'build/temp.linux-x86_64-2.7/pygit2._libgit2.c'
creating build/temp.linux-x86_64-2.7
building '_pygit2' extension
creating build/temp.linux-x86_64-2.7/src
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/local/include -I/usr/include/python2.7 -c src/blob.c -o build/temp.linux-x86_64-2.7/src/blob.o
In file included from src/blob.h:34,
from src/blob.c:30:
src/types.h:36:2: error: #error You need a compatible libgit2 version (v0.28.x)
36 | #error You need a compatible libgit2 version (v0.28.x)
| ^~~~~
src/types.h:237:5: error: unknown type name 'git_mailmap'
237 | git_mailmap *mailmap;
| ^~~~~~~~~~~
src/blob.c:183:5: warning: initialization of 'Py_ssize_t (*)(PyObject *, Py_ssize_t, void **)' {aka 'long int (*)(struct _object *, long int, void **)'} from incompatible pointer type 'int (*)(PyObject *, Py_buffer *, int)' {aka 'int (*)(struct _object *, struct bufferinfo *, int)'} [-Wincompatible-pointer-types]
183 | (getbufferproc)Blob_getbuffer,
| ^
src/blob.c:183:5: note: (near initialization for 'Blob_as_buffer.bf_getreadbuffer')
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-1RqAJw/pygit2/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-hXLQpv/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-1RqAJw/pygit2/