question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compilation Fails on Linux (Ubuntu 17.10)

See original GitHub issue

I’m trying to set up tdl on Ubuntu 17.10. I installed all the pre-requisites specified here (sudo apt install gcc libsdl2-dev libffi-dev python-dev libomp-dev)

When I run pip3 install tdl, it errors out. Sorry, I can’t make much sense out of this output, so here’s the entire stack dump. Any ideas what I can try to get this to work? (This is a subsequent attempt so it uses a cached version of the tdl 4.1 .tar.gz file.)

Collecting tdl
  Using cached tdl-4.1.1.tar.gzCollecting cffi<2,>=1.8.1 (from tdl)
  Using cached cffi-1.11.2-cp36-cp36m-manylinux1_x86_64.whl
Collecting numpy<2,>=1.10 (from tdl)
  Using cached numpy-1.13.3-cp36-cp36m-manylinux1_x86_64.whl
Collecting pycparser (from cffi<2,>=1.8.1->tdl)
Building wheels for collected packages: tdl
  Running setup.py bdist_wheel for tdl ... error  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-r7rzoomn/tdl/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/tmpvwm1cepipip-wheel- --python-tag cp36:
  running bdist_wheel
  error: error in setup.cfg: command 'bdist_wheel' has no such option 'py_limited_api'

  ----------------------------------------
  Failed building wheel for tdl
  Running setup.py clean for tdl
Failed to build tdl
Installing collected packages: pycparser, cffi, numpy, tdl
  Running setup.py install for tdl ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-r7rzoomn/tdl/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-d7j55i9m-record/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-3.6
    creating build/lib.linux-x86_64-3.6/tdl
    copying tdl/version.py -> build/lib.linux-x86_64-3.6/tdl
    copying tdl/event.py -> build/lib.linux-x86_64-3.6/tdl
    copying tdl/__init__.py -> build/lib.linux-x86_64-3.6/tdl
    copying tdl/noise.py -> build/lib.linux-x86_64-3.6/tdl
    copying tdl/style.py -> build/lib.linux-x86_64-3.6/tdl
    copying tdl/map.py -> build/lib.linux-x86_64-3.6/tdl
    creating build/lib.linux-x86_64-3.6/tcod
    copying tcod/bsp.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/version.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/image.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/path.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/__init__.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/noise.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/color.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/random.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/map.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/tcod.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/libtcod.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/libtcodpy.py -> build/lib.linux-x86_64-3.6/tcod
    copying tcod/console.py -> build/lib.linux-x86_64-3.6/tcod
    copying tdl/terminal8x8.png -> build/lib.linux-x86_64-3.6/tdl
    running build_ext
    generating cffi module 'build/temp.linux-x86_64-3.6/tcod._libtcod.c'
    creating build/temp.linux-x86_64-3.6
    building 'tcod._libtcod' extension
    creating build/temp.linux-x86_64-3.6/build
    creating build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/libtcod
    creating build/temp.linux-x86_64-3.6/libtcod/src
    creating build/temp.linux-x86_64-3.6/libtcod/src/zlib
    creating build/temp.linux-x86_64-3.6/libtcod/src/png
    creating build/temp.linux-x86_64-3.6/tcod
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c build/temp.linux-x86_64-3.6/tcod._libtcod.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/tcod._libtcod.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    build/temp.linux-x86_64-3.6/tcod._libtcod.c: In function ‘_cffi_d_SDL_RWFromFP’:
    build/temp.linux-x86_64-3.6/tcod._libtcod.c:28879:23: warning: passing argument 1 of ‘SDL_RWFromFP’ from incompatible pointer type [-Wincompatible-pointer-types]
       return SDL_RWFromFP(x0, x1);
                           ^~
    In file included from /usr/include/SDL2/SDL_audio.h:36:0,
                     from /usr/include/SDL2/SDL.h:36,
                     from ./tcod/cffi.h:5,
                     from build/temp.linux-x86_64-3.6/tcod._libtcod.c:482:
    /usr/include/SDL2/SDL_rwops.h:157:36: note: expected ‘FILE * {aka struct _IO_FILE *}’ but argument is of type ‘int *’
     extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(FILE * fp,
                                        ^~~~~~~~~~~~
    build/temp.linux-x86_64-3.6/tcod._libtcod.c: In function ‘_cffi_f_SDL_RWFromFP’:
    build/temp.linux-x86_64-3.6/tcod._libtcod.c:28911:27: warning: passing argument 1 of ‘SDL_RWFromFP’ from incompatible pointer type [-Wincompatible-pointer-types]
       { result = SDL_RWFromFP(x0, x1); }
                               ^~
    In file included from /usr/include/SDL2/SDL_audio.h:36:0,
                     from /usr/include/SDL2/SDL.h:36,
                     from ./tcod/cffi.h:5,
                     from build/temp.linux-x86_64-3.6/tcod._libtcod.c:482:
    /usr/include/SDL2/SDL_rwops.h:157:36: note: expected ‘FILE * {aka struct _IO_FILE *}’ but argument is of type ‘int *’
     extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(FILE * fp,
                                        ^~~~~~~~~~~~
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/sys_sdl_img_png.c -o build/temp.linux-x86_64-3.6/libtcod/src/sys_sdl_img_png.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/list_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/list_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/sys_sdl_img_bmp.c -o build/temp.linux-x86_64-3.6/libtcod/src/sys_sdl_img_bmp.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/tree_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/tree_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/fov_recursive_shadowcasting.c -o build/temp.linux-x86_64-3.6/libtcod/src/fov_recursive_shadowcasting.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/console_rexpaint.c -o build/temp.linux-x86_64-3.6/libtcod/src/console_rexpaint.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/heightmap_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/heightmap_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/sys_sdl_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/sys_sdl_c.o-I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    libtcod/src/sys_sdl_c.c: In function ‘TCOD_sys_save_bitmap’:
    libtcod/src/sys_sdl_c.c:788:36: warning: implicit declaration of function ‘strcasestr’; did you mean ‘strcasecmp’? [-Wimplicit-function-declaration]
      while ( img->extension != NULL && strcasestr(filename,img->extension) == NULL ) img++;
                                        ^~~~~~~~~~
                                        strcasecmp
    libtcod/src/sys_sdl_c.c:788:72: warning: comparison between pointer and integer
      while ( img->extension != NULL && strcasestr(filename,img->extension) == NULL ) img++;
                                                                            ^~
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/bresenham_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/bresenham_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/bsp_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/bsp_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/console_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/console_c.o-I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/color_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/color_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/txtfield_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/txtfield_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/wrappers.c -o build/temp.linux-x86_64-3.6/libtcod/src/wrappers.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/sys_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/sys_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/noise_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/noise_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/fov_diamond_raycasting.c -o build/temp.linux-x86_64-3.6/libtcod/src/fov_diamond_raycasting.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/fov_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/fov_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/parser_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/parser_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/sys_opengl_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/sys_opengl_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/namegen_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/namegen_c.o-I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/lex_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/lex_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    libtcod/src/lex_c.c: In function ‘TCOD_lex_parse_until_token_type’:
    libtcod/src/lex_c.c:650:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
             if ( token == tokenType )
             ^~
    libtcod/src/lex_c.c:652:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
          token = TCOD_lex_parse(lex);
          ^~~~~
    libtcod/src/lex_c.c: In function ‘TCOD_lex_parse_until_token_value’:
    libtcod/src/lex_c.c:665:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
             if ( strcmp( lex->tok, tokenValue ) == 0
             ^~
    libtcod/src/lex_c.c:668:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
          token = TCOD_lex_parse(lex);
          ^~~~~
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/path_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/path_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/sys_sdl2_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/sys_sdl2_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/image_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/image_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/fov_permissive2.c -o build/temp.linux-x86_64-3.6/libtcod/src/fov_permissive2.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/fov_restrictive.c -o build/temp.linux-x86_64-3.6/libtcod/src/fov_restrictive.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/fov_circular_raycasting.c -o build/temp.linux-x86_64-3.6/libtcod/src/fov_circular_raycasting.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/mersenne_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/mersenne_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zip_c.c -o build/temp.linux-x86_64-3.6/libtcod/src/zip_c.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    libtcod/src/zip_c.c: In function ‘TCOD_zip_put_int’:
    libtcod/src/zip_c.c:92:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
       TCOD_list_push(zip->buffer,(void *)val);
                                  ^
    libtcod/src/zip_c.c: In function ‘TCOD_zip_put_float’:
    libtcod/src/zip_c.c:107:2: warning: dereferencing type-punned pointer will break strict-aliasing rules[-Wstrict-aliasing]
      TCOD_zip_put_int(pzip,* (int *)(&val) );
      ^~~~~~~~~~~~~~~~
    libtcod/src/zip_c.c: In function ‘TCOD_zip_get_int’:
    libtcod/src/zip_c.c:260:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       int i=(int)TCOD_list_get(zip->buffer,zip->offset);
             ^
    libtcod/src/zip_c.c: In function ‘TCOD_zip_get_float’:
    libtcod/src/zip_c.c:279:2: warning: dereferencing type-punned pointer will break strict-aliasing rules[-Wstrict-aliasing]
      return *(float *)(&i);
      ^~~~~~
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/gzread.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/gzread.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    libtcod/src/zlib/gzread.c: In function ‘gz_load’:
    libtcod/src/zlib/gzread.c:30:15: warning: implicit declaration of function ‘read’; did you mean ‘fread’? [-Wimplicit-function-declaration]
             ret = read(state->fd, buf + *have, len - *have);
                   ^~~~
                   fread
    libtcod/src/zlib/gzread.c: In function ‘gzclose_r’:
    libtcod/src/zlib/gzread.c:591:11: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
         ret = close(state->fd);
               ^~~~~
               pclose
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/inflate.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/inflate.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/trees.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/trees.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/adler32.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/adler32.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/inffast.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/inffast.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/gzwrite.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/gzwrite.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    libtcod/src/zlib/gzwrite.c: In function ‘gz_comp’:
    libtcod/src/zlib/gzwrite.c:84:15: warning: implicit declaration of function ‘write’; did you mean ‘fwrite’? [-Wimplicit-function-declaration]
             got = write(state->fd, strm->next_in, strm->avail_in);
                   ^~~~~
                   fwrite
    libtcod/src/zlib/gzwrite.c: In function ‘gzclose_w’:
    libtcod/src/zlib/gzwrite.c:573:9: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
         if (close(state->fd) == -1)
             ^~~~~
             pclose
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/compress.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/compress.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/uncompr.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/uncompr.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/infback.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/infback.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/crc32.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/crc32.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/gzlib.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/gzlib.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    libtcod/src/zlib/gzlib.c: In function ‘gz_open’:
    libtcod/src/zlib/gzlib.c:14:17: warning: implicit declaration of function ‘lseek’; did you mean ‘fseek’? [-Wimplicit-function-declaration]
     #  define LSEEK lseek
                     ^
    libtcod/src/zlib/gzlib.c:256:24: note: in expansion of macro ‘LSEEK’
             state->start = LSEEK(state->fd, 0, SEEK_CUR);
                            ^~~~~
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/zutil.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/zutil.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/inftrees.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/inftrees.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/gzclose.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/gzclose.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/zlib/deflate.c -o build/temp.linux-x86_64-3.6/libtcod/src/zlib/deflate.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c libtcod/src/png/lodepng.c -o build/temp.linux-x86_64-3.6/libtcod/src/png/lodepng.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c tcod/tdl.c -o build/temp.linux-x86_64-3.6/tcod/tdl.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c tcod/noise.c -o build/temp.linux-x86_64-3.6/tcod/noise.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBTCOD_EXPORTS -DTCOD_SDL2 -D_CRT_SECURE_NO_WARNINGS -I. -Ilibtcod/include/ -Ilibtcod/src/png/ -Ilibtcod/src/zlib/ -I/usr/include/SDL2/ -I/usr/include/python3.6m -c tcod/path.c -o build/temp.linux-x86_64-3.6/tcod/path.o -I/usr/include/SDL2 -D_REENTRANT -flto -fopenmp
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-Bsymbolic-functions -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/tcod._libtcod.o build/temp.linux-x86_64-3.6/libtcod/src/sys_sdl_img_png.o build/temp.linux-x86_64-3.6/libtcod/src/list_c.o build/temp.linux-x86_64-3.6/libtcod/src/sys_sdl_img_bmp.o build/temp.linux-x86_64-3.6/libtcod/src/tree_c.o build/temp.linux-x86_64-3.6/libtcod/src/fov_recursive_shadowcasting.o build/temp.linux-x86_64-3.6/libtcod/src/console_rexpaint.o build/temp.linux-x86_64-3.6/libtcod/src/heightmap_c.o build/temp.linux-x86_64-3.6/libtcod/src/sys_sdl_c.o build/temp.linux-x86_64-3.6/libtcod/src/bresenham_c.o build/temp.linux-x86_64-3.6/libtcod/src/bsp_c.o build/temp.linux-x86_64-3.6/libtcod/src/console_c.o build/temp.linux-x86_64-3.6/libtcod/src/color_c.o build/temp.linux-x86_64-3.6/libtcod/src/txtfield_c.o build/temp.linux-x86_64-3.6/libtcod/src/wrappers.o build/temp.linux-x86_64-3.6/libtcod/src/sys_c.o build/temp.linux-x86_64-3.6/libtcod/src/noise_c.o build/temp.linux-x86_64-3.6/libtcod/src/fov_diamond_raycasting.o build/temp.linux-x86_64-3.6/libtcod/src/fov_c.o build/temp.linux-x86_64-3.6/libtcod/src/parser_c.o build/temp.linux-x86_64-3.6/libtcod/src/sys_opengl_c.o build/temp.linux-x86_64-3.6/libtcod/src/namegen_c.o build/temp.linux-x86_64-3.6/libtcod/src/lex_c.o build/temp.linux-x86_64-3.6/libtcod/src/path_c.o build/temp.linux-x86_64-3.6/libtcod/src/sys_sdl2_c.o build/temp.linux-x86_64-3.6/libtcod/src/image_c.o build/temp.linux-x86_64-3.6/libtcod/src/fov_permissive2.o build/temp.linux-x86_64-3.6/libtcod/src/fov_restrictive.o build/temp.linux-x86_64-3.6/libtcod/src/fov_circular_raycasting.o build/temp.linux-x86_64-3.6/libtcod/src/mersenne_c.o build/temp.linux-x86_64-3.6/libtcod/src/zip_c.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/gzread.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/inflate.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/trees.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/adler32.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/inffast.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/gzwrite.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/compress.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/uncompr.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/infback.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/crc32.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/gzlib.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/zutil.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/inftrees.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/gzclose.o build/temp.linux-x86_64-3.6/libtcod/src/zlib/deflate.o build/temp.linux-x86_64-3.6/libtcod/src/png/lodepng.o build/temp.linux-x86_64-3.6/tcod/tdl.o build/temp.linux-x86_64-3.6/tcod/noise.o build/temp.linux-x86_64-3.6/tcod/path.o -lGL -lSDL2 -o build/lib.linux-x86_64-3.6/tcod/_libtcod.abi3.so -lSDL2 -flto -O3 -fopenmp
    /usr/include/SDL2/SDL_main.h:110:31: warning: type of ‘SDL_main’ does not match original declaration [-Wlto-type-mismatch]
     extern C_LINKAGE DECLSPEC int SDL_main(int argc, char *argv[]);
                                   ^
    tcod/tdl.c:7:6: note: return value type mismatch
     void SDL_main(void){};
          ^
    tcod/tdl.c:7:6: note: type ‘void’ should match type ‘int’
    tcod/tdl.c:7:6: note: ‘SDL_main’ was previously declared here
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans0.ltrans.o: relocation R_X86_64_32S against symbol `SDL_sscanf' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans1.ltrans.o: relocation R_X86_64_32S against symbol `SDL_SetError' cannot be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans2.ltrans.o: relocation R_X86_64_32S against hidden symbol `TCOD_LEX_names.lto_priv.3524' can not be used when making a shared object
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans3.ltrans.o: relocation R_X86_64_32S against hidden symbol `key_status.lto_priv.40' can not be used when making a shared object
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans4.ltrans.o: relocation R_X86_64_32S against symbol `SDL_LogInfo' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans5.ltrans.o: relocation R_X86_64_32S against symbol `TCOD_fatal' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans6.ltrans.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans7.ltrans.o: relocation R_X86_64_32S against `.rodata' can not be usedwhen making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans8.ltrans.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans9.ltrans.o: relocation R_X86_64_32 against hidden symbol `_cffi_externpy___pycall_sdl_hook.lto_priv.3527' can not be used when making a shared object
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans10.ltrans.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans11.ltrans.o: relocation R_X86_64_32S against symbol `_length_code' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans12.ltrans.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: /tmp/ccdDYZmH.ltrans13.ltrans.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: final link failed: Nonrepresentable section on output
    collect2: error: ld returned 1 exit status
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-r7rzoomn/tdl/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-d7j55i9m-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-r7rzoomn/tdl/

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nightblade9commented, Nov 6, 2017

@HexDecimal I can confirm that the PPA works with sudo apt-get install python3-tdl. Thanks!

I’m going ahead and closing this since it works for at least two of us.

If you can add instructions somewhere pointing to the ppa (maybe in README.md?), that would be awesome.

1reaction
HexDecimalcommented, Nov 4, 2017

I wasn’t able to repeat the error on Linux Mint 18 (based on Ubuntu 16.04.) I only have vague ideas for what your issue is, so I don’t think I’ll be able to fix this problem directly.

I was able to build and deploy on a PPA. You might be able to just grab a compiled package for Artful via apt, if I did it right: https://launchpad.net/~4b796c65/+archive/ubuntu/ppa

I wasn’t able to test these builds since the official package for python-cffi is too old in Ubuntu’s LTS repository.

If the PPA doesn’t work then I’ll try to get the pypi Linux builds working again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to compile release with clang under ubuntu 17.10 #147
Issue is #143 related. Building without -DCMAKE_BUILD_TYPE=Release is fine. infactum@dev-vm:~/develop/td/build$ uname -a Linux dev-vm ...
Read more >
Error compiling GIMP on Ubuntu 17.10
I am following this tutorial using Ubuntu 17.10: ... When I try to compile GIMP using the following code: cd $SRC_DIR/gimp ./autogen.sh --p....
Read more >
Compilation failure in hotspot on ubuntu 17.10 : JBR-666 - YouTrack
Compilation failure in hotspot on ubuntu 17.10. /jdk8u/hotspot/src/share/vm/code/dependencies.cpp:498:6: error: '%d' directive writing between 1 and 10 ...
Read more >
Examples compile, but don't run, on Ubuntu 17.10 - linux
I've been using openFrameworks successfully for a few years on Ubuntu 14.04 LTS and 16.04 LTS, usually with Intel NUC boxes.
Read more >
Make error on ubuntu 17.10 - C++ - Unreal Engine Forums
Hello, I have a problem with the unreal compilation on Ubuntu 17.10. The problem happens when I run the make command, it compiles...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found