# Pip install dlib fails

**URL:** <https://discuss.circleci.com/t/pip-install-dlib-fails/32556>\
**Category:** Build Environment\
**Tags:** pip, python\
**Created:** [September 20, 2019, 2:48pm UTC](https://discuss.circleci.com/t/pip-install-dlib-fails/32556 "2019-09-20T14:48:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alpaca](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@alpaca](https://discuss.circleci.com/u/alpaca)\
**Post date:** [September 20, 2019, 2:48pm UTC](https://discuss.circleci.com/t/pip-install-dlib-fails/32556/1 "2019-09-20T14:48:30Z")

</div>

I have a python project that requires `dlib` . I am trying to setup CircleCI and wrote my `config.yml` as follows:

```auto
# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
  build:
    docker:
      # specify the version you desire here
      # use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
      - image: circleci/python:3.6.1

      # Specify service dependencies here if necessary
      # CircleCI maintains a library of pre-built images
      # documented at https://circleci.com/docs/2.0/circleci-images/
      # - image: circleci/postgres:9.4

    working_directory: ~/repo

    steps:
      - checkout

      # Download and cache dependencies
      - restore_cache:
          keys:
            - v1-dependencies-{{ checksum "requirements.txt" }}
            # fallback to using the latest cache if no exact match is found
            - v1-dependencies-

      - run:
          name: install dlib
          command: |
            sudo apt-get update
            sudo apt-get install build-essential cmake pkg-config
            sudo apt-get install libatlas-base-dev
            sudo apt-get install libgtk-3-dev libboost-python-dev
            sudo apt-get install libopenblas-dev liblapack-dev
            sudo apt-get install libboost-all-dev
            sudo apt-get install libx11-dev libgtk-3-dev
            sudo apt-get install python python-dev python-pip
            sudo apt-get install python3 python3-dev python3-pip

      - run:
          name: install dependencies
          command: |
            python3 -m venv venv
            . venv/bin/activate
            pip install -r requirements.txt

      - save_cache:
          paths:
            - ./venv
          key: v1-dependencies-{{ checksum "requirements.txt" }}

```

`requirements.txt` has `dlib` inside. However, when I push this to GitHub to run the CI, I get the following error:

```auto
Command "/home/circleci/repo/venv/bin/python3 -u -c "import setuptools, tokenize; __file__ ='/tmp/pip-build-v87eln0u/dlib/setup.py';f=getattr(tokenize, 'open', open)( __file__ );code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__ , 'exec'))" install --record /tmp/pip-gpf75fsu-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/circleci/repo/venv/include/site/python3.6/dlib" failed with error code 1 in /tmp/pip-build-v87eln0u/dlib/

```

I have a python project that requires `dlib` . I am trying to setup CircleCI and wrote my `config.yml` as follows:

```auto
# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
  build:
    docker:
      # specify the version you desire here
      # use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
      - image: circleci/python:3.6.1

      # Specify service dependencies here if necessary
      # CircleCI maintains a library of pre-built images
      # documented at https://circleci.com/docs/2.0/circleci-images/
      # - image: circleci/postgres:9.4

    working_directory: ~/repo

    steps:
      - checkout

      # Download and cache dependencies
      - restore_cache:
          keys:
            - v1-dependencies-{{ checksum "requirements.txt" }}
            # fallback to using the latest cache if no exact match is found
            - v1-dependencies-

      - run:
          name: install dlib
          command: |
            sudo apt-get update
            sudo apt-get install build-essential cmake pkg-config
            sudo apt-get install libatlas-base-dev
            sudo apt-get install libgtk-3-dev libboost-python-dev
            sudo apt-get install libopenblas-dev liblapack-dev
            sudo apt-get install libboost-all-dev
            sudo apt-get install libx11-dev libgtk-3-dev
            sudo apt-get install python3 python3-dev python3-pip

      - run:
          name: install dependencies
          command: |
            python3 -m venv venv
            . venv/bin/activate
            pip install -r requirements.txt

      - save_cache:
          paths:
            - ./venv
          key: v1-dependencies-{{ checksum "requirements.txt" }}

```

`requirements.txt` has `dlib` inside. However, when I push this to GitHub to run the CI, I get the following error:

```auto
Command "/home/circleci/repo/venv/bin/python3 -u -c "import setuptools, tokenize; __file__ ='/tmp/pip-build-v87eln0u/dlib/setup.py';f=getattr(tokenize, 'open', open)( __file__ );code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__ , 'exec'))" install --record /tmp/pip-gpf75fsu-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/circleci/repo/venv/include/site/python3.6/dlib" failed with error code 1 in /tmp/pip-build-v87eln0u/dlib/

```

Here’s the traceback:

```auto
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-v87eln0u/dlib/setup.py", line 261, in <module>
        'Topic :: Software Development',
      File "/home/circleci/repo/venv/lib/python3.6/site-packages/setuptools/ __init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/lib/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/lib/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/home/circleci/repo/venv/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/local/lib/python3.6/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/local/lib/python3.6/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/tmp/pip-build-v87eln0u/dlib/setup.py", line 135, in run
        self.build_extension(ext)
      File "/tmp/pip-build-v87eln0u/dlib/setup.py", line 175, in build_extension
        subprocess.check_call(cmake_build, cwd=build_folder)
      File "/usr/local/lib/python3.6/subprocess.py", line 291, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j34']' returned non-zero exit status 2.

```

It seems like I’m not setting the linux environment right in order for `dlib` to be installed successfully. What am I missing here? How can I run CircleCI with `dlib` properly configured on python?

It seems like the `CMake` version that’s being installed is `3.0.2`.

There’s a related question here, which was not answered.

> [@CircleCI build failing - dlib](https://discuss.circleci.com/t/circleci-build-failing-dlib/22614/3):
>
> @Meemaw Were you able to get through this? I’m having the same issue. Thanks

---

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [September 22, 2019, 1:55pm UTC](https://discuss.circleci.com/t/pip-install-dlib-fails/32556/3 "2019-09-22T13:55:03Z")

</div>

I’m struggling to see an actual error in that stack trace. Is there any more information available?

---

<div class="post-metadata">

**Author:** ![alpaca](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@alpaca](https://discuss.circleci.com/u/alpaca)\
**Post date:** [September 22, 2019, 4:49pm UTC](https://discuss.circleci.com/t/pip-install-dlib-fails/32556/4 "2019-09-22T16:49:30Z")

</div>

Here’s the full error after dlib is downloaded up to 58%. Hope this helps.

```auto
    Building CXX object dlib_build/CMakeFiles/dlib.dir/cuda/tensor_tools.cpp.o
    Building CXX object dlib_build/CMakeFiles/dlib.dir/cuda/cpu_dlib.cpp.o
    [57%] [57%] [58%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/widgets.cpp.o
    Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/drawable.cpp.o
    Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.cpp.o
    c++: internal compiler error: Killed (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
    dlib_build/CMakeFiles/dlib.dir/build.make:376: recipe for target 'dlib_build/CMakeFiles/dlib.dir/filtering/kalman_filter.cpp.o' failed
    make[2]: *** [dlib_build/CMakeFiles/dlib.dir/filtering/kalman_filter.cpp.o] Error 4
    make[2]: *** Waiting for unfinished jobs....
    c++: internal compiler error: Killed (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
    dlib_build/CMakeFiles/dlib.dir/build.make:859: recipe for target 'dlib_build/CMakeFiles/dlib.dir/threads/multithreaded_object_extension.cpp.o' failed
    make[2]: *** [dlib_build/CMakeFiles/dlib.dir/threads/multithreaded_object_extension.cpp.o] Error 4
    c++: internal compiler error: Killed (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
    dlib_build/CMakeFiles/dlib.dir/build.make:652: recipe for target 'dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.cpp.o' failed
    make[2]: *** [dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.cpp.o] Error 4
    c++: internal compiler error: Killed (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
    dlib_build/CMakeFiles/dlib.dir/build.make:836: recipe for target 'dlib_build/CMakeFiles/dlib.dir/server/server_http.cpp.o' failed
    make[2]: *** [dlib_build/CMakeFiles/dlib.dir/server/server_http.cpp.o] Error 4
    c++: internal compiler error: Killed (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
    dlib_build/CMakeFiles/dlib.dir/build.make:583: recipe for target 'dlib_build/CMakeFiles/dlib.dir/logger/extra_logger_headers.cpp.o' failed
    make[2]: *** [dlib_build/CMakeFiles/dlib.dir/logger/extra_logger_headers.cpp.o] Error 4
    c++: internal compiler error: Killed (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
    dlib_build/CMakeFiles/dlib.dir/build.make:813: recipe for target 'dlib_build/CMakeFiles/dlib.dir/server/server_iostream.cpp.o' failed
    make[2]: *** [dlib_build/CMakeFiles/dlib.dir/server/server_iostream.cpp.o] Error 4
    CMakeFiles/Makefile2:125: recipe for target 'dlib_build/CMakeFiles/dlib.dir/all' failed
    make[1]: *** [dlib_build/CMakeFiles/dlib.dir/all] Error 2
    Makefile:76: recipe for target 'all' failed
    make: *** [all] Error 2
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-gr52giy4/dlib/setup.py", line 261, in <module>
        'Topic :: Software Development',
      File "/usr/local/lib/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/lib/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/home/circleci/repo/venv/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/local/lib/python3.6/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/local/lib/python3.6/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/tmp/pip-build-gr52giy4/dlib/setup.py", line 135, in run
        self.build_extension(ext)
      File "/tmp/pip-build-gr52giy4/dlib/setup.py", line 175, in build_extension
        subprocess.check_call(cmake_build, cwd=build_folder)
      File "/usr/local/lib/python3.6/subprocess.py", line 291, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j34']' returned non-zero exit status 2.
    
    ----------------------------------------
Command "/home/circleci/repo/venv/bin/python3 -u -c "import setuptools, tokenize; __file__ ='/tmp/pip-build-gr52giy4/dlib/setup.py';f=getattr(tokenize, 'open', open)( __file__ );code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__ , 'exec'))" install --record /tmp/pip-kqvjg682-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/circleci/repo/venv/include/site/python3.6/dlib" failed with error code 1 in /tmp/pip-build-gr52giy4/dlib/
You are using pip version 9.0.1, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Exited with code 1

```

---

<div class="post-metadata">

**Author:** ![halfer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/halfer/32/9083_2.png) [@halfer](https://discuss.circleci.com/u/halfer)\
**Post date:** [September 22, 2019, 5:03pm UTC](https://discuss.circleci.com/t/pip-install-dlib-fails/32556/5 "2019-09-22T17:03:54Z")

</div>

> [@alpaca](#):
>
> c++: internal compiler error: Killed (program cc1plus)

This isn’t particularly illuminating, but as far as I can see, the most interesting information here is this compiler failure. I would recommend a web search (on Stack Overflow etc) to see what the issue could be. Don’t treat this as a “CircleCI problem” - that is almost certainly a false lead. You have a program that won’t compile on a remote VPS, and you need to find out why.

If you are particularly stuck, you could try Dockerising this, so that when it compiles on your machine, it will also compile on the remote. However, it may be quicker to fix what you have.

---

<div class="post-metadata">

**Author:** ![chrismo](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/chrismo/32/8051_2.png) [@chrismo](https://discuss.circleci.com/u/chrismo)\
**Post date:** [February 2, 2022, 11:04pm UTC](https://discuss.circleci.com/t/pip-install-dlib-fails/32556/6 "2022-02-02T23:04:49Z")

</div>

Leaving this behind as none of hits I Googled for this problem had this as an answer.

You probably need more memory. Even the xlarge size currently isn’t enough in our case.

> <https://github.com/davisking/dlib/issues/2261#issuecomment-744115606>
>
> \## Expected Behavior
> 
> dlib should install as expected.
> 
> \## Current Behavior
> …
> \`\`\`
> Running setup.py install for dlib: started
> Running setup.py install for dlib: still running...
> Running setup.py install for dlib: still running...
> Running setup.py install for dlib: still running...
> Running setup.py install for dlib: still running...
> Running setup.py install for dlib: still running...
> Running setup.py install for dlib: still running...
> Running setup.py install for dlib: still running...
> Running setup.py install for dlib: still running...
> Running setup.py install for dlib: finished with status 'error'
> ERROR: Command errored out with exit status 1:
> command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv\[0\] = '"'"'/tmp/pip-install-bk55ntvv/dlib/setup.py'"'"'; \_\_file\_\_='"'"'/tmp/pip-install-bk55ntvv/dlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(\_\_file\_\_);code=f.read().replace('"'"'\\r\\n'"'"', '"'"'\\n'"'"');f.close();exec(compile(code, \_\_file\_\_, '"'"'exec'"'"'))' install --record /tmp/pip-record-itimev9e/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/dlib
> cwd: /tmp/pip-install-bk55ntvv/dlib/
> Complete output (8712 lines):
> running install
> running build
> running build\_py
> package init file 'tools/python/dlib/\_\_init\_\_.py' not found (or not a regular file)
> running build\_ext
> Building extension for Python 3.8.2 (default, Apr 23 2020, 14:32:57)
> Invoking CMake setup: 'cmake /tmp/pip-install-bk55ntvv/dlib/tools/python -DCMAKE\_LIBRARY\_OUTPUT\_DIRECTORY=/tmp/pip-install-bk55ntvv/dlib/build/lib.linux-x86\_64-3.8 -DPYTHON\_EXECUTABLE=/usr/local/bin/python -DCMAKE\_BUILD\_TYPE=Release'
> -- The C compiler identification is GNU 8.3.0
> -- The CXX compiler identification is GNU 8.3.0
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Found PythonInterp: /usr/local/bin/python (found version "3.8.2")
> -- Found PythonLibs: /usr/local/lib/libpython3.8.so
> -- Performing Test HAS\_CPP14\_FLAG
> -- Performing Test HAS\_CPP14\_FLAG - Success
> -- pybind11 v2.2.2
> -- Using CMake version: 3.13.4
> -- Compiling dlib version: 19.21.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
> -- Looking for pthread\_create
> -- Looking for pthread\_create - not found
> -- 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
> \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> \*\*\* DLIB GUI SUPPORT DISABLED BECAUSE X11 DEVELOPMENT LIBRARIES NOT FOUND \*\*\*
> \*\*\* Make sure libx11-dev is installed if you want GUI support. \*\*\*
> \*\*\* On Ubuntu run: sudo apt-get install libx11-dev \*\*\*
> \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> -- Searching for BLAS and LAPACK
> -- Searching for BLAS and LAPACK
> -- Could NOT find PkgConfig (missing: PKG\_CONFIG\_EXECUTABLE)
> -- Looking for sys/types.h
> -- Looking for sys/types.h - found
> -- Looking for stdint.h
> -- Looking for stdint.h - found
> -- Looking for stddef.h
> -- Looking for stddef.h - found
> -- Check size of void\*
> -- Check size of void\* - done
> \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> \*\*\* No BLAS library found so using dlib's built in BLAS. However, if you \*\*\*
> \*\*\* install an optimized BLAS such as OpenBLAS or the Intel MKL your code \*\*\*
> \*\*\* will run faster. On Ubuntu you can install OpenBLAS by executing: \*\*\*
> \*\*\* sudo apt-get install libopenblas-dev liblapack-dev \*\*\*
> \*\*\* Or you can easily install OpenBLAS from source by downloading the \*\*\*
> \*\*\* source tar file from http://www.openblas.net, extracting it, and \*\*\*
> \*\*\* running: \*\*\*
> \*\*\* make; sudo make install \*\*\*
> \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> CUDA\_TOOLKIT\_ROOT\_DIR not found or specified
> -- Could NOT find CUDA (missing: CUDA\_TOOLKIT\_ROOT\_DIR CUDA\_NVCC\_EXECUTABLE CUDA\_INCLUDE\_DIRS CUDA\_CUDART\_LIBRARY) (Required is at least version "7.5")
> -- DID NOT FIND CUDA
> -- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA
> -- C++11 activated.
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /tmp/pip-install-bk55ntvv/dlib/build/temp.linux-x86\_64-3.8
> Invoking CMake build: 'cmake --build . --config Release -- -j1'
> 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
> \[2%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/bigint/bigint\_kernel\_2.cpp.o
> \[3%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/bit\_stream/bit\_stream\_kernel\_1.cpp.o
> \[4%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/entropy\_decoder/entropy\_decoder\_kernel\_1.cpp.o
> \[4%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/entropy\_decoder/entropy\_decoder\_kernel\_2.cpp.o
> \[5%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/entropy\_encoder/entropy\_encoder\_kernel\_1.cpp.o
> \[6%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/entropy\_encoder/entropy\_encoder\_kernel\_2.cpp.o
> \[6%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/md5/md5\_kernel\_1.cpp.o
> \[7%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/tokenizer/tokenizer\_kernel\_1.cpp.o
> \[8%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/unicode/unicode.cpp.o
> \[8%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/test\_for\_odr\_violations.cpp.o
> \[9%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/sockets/sockets\_kernel\_1.cpp.o
> \[10%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/bsp/bsp.cpp.o
> \[10%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/dir\_nav/dir\_nav\_kernel\_1.cpp.o
> \[11%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/dir\_nav/dir\_nav\_kernel\_2.cpp.o
> \[12%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/dir\_nav/dir\_nav\_extensions.cpp.o
> \[12%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/linker/linker\_kernel\_1.cpp.o
> \[13%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/logger/extra\_logger\_headers.cpp.o
> \[14%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/logger/logger\_kernel\_1.cpp.o
> \[14%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/logger/logger\_config\_file.cpp.o
> \[15%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/misc\_api/misc\_api\_kernel\_1.cpp.o
> \[16%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/misc\_api/misc\_api\_kernel\_2.cpp.o
> \[16%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/sockets/sockets\_extensions.cpp.o
> \[17%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/sockets/sockets\_kernel\_2.cpp.o
> \[17%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.cpp.o
> \[18%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf\_unbuffered.cpp.o
> \[19%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/server/server\_kernel.cpp.o
> \[19%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/server/server\_iostream.cpp.o
> \[20%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/server/server\_http.cpp.o
> \[21%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/threads/multithreaded\_object\_extension.cpp.o
> \[21%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/threads/threaded\_object\_extension.cpp.o
> \[22%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/threads/threads\_kernel\_1.cpp.o
> \[23%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/threads/threads\_kernel\_2.cpp.o
> \[23%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/threads/threads\_kernel\_shared.cpp.o
> \[24%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/threads/thread\_pool\_extension.cpp.o
> \[25%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/threads/async.cpp.o
> \[25%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/timer/timer.cpp.o
> \[26%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/stack\_trace.cpp.o
> \[27%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/cuda/cpu\_dlib.cpp.o
> \[27%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/cuda/tensor\_tools.cpp.o
> \[28%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/data\_io/image\_dataset\_metadata.cpp.o
> \[29%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/data\_io/mnist.cpp.o
> \[29%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/global\_optimization/global\_function\_search.cpp.o
> \[30%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/filtering/kalman\_filter.cpp.o
> In file included from /tmp/pip-install-bk55ntvv/dlib/dlib/filtering/../matrix.h:11,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/filtering/kalman\_filter.h:7,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/filtering/kalman\_filter.cpp:6:
> /tmp/pip-install-bk55ntvv/dlib/dlib/filtering/../matrix/matrix\_la.h: In function ‘long int dlib::svd4(dlib::svd\_u\_mode, bool, const dlib::matrix\_exp\<EXP\>&, dlib::matrix\<typename EXP::type, uM, uN, MM1, L1\>&, dlib::matrix\<typename EXP::type, qN, qX, MM2, L1\>&, dlib::matrix\<typename EXP::type, vM, vN, MM3, L1\>&) \[with EXP = dlib::matrix\_op\<dlib::op\_trans\<dlib::matrix\_op\<dlib::op\_trans\<dlib::matrix\<double, 1, 2, dlib::memory\_manager\_stateless\_kernel\_1\<char\>, dlib::row\_major\_layout\> \> \> \> \>; long int qN = 1; long int qX = 1; long int uM = 1; long int uN = 1; long int vM = 2; long int vN = 1; MM1 = dlib::memory\_manager\_stateless\_kernel\_1\<char\>; MM2 = dlib::memory\_manager\_stateless\_kernel\_1\<char\>; MM3 = dlib::memory\_manager\_stateless\_kernel\_1\<char\>; L1 = dlib::row\_major\_layout\]’:
> /tmp/pip-install-bk55ntvv/dlib/dlib/filtering/../matrix/matrix\_la.h:225:32: warning: iteration 1 invokes undefined behavior \[-Waggressive-loop-optimizations\]
> y = abs(q(i)) + abs(e(i));
> ~~~^~~~~~
> /tmp/pip-install-bk55ntvv/dlib/dlib/filtering/../matrix/matrix\_la.h:163:20: note: within this loop
> for (i=0; i\<n; i++)
> ~^~
> \[31%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/svm/auto.cpp.o
> \[31%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/arm/arm\_init.c.o
> \[32%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/arm/filter\_neon\_intrinsics.c.o
> \[33%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/png.c.o
> \[33%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/pngerror.c.o
> \[34%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/pngget.c.o
> \[34%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/pngmem.c.o
> \[35%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/pngpread.c.o
> \[36%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/pngread.c.o
> \[36%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/pngrio.c.o
> \[37%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/pngrtran.c.o
> \[38%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/pngrutil.c.o
> \[38%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/pngset.c.o
> \[39%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/pngtrans.c.o
> \[40%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/pngwio.c.o
> \[40%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/pngwrite.c.o
> \[41%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/pngwtran.c.o
> \[42%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libpng/pngwutil.c.o
> \[42%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/zlib/adler32.c.o
> \[43%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/zlib/compress.c.o
> \[44%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/zlib/crc32.c.o
> \[44%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/zlib/deflate.c.o
> \[45%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/zlib/gzclose.c.o
> \[46%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/zlib/gzlib.c.o
> \[46%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/zlib/gzread.c.o
> \[47%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/zlib/gzwrite.c.o
> \[48%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/zlib/infback.c.o
> \[48%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/zlib/inffast.c.o
> \[49%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/zlib/inflate.c.o
> \[50%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/zlib/inftrees.c.o
> \[50%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/zlib/trees.c.o
> \[51%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/zlib/uncompr.c.o
> \[51%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/zlib/zutil.c.o
> \[52%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/image\_loader/png\_loader.cpp.o
> \[53%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/image\_saver/save\_png.cpp.o
> \[53%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jaricom.c.o
> \[54%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jcapimin.c.o
> \[55%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jcapistd.c.o
> \[55%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jcarith.c.o
> \[56%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jccoefct.c.o
> \[57%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jccolor.c.o
> \[57%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jcdctmgr.c.o
> \[58%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jchuff.c.o
> \[59%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jcinit.c.o
> \[59%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jcmainct.c.o
> \[60%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jcmarker.c.o
> \[61%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jcmaster.c.o
> \[61%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jcomapi.c.o
> \[62%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jcparam.c.o
> \[63%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jcprepct.c.o
> \[63%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jcsample.c.o
> \[64%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jdapimin.c.o
> \[65%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jdapistd.c.o
> \[65%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jdarith.c.o
> \[66%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jdatadst.c.o
> \[67%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jdatasrc.c.o
> \[67%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jdcoefct.c.o
> \[68%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jdcolor.c.o
> \[68%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jddctmgr.c.o
> \[69%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jdhuff.c.o
> \[70%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jdinput.c.o
> \[70%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jdmainct.c.o
> \[71%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jdmarker.c.o
> \[72%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jdmaster.c.o
> \[72%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jdmerge.c.o
> \[73%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jdpostct.c.o
> \[74%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jdsample.c.o
> \[74%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jerror.c.o
> \[75%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jfdctflt.c.o
> \[76%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jfdctfst.c.o
> \[76%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jfdctint.c.o
> \[77%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jidctflt.c.o
> \[78%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jidctfst.c.o
> \[78%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jidctint.c.o
> \[79%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jmemmgr.c.o
> \[80%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jmemnobs.c.o
> \[80%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jquant1.c.o
> \[81%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jquant2.c.o
> \[82%\] Building C object dlib\_build/CMakeFiles/dlib.dir/external/libjpeg/jutils.c.o
> \[82%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/image\_loader/jpeg\_loader.cpp.o
> \[83%\] Building CXX object dlib\_build/CMakeFiles/dlib.dir/image\_saver/save\_jpeg.cpp.o
> \[84%\] Linking CXX static library libdlib.a
> \[84%\] Built target dlib
> Scanning dependencies of target \_dlib\_pybind11
> \[84%\] Building CXX object CMakeFiles/\_dlib\_pybind11.dir/src/dlib.cpp.o
> In file included from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/cast.h:16,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/../dlib/python/pybind\_utils.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/../dlib/python.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/tools/python/src/opaque\_types.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/tools/python/src/dlib.cpp:4:
> /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread\_create\_key()’ is deprecated \[-Wdeprecated-declarations\]
> decltype(PyThread\_create\_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
> ^
> In file included from /usr/local/include/python3.8/pystate.h:10,
> from /usr/local/include/python3.8/genobject.h:11,
> from /usr/local/include/python3.8/Python.h:121,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/../dlib/python/pybind\_utils.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/../dlib/python.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/tools/python/src/opaque\_types.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/tools/python/src/dlib.cpp:4:
> /usr/local/include/python3.8/pythread.h:100:36: note: declared here
> Py\_DEPRECATED(3.7) PyAPI\_FUNC(int) PyThread\_create\_key(void);
> ^ ~~~~~~~~~~~~~~~~~~
> In file included from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/cast.h:16,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/../dlib/python/pybind\_utils.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/../dlib/python.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/tools/python/src/opaque\_types.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/tools/python/src/dlib.cpp:4:
> /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread\_create\_key()’ is deprecated \[-Wdeprecated-declarations\]
> decltype(PyThread\_create\_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
> ^
> In file included from /usr/local/include/python3.8/pystate.h:10,
> from /usr/local/include/python3.8/genobject.h:11,
> from /usr/local/include/python3.8/Python.h:121,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/../dlib/python/pybind\_utils.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/../dlib/python.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/tools/python/src/opaque\_types.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/tools/python/src/dlib.cpp:4:
> /usr/local/include/python3.8/pythread.h:100:36: note: declared here
> Py\_DEPRECATED(3.7) PyAPI\_FUNC(int) PyThread\_create\_key(void);
> ^ ~~~~~~~~~~~~~~~~~~
> In file included from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/cast.h:16,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/../dlib/python/pybind\_utils.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/../dlib/python.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/tools/python/src/opaque\_types.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/tools/python/src/dlib.cpp:4:
> /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread\_create\_key()’ is deprecated \[-Wdeprecated-declarations\]
> decltype(PyThread\_create\_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
> ^
> In file included from /usr/local/include/python3.8/pystate.h:10,
> from /usr/local/include/python3.8/genobject.h:11,
> from /usr/local/include/python3.8/Python.h:121,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/../dlib/python/pybind\_utils.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/../dlib/python.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/tools/python/src/opaque\_types.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/tools/python/src/dlib.cpp:4:
> /usr/local/include/python3.8/pythread.h:100:36: note: declared here
> Py\_DEPRECATED(3.7) PyAPI\_FUNC(int) PyThread\_create\_key(void);
> ^ ~~~~~~~~~~~~~~~~~~
> In file included from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/cast.h:16,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/../dlib/python/pybind\_utils.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/../dlib/python.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/tools/python/src/opaque\_types.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/tools/python/src/dlib.cpp:4:
> /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/detail/internals.h:82:34: warning: ‘int PyThread\_create\_key()’ is deprecated \[-Wdeprecated-declarations\]
> decltype(PyThread\_create\_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x
> ^
> In file included from /usr/local/include/python3.8/pystate.h:10,
> from /usr/local/include/python3.8/genobject.h:11,
> from /usr/local/include/python3.8/Python.h:121,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/pytypes.h:12,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/cast.h:13,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/attr.h:13,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/external/pybind11/include/pybind11/pybind11.h:43,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/../dlib/python/pybind\_utils.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/dlib/../dlib/python.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/tools/python/src/opaque\_types.h:6,
> from /tmp/pip-install-bk55ntvv/dlib/tools/python/src/dlib.cpp:4:
> /usr/local/include/python3.8/pythread.h:100:36: note: declared here
> Py\_DEPRECATED(3.7) PyAPI\_FUNC(int) PyThread\_create\_key(void);
> ...
> output is now repetitive so I'm trimming it here
> ...
> 
> File "/usr/local/lib/python3.8/subprocess.py", line 364, in check\_call
> raise CalledProcessError(retcode, cmd)
> subprocess.CalledProcessError: Command '\['cmake', '--build', '.', '--config', 'Release', '--', '-j1'\]' returned non-zero exit status 2.
> ----------------------------------------
> ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv\[0\] = '"'"'/tmp/pip-install-bk55ntvv/dlib/setup.py'"'"'; \_\_file\_\_='"'"'/tmp/pip-install-bk55ntvv/dlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(\_\_file\_\_);code=f.read().replace('"'"'\\r\\n'"'"', '"'"'\\n'"'"');f.close();exec(compile(code, \_\_file\_\_, '"'"'exec'"'"'))' install --record /tmp/pip-record-itimev9e/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/dlib Check the logs for full command output.
> WARNING: You are using pip version 20.1; however, version 20.3.1 is available.
> You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
> ERROR: Service 'users' failed to build : The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero co
> de: 1
> 
> \`\`\`
> 
> 
> \## Steps to Reproduce
> 
> 1) Create EC2 instance running Ubuntu 20.04 64bit (instance type \`t2.small\` with 2GB of RAM)
> 2) Install Docker
> 3) Dockerfile:
> \`\`\`
> from python:3.8.2-slim
> 
> RUN apt-get update && \\
> apt-get install -y netcat build-essential cmake xclip tesseract-ocr libtesseract-dev && \\
> apt-get clean
> 
> WORKDIR /usr/src/app
> COPY ./requirements.txt /usr/src/app/requirements.txt
> RUN pip install -r requirements.txt
> 
> COPY ./entrypoint-prod.sh /usr/src/app/entrypoint-prod.sh
> RUN chmod +x /usr/src/app/entrypoint-prod.sh
> 
> COPY . /usr/src/app
> 
> CMD \["/usr/src/app/entrypoint-prod.sh"\]
> \`\`\`
> 4) include \`dlib==19.21.0\` into \`requirements.txt\` file
> 5) build the image and deploy onto EC2
> 
> 
> \* \*\*Version\*\*: 19.21.0
> \* \*\*Where did you get dlib\*\*: pip
> \* \*\*Platform\*\*: Ubuntu 20.04 64bit within Docker container (EC2 instance)
> \* \*\*Compiler\*\*: The C compiler identification is GNU 8.3.0 (from the error output)
