Closed 183amir closed 5 years ago
You have to use a compiler that isn't broken. Anaconda has a bad habit of packaging open source software into their distribution and breaking it. Looks like they broke clang. You should use clang from an official source.
To make sure the binaries are ABI compatible within my environment, I have to use these compilers. I have found this thread to be relevant: https://cmake.org/pipermail/cmake/2016-December/064733.html looks like the problem arises with using old policies in cmake.
I am trying to compile dlib in conda against anaconda compilers and it fails to build. The build in cmake with:
-- Configuring incomplete, errors occurred!
within this log:I am able to compile dlib 19.7 using the same compilers but I have tested 19.8, 19.10, and 19.16 and they all fail with the same error. Looks like the error is happening in
dlib/cmake_utils/use_cpp_11.cmake
and there are 3 commits changing that file since 19.7: https://github.com/davisking/dlib/commit/3b2d73db68d33b8d61f4b7906cfb52d90e353496#diff-d593bfc2d0dd0b78325fba99f82951fa https://github.com/davisking/dlib/commit/f18f753c0435b8c3f09b0e639ee8e015c7771c54#diff-d593bfc2d0dd0b78325fba99f82951fa and https://github.com/davisking/dlib/commit/e26e09d3fa105ab438e7f4847e1f4111cd65fe7d#diff-d593bfc2d0dd0b78325fba99f82951faHere is also the CMakeOutput.log file. The full build log is here: https://gitlab.idiap.ch/bob/bob.conda/-/jobs/151058
Unfortunately, my knowledge of CMake is very limited so any help is appreciated.
To reproduce this issue using conda you can run the following steps: Install miniconda on a Mac machine: https://conda.io/miniconda.html
Then: