Mock Version: 2.3 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/dlib.spec'], chrootPath='/var/lib/mock/fedora-rawhide-i686-1593835191.530302/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.iqgn32w7:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=FalseprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.iqgn32w7:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '01c95ee35f0b4a7c97aeb392bdc0f123', '-D', '/var/lib/mock/fedora-rawhide-i686-1593835191.530302/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.iqgn32w7:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/dlib.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: i686 Building for target i686 setting SOURCE_DATE_EPOCH=1593734400 Wrote: /builddir/build/SRPMS/dlib-19.20-1.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/dlib.spec'], chrootPath='/var/lib/mock/fedora-rawhide-i686-1593835191.530302/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.iqgn32w7:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=FalseprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.iqgn32w7:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'ca4110a0f8cc4b1b8f0f13db8bb00f02', '-D', '/var/lib/mock/fedora-rawhide-i686-1593835191.530302/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.iqgn32w7:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/dlib.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: i686 Building for target i686 setting SOURCE_DATE_EPOCH=1593734400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ImJrxu + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf dlib-19.20 + /usr/bin/tar -xof - + /usr/bin/bzip2 -dc /builddir/build/SOURCES/dlib-19.20.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd dlib-19.20 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + find docs -type f -exec chmod 644 '{}' + + find examples -type f -exec chmod 644 '{}' + + mkdir -p build + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ep4Nku + umask 022 + cd /builddir/build/BUILD + cd dlib-19.20 + pushd build ~/build/BUILD/dlib-19.20/build ~/build/BUILD/dlib-19.20 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/cmake -S . -B . -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DBUILD_SHARED_LIBS:BOOL=ON ../dlib -- The C compiler identification is GNU 10.1.1 -- The CXX compiler identification is GNU 10.1.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Using CMake version: 3.18.0-rc2 -- Compiling dlib version: 19.20.0 -- 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 -- Found X11: /usr/include -- Looking for XOpenDisplay in /usr/lib/libX11.so -- Looking for XOpenDisplay in /usr/lib/libX11.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Found system copy of libpng: /usr/lib/libpng.so;/usr/lib/libz.so -- Found system copy of libjpeg: /usr/lib/libjpeg.so -- Searching for BLAS and LAPACK -- Searching for BLAS and LAPACK -- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.0") -- Checking for module 'cblas' -- Package 'cblas', required by 'virtual:world', not found -- Checking for module 'lapack' -- Package 'lapack', required by 'virtual:world', not found -- 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 -- Found OpenBLAS library -- Looking for sgetrf_single -- Looking for sgetrf_single - found -- Using OpenBLAS's built in LAPACK -- Looking for cblas_ddot -- Looking for cblas_ddot - found -- Looking for sgesv -- Looking for sgesv - not found -- Looking for sgesv_ -- Looking for sgesv_ - not found 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 CMake Warning: Manually-specified variables were not used by the project: CMAKE_C_FLAGS_RELEASE CMAKE_Fortran_FLAGS_RELEASE INCLUDE_INSTALL_DIR LIB_INSTALL_DIR SHARE_INSTALL_PREFIX SYSCONF_INSTALL_DIR -- Build files have been written to: /builddir/build/BUILD/dlib-19.20/build + /usr/bin/make -O -j2 V=1 VERBOSE=1 /usr/bin/cmake -S/builddir/build/BUILD/dlib-19.20/dlib -B/builddir/build/BUILD/dlib-19.20/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /builddir/build/BUILD/dlib-19.20/build/CMakeFiles /builddir/build/BUILD/dlib-19.20/build//CMakeFiles/progress.marks /usr/bin/make -f CMakeFiles/Makefile2 all /usr/bin/make -f CMakeFiles/dlib.dir/build.make CMakeFiles/dlib.dir/depend make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' cd /builddir/build/BUILD/dlib-19.20/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/dlib-19.20/dlib /builddir/build/BUILD/dlib-19.20/dlib /builddir/build/BUILD/dlib-19.20/build /builddir/build/BUILD/dlib-19.20/build /builddir/build/BUILD/dlib-19.20/build/CMakeFiles/dlib.dir/DependInfo.cmake --color= Dependee "/builddir/build/BUILD/dlib-19.20/build/CMakeFiles/dlib.dir/DependInfo.cmake" is newer than depender "/builddir/build/BUILD/dlib-19.20/build/CMakeFiles/dlib.dir/depend.internal". Dependee "/builddir/build/BUILD/dlib-19.20/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/builddir/build/BUILD/dlib-19.20/build/CMakeFiles/dlib.dir/depend.internal". Scanning dependencies of target dlib make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' /usr/bin/make -f CMakeFiles/dlib.dir/build.make CMakeFiles/dlib.dir/build make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 1%] Building CXX object CMakeFiles/dlib.dir/base64/base64_kernel_1.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/base64/base64_kernel_1.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/base64/base64_kernel_1.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 3%] Building CXX object CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/bigint/bigint_kernel_1.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 6%] Building CXX object CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/bit_stream/bit_stream_kernel_1.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 8%] Building CXX object CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/entropy_decoder/entropy_decoder_kernel_1.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 5%] Building CXX object CMakeFiles/dlib.dir/bigint/bigint_kernel_2.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/bigint/bigint_kernel_2.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/bigint/bigint_kernel_2.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 10%] Building CXX object CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/entropy_decoder/entropy_decoder_kernel_2.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 11%] Building CXX object CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/entropy_encoder/entropy_encoder_kernel_1.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 13%] Building CXX object CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/entropy_encoder/entropy_encoder_kernel_2.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 15%] Building CXX object CMakeFiles/dlib.dir/md5/md5_kernel_1.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/md5/md5_kernel_1.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/md5/md5_kernel_1.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 16%] Building CXX object CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/tokenizer/tokenizer_kernel_1.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 20%] Building CXX object CMakeFiles/dlib.dir/test_for_odr_violations.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/test_for_odr_violations.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/test_for_odr_violations.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 22%] Building CXX object CMakeFiles/dlib.dir/sockets/sockets_kernel_1.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/sockets/sockets_kernel_1.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/sockets/sockets_kernel_1.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 18%] Building CXX object CMakeFiles/dlib.dir/unicode/unicode.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/unicode/unicode.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/unicode/unicode.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 25%] Building CXX object CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/dir_nav/dir_nav_kernel_1.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 27%] Building CXX object CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/dir_nav/dir_nav_kernel_2.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 23%] Building CXX object CMakeFiles/dlib.dir/bsp/bsp.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/bsp/bsp.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/bsp/bsp.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 28%] Building CXX object CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/dir_nav/dir_nav_extensions.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 32%] Building CXX object CMakeFiles/dlib.dir/logger/extra_logger_headers.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/logger/extra_logger_headers.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/logger/extra_logger_headers.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 30%] Building CXX object CMakeFiles/dlib.dir/linker/linker_kernel_1.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/linker/linker_kernel_1.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/linker/linker_kernel_1.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 35%] Building CXX object CMakeFiles/dlib.dir/logger/logger_config_file.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/logger/logger_config_file.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/logger/logger_config_file.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 37%] Building CXX object CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/misc_api/misc_api_kernel_1.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 33%] Building CXX object CMakeFiles/dlib.dir/logger/logger_kernel_1.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/logger/logger_kernel_1.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/logger/logger_kernel_1.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 38%] Building CXX object CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/misc_api/misc_api_kernel_2.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 42%] Building CXX object CMakeFiles/dlib.dir/sockets/sockets_kernel_2.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/sockets/sockets_kernel_2.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/sockets/sockets_kernel_2.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 40%] Building CXX object CMakeFiles/dlib.dir/sockets/sockets_extensions.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/sockets/sockets_extensions.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/sockets/sockets_extensions.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 44%] Building CXX object CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/sockstreambuf/sockstreambuf.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 45%] Building CXX object CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/sockstreambuf/sockstreambuf_unbuffered.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 49%] Building CXX object CMakeFiles/dlib.dir/server/server_iostream.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/server/server_iostream.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/server/server_iostream.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 47%] Building CXX object CMakeFiles/dlib.dir/server/server_kernel.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/server/server_kernel.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/server/server_kernel.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 52%] Building CXX object CMakeFiles/dlib.dir/threads/multithreaded_object_extension.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/threads/multithreaded_object_extension.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/threads/multithreaded_object_extension.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 50%] Building CXX object CMakeFiles/dlib.dir/server/server_http.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/server/server_http.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/server/server_http.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 55%] Building CXX object CMakeFiles/dlib.dir/threads/threads_kernel_1.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/threads/threads_kernel_1.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/threads/threads_kernel_1.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 54%] Building CXX object CMakeFiles/dlib.dir/threads/threaded_object_extension.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/threads/threaded_object_extension.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/threads/threaded_object_extension.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 57%] Building CXX object CMakeFiles/dlib.dir/threads/threads_kernel_2.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/threads/threads_kernel_2.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/threads/threads_kernel_2.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 59%] Building CXX object CMakeFiles/dlib.dir/threads/threads_kernel_shared.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/threads/threads_kernel_shared.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/threads/threads_kernel_shared.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 61%] Building CXX object CMakeFiles/dlib.dir/threads/thread_pool_extension.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/threads/thread_pool_extension.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/threads/thread_pool_extension.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 62%] Building CXX object CMakeFiles/dlib.dir/threads/async.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/threads/async.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/threads/async.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 66%] Building CXX object CMakeFiles/dlib.dir/stack_trace.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/stack_trace.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/stack_trace.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 64%] Building CXX object CMakeFiles/dlib.dir/timer/timer.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/timer/timer.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/timer/timer.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 69%] Building CXX object CMakeFiles/dlib.dir/cuda/tensor_tools.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/cuda/tensor_tools.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/cuda/tensor_tools.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 67%] Building CXX object CMakeFiles/dlib.dir/cuda/cpu_dlib.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/cuda/cpu_dlib.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/cuda/cpu_dlib.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 72%] Building CXX object CMakeFiles/dlib.dir/data_io/mnist.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/data_io/mnist.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/data_io/mnist.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 71%] Building CXX object CMakeFiles/dlib.dir/data_io/image_dataset_metadata.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/data_io/image_dataset_metadata.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/data_io/image_dataset_metadata.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 76%] Building CXX object CMakeFiles/dlib.dir/filtering/kalman_filter.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/filtering/kalman_filter.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/filtering/kalman_filter.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 74%] Building CXX object CMakeFiles/dlib.dir/global_optimization/global_function_search.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/global_optimization/global_function_search.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/global_optimization/global_function_search.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 77%] Building CXX object CMakeFiles/dlib.dir/svm/auto.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/svm/auto.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/svm/auto.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 79%] Building CXX object CMakeFiles/dlib.dir/gui_widgets/fonts.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/gui_widgets/fonts.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/gui_widgets/fonts.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 83%] Building CXX object CMakeFiles/dlib.dir/gui_widgets/drawable.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/gui_widgets/drawable.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/gui_widgets/drawable.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 84%] Building CXX object CMakeFiles/dlib.dir/gui_widgets/canvas_drawing.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/gui_widgets/canvas_drawing.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/gui_widgets/canvas_drawing.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 86%] Building CXX object CMakeFiles/dlib.dir/gui_widgets/style.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/gui_widgets/style.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/gui_widgets/style.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 81%] Building CXX object CMakeFiles/dlib.dir/gui_widgets/widgets.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/gui_widgets/widgets.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/gui_widgets/widgets.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 89%] Building CXX object CMakeFiles/dlib.dir/gui_core/gui_core_kernel_1.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/gui_core/gui_core_kernel_1.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/gui_core/gui_core_kernel_1.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 91%] Building CXX object CMakeFiles/dlib.dir/gui_core/gui_core_kernel_2.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/gui_core/gui_core_kernel_2.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/gui_core/gui_core_kernel_2.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 88%] Building CXX object CMakeFiles/dlib.dir/gui_widgets/base_widgets.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/gui_widgets/base_widgets.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/gui_widgets/base_widgets.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 93%] Building CXX object CMakeFiles/dlib.dir/image_loader/png_loader.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/image_loader/png_loader.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/image_loader/png_loader.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 94%] Building CXX object CMakeFiles/dlib.dir/image_saver/save_png.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/image_saver/save_png.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/image_saver/save_png.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 96%] Building CXX object CMakeFiles/dlib.dir/image_loader/jpeg_loader.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/image_loader/jpeg_loader.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/image_loader/jpeg_loader.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [ 98%] Building CXX object CMakeFiles/dlib.dir/image_saver/save_jpeg.cpp.o /usr/bin/g++ -Ddlib_EXPORTS -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -DDLIB_DISABLE_ASSERTS -DDLIB_JPEG_SUPPORT -DDLIB_USE_BLAS -DDLIB_USE_LAPACK -DDLIB_PNG_SUPPORT -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE -DDLIB_CHECK_FOR_VERSION_MISMATCH=DLIB_VERSION_MISMATCH_CHECK__EXPECTED_VERSION_19_20_0 -Wreturn-type -o CMakeFiles/dlib.dir/image_saver/save_jpeg.cpp.o -c /builddir/build/BUILD/dlib-19.20/dlib/image_saver/save_jpeg.cpp make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[2]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [100%] Linking CXX shared library libdlib.so /usr/bin/cmake -E cmake_link_script CMakeFiles/dlib.dir/link.txt --verbose=1 /usr/bin/g++ -fPIC -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -shared -Wl,-soname,libdlib.so.19.20.0 -o libdlib.so.19.20.0 CMakeFiles/dlib.dir/base64/base64_kernel_1.cpp.o CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o CMakeFiles/dlib.dir/bigint/bigint_kernel_2.cpp.o CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.cpp.o CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.cpp.o CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.cpp.o CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.cpp.o CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.cpp.o CMakeFiles/dlib.dir/md5/md5_kernel_1.cpp.o CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.cpp.o CMakeFiles/dlib.dir/unicode/unicode.cpp.o CMakeFiles/dlib.dir/test_for_odr_violations.cpp.o CMakeFiles/dlib.dir/sockets/sockets_kernel_1.cpp.o CMakeFiles/dlib.dir/bsp/bsp.cpp.o CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.cpp.o CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.cpp.o CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.cpp.o CMakeFiles/dlib.dir/linker/linker_kernel_1.cpp.o CMakeFiles/dlib.dir/logger/extra_logger_headers.cpp.o CMakeFiles/dlib.dir/logger/logger_kernel_1.cpp.o CMakeFiles/dlib.dir/logger/logger_config_file.cpp.o CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.cpp.o CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.cpp.o CMakeFiles/dlib.dir/sockets/sockets_extensions.cpp.o CMakeFiles/dlib.dir/sockets/sockets_kernel_2.cpp.o CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.cpp.o CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.cpp.o CMakeFiles/dlib.dir/server/server_kernel.cpp.o CMakeFiles/dlib.dir/server/server_iostream.cpp.o CMakeFiles/dlib.dir/server/server_http.cpp.o CMakeFiles/dlib.dir/threads/multithreaded_object_extension.cpp.o CMakeFiles/dlib.dir/threads/threaded_object_extension.cpp.o CMakeFiles/dlib.dir/threads/threads_kernel_1.cpp.o CMakeFiles/dlib.dir/threads/threads_kernel_2.cpp.o CMakeFiles/dlib.dir/threads/threads_kernel_shared.cpp.o CMakeFiles/dlib.dir/threads/thread_pool_extension.cpp.o CMakeFiles/dlib.dir/threads/async.cpp.o CMakeFiles/dlib.dir/timer/timer.cpp.o CMakeFiles/dlib.dir/stack_trace.cpp.o CMakeFiles/dlib.dir/cuda/cpu_dlib.cpp.o CMakeFiles/dlib.dir/cuda/tensor_tools.cpp.o CMakeFiles/dlib.dir/data_io/image_dataset_metadata.cpp.o CMakeFiles/dlib.dir/data_io/mnist.cpp.o CMakeFiles/dlib.dir/global_optimization/global_function_search.cpp.o CMakeFiles/dlib.dir/filtering/kalman_filter.cpp.o CMakeFiles/dlib.dir/svm/auto.cpp.o CMakeFiles/dlib.dir/gui_widgets/fonts.cpp.o CMakeFiles/dlib.dir/gui_widgets/widgets.cpp.o CMakeFiles/dlib.dir/gui_widgets/drawable.cpp.o CMakeFiles/dlib.dir/gui_widgets/canvas_drawing.cpp.o CMakeFiles/dlib.dir/gui_widgets/style.cpp.o CMakeFiles/dlib.dir/gui_widgets/base_widgets.cpp.o CMakeFiles/dlib.dir/gui_core/gui_core_kernel_1.cpp.o CMakeFiles/dlib.dir/gui_core/gui_core_kernel_2.cpp.o CMakeFiles/dlib.dir/image_loader/png_loader.cpp.o CMakeFiles/dlib.dir/image_saver/save_png.cpp.o CMakeFiles/dlib.dir/image_loader/jpeg_loader.cpp.o CMakeFiles/dlib.dir/image_saver/save_jpeg.cpp.o -lpthread -lX11 -lpng -lz -ljpeg -lopenblasp -lsqlite3 /usr/bin/cmake -E cmake_symlink_library libdlib.so.19.20.0 libdlib.so.19.20.0 libdlib.so make[2]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' make[1]: Entering directory '/builddir/build/BUILD/dlib-19.20/build' [100%] Built target dlib make[1]: Leaving directory '/builddir/build/BUILD/dlib-19.20/build' /usr/bin/cmake -E cmake_progress_start /builddir/build/BUILD/dlib-19.20/build/CMakeFiles 0 + popd ~/build/BUILD/dlib-19.20 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3 setup.py --no USE_SSE4_INSTRUCTIONS build '--executable=/usr/bin/python3 -s' running build running build_py package init file 'dlib/__init__.py' not found (or not a regular file) running build_ext Building extension for Python 3.9.0b3 (default, Jun 10 2020, 00:00:00) Invoking CMake setup: 'cmake /builddir/build/BUILD/dlib-19.20/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/builddir/build/BUILD/dlib-19.20/build/lib.linux-i686-3.9 -DPYTHON_EXECUTABLE=/usr/bin/python3 -DUSE_SSE4_INSTRUCTIONS=no -DCMAKE_BUILD_TYPE=Release' -- The C compiler identification is GNU 10.1.1 -- The CXX compiler identification is GNU 10.1.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PythonInterp: /usr/bin/python3 (found version "3.9") -- Found PythonLibs: /usr/lib/libpython3.9.so -- Performing Test HAS_CPP14_FLAG -- Performing Test HAS_CPP14_FLAG - Success -- pybind11 v2.2.2 -- Using CMake version: 3.18.0-rc2 -- 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 -- Found X11: /usr/include -- Looking for XOpenDisplay in /usr/lib/libX11.so -- Looking for XOpenDisplay in /usr/lib/libX11.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Found system copy of libpng: /usr/lib/libpng.so;/usr/lib/libz.so -- Found system copy of libjpeg: /usr/lib/libjpeg.so -- Searching for BLAS and LAPACK -- Searching for BLAS and LAPACK -- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.0") -- Checking for module 'cblas' -- Package 'cblas', required by 'virtual:world', not found -- Checking for module 'lapack' -- Package 'lapack', required by 'virtual:world', not found -- 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 -- Found OpenBLAS library -- Looking for sgetrf_single -- Looking for sgetrf_single - found -- Using OpenBLAS's built in LAPACK -- Looking for cblas_ddot -- Looking for cblas_ddot - found -- Looking for sgesv -- Looking for sgesv - not found -- Looking for sgesv_ -- Looking for sgesv_ - not found 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: /builddir/build/BUILD/dlib-19.20/build/temp.linux-i686-3.9 Invoking CMake build: 'cmake --build . --config Release -- -j2' /usr/bin/cmake -S/builddir/build/BUILD/dlib-19.20/tools/python -B/builddir/build/BUILD/dlib-19.20/build/temp.linux-i686-3.9 --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /builddir/build/BUILD/dlib-19.20/build/temp.linux-i686-3.9/CMakeFiles /builddir/build/BUILD/dlib-19.20/build/temp.linux-i686-3.9//CMakeFiles/progress.marks /usr/bin/gmake -s -f CMakeFiles/Makefile2 all Scanning dependencies of target dlib [ 1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.cpp.o [ 2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o [ 3%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_2.cpp.o [ 4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.cpp.o [ 5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.cpp.o [ 6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.cpp.o [ 8%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.cpp.o [ 9%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.cpp.o [ 10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/md5/md5_kernel_1.cpp.o [ 11%] Building CXX object dlib_build/CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.cpp.o [ 12%] Building CXX object dlib_build/CMakeFiles/dlib.dir/unicode/unicode.cpp.o [ 13%] Building CXX object dlib_build/CMakeFiles/dlib.dir/test_for_odr_violations.cpp.o [ 15%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_1.cpp.o [ 16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bsp/bsp.cpp.o [ 17%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.cpp.o [ 18%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.cpp.o [ 19%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.cpp.o [ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/linker/linker_kernel_1.cpp.o [ 22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/extra_logger_headers.cpp.o [ 23%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_kernel_1.cpp.o [ 24%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_config_file.cpp.o [ 25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.cpp.o [ 26%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.cpp.o [ 27%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_extensions.cpp.o [ 29%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_2.cpp.o [ 30%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.cpp.o [ 31%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.cpp.o [ 32%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_kernel.cpp.o [ 33%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_iostream.cpp.o [ 34%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_http.cpp.o [ 36%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/multithreaded_object_extension.cpp.o [ 37%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threaded_object_extension.cpp.o [ 38%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_1.cpp.o [ 39%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_2.cpp.o [ 40%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_shared.cpp.o [ 41%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/thread_pool_extension.cpp.o [ 43%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/async.cpp.o [ 44%] Building CXX object dlib_build/CMakeFiles/dlib.dir/timer/timer.cpp.o [ 45%] Building CXX object dlib_build/CMakeFiles/dlib.dir/stack_trace.cpp.o [ 46%] Building CXX object dlib_build/CMakeFiles/dlib.dir/cuda/cpu_dlib.cpp.o [ 47%] Building CXX object dlib_build/CMakeFiles/dlib.dir/cuda/tensor_tools.cpp.o [ 48%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/image_dataset_metadata.cpp.o [ 50%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/mnist.cpp.o [ 51%] Building CXX object dlib_build/CMakeFiles/dlib.dir/global_optimization/global_function_search.cpp.o [ 52%] Building CXX object dlib_build/CMakeFiles/dlib.dir/filtering/kalman_filter.cpp.o [ 53%] Building CXX object dlib_build/CMakeFiles/dlib.dir/svm/auto.cpp.o [ 54%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.cpp.o [ 55%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/widgets.cpp.o [ 56%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/drawable.cpp.o [ 58%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/canvas_drawing.cpp.o [ 59%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/style.cpp.o [ 60%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/base_widgets.cpp.o [ 61%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_core/gui_core_kernel_1.cpp.o [ 62%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_core/gui_core_kernel_2.cpp.o [ 63%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/png_loader.cpp.o [ 65%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_png.cpp.o [ 66%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/jpeg_loader.cpp.o [ 67%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_jpeg.cpp.o [ 68%] Linking CXX static library libdlib.a [ 68%] Built target dlib Scanning dependencies of target dlib_python [ 69%] Building CXX object CMakeFiles/dlib_python.dir/src/dlib.cpp.o [ 70%] Building CXX object CMakeFiles/dlib_python.dir/src/matrix.cpp.o In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:167:28: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations] 167 | PyEval_InitThreads(); | ^ In file included from /usr/include/python3.9/Python.h:145, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /usr/include/python3.9/ceval.h:130:37: note: declared here 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 169 | internals_ptr->tstate = PyThread_create_key(); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 170 | PyThread_set_key_value(internals_ptr->tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:167:28: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations] 167 | PyEval_InitThreads(); | ^ In file included from /usr/include/python3.9/Python.h:145, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /usr/include/python3.9/ceval.h:130:37: note: declared here 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 169 | internals_ptr->tstate = PyThread_create_key(); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 170 | PyThread_set_key_value(internals_ptr->tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1739 | tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /usr/include/python3.9/pythread.h:112:39: note: declared here 112 | Py_DEPRECATED(3.7) PyAPI_FUNC(void *) PyThread_get_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1751 | PyThread_set_key_value(internals.tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1790 | PyThread_delete_key_value(detail::get_internals().tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /usr/include/python3.9/pythread.h:113:37: note: declared here 113 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1818 | PyThread_set_key_value(key, nullptr); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1831 | PyThread_set_key_value(key, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/dlib.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1739 | tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /usr/include/python3.9/pythread.h:112:39: note: declared here 112 | Py_DEPRECATED(3.7) PyAPI_FUNC(void *) PyThread_get_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1751 | PyThread_set_key_value(internals.tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1790 | PyThread_delete_key_value(detail::get_internals().tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /usr/include/python3.9/pythread.h:113:37: note: declared here 113 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1818 | PyThread_set_key_value(key, nullptr); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1831 | PyThread_set_key_value(key, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:7, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:4: /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp: In function ‘std::shared_ptr, dlib::row_major_layout> > from_list(pybind11::list)’: /builddir/build/BUILD/dlib-19.20/tools/python/src/matrix.cpp:82:36: warning: comparison of integer expressions of different signedness: ‘pybind11::size_t’ {aka ‘unsigned int’} and ‘const long int’ [-Wsign-compare] 82 | pyassert(py::len(l[r]) == nc, "All rows of a matrix must have the same number of columns."); | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pyassert.h:9:13: note: in definition of macro ‘pyassert’ 9 | {if ( !(_exp) ) \ | ^~~~ [ 72%] Building CXX object CMakeFiles/dlib_python.dir/src/vector.cpp.o In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:167:28: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations] 167 | PyEval_InitThreads(); | ^ In file included from /usr/include/python3.9/Python.h:145, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /usr/include/python3.9/ceval.h:130:37: note: declared here 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 169 | internals_ptr->tstate = PyThread_create_key(); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 170 | PyThread_set_key_value(internals_ptr->tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1739 | tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /usr/include/python3.9/pythread.h:112:39: note: declared here 112 | Py_DEPRECATED(3.7) PyAPI_FUNC(void *) PyThread_get_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1751 | PyThread_set_key_value(internals.tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1790 | PyThread_delete_key_value(detail::get_internals().tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /usr/include/python3.9/pythread.h:113:37: note: declared here 113 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1818 | PyThread_set_key_value(key, nullptr); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1831 | PyThread_set_key_value(key, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/vector.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ [ 73%] Building CXX object CMakeFiles/dlib_python.dir/src/svm_c_trainer.cpp.o In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:167:28: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations] 167 | PyEval_InitThreads(); | ^ In file included from /usr/include/python3.9/Python.h:145, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /usr/include/python3.9/ceval.h:130:37: note: declared here 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 169 | internals_ptr->tstate = PyThread_create_key(); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 170 | PyThread_set_key_value(internals_ptr->tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1739 | tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /usr/include/python3.9/pythread.h:112:39: note: declared here 112 | Py_DEPRECATED(3.7) PyAPI_FUNC(void *) PyThread_get_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1751 | PyThread_set_key_value(internals.tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1790 | PyThread_delete_key_value(detail::get_internals().tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /usr/include/python3.9/pythread.h:113:37: note: declared here 113 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1818 | PyThread_set_key_value(key, nullptr); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1831 | PyThread_set_key_value(key, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_c_trainer.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ [ 74%] Building CXX object CMakeFiles/dlib_python.dir/src/svm_rank_trainer.cpp.o In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:167:28: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations] 167 | PyEval_InitThreads(); | ^ In file included from /usr/include/python3.9/Python.h:145, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /usr/include/python3.9/ceval.h:130:37: note: declared here 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 169 | internals_ptr->tstate = PyThread_create_key(); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 170 | PyThread_set_key_value(internals_ptr->tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1739 | tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /usr/include/python3.9/pythread.h:112:39: note: declared here 112 | Py_DEPRECATED(3.7) PyAPI_FUNC(void *) PyThread_get_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1751 | PyThread_set_key_value(internals.tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1790 | PyThread_delete_key_value(detail::get_internals().tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /usr/include/python3.9/pythread.h:113:37: note: declared here 113 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1818 | PyThread_set_key_value(key, nullptr); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1831 | PyThread_set_key_value(key, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_rank_trainer.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ [ 75%] Building CXX object CMakeFiles/dlib_python.dir/src/decision_functions.cpp.o In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:167:28: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations] 167 | PyEval_InitThreads(); | ^ In file included from /usr/include/python3.9/Python.h:145, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /usr/include/python3.9/ceval.h:130:37: note: declared here 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 169 | internals_ptr->tstate = PyThread_create_key(); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 170 | PyThread_set_key_value(internals_ptr->tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1739 | tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /usr/include/python3.9/pythread.h:112:39: note: declared here 112 | Py_DEPRECATED(3.7) PyAPI_FUNC(void *) PyThread_get_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1751 | PyThread_set_key_value(internals.tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1790 | PyThread_delete_key_value(detail::get_internals().tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /usr/include/python3.9/pythread.h:113:37: note: declared here 113 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1818 | PyThread_set_key_value(key, nullptr); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1831 | PyThread_set_key_value(key, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/decision_functions.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ [ 76%] Building CXX object CMakeFiles/dlib_python.dir/src/other.cpp.o In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:167:28: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations] 167 | PyEval_InitThreads(); | ^ In file included from /usr/include/python3.9/Python.h:145, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /usr/include/python3.9/ceval.h:130:37: note: declared here 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 169 | internals_ptr->tstate = PyThread_create_key(); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 170 | PyThread_set_key_value(internals_ptr->tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1739 | tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /usr/include/python3.9/pythread.h:112:39: note: declared here 112 | Py_DEPRECATED(3.7) PyAPI_FUNC(void *) PyThread_get_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1751 | PyThread_set_key_value(internals.tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1790 | PyThread_delete_key_value(detail::get_internals().tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /usr/include/python3.9/pythread.h:113:37: note: declared here 113 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1818 | PyThread_set_key_value(key, nullptr); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1831 | PyThread_set_key_value(key, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/other.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ [ 77%] Building CXX object CMakeFiles/dlib_python.dir/src/basic.cpp.o In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:167:28: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations] 167 | PyEval_InitThreads(); | ^ In file included from /usr/include/python3.9/Python.h:145, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /usr/include/python3.9/ceval.h:130:37: note: declared here 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 169 | internals_ptr->tstate = PyThread_create_key(); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 170 | PyThread_set_key_value(internals_ptr->tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1739 | tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /usr/include/python3.9/pythread.h:112:39: note: declared here 112 | Py_DEPRECATED(3.7) PyAPI_FUNC(void *) PyThread_get_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1751 | PyThread_set_key_value(internals.tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1790 | PyThread_delete_key_value(detail::get_internals().tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /usr/include/python3.9/pythread.h:113:37: note: declared here 113 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1818 | PyThread_set_key_value(key, nullptr); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1831 | PyThread_set_key_value(key, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/basic.cpp:3: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ [ 79%] Building CXX object CMakeFiles/dlib_python.dir/src/cca.cpp.o In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:167:28: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations] 167 | PyEval_InitThreads(); | ^ In file included from /usr/include/python3.9/Python.h:145, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /usr/include/python3.9/ceval.h:130:37: note: declared here 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 169 | internals_ptr->tstate = PyThread_create_key(); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 170 | PyThread_set_key_value(internals_ptr->tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1739 | tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /usr/include/python3.9/pythread.h:112:39: note: declared here 112 | Py_DEPRECATED(3.7) PyAPI_FUNC(void *) PyThread_get_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1751 | PyThread_set_key_value(internals.tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1790 | PyThread_delete_key_value(detail::get_internals().tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /usr/include/python3.9/pythread.h:113:37: note: declared here 113 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1818 | PyThread_set_key_value(key, nullptr); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1831 | PyThread_set_key_value(key, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/cca.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ [ 80%] Building CXX object CMakeFiles/dlib_python.dir/src/sequence_segmenter.cpp.o In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:167:28: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations] 167 | PyEval_InitThreads(); | ^ In file included from /usr/include/python3.9/Python.h:145, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /usr/include/python3.9/ceval.h:130:37: note: declared here 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 169 | internals_ptr->tstate = PyThread_create_key(); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 170 | PyThread_set_key_value(internals_ptr->tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1739 | tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /usr/include/python3.9/pythread.h:112:39: note: declared here 112 | Py_DEPRECATED(3.7) PyAPI_FUNC(void *) PyThread_get_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1751 | PyThread_set_key_value(internals.tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1790 | PyThread_delete_key_value(detail::get_internals().tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /usr/include/python3.9/pythread.h:113:37: note: declared here 113 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1818 | PyThread_set_key_value(key, nullptr); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1831 | PyThread_set_key_value(key, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/sequence_segmenter.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ [ 81%] Building CXX object CMakeFiles/dlib_python.dir/src/svm_struct.cpp.o In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:167:28: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations] 167 | PyEval_InitThreads(); | ^ In file included from /usr/include/python3.9/Python.h:145, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /usr/include/python3.9/ceval.h:130:37: note: declared here 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 169 | internals_ptr->tstate = PyThread_create_key(); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 170 | PyThread_set_key_value(internals_ptr->tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1739 | tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /usr/include/python3.9/pythread.h:112:39: note: declared here 112 | Py_DEPRECATED(3.7) PyAPI_FUNC(void *) PyThread_get_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1751 | PyThread_set_key_value(internals.tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1790 | PyThread_delete_key_value(detail::get_internals().tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /usr/include/python3.9/pythread.h:113:37: note: declared here 113 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1818 | PyThread_set_key_value(key, nullptr); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1831 | PyThread_set_key_value(key, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/svm_struct.cpp:4: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ [ 82%] Building CXX object CMakeFiles/dlib_python.dir/src/image.cpp.o In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:167:28: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations] 167 | PyEval_InitThreads(); | ^ In file included from /usr/include/python3.9/Python.h:145, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /usr/include/python3.9/ceval.h:130:37: note: declared here 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 169 | internals_ptr->tstate = PyThread_create_key(); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 170 | PyThread_set_key_value(internals_ptr->tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1739 | tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /usr/include/python3.9/pythread.h:112:39: note: declared here 112 | Py_DEPRECATED(3.7) PyAPI_FUNC(void *) PyThread_get_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1751 | PyThread_set_key_value(internals.tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1790 | PyThread_delete_key_value(detail::get_internals().tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /usr/include/python3.9/pythread.h:113:37: note: declared here 113 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1818 | PyThread_set_key_value(key, nullptr); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1831 | PyThread_set_key_value(key, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:9, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/numpy_image.h: In instantiation of ‘static pybind11::array_t::basic_pixel_type, 1> dlib::numpy_image::convert_to_numpy(dlib::matrix, dlib::row_major_layout>&&) [with pixel_type = float; typename dlib::pixel_traits::basic_pixel_type = float]’: /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/numpy_image.h:189:41: required from ‘dlib::numpy_image::numpy_image(dlib::matrix&&) [with long int NR = 0; long int NC = 0; pixel_type = float]’ /builddir/build/BUILD/dlib-19.20/tools/python/src/image.cpp:694:96: required from here /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/numpy_image.h:218:26: warning: unused variable ‘image_size’ [-Wunused-variable] 218 | const size_t image_size = dtype_size * rows * cols * channels; | ^~~~~~~~~~ [ 83%] Building CXX object CMakeFiles/dlib_python.dir/src/image2.cpp.o In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | 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.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:167:28: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations] 167 | PyEval_InitThreads(); | ^ In file included from /usr/include/python3.9/Python.h:145, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /usr/include/python3.9/ceval.h:130:37: note: declared here 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:169:53: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 169 | internals_ptr->tstate = PyThread_create_key(); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /usr/include/python3.9/pythread.h:108:36: note: declared here 108 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:16, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/internals.h:170:61: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 170 | PyThread_set_key_value(internals_ptr->tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1739:75: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1739 | tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /usr/include/python3.9/pythread.h:112:39: note: declared here 112 | Py_DEPRECATED(3.7) PyAPI_FUNC(void *) PyThread_get_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1751:60: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1751 | PyThread_set_key_value(internals.tstate, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1790:69: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1790 | PyThread_delete_key_value(detail::get_internals().tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /usr/include/python3.9/pythread.h:113:37: note: declared here 113 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1818:52: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1818 | PyThread_set_key_value(key, nullptr); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’: /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:1831:47: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1831 | PyThread_set_key_value(key, tstate); | ^ In file included from /usr/include/python3.9/Python.h:136, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/detail/common.h:111, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pytypes.h:12, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/cast.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/attr.h:13, from /builddir/build/BUILD/dlib-19.20/dlib/external/pybind11/include/pybind11/pybind11.h:43, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/pybind_utils.h:6, from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /usr/include/python3.9/pythread.h:110:36: note: declared here 110 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp: In function ‘pybind11::array py_sub_image(const pybind11::array&, const dlib::rectangle&)’: /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:499:10: warning: unused variable ‘width_step’ [-Wunused-variable] 499 | auto width_step = img.strides(0); | ^~~~~~~~~~ In file included from /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python.h:9, from /builddir/build/BUILD/dlib-19.20/tools/python/src/opaque_types.h:6, from /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:3: /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/numpy_image.h: In instantiation of ‘static pybind11::array_t::basic_pixel_type, 1> dlib::numpy_image::convert_to_numpy(dlib::matrix, dlib::row_major_layout>&&) [with pixel_type = dlib::rgb_pixel; typename dlib::pixel_traits::basic_pixel_type = unsigned char]’: /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/numpy_image.h:189:41: required from ‘dlib::numpy_image::numpy_image(dlib::matrix&&) [with long int NR = 0; long int NC = 0; pixel_type = dlib::rgb_pixel]’ /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:465:55: required from here /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/numpy_image.h:218:26: warning: unused variable ‘image_size’ [-Wunused-variable] 218 | const size_t image_size = dtype_size * rows * cols * channels; | ^~~~~~~~~~ /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/numpy_image.h: In instantiation of ‘static pybind11::array_t::basic_pixel_type, 1> dlib::numpy_image::convert_to_numpy(dlib::matrix, dlib::row_major_layout>&&) [with pixel_type = unsigned char; typename dlib::pixel_traits::basic_pixel_type = unsigned char]’: /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/numpy_image.h:189:41: required from ‘dlib::numpy_image::numpy_image(dlib::matrix&&) [with long int NR = 0; long int NC = 0; pixel_type = unsigned char]’ /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:472:59: required from here /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/numpy_image.h:218:26: warning: unused variable ‘image_size’ [-Wunused-variable] /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/numpy_image.h: In instantiation of ‘static pybind11::array_t::basic_pixel_type, 1> dlib::numpy_image::convert_to_numpy(dlib::matrix, dlib::row_major_layout>&&) [with pixel_type = long unsigned int; typename dlib::pixel_traits::basic_pixel_type = long unsigned int]’: /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/numpy_image.h:189:41: required from ‘dlib::numpy_image::numpy_image(dlib::matrix&&) [with long int NR = 1; long int NC = 0; pixel_type = long unsigned int]’ /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:487:12: required from ‘pybind11::array_t py_get_histogram(const dlib::numpy_image&, size_t) [with T = unsigned char; size_t = unsigned int]’ /builddir/build/BUILD/dlib-19.20/tools/python/src/image2.cpp:582:92: required from here /builddir/build/BUILD/dlib-19.20/dlib/../dlib/python/numpy_image.h:218:26: warning: unused variable ‘image_size’ [-Wunused-variable]