Created
May 13, 2020 17:06
-
-
Save jayrod/3c219b246be58a7a9686219fd01d0355 to your computer and use it in GitHub Desktop.
KCP Error during pip install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR: Command errored out with exit status 1: | |
command: /opt/environments/pupy/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/opt/pupy/pupy/external/pykcp/setup.py'"'"'; __file__='"'"'/opt/pupy/pupy/external/pykcp/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps | |
cwd: /opt/pupy/pupy/external/pykcp/ | |
Complete output (166 lines): | |
running develop | |
running egg_info | |
writing KCP.egg-info/PKG-INFO | |
writing dependency_links to KCP.egg-info/dependency_links.txt | |
writing top-level names to KCP.egg-info/top_level.txt | |
reading manifest file 'KCP.egg-info/SOURCES.txt' | |
writing manifest file 'KCP.egg-info/SOURCES.txt' | |
running build_ext | |
building 'kcp' extension | |
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/opt/environments/pupy/include -I/usr/include/python3.8 -c pykcp.c -o build/temp.linux-x86_64-3.8/pykcp.o -g -O3 -Wall -std=gnu89 | |
In file included from pykcp.c:11: | |
kcp/ikcp.c: In function ‘ikcp_send’: | |
kcp/ikcp.c:508:12: warning: comparison of integer expressions of different signedness: ‘int’ and ‘IUINT32’ {aka ‘const unsigned int’} [-Wsign-compare] | |
508 | if (count >= IKCP_WND_RCV) return -2; | |
| ^~ | |
pykcp.c: In function ‘PyObject_ToLong’: | |
pykcp.c:45:7: warning: implicit declaration of function ‘PyInt_Check’; did you mean ‘PySet_Check’? [-Wimplicit-function-declaration] | |
45 | if (!PyInt_Check(object)) { | |
| ^~~~~~~~~~~ | |
| PySet_Check | |
pykcp.c:52:12: warning: implicit declaration of function ‘PyInt_AsLong’; did you mean ‘PyLong_AsLong’? [-Wimplicit-function-declaration] | |
52 | result = PyInt_AsLong(object); | |
| ^~~~~~~~~~~~ | |
| PyLong_AsLong | |
pykcp.c: In function ‘kcp_KCPObjectType_dealloc’: | |
pykcp.c:200:3: error: ‘struct <anonymous>’ has no member named ‘ob_type’ | |
200 | v->ob_type->tp_free(self); | |
| ^~ | |
pykcp.c: In function ‘kcp_KCPObjectType_init’: | |
pykcp.c:319:8: warning: implicit declaration of function ‘PyString_Check’; did you mean ‘PyMapping_Check’? [-Wimplicit-function-declaration] | |
319 | if (!PyString_Check(raddr)) { | |
| ^~~~~~~~~~~~~~ | |
| PyMapping_Check | |
pykcp.c:324:13: warning: implicit declaration of function ‘PyString_AsString’ [-Wimplicit-function-declaration] | |
324 | s_raddr = PyString_AsString(raddr); | |
| ^~~~~~~~~~~~~~~~~ | |
pykcp.c:324:11: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] | |
324 | s_raddr = PyString_AsString(raddr); | |
| ^ | |
pykcp.c: In function ‘kcp_KCPObjectType_get_check’: | |
pykcp.c:432:9: warning: implicit declaration of function ‘PyInt_FromLong’; did you mean ‘PyLong_FromLong’? [-Wimplicit-function-declaration] | |
432 | return PyInt_FromLong(ikcp_check(v->ctx, now) - now); | |
| ^~~~~~~~~~~~~~ | |
| PyLong_FromLong | |
pykcp.c:432:9: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] | |
432 | return PyInt_FromLong(ikcp_check(v->ctx, now) - now); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
pykcp.c: In function ‘kcp_KCPObjectType_get_peeksize’: | |
pykcp.c:438:9: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] | |
438 | return PyInt_FromLong(ikcp_peeksize(v->ctx)); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
pykcp.c: In function ‘kcp_KCPObjectType_get_mtu’: | |
pykcp.c:444:9: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] | |
444 | return PyInt_FromLong(v->ctx->mtu); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
pykcp.c: In function ‘kcp_KCPObjectType_get_waitsnd’: | |
pykcp.c:494:9: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] | |
494 | return PyInt_FromLong(ikcp_waitsnd(v->ctx)); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
pykcp.c: In function ‘kcp_KCPObjectType_get_conv’: | |
pykcp.c:500:9: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] | |
500 | return PyInt_FromLong(ikcp_getconv(v->ctx)); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
pykcp.c: In function ‘kcp_KCPObjectType_get_clock’: | |
pykcp.c:505:9: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] | |
505 | return PyInt_FromLong(iclock()); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~ | |
pykcp.c: In function ‘kcp_KCPObjectType_get_interval’: | |
pykcp.c:511:9: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] | |
511 | return PyInt_FromLong(v->ctx->interval); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
pykcp.c: In function ‘kcp_KCPObjectType_update’: | |
pykcp.c:578:9: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] | |
578 | return PyInt_FromLong(ikcp_check(v->ctx, iclock())); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
pykcp.c: In function ‘kcp_KCPObjectType_send’: | |
pykcp.c:599:13: warning: implicit declaration of function ‘PyString_CheckExact’; did you mean ‘PyLong_CheckExact’? [-Wimplicit-function-declaration] | |
599 | } else if (PyString_CheckExact(data)) { | |
| ^~~~~~~~~~~~~~~~~~~ | |
| PyLong_CheckExact | |
pykcp.c:600:9: warning: implicit declaration of function ‘PyString_AS_STRING’; did you mean ‘PyBytes_AS_STRING’? [-Wimplicit-function-declaration] | |
600 | buf = PyString_AS_STRING(data); | |
| ^~~~~~~~~~~~~~~~~~ | |
| PyBytes_AS_STRING | |
pykcp.c:600:7: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] | |
600 | buf = PyString_AS_STRING(data); | |
| ^ | |
pykcp.c:601:9: warning: implicit declaration of function ‘PyString_GET_SIZE’; did you mean ‘PyList_GET_SIZE’? [-Wimplicit-function-declaration] | |
601 | len = PyString_GET_SIZE(data); | |
| ^~~~~~~~~~~~~~~~~ | |
| PyList_GET_SIZE | |
pykcp.c:611:36: warning: passing argument 2 of ‘PyErr_SetObject’ makes pointer from integer without a cast [-Wint-conversion] | |
611 | PyErr_SetObject(kcp_ErrorObject, PyInt_FromLong(r)); | |
| ^~~~~~~~~~~~~~~~~ | |
| | | |
| int | |
In file included from /usr/include/python3.8/Python.h:130, | |
from pykcp.c:9: | |
/usr/include/python3.8/pyerrors.h:10:46: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’ | |
10 | PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *); | |
| ^~~~~~~~~~ | |
pykcp.c: In function ‘kcp_KCPObjectType_submit’: | |
pykcp.c:633:7: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] | |
633 | buf = PyString_AS_STRING(data); | |
| ^ | |
pykcp.c:644:36: warning: passing argument 2 of ‘PyErr_SetObject’ makes pointer from integer without a cast [-Wint-conversion] | |
644 | PyErr_SetObject(kcp_ErrorObject, PyInt_FromLong(r)); | |
| ^~~~~~~~~~~~~~~~~ | |
| | | |
| int | |
In file included from /usr/include/python3.8/Python.h:130, | |
from pykcp.c:9: | |
/usr/include/python3.8/pyerrors.h:10:46: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’ | |
10 | PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *); | |
| ^~~~~~~~~~ | |
pykcp.c: In function ‘kcp_KCPObjectType_pollread’: | |
pykcp.c:755:15: warning: implicit declaration of function ‘PyString_FromStringAndSize’; did you mean ‘PyBytes_FromStringAndSize’? [-Wimplicit-function-declaration] | |
755 | retbuf = PyString_FromStringAndSize(rawbuf, kcprecv); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| PyBytes_FromStringAndSize | |
pykcp.c:755:13: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] | |
755 | retbuf = PyString_FromStringAndSize(rawbuf, kcprecv); | |
| ^ | |
pykcp.c: In function ‘kcp_KCPObjectType_recv’: | |
pykcp.c:807:9: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] | |
807 | return PyString_FromStringAndSize(buffer, len); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
pykcp.c: In function ‘kcp_KCPObjectType_update_clock’: | |
pykcp.c:825:9: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] | |
825 | return PyInt_FromLong(next); | |
| ^~~~~~~~~~~~~~~~~~~~ | |
pykcp.c: In function ‘kcp_KCPObjectType_check_clock’: | |
pykcp.c:838:9: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion] | |
838 | return PyInt_FromLong(ikcp_check(v->ctx, clk) - clk); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
pykcp.c: In function ‘kcp_KCPDispatcherObjectType_dealloc’: | |
pykcp.c:974:6: error: ‘struct <anonymous>’ has no member named ‘ob_type’ | |
974 | self->ob_type->tp_free(object); | |
| ^~ | |
pykcp.c: In function ‘kcp_KCPDispatcherObjectType_dispatch’: | |
pykcp.c:1212:12: warning: implicit declaration of function ‘PyString_FromString’; did you mean ‘PyLong_FromString’? [-Wimplicit-function-declaration] | |
1212 | pykey = PyString_FromString(skey); | |
| ^~~~~~~~~~~~~~~~~~~ | |
| PyLong_FromString | |
pykcp.c:1212:10: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] | |
1212 | pykey = PyString_FromString(skey); | |
| ^ | |
pykcp.c: At top level: | |
pykcp.c:1378:1: warning: return type defaults to ‘int’ [-Wreturn-type] | |
1378 | DL_EXPORT(void) | |
| ^~~~~~~~~ | |
pykcp.c: In function ‘DL_EXPORT’: | |
pykcp.c:1379:1: error: expected declaration specifiers before ‘initkcp’ | |
1379 | initkcp(void) | |
| ^~~~~~~ | |
pykcp.c:1411: error: expected ‘{’ at end of input | |
1411 | } | |
| | |
pykcp.c:1411:1: warning: control reaches end of non-void function [-Wreturn-type] | |
1411 | } | |
| ^ | |
At top level: | |
pykcp.c:1329:1: warning: ‘kcp_KCPDispatcherObjectType’ defined but not used [-Wunused-variable] | |
1329 | kcp_KCPDispatcherObjectType = { | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 | |
---------------------------------------- | |
ERROR: Command errored out with exit status 1: /opt/environments/pupy/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/opt/pupy/pupy/external/pykcp/setup.py'"'"'; __file__='"'"'/opt/pupy/pupy/external/pykcp/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment