Expected Behavior
A correct build of dlib
Current Behavior
I'm getting the following CMake output:
running install
running bdist_egg
running egg_info
writing dlib.egg-info/PKG-INFO
writing dependency_links to dlib.egg-info/dependency_links.txt
writing top-level names to dlib.egg-info/top_level.txt
package init file 'dlib/init.py' not found (or not a regular file)
reading manifest file 'dlib.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'tools/python/build*'
writing manifest file 'dlib.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
Building extension for Python 3.7.8 (default, Jun 29 2020, 05:44:46)
Invoking CMake setup: 'cmake /dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/dlib/build/lib.linux-x86_64-3.7 -DPYTHON_EXECUTABLE=/usr/bin/python3.7 -DCMAKE_BUILD_TYPE=Release'
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /usr/bin/python3.7 (found version "3.7.8")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.7m.so
-- Performing Test HAS_CPP14_FLAG
-- Performing Test HAS_CPP14_FLAG - Success
-- pybind11 v2.2.2
-- Using CMake version: 3.17.3
-- Compiling dlib version: 19.20.0
-- SSE4 instructions can be executed by the host processor.
-- AVX instructions can be executed by the host processor.
-- Enabling AVX instructions
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)
*** DLIB GUI SUPPORT DISABLED BECAUSE X11 DEVELOPMENT LIBRARIES NOT FOUND ***
*** Make sure libx11-dev is installed if you want GUI support. ***
*** On Ubuntu run: sudo apt-get install libx11-dev ***
-- Searching for BLAS and LAPACK
-- Searching for BLAS and LAPACK
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
*** No BLAS library found so using dlib's built in BLAS. However, if you ***
*** install an optimized BLAS such as OpenBLAS or the Intel MKL your code ***
*** will run faster. On Ubuntu you can install OpenBLAS by executing: ***
*** sudo apt-get install libopenblas-dev liblapack-dev ***
*** Or you can easily install OpenBLAS from source by downloading the ***
*** source tar file from http://www.openblas.net, extracting it, and ***
*** running: ***
*** make; sudo make install ***
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5")
-- DID NOT FIND CUDA
-- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA
-- C++11 activated.
-- Configuring done
-- Generating done
-- Build files have been written to: /dlib/build/temp.linux-x86_64-3.7
Invoking CMake build: 'cmake --build . --config Release -- -j4'
Scanning dependencies of target dlib
[ 0%] Building CXX object dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.cpp.o
[ 1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o
[ 2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.cpp.o
[ 2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_2.cpp.o
[ 3%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.cpp.o
[ 3%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.cpp.o
[ 4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.cpp.o
[ 5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.cpp.o
[ 5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/md5/md5_kernel_1.cpp.o
[ 6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.cpp.o
[ 7%] Building CXX object dlib_build/CMakeFiles/dlib.dir/unicode/unicode.cpp.o
[ 7%] Building CXX object dlib_build/CMakeFiles/dlib.dir/test_for_odr_violations.cpp.o
[ 8%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_1.cpp.o
[ 9%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bsp/bsp.cpp.o
[ 9%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.cpp.o
[ 10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.cpp.o
[ 11%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.cpp.o
[ 11%] Building CXX object dlib_build/CMakeFiles/dlib.dir/linker/linker_kernel_1.cpp.o
[ 12%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/extra_logger_headers.cpp.o
[ 13%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_kernel_1.cpp.o
[ 13%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_config_file.cpp.o
[ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.cpp.o
[ 15%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.cpp.o
[ 15%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_extensions.cpp.o
[ 16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_2.cpp.o
[ 16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.cpp.o
[ 17%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.cpp.o
[ 18%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_kernel.cpp.o
[ 18%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_iostream.cpp.o
[ 19%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_http.cpp.o
[ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/multithreaded_object_extension.cpp.o
[ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threaded_object_extension.cpp.o
[ 21%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_1.cpp.o
[ 22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_2.cpp.o
[ 22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_shared.cpp.o
[ 23%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/thread_pool_extension.cpp.o
[ 24%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/async.cpp.o
[ 24%] Building CXX object dlib_build/CMakeFiles/dlib.dir/timer/timer.cpp.o
[ 25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/stack_trace.cpp.o
[ 26%] Building CXX object dlib_build/CMakeFiles/dlib.dir/cuda/cpu_dlib.cpp.o
[ 26%] Building CXX object dlib_build/CMakeFiles/dlib.dir/cuda/tensor_tools.cpp.o
[ 27%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/image_dataset_metadata.cpp.o
[ 28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/mnist.cpp.o
[ 28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/global_optimization/global_function_search.cpp.o
[ 29%] Building CXX object dlib_build/CMakeFiles/dlib.dir/filtering/kalman_filter.cpp.o
[ 30%] Building CXX object dlib_build/CMakeFiles/dlib.dir/svm/auto.cpp.o
In file included from /dlib/dlib/filtering/../matrix.h:11:0,
from /dlib/dlib/filtering/kalman_filter.h:7,
from /dlib/dlib/filtering/kalman_filter.cpp:6:
/dlib/dlib/filtering/../matrix/matrix_la.h: In function ‘long int dlib::svd4(dlib::svd_u_mode, bool, const dlib::matrix_exp&, dlib::matrix<typename EXP::type, uM, uN, MM1, L1>&, dlib::matrix<typename EXP::type, qN, qX, MM2, L1>&, dlib::matrix<typename EXP::type, vM, vN, MM3, L1>&) [with EXP = dlib::matrix_op<dlib::op_trans<dlib::matrix_op<dlib::op_trans<dlib::matrix<double, 1, 2, dlib::memory_manager_stateless_kernel_1, dlib::row_major_layout> > > > >; long int qN = 1; long int qX = 1; long int uM = 1; long int uN = 1; long int vM = 2; long int vN = 1; MM1 = dlib::memory_manager_stateless_kernel_1; MM2 = dlib::memory_manager_stateless_kernel_1; MM3 = dlib::memory_manager_stateless_kernel_1; L1 = dlib::row_major_layout]’:
/dlib/dlib/filtering/../matrix/matrix_la.h:225:32: warning: iteration 1 invokes undefined behavior [-Waggressive-loop-optimizations]
y = abs(q(i)) + abs(e(i));
~~~^~~~~~
/dlib/dlib/filtering/../matrix/matrix_la.h:163:20: note: within this loop
for (i=0; i<n; i++)
~^~
[ 31%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/arm/filter_neon_intrinsics.c.o
[ 31%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/arm/arm_init.c.o
[ 32%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/png.c.o
[ 32%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngerror.c.o
[ 33%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngget.c.o
[ 33%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngmem.c.o
[ 34%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngpread.c.o
[ 35%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngread.c.o
[ 35%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngrio.c.o
[ 36%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngrtran.c.o
[ 37%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngrutil.c.o
[ 37%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngset.c.o
[ 38%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngtrans.c.o
[ 39%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngwio.c.o
[ 39%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngwrite.c.o
[ 40%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngwtran.c.o
[ 41%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngwutil.c.o
[ 41%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/adler32.c.o
[ 42%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/compress.c.o
[ 43%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/crc32.c.o
[ 43%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/deflate.c.o
[ 44%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/gzclose.c.o
[ 45%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/gzlib.c.o
[ 45%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/gzread.c.o
[ 46%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/gzwrite.c.o
[ 47%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/infback.c.o
[ 47%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/inffast.c.o
[ 48%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/inflate.c.o
[ 49%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/inftrees.c.o
[ 49%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/trees.c.o
[ 50%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/uncompr.c.o
[ 50%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/zutil.c.o
[ 51%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/png_loader.cpp.o
[ 52%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_png.cpp.o
[ 52%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jaricom.c.o
[ 53%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcapimin.c.o
[ 54%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcapistd.c.o
[ 54%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcarith.c.o
[ 55%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jccoefct.c.o
[ 56%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jccolor.c.o
[ 56%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcdctmgr.c.o
[ 57%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jchuff.c.o
[ 58%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcinit.c.o
[ 58%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcmainct.c.o
[ 59%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcmarker.c.o
[ 60%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcmaster.c.o
[ 60%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcomapi.c.o
[ 61%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcparam.c.o
[ 62%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcprepct.c.o
[ 62%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcsample.c.o
[ 63%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdapimin.c.o
[ 64%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdapistd.c.o
[ 64%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdarith.c.o
[ 65%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdatadst.c.o
[ 66%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdatasrc.c.o
[ 66%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdcoefct.c.o
[ 67%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdcolor.c.o
[ 67%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jddctmgr.c.o
[ 68%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdhuff.c.o
[ 69%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdinput.c.o
[ 69%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdmainct.c.o
[ 70%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdmarker.c.o
[ 71%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdmaster.c.o
[ 71%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdmerge.c.o
[ 72%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdpostct.c.o
[ 73%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdsample.c.o
[ 73%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jerror.c.o
[ 74%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jfdctflt.c.o
[ 75%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jfdctfst.c.o
[ 75%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jfdctint.c.o
[ 76%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jidctflt.c.o
[ 77%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jidctfst.c.o
[ 77%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jidctint.c.o
[ 78%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jmemmgr.c.o
[ 79%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jmemnobs.c.o
[ 79%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jquant1.c.o
[ 80%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jutils.c.o
[ 81%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jquant2.c.o
[ 81%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/jpeg_loader.cpp.o
[ 82%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_jpeg.cpp.o
[ 83%] Linking CXX static library libdlib.a
[ 83%] Built target dlib
Scanning dependencies of target dlib_python
[ 84%] Building CXX object CMakeFiles/dlib_python.dir/src/matrix.cpp.o
[ 84%] Building CXX object CMakeFiles/dlib_python.dir/src/dlib.cpp.o
[ 84%] Building CXX object CMakeFiles/dlib_python.dir/src/vector.cpp.o
[ 85%] Building CXX object CMakeFiles/dlib_python.dir/src/svm_c_trainer.cpp.o
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/usr/include/python3.7m/pythread.h:98:20: note: declared here
PyAPI_FUNC(void ) PyThread_get_key_value(int key) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/usr/include/python3.7m/pythread.h:99:18: note: declared here
PyAPI_FUNC(void) PyThread_delete_key_value(int key) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/dlib.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/usr/include/python3.7m/pythread.h:98:20: note: declared here
PyAPI_FUNC(void ) PyThread_get_key_value(int key) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/usr/include/python3.7m/pythread.h:99:18: note: declared here
PyAPI_FUNC(void) PyThread_delete_key_value(int key) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/matrix.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/usr/include/python3.7m/pythread.h:98:20: note: declared here
PyAPI_FUNC(void ) PyThread_get_key_value(int key) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/usr/include/python3.7m/pythread.h:99:18: note: declared here
PyAPI_FUNC(void) PyThread_delete_key_value(int key) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/vector.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:98:20: note: declared here
PyAPI_FUNC(void ) PyThread_get_key_value(int key) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:99:18: note: declared here
PyAPI_FUNC(void) PyThread_delete_key_value(int key) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_c_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
[ 86%] Building CXX object CMakeFiles/dlib_python.dir/src/svm_rank_trainer.cpp.o
[ 86%] Building CXX object CMakeFiles/dlib_python.dir/src/decision_functions.cpp.o
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations]
internals_ptr->tstate = PyThread_create_key();
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/usr/include/python3.7m/pythread.h:95:17: note: declared here
PyAPI_FUNC(int) PyThread_create_key(void) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/external/pybind11/include/pybind11/cast.h:16:0,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals_ptr->tstate, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:98:20: note: declared here
PyAPI_FUNC(void ) PyThread_get_key_value(int key) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:99:18: note: declared here
PyAPI_FUNC(void) PyThread_delete_key_value(int key) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/svm_rank_trainer.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations]
tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/usr/include/python3.7m/pythread.h:98:20: note: declared here
PyAPI_FUNC(void ) PyThread_get_key_value(int key) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(internals.tstate, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations]
PyThread_delete_key_value(detail::get_internals().tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/usr/include/python3.7m/pythread.h:99:18: note: declared here
PyAPI_FUNC(void) PyThread_delete_key_value(int key) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, nullptr);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /dlib/dlib/../dlib/python/pybind_utils.h:6:0,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’:
/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void)’ is deprecated [-Wdeprecated-declarations]
PyThread_set_key_value(key, tstate);
^
In file included from /usr/include/python3.7m/pystate.h:11:0,
from /usr/include/python3.7m/traceback.h:8,
from /usr/include/python3.7m/Python.h:119,
from /dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
from /dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
from /dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
from /dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
from /dlib/dlib/../dlib/python/pybind_utils.h:6,
from /dlib/dlib/../dlib/python.h:6,
from /dlib/tools/python/src/opaque_types.h:6,
from /dlib/tools/python/src/decision_functions.cpp:4:
/usr/include/python3.7m/pythread.h:97:17: note: declared here
PyAPI_FUNC(int) PyThread_set_key_value(int key, void *value) Py_DEPRECATED(3.7);
^~~~~~~~~~~~~~~~~~~~~~
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-7/README.Bugs for instructions.
CMakeFiles/dlib_python.dir/build.make:121: recipe for target 'CMakeFiles/dlib_python.dir/src/svm_c_trainer.cpp.o' failed
make[2]: *** [CMakeFiles/dlib_python.dir/src/svm_c_trainer.cpp.o] Error 4
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:136: recipe for target 'CMakeFiles/dlib_python.dir/all' failed
make[1]: *** [CMakeFiles/dlib_python.dir/all] Error 2
Makefile:103: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
File "setup.py", line 261, in
'Topic :: Software Development',
File "/usr/local/lib/python3.7/dist-packages/setuptools/init.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.7/dist-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/usr/local/lib/python3.7/dist-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.7/dist-packages/setuptools/command/bdist_egg.py", line 173, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/usr/local/lib/python3.7/dist-packages/setuptools/command/bdist_egg.py", line 159, in call_command
self.run_command(cmdname)
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.7/dist-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/usr/lib/python3.7/distutils/command/install_lib.py", line 109, in build
self.run_command('build_ext')
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 135, in run
self.build_extension(ext)
File "setup.py", line 175, in build_extension
subprocess.check_call(cmake_build, cwd=build_folder)
File "/usr/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j4']' returned non-zero exit status 2.
Steps to Reproduce
For the installation I typed:
git clone --branch v19.20 https://github.com/davisking/dlib.git
cd dlib
python3.7 setup.py install
- Version: v19.20
- Where did you get dlib: From GitHub
- Platform: I'm using a docker container with ubuntu 18.04.4 LTS. I'm installing dlib with python3.7. I have run the installation of dlib on two different machines in the same container. In one of them it fails, in the other one there are no problems. The only other package I have installed in Python is cmake==3.17.3.
- Compiler: gcc 7.5.0