A realocação R_X86_64_32S contra '_Py_NotImplementedStruct' não pode ser usada ao criar um objeto compartilhado; recompilar com -fPIC

Estou tentando instalar odlib Biblioteca Python. Em alguns sistemas (macOS, estoque Ubuntu 14.04)pip install dlib funciona bem, mas no Ubuntu 14.x que faz parte do nosso ambiente CircleCI, ele falha com o seguinte erro.

Linking CXX shared library dlib.so
   /usr/bin/ld: /opt/circleci/python/2.7.11/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32S against '_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
   error: cmake build failed!

O que pode estar errado?

questionAnswers(3)

yourAnswerToTheQuestion