Problems installing nmslib on MaOS 10.10.5 (yosemite)

Any ideas?

  ./nmslib/similarity_search/include/utils.h:100:10: error: thread-local storage is not supported for the current target
      static thread_local RandomGeneratorType  randomGen(defaultRandomSeed);
             ^
    ./nmslib/similarity_search/include/utils.h:113:12: error: thread-local storage is not supported for the current target
        static thread_local std::uniform_int_distribution<int32_t> distr(0, std::numeric_limits<int32_t>::max());
               ^
    ./nmslib/similarity_search/include/utils.h:127:12: error: thread-local storage is not supported for the current target
        static thread_local std::uniform_real_distribution<T> distr(0, 1);
               ^
    3 errors generated.
    error: command 'gcc' failed with exit status 1

It may be time to simply upgrade to the latest OS, but wanted to check to see if any other options.

SOLVED:

  1. Update XCode to the latest version
  2. Update Anaconda
conda update conda
conda update anaconda
  1. Remove and rebuild the Anaconda environment:
rm -rf /your/path/to/your/custom/env
conda env update [-f environment-cpu.yml]
2 Likes