Skip to content

Instantly share code, notes, and snippets.

@prrraveen
Created September 17, 2018 14:19
Show Gist options
  • Save prrraveen/0e7df1c8e85215f4eaa31deb72db18bd to your computer and use it in GitHub Desktop.
Save prrraveen/0e7df1c8e85215f4eaa31deb72db18bd to your computer and use it in GitHub Desktop.
tracback.bash
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/pylibmc
copying src/pylibmc/test.py -> build/lib.linux-x86_64-2.7/pylibmc
copying src/pylibmc/pools.py -> build/lib.linux-x86_64-2.7/pylibmc
copying src/pylibmc/consts.py -> build/lib.linux-x86_64-2.7/pylibmc
copying src/pylibmc/client.py -> build/lib.linux-x86_64-2.7/pylibmc
copying src/pylibmc/__main__.py -> build/lib.linux-x86_64-2.7/pylibmc
copying src/pylibmc/__init__.py -> build/lib.linux-x86_64-2.7/pylibmc
running build_ext
building '_pylibmc' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -DUSE_ZLIB -I/usr/include/python2.7 -c src/_pylibmcmodule.c -o build/temp.linux-x86_64-2.7/src/_pylibmcmodule.o -fno-strict-aliasing
In file included from /usr/include/python2.7/Python.h:61,
from src/_pylibmcmodule.h:41,
from src/_pylibmcmodule.c:34:
/usr/include/python2.7/pyport.h:183:9: error: unknown type name ‘ssize_t’
typedef ssize_t Py_ssize_t;
^~~~~~~
In file included from /usr/include/python2.7/pyport.h:333,
from /usr/include/python2.7/Python.h:61,
from src/_pylibmcmodule.h:41,
from src/_pylibmcmodule.c:34:
/usr/include/time.h:116:22: error: conflicting types for ‘time_t’
typedef uint32_t time_t;
^~~~~~
In file included from /usr/include/sys/time.h:24,
from /usr/include/python2.7/pyport.h:332,
from /usr/include/python2.7/Python.h:61,
from src/_pylibmcmodule.h:41,
from src/_pylibmcmodule.c:34:
/usr/include/bits/types/time_t.h:7:18: note: previous declaration of ‘time_t’ was here
typedef __time_t time_t;
^~~~~~
In file included from /usr/include/wchar.h:46,
from /usr/include/python2.7/unicodeobject.h:120,
from /usr/include/python2.7/Python.h:88,
from src/_pylibmcmodule.h:41,
from src/_pylibmcmodule.c:34:
/usr/include/bits/types/FILE.h:7:25: error: conflicting types for ‘FILE’
typedef struct _IO_FILE FILE;
^~~~
In file included from /usr/include/python2.7/Python.h:33,
from src/_pylibmcmodule.h:41,
from src/_pylibmcmodule.c:34:
/usr/include/stdio.h:277:23: note: previous declaration of ‘FILE’ was here
typedef struct __file FILE;
^~~~
In file included from /usr/include/sys/socket.h:33,
from /usr/include/libmemcached-1.0/platform.h:53,
from /usr/include/libmemcached-1.0/memcached.h:60,
from /usr/include/libmemcached/memcached.h:39,
from src/_pylibmcmodule.h:42,
from src/_pylibmcmodule.c:34:
/usr/include/bits/socket.h:343:3: error: unknown type name ‘pid_t’
pid_t pid; /* PID of sending process. */
^~~~~
In file included from /usr/include/libmemcached-1.0/platform.h:53,
from /usr/include/libmemcached-1.0/memcached.h:60,
from /usr/include/libmemcached/memcached.h:39,
from src/_pylibmcmodule.h:42,
from src/_pylibmcmodule.c:34:
/usr/include/sys/socket.h:138:8: error: unknown type name ‘ssize_t’
extern ssize_t send (int __fd, const void *__buf, size_t __n, int __flags);
^~~~~~~
/usr/include/sys/socket.h:145:8: error: unknown type name ‘ssize_t’
extern ssize_t recv (int __fd, void *__buf, size_t __n, int __flags);
^~~~~~~
/usr/include/sys/socket.h:152:8: error: unknown type name ‘ssize_t’
extern ssize_t sendto (int __fd, const void *__buf, size_t __n,
^~~~~~~
/usr/include/sys/socket.h:163:8: error: unknown type name ‘ssize_t’
extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
^~~~~~~
/usr/include/sys/socket.h:173:8: error: unknown type name ‘ssize_t’
extern ssize_t sendmsg (int __fd, const struct msghdr *__message,
^~~~~~~
/usr/include/sys/socket.h:191:8: error: unknown type name ‘ssize_t’
extern ssize_t recvmsg (int __fd, struct msghdr *__message, int __flags);
^~~~~~~
In file included from /usr/include/libmemcached-1.0/memcached.h:88,
from /usr/include/libmemcached/memcached.h:39,
from src/_pylibmcmodule.h:42,
from src/_pylibmcmodule.c:34:
/usr/include/libmemcached-1.0/struct/stat.h:44:3: error: unknown type name ‘pid_t’
pid_t pid;
^~~~~
src/_pylibmcmodule.c: In function ‘_PylibMC_Deflate’:
src/_pylibmcmodule.c:280:5: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
ssize_t out_sz;
^~~~~~~
size_t
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for pylibmc
Running setup.py clean for pylibmc
Running setup.py bdist_wheel for PyYAML ... error
Complete output from command /home/archie/proj/earthMiles/earthEnv/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-MuV1Vb/PyYAML/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-X9NG30 --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/tokens.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/composer.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/nodes.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/loader.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/parser.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/reader.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/cyaml.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/constructor.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/representer.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/serializer.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/emitter.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/events.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/scanner.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/resolver.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/dumper.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/__init__.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/error.py -> build/lib.linux-x86_64-2.7/yaml
running build_ext
creating build/temp.linux-x86_64-2.7
checking if libyaml is compilable
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/check_libyaml.c -o build/temp.linux-x86_64-2.7/check_libyaml.o
checking if libyaml is linkable
gcc -pthread build/temp.linux-x86_64-2.7/check_libyaml.o -L/usr/lib -lyaml -o build/temp.linux-x86_64-2.7/check_libyaml
building '_yaml' extension
creating build/temp.linux-x86_64-2.7/ext
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -I/usr/include/python2.7 -c ext/_yaml.c -o build/temp.linux-x86_64-2.7/ext/_yaml.o
In file included from /usr/include/python2.7/Python.h:61,
from ext/_yaml.c:4:
/usr/include/python2.7/pyport.h:183:9: error: unknown type name ‘ssize_t’
typedef ssize_t Py_ssize_t;
^~~~~~~
In file included from /usr/include/python2.7/pyport.h:333,
from /usr/include/python2.7/Python.h:61,
from ext/_yaml.c:4:
/usr/include/time.h:116:22: error: conflicting types for ‘time_t’
typedef uint32_t time_t;
^~~~~~
In file included from /usr/include/sys/time.h:24,
from /usr/include/python2.7/pyport.h:332,
from /usr/include/python2.7/Python.h:61,
from ext/_yaml.c:4:
/usr/include/bits/types/time_t.h:7:18: note: previous declaration of ‘time_t’ was here
typedef __time_t time_t;
^~~~~~
In file included from /usr/include/wchar.h:46,
from /usr/include/python2.7/unicodeobject.h:120,
from /usr/include/python2.7/Python.h:88,
from ext/_yaml.c:4:
/usr/include/bits/types/FILE.h:7:25: error: conflicting types for ‘FILE’
typedef struct _IO_FILE FILE;
^~~~
In file included from /usr/include/python2.7/Python.h:33,
from ext/_yaml.c:4:
/usr/include/stdio.h:277:23: note: previous declaration of ‘FILE’ was here
typedef struct __file FILE;
^~~~
In file included from ext/_yaml.c:271:
ext/_yaml.h:6: warning: "PyUnicode_FromString" redefined
#define PyUnicode_FromString(s) PyUnicode_DecodeUTF8((s), strlen(s), "strict")
In file included from /usr/include/python2.7/Python.h:88,
from ext/_yaml.c:4:
/usr/include/python2.7/unicodeobject.h:281: note: this is the location of the previous definition
# define PyUnicode_FromString PyUnicodeUCS4_FromString
ext/_yaml.c: In function ‘__pyx_pf_5_yaml_get_version_string’:
ext/_yaml.c:1410:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
__pyx_v_value = yaml_get_version_string();
^
ext/_yaml.c: In function ‘__pyx_pf_5_yaml_7CParser___init__’:
ext/_yaml.c:2577:52: warning: passing argument 2 of ‘yaml_parser_set_input’ from incompatible pointer type [-Wincompatible-pointer-types]
yaml_parser_set_input((&__pyx_v_self->parser), __pyx_f_5_yaml_input_handler, ((void *)__pyx_v_self));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:1368:30: note: expected ‘int (*)(void *, unsigned char *, size_t, size_t *)’ {aka ‘int (*)(void *, unsigned char *, long unsigned int, long unsigned int *)’} but argument is of type ‘int (*)(void *, char *, size_t, size_t *)’ {aka ‘int (*)(void *, char *, long unsigned int, long unsigned int *)’}
yaml_read_handler_t *handler, void *data);
~~~~~~~~~~~~~~~~~~~~~^~~~~~~
ext/_yaml.c: In function ‘__pyx_pf_5_yaml_8CEmitter___init__’:
ext/_yaml.c:13630:53: warning: passing argument 2 of ‘yaml_emitter_set_output’ from incompatible pointer type [-Wincompatible-pointer-types]
yaml_emitter_set_output((&__pyx_v_self->emitter), __pyx_f_5_yaml_output_handler, ((void *)__pyx_v_self));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ext/_yaml.h:2,
from ext/_yaml.c:271:
/usr/include/yaml.h:1830:31: note: expected ‘int (*)(void *, unsigned char *, size_t)’ {aka ‘int (*)(void *, unsigned char *, long unsigned int)’} but argument is of type ‘int (*)(void *, char *, size_t)’ {aka ‘int (*)(void *, char *, long unsigned int)’}
yaml_write_handler_t *handler, void *data);
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
error: command 'gcc' failed with exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment