facebookresearch / fastText

Library for fast text representation and classification.
https://fasttext.cc/
MIT License
25.73k stars 4.7k forks source link

Error while installing fastText on linux (Manjaro/Arch) with python 3 #766

Open damnko opened 5 years ago

damnko commented 5 years ago

Hi, I'm trying to install fastText on Manjaro linux (based on Arch). I don't think the issue is related with #670.

The requirements should be satisfied since I have: gcc

$ pacman -Ss gcc
core/gcc 8.2.1+20181127-1 (base-devel) [installed]
    The GNU Compiler Collection - C and C++ frontends

pybind11

$ pip install pybind11
Requirement already satisfied: pybind11 in /home/ya/anaconda3/envs/deep_finder_env/lib/python3.5/site-packages (2.2.4)

And when running

$ git clone https://github.com/facebookresearch/fastText.git
$ cd fastText
$ pip install .

I get the following error

Processing /home/ya/fastText
Requirement already satisfied: pybind11>=2.2 in /home/ya/anaconda3/envs/deep_finder_env/lib/python3.5/site-packages (from fasttext==0.8.22) (2.2.4)
Requirement already satisfied: setuptools>=0.7.0 in /home/ya/anaconda3/envs/deep_finder_env/lib/python3.5/site-packages (from fasttext==0.8.22) (40.2.0)
Requirement already satisfied: numpy in /home/ya/anaconda3/envs/deep_finder_env/lib/python3.5/site-packages (from fasttext==0.8.22) (1.16.2)
Building wheels for collected packages: fasttext
  Building wheel for fasttext (setup.py) ... error
  Complete output from command /home/ya/anaconda3/envs/deep_finder_env/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-1bq2di4k/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-znh4cx5w --python-tag cp35:
  running bdist_wheel
  running build
  running build_py
  running build_ext
  gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c /tmp/tmpfdsll7v7.cpp -o tmp/tmpfdsll7v7.o -std=c++14
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c /tmp/tmpnhtqp3nt.cpp -o tmp/tmpnhtqp3nt.o -fvisibility=hidden
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  building 'fasttext_pybind' extension
  gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c python/fastText/pybind/fasttext_pybind.cc -o build/temp.linux-x86_64-3.5/python/fastText/pybind/fasttext_pybind.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  python/fastText/pybind/fasttext_pybind.cc: In lambda function:
  python/fastText/pybind/fasttext_pybind.cc:219:35: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<long int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
               for (int32_t i = 0; i < vocab_freq.size(); i++) {
                                   ~~^~~~~~~~~~~~~~~~~~~
  python/fastText/pybind/fasttext_pybind.cc: In lambda function:
  python/fastText/pybind/fasttext_pybind.cc:233:35: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<long int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
               for (int32_t i = 0; i < labels_freq.size(); i++) {
                                   ~~^~~~~~~~~~~~~~~~~~~~
  gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/main.cc -o build/temp.linux-x86_64-3.5/src/main.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/meter.cc -o build/temp.linux-x86_64-3.5/src/meter.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/utils.cc -o build/temp.linux-x86_64-3.5/src/utils.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/model.cc -o build/temp.linux-x86_64-3.5/src/model.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/fasttext.cc -o build/temp.linux-x86_64-3.5/src/fasttext.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  src/fasttext.cc: In member function ‘void fasttext::FastText::getWordVector(fasttext::Vector&, const string&) const’:
  src/fasttext.cc:92:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
     for (int i = 0; i < ngrams.size(); i++) {
                     ~~^~~~~~~~~~~~~~~
  src/fasttext.cc: In lambda function:
  src/fasttext.cc:302:18: warning: comparison of integer expressions of different signedness: ‘const int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
       return eosid == i1 || (eosid != i2 && norms[i1] > norms[i2]);
              ~~~~~~^~~~~
  src/fasttext.cc:302:34: warning: comparison of integer expressions of different signedness: ‘const int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
       return eosid == i1 || (eosid != i2 && norms[i1] > norms[i2]);
                              ~~~~~~^~~~~
  src/fasttext.cc: In member function ‘void fasttext::FastText::quantize(const fasttext::Args&)’:
  src/fasttext.cc:322:40: warning: comparison of integer expressions of different signedness: ‘const size_t’ {aka ‘const long unsigned int’} and ‘int64_t’ {aka ‘long int’} [-Wsign-compare]
     if (qargs.cutoff > 0 && qargs.cutoff < input->size(0)) {
                             ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
  src/fasttext.cc:323:45: warning: ‘std::vector<int> fasttext::FastText::selectEmbeddings(int32_t) const’ is deprecated: selectEmbeddings is being deprecated. [-Wdeprecated-declarations]
       auto idx = selectEmbeddings(qargs.cutoff);
                                               ^
  src/fasttext.cc:293:22: note: declared here
   std::vector<int32_t> FastText::selectEmbeddings(int32_t cutoff) const {
                        ^~~~~~~~
  src/fasttext.cc:327:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
       for (auto i = 0; i < idx.size(); i++) {
                        ~~^~~~~~~~~~~~
  src/fasttext.cc: In member function ‘void fasttext::FastText::cbow(fasttext::Model::State&, fasttext::real, const std::vector<int>&)’:
  src/fasttext.cc:380:25: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
     for (int32_t w = 0; w < line.size(); w++) {
                         ~~^~~~~~~~~~~~~
  src/fasttext.cc:384:41: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
         if (c != 0 && w + c >= 0 && w + c < line.size()) {
                                     ~~~~~~^~~~~~~~~~~~~
  src/fasttext.cc: In member function ‘void fasttext::FastText::skipgram(fasttext::Model::State&, fasttext::real, const std::vector<int>&)’:
  src/fasttext.cc:398:25: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
     for (int32_t w = 0; w < line.size(); w++) {
                         ~~^~~~~~~~~~~~~
  src/fasttext.cc:402:41: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
         if (c != 0 && w + c >= 0 && w + c < line.size()) {
                                     ~~~~~~^~~~~~~~~~~~~
  src/fasttext.cc: In member function ‘void fasttext::FastText::getSentenceVector(std::istream&, fasttext::Vector&)’:
  src/fasttext.cc:479:27: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
       for (int32_t i = 0; i < line.size(); i++) {
                           ~~^~~~~~~~~~~~~
  src/fasttext.cc: In member function ‘std::vector<std::pair<std::__cxx11::basic_string<char>, fasttext::Vector> > fasttext::FastText::getNgramVectors(const string&) const’:
  src/fasttext.cc:514:25: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
     for (int32_t i = 0; i < ngrams.size(); i++) {
                         ~~^~~~~~~~~~~~~~~
  src/fasttext.cc: In member function ‘void fasttext::FastText::lazyComputeWordVectors()’:
  src/fasttext.cc:551:40: warning: ‘void fasttext::FastText::precomputeWordVectors(fasttext::DenseMatrix&)’ is deprecated: precomputeWordVectors is being deprecated. [-Wdeprecated-declarations]
       precomputeWordVectors(*wordVectors_);
                                          ^
  src/fasttext.cc:534:6: note: declared here
   void FastText::precomputeWordVectors(DenseMatrix& wordVectors) {
        ^~~~~~~~
  src/fasttext.cc: In member function ‘std::vector<std::pair<float, std::__cxx11::basic_string<char> > > fasttext::FastText::getNN(const fasttext::DenseMatrix&, const fasttext::Vector&, int32_t, const std::set<std::__cxx11::basic_string<char> >&)’:
  src/fasttext.cc:585:23: warning: comparison of integer expressions of different signedness: ‘std::vector<std::pair<float, std::__cxx11::basic_string<char> > >::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
         if (heap.size() == k && similarity < heap.front().first) {
             ~~~~~~~~~~~~^~~~
  src/fasttext.cc:590:23: warning: comparison of integer expressions of different signedness: ‘std::vector<std::pair<float, std::__cxx11::basic_string<char> > >::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
         if (heap.size() > k) {
             ~~~~~~~~~~~~^~~
  src/fasttext.cc: In member function ‘std::shared_ptr<fasttext::Matrix> fasttext::FastText::getInputMatrixFromFile(const string&) const’:
  src/fasttext.cc:701:24: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int64_t’ {aka ‘long int’} [-Wsign-compare]
     for (size_t i = 0; i < n; i++) {
                        ~~^~~
  src/fasttext.cc:706:26: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int64_t’ {aka ‘long int’} [-Wsign-compare]
       for (size_t j = 0; j < dim; j++) {
                          ~~^~~~~
  src/fasttext.cc:718:24: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int64_t’ {aka ‘long int’} [-Wsign-compare]
     for (size_t i = 0; i < n; i++) {
                        ~~^~~
  src/fasttext.cc:723:26: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int64_t’ {aka ‘long int’} [-Wsign-compare]
       for (size_t j = 0; j < dim; j++) {
                          ~~^~~~~
  gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/dictionary.cc -o build/temp.linux-x86_64-3.5/src/dictionary.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  src/dictionary.cc: In member function ‘void fasttext::Dictionary::computeSubwords(const string&, std::vector<int>&, std::vector<std::__cxx11::basic_string<char> >*) const’:
  src/dictionary.cc:181:52: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
       for (size_t j = i, n = 1; j < word.size() && n <= args_->maxn; n++) {
                                                    ~~^~~~~~~~~~~~~~
  src/dictionary.cc:186:13: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
         if (n >= args_->minn && !(n == 1 && (i == 0 || j == word.size()))) {
             ~~^~~~~~~~~~~~~~
  src/dictionary.cc: In member function ‘void fasttext::Dictionary::initNgrams()’:
  src/dictionary.cc:198:24: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
     for (size_t i = 0; i < size_; i++) {
                        ~~^~~~~~~
  src/dictionary.cc: In member function ‘void fasttext::Dictionary::initTableDiscard()’:
  src/dictionary.cc:296:24: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
     for (size_t i = 0; i < size_; i++) {
                        ~~^~~~~~~
  src/dictionary.cc: In member function ‘void fasttext::Dictionary::addWordNgrams(std::vector<int>&, const std::vector<int>&, int32_t) const’:
  src/dictionary.cc:316:25: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
     for (int32_t i = 0; i < hashes.size(); i++) {
                         ~~^~~~~~~~~~~~~~~
  src/dictionary.cc:318:31: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
       for (int32_t j = i + 1; j < hashes.size() && j < i + n; j++) {
                               ~~^~~~~~~~~~~~~~~
  src/dictionary.cc: In member function ‘void fasttext::Dictionary::prune(std::vector<int>&)’:
  src/dictionary.cc:515:25: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<fasttext::entry>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
     for (int32_t i = 0; i < words_.size(); i++) {
                         ~~^~~~~~~~~~~~~~~
  src/dictionary.cc:517:12: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
           (j < words.size() && words[j] == i)) {
            ~~^~~~~~~~~~~~~~
  gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/quantmatrix.cc -o build/temp.linux-x86_64-3.5/src/quantmatrix.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/productquantizer.cc -o build/temp.linux-x86_64-3.5/src/productquantizer.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  src/productquantizer.cc: In member function ‘void fasttext::ProductQuantizer::load(std::istream&)’:
  src/productquantizer.cc:246:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<float>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
     for (auto i = 0; i < centroids_.size(); i++) {
                      ~~^~~~~~~~~~~~~~~~~~~
  gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/loss.cc -o build/temp.linux-x86_64-3.5/src/loss.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  src/loss.cc: In member function ‘void fasttext::Loss::findKBest(int32_t, fasttext::real, fasttext::Predictions&, const fasttext::Vector&) const’:
  src/loss.cc:83:21: warning: comparison of integer expressions of different signedness: ‘std::vector<std::pair<float, int> >::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
       if (heap.size() == k && std_log(output[i]) < heap.front().first) {
           ~~~~~~~~~~~~^~~~
  src/loss.cc:88:21: warning: comparison of integer expressions of different signedness: ‘std::vector<std::pair<float, int> >::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
       if (heap.size() > k) {
           ~~~~~~~~~~~~^~~
  src/loss.cc: In member function ‘virtual fasttext::real fasttext::HierarchicalSoftmaxLoss::forward(const std::vector<int>&, int32_t, fasttext::Model::State&, fasttext::real, bool)’:
  src/loss.cc:257:25: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
     for (int32_t i = 0; i < pathToRoot.size(); i++) {
                         ~~^~~~~~~~~~~~~~~~~~~
  src/loss.cc: In member function ‘void fasttext::HierarchicalSoftmaxLoss::dfs(int32_t, fasttext::real, int32_t, fasttext::real, fasttext::Predictions&, const fasttext::Vector&) const’:
  src/loss.cc:282:19: warning: comparison of integer expressions of different signedness: ‘std::vector<std::pair<float, int> >::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
     if (heap.size() == k && score < heap.front().first) {
         ~~~~~~~~~~~~^~~~
  src/loss.cc:289:21: warning: comparison of integer expressions of different signedness: ‘std::vector<std::pair<float, int> >::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
       if (heap.size() > k) {
           ~~~~~~~~~~~~^~~
  gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/matrix.cc -o build/temp.linux-x86_64-3.5/src/matrix.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/args.cc -o build/temp.linux-x86_64-3.5/src/args.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  src/args.cc: In member function ‘void fasttext::Args::parseArgs(const std::vector<std::__cxx11::basic_string<char> >&)’:
  src/args.cc:93:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
     for (int ai = 2; ai < args.size(); ai += 2) {
                      ~~~^~~~~~~~~~~~~
  src/args.cc:178:19: warning: catching polymorphic type ‘class std::out_of_range’ by value [-Wcatch-value=]
       } catch (std::out_of_range) {
                     ^~~~~~~~~~~~
  gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/vector.cc -o build/temp.linux-x86_64-3.5/src/vector.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/densematrix.cc -o build/temp.linux-x86_64-3.5/src/densematrix.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  g++ -pthread -shared -L/home/ya/anaconda3/envs/deep_finder_env/lib -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wl,-rpath=/home/ya/anaconda3/envs/deep_finder_env/lib,--no-as-needed build/temp.linux-x86_64-3.5/python/fastText/pybind/fasttext_pybind.o build/temp.linux-x86_64-3.5/src/main.o build/temp.linux-x86_64-3.5/src/meter.o build/temp.linux-x86_64-3.5/src/utils.o build/temp.linux-x86_64-3.5/src/model.o build/temp.linux-x86_64-3.5/src/fasttext.o build/temp.linux-x86_64-3.5/src/dictionary.o build/temp.linux-x86_64-3.5/src/quantmatrix.o build/temp.linux-x86_64-3.5/src/productquantizer.o build/temp.linux-x86_64-3.5/src/loss.o build/temp.linux-x86_64-3.5/src/matrix.o build/temp.linux-x86_64-3.5/src/args.o build/temp.linux-x86_64-3.5/src/vector.o build/temp.linux-x86_64-3.5/src/densematrix.o -o build/lib.linux-x86_64-3.5/fasttext_pybind.cpython-35m-x86_64-linux-gnu.so
  /home/ya/anaconda3/envs/deep_finder_env/compiler_compat/ld: build/temp.linux-x86_64-3.5/python/fastText/pybind/fasttext_pybind.o: unable to initialize decompress status for section .debug_info
  /home/ya/anaconda3/envs/deep_finder_env/compiler_compat/ld: build/temp.linux-x86_64-3.5/python/fastText/pybind/fasttext_pybind.o: unable to initialize decompress status for section .debug_info
  /home/ya/anaconda3/envs/deep_finder_env/compiler_compat/ld: build/temp.linux-x86_64-3.5/python/fastText/pybind/fasttext_pybind.o: unable to initialize decompress status for section .debug_info
  /home/ya/anaconda3/envs/deep_finder_env/compiler_compat/ld: build/temp.linux-x86_64-3.5/python/fastText/pybind/fasttext_pybind.o: unable to initialize decompress status for section .debug_info
  build/temp.linux-x86_64-3.5/python/fastText/pybind/fasttext_pybind.o: file not recognized: file format not recognized
  collect2: error: ld returned 1 exit status
  error: command 'g++' failed with exit status 1

  ----------------------------------------
  Failed building wheel for fasttext
  Running setup.py clean for fasttext
Failed to build fasttext
Installing collected packages: fasttext
  Running setup.py install for fasttext ... error
    Complete output from command /home/ya/anaconda3/envs/deep_finder_env/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-1bq2di4k/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-1sid2uab/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.5
    creating build/lib.linux-x86_64-3.5/fastText
    copying python/fastText/__init__.py -> build/lib.linux-x86_64-3.5/fastText
    copying python/fastText/FastText.py -> build/lib.linux-x86_64-3.5/fastText
    creating build/lib.linux-x86_64-3.5/fastText/util
    copying python/fastText/util/__init__.py -> build/lib.linux-x86_64-3.5/fastText/util
    copying python/fastText/util/util.py -> build/lib.linux-x86_64-3.5/fastText/util
    creating build/lib.linux-x86_64-3.5/fastText/tests
    copying python/fastText/tests/__init__.py -> build/lib.linux-x86_64-3.5/fastText/tests
    copying python/fastText/tests/test_configurations.py -> build/lib.linux-x86_64-3.5/fastText/tests
    copying python/fastText/tests/test_script.py -> build/lib.linux-x86_64-3.5/fastText/tests
    running build_ext
    gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c /tmp/tmpts8kpvck.cpp -o tmp/tmpts8kpvck.o -std=c++14
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c /tmp/tmpexu5jq_5.cpp -o tmp/tmpexu5jq_5.o -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    building 'fasttext_pybind' extension
    creating build/temp.linux-x86_64-3.5
    creating build/temp.linux-x86_64-3.5/python
    creating build/temp.linux-x86_64-3.5/python/fastText
    creating build/temp.linux-x86_64-3.5/python/fastText/pybind
    creating build/temp.linux-x86_64-3.5/src
    gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c python/fastText/pybind/fasttext_pybind.cc -o build/temp.linux-x86_64-3.5/python/fastText/pybind/fasttext_pybind.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    python/fastText/pybind/fasttext_pybind.cc: In lambda function:
    python/fastText/pybind/fasttext_pybind.cc:219:35: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<long int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
                 for (int32_t i = 0; i < vocab_freq.size(); i++) {
                                     ~~^~~~~~~~~~~~~~~~~~~
    python/fastText/pybind/fasttext_pybind.cc: In lambda function:
    python/fastText/pybind/fasttext_pybind.cc:233:35: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<long int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
                 for (int32_t i = 0; i < labels_freq.size(); i++) {
                                     ~~^~~~~~~~~~~~~~~~~~~~
    gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/main.cc -o build/temp.linux-x86_64-3.5/src/main.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/meter.cc -o build/temp.linux-x86_64-3.5/src/meter.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/utils.cc -o build/temp.linux-x86_64-3.5/src/utils.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/model.cc -o build/temp.linux-x86_64-3.5/src/model.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/fasttext.cc -o build/temp.linux-x86_64-3.5/src/fasttext.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    src/fasttext.cc: In member function ‘void fasttext::FastText::getWordVector(fasttext::Vector&, const string&) const’:
    src/fasttext.cc:92:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
       for (int i = 0; i < ngrams.size(); i++) {
                       ~~^~~~~~~~~~~~~~~
    src/fasttext.cc: In lambda function:
    src/fasttext.cc:302:18: warning: comparison of integer expressions of different signedness: ‘const int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
         return eosid == i1 || (eosid != i2 && norms[i1] > norms[i2]);
                ~~~~~~^~~~~
    src/fasttext.cc:302:34: warning: comparison of integer expressions of different signedness: ‘const int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
         return eosid == i1 || (eosid != i2 && norms[i1] > norms[i2]);
                                ~~~~~~^~~~~
    src/fasttext.cc: In member function ‘void fasttext::FastText::quantize(const fasttext::Args&)’:
    src/fasttext.cc:322:40: warning: comparison of integer expressions of different signedness: ‘const size_t’ {aka ‘const long unsigned int’} and ‘int64_t’ {aka ‘long int’} [-Wsign-compare]
       if (qargs.cutoff > 0 && qargs.cutoff < input->size(0)) {
                               ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
    src/fasttext.cc:323:45: warning: ‘std::vector<int> fasttext::FastText::selectEmbeddings(int32_t) const’ is deprecated: selectEmbeddings is being deprecated. [-Wdeprecated-declarations]
         auto idx = selectEmbeddings(qargs.cutoff);
                                                 ^
    src/fasttext.cc:293:22: note: declared here
     std::vector<int32_t> FastText::selectEmbeddings(int32_t cutoff) const {
                          ^~~~~~~~
    src/fasttext.cc:327:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
         for (auto i = 0; i < idx.size(); i++) {
                          ~~^~~~~~~~~~~~
    src/fasttext.cc: In member function ‘void fasttext::FastText::cbow(fasttext::Model::State&, fasttext::real, const std::vector<int>&)’:
    src/fasttext.cc:380:25: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
       for (int32_t w = 0; w < line.size(); w++) {
                           ~~^~~~~~~~~~~~~
    src/fasttext.cc:384:41: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
           if (c != 0 && w + c >= 0 && w + c < line.size()) {
                                       ~~~~~~^~~~~~~~~~~~~
    src/fasttext.cc: In member function ‘void fasttext::FastText::skipgram(fasttext::Model::State&, fasttext::real, const std::vector<int>&)’:
    src/fasttext.cc:398:25: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
       for (int32_t w = 0; w < line.size(); w++) {
                           ~~^~~~~~~~~~~~~
    src/fasttext.cc:402:41: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
           if (c != 0 && w + c >= 0 && w + c < line.size()) {
                                       ~~~~~~^~~~~~~~~~~~~
    src/fasttext.cc: In member function ‘void fasttext::FastText::getSentenceVector(std::istream&, fasttext::Vector&)’:
    src/fasttext.cc:479:27: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
         for (int32_t i = 0; i < line.size(); i++) {
                             ~~^~~~~~~~~~~~~
    src/fasttext.cc: In member function ‘std::vector<std::pair<std::__cxx11::basic_string<char>, fasttext::Vector> > fasttext::FastText::getNgramVectors(const string&) const’:
    src/fasttext.cc:514:25: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
       for (int32_t i = 0; i < ngrams.size(); i++) {
                           ~~^~~~~~~~~~~~~~~
    src/fasttext.cc: In member function ‘void fasttext::FastText::lazyComputeWordVectors()’:
    src/fasttext.cc:551:40: warning: ‘void fasttext::FastText::precomputeWordVectors(fasttext::DenseMatrix&)’ is deprecated: precomputeWordVectors is being deprecated. [-Wdeprecated-declarations]
         precomputeWordVectors(*wordVectors_);
                                            ^
    src/fasttext.cc:534:6: note: declared here
     void FastText::precomputeWordVectors(DenseMatrix& wordVectors) {
          ^~~~~~~~
    src/fasttext.cc: In member function ‘std::vector<std::pair<float, std::__cxx11::basic_string<char> > > fasttext::FastText::getNN(const fasttext::DenseMatrix&, const fasttext::Vector&, int32_t, const std::set<std::__cxx11::basic_string<char> >&)’:
    src/fasttext.cc:585:23: warning: comparison of integer expressions of different signedness: ‘std::vector<std::pair<float, std::__cxx11::basic_string<char> > >::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
           if (heap.size() == k && similarity < heap.front().first) {
               ~~~~~~~~~~~~^~~~
    src/fasttext.cc:590:23: warning: comparison of integer expressions of different signedness: ‘std::vector<std::pair<float, std::__cxx11::basic_string<char> > >::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
           if (heap.size() > k) {
               ~~~~~~~~~~~~^~~
    src/fasttext.cc: In member function ‘std::shared_ptr<fasttext::Matrix> fasttext::FastText::getInputMatrixFromFile(const string&) const’:
    src/fasttext.cc:701:24: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int64_t’ {aka ‘long int’} [-Wsign-compare]
       for (size_t i = 0; i < n; i++) {
                          ~~^~~
    src/fasttext.cc:706:26: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int64_t’ {aka ‘long int’} [-Wsign-compare]
         for (size_t j = 0; j < dim; j++) {
                            ~~^~~~~
    src/fasttext.cc:718:24: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int64_t’ {aka ‘long int’} [-Wsign-compare]
       for (size_t i = 0; i < n; i++) {
                          ~~^~~
    src/fasttext.cc:723:26: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int64_t’ {aka ‘long int’} [-Wsign-compare]
         for (size_t j = 0; j < dim; j++) {
                            ~~^~~~~
    gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/dictionary.cc -o build/temp.linux-x86_64-3.5/src/dictionary.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    src/dictionary.cc: In member function ‘void fasttext::Dictionary::computeSubwords(const string&, std::vector<int>&, std::vector<std::__cxx11::basic_string<char> >*) const’:
    src/dictionary.cc:181:52: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
         for (size_t j = i, n = 1; j < word.size() && n <= args_->maxn; n++) {
                                                      ~~^~~~~~~~~~~~~~
    src/dictionary.cc:186:13: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
           if (n >= args_->minn && !(n == 1 && (i == 0 || j == word.size()))) {
               ~~^~~~~~~~~~~~~~
    src/dictionary.cc: In member function ‘void fasttext::Dictionary::initNgrams()’:
    src/dictionary.cc:198:24: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
       for (size_t i = 0; i < size_; i++) {
                          ~~^~~~~~~
    src/dictionary.cc: In member function ‘void fasttext::Dictionary::initTableDiscard()’:
    src/dictionary.cc:296:24: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
       for (size_t i = 0; i < size_; i++) {
                          ~~^~~~~~~
    src/dictionary.cc: In member function ‘void fasttext::Dictionary::addWordNgrams(std::vector<int>&, const std::vector<int>&, int32_t) const’:
    src/dictionary.cc:316:25: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
       for (int32_t i = 0; i < hashes.size(); i++) {
                           ~~^~~~~~~~~~~~~~~
    src/dictionary.cc:318:31: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
         for (int32_t j = i + 1; j < hashes.size() && j < i + n; j++) {
                                 ~~^~~~~~~~~~~~~~~
    src/dictionary.cc: In member function ‘void fasttext::Dictionary::prune(std::vector<int>&)’:
    src/dictionary.cc:515:25: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<fasttext::entry>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
       for (int32_t i = 0; i < words_.size(); i++) {
                           ~~^~~~~~~~~~~~~~~
    src/dictionary.cc:517:12: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
             (j < words.size() && words[j] == i)) {
              ~~^~~~~~~~~~~~~~
    gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/quantmatrix.cc -o build/temp.linux-x86_64-3.5/src/quantmatrix.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/productquantizer.cc -o build/temp.linux-x86_64-3.5/src/productquantizer.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    src/productquantizer.cc: In member function ‘void fasttext::ProductQuantizer::load(std::istream&)’:
    src/productquantizer.cc:246:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<float>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
       for (auto i = 0; i < centroids_.size(); i++) {
                        ~~^~~~~~~~~~~~~~~~~~~
    gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/loss.cc -o build/temp.linux-x86_64-3.5/src/loss.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    src/loss.cc: In member function ‘void fasttext::Loss::findKBest(int32_t, fasttext::real, fasttext::Predictions&, const fasttext::Vector&) const’:
    src/loss.cc:83:21: warning: comparison of integer expressions of different signedness: ‘std::vector<std::pair<float, int> >::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
         if (heap.size() == k && std_log(output[i]) < heap.front().first) {
             ~~~~~~~~~~~~^~~~
    src/loss.cc:88:21: warning: comparison of integer expressions of different signedness: ‘std::vector<std::pair<float, int> >::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
         if (heap.size() > k) {
             ~~~~~~~~~~~~^~~
    src/loss.cc: In member function ‘virtual fasttext::real fasttext::HierarchicalSoftmaxLoss::forward(const std::vector<int>&, int32_t, fasttext::Model::State&, fasttext::real, bool)’:
    src/loss.cc:257:25: warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
       for (int32_t i = 0; i < pathToRoot.size(); i++) {
                           ~~^~~~~~~~~~~~~~~~~~~
    src/loss.cc: In member function ‘void fasttext::HierarchicalSoftmaxLoss::dfs(int32_t, fasttext::real, int32_t, fasttext::real, fasttext::Predictions&, const fasttext::Vector&) const’:
    src/loss.cc:282:19: warning: comparison of integer expressions of different signedness: ‘std::vector<std::pair<float, int> >::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
       if (heap.size() == k && score < heap.front().first) {
           ~~~~~~~~~~~~^~~~
    src/loss.cc:289:21: warning: comparison of integer expressions of different signedness: ‘std::vector<std::pair<float, int> >::size_type’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
         if (heap.size() > k) {
             ~~~~~~~~~~~~^~~
    gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/matrix.cc -o build/temp.linux-x86_64-3.5/src/matrix.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/args.cc -o build/temp.linux-x86_64-3.5/src/args.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    src/args.cc: In member function ‘void fasttext::Args::parseArgs(const std::vector<std::__cxx11::basic_string<char> >&)’:
    src/args.cc:93:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
       for (int ai = 2; ai < args.size(); ai += 2) {
                        ~~~^~~~~~~~~~~~~
    src/args.cc:178:19: warning: catching polymorphic type ‘class std::out_of_range’ by value [-Wcatch-value=]
         } catch (std::out_of_range) {
                       ^~~~~~~~~~~~
    gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/vector.cc -o build/temp.linux-x86_64-3.5/src/vector.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    gcc -pthread -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -I/home/ya/.local/include/python3.5m -Isrc -I/home/ya/anaconda3/envs/deep_finder_env/include/python3.5m -c src/densematrix.cc -o build/temp.linux-x86_64-3.5/src/densematrix.o -DVERSION_INFO="0.8.22" -std=c++14 -fvisibility=hidden
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    g++ -pthread -shared -L/home/ya/anaconda3/envs/deep_finder_env/lib -B /home/ya/anaconda3/envs/deep_finder_env/compiler_compat -Wl,-rpath=/home/ya/anaconda3/envs/deep_finder_env/lib,--no-as-needed build/temp.linux-x86_64-3.5/python/fastText/pybind/fasttext_pybind.o build/temp.linux-x86_64-3.5/src/main.o build/temp.linux-x86_64-3.5/src/meter.o build/temp.linux-x86_64-3.5/src/utils.o build/temp.linux-x86_64-3.5/src/model.o build/temp.linux-x86_64-3.5/src/fasttext.o build/temp.linux-x86_64-3.5/src/dictionary.o build/temp.linux-x86_64-3.5/src/quantmatrix.o build/temp.linux-x86_64-3.5/src/productquantizer.o build/temp.linux-x86_64-3.5/src/loss.o build/temp.linux-x86_64-3.5/src/matrix.o build/temp.linux-x86_64-3.5/src/args.o build/temp.linux-x86_64-3.5/src/vector.o build/temp.linux-x86_64-3.5/src/densematrix.o -o build/lib.linux-x86_64-3.5/fasttext_pybind.cpython-35m-x86_64-linux-gnu.so
    /home/ya/anaconda3/envs/deep_finder_env/compiler_compat/ld: build/temp.linux-x86_64-3.5/python/fastText/pybind/fasttext_pybind.o: unable to initialize decompress status for section .debug_info
    /home/ya/anaconda3/envs/deep_finder_env/compiler_compat/ld: build/temp.linux-x86_64-3.5/python/fastText/pybind/fasttext_pybind.o: unable to initialize decompress status for section .debug_info
    /home/ya/anaconda3/envs/deep_finder_env/compiler_compat/ld: build/temp.linux-x86_64-3.5/python/fastText/pybind/fasttext_pybind.o: unable to initialize decompress status for section .debug_info
    /home/ya/anaconda3/envs/deep_finder_env/compiler_compat/ld: build/temp.linux-x86_64-3.5/python/fastText/pybind/fasttext_pybind.o: unable to initialize decompress status for section .debug_info
    build/temp.linux-x86_64-3.5/python/fastText/pybind/fasttext_pybind.o: file not recognized: file format not recognized
    collect2: error: ld returned 1 exit status
    error: command 'g++' failed with exit status 1

    ----------------------------------------
Command "/home/ya/anaconda3/envs/deep_finder_env/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-1bq2di4k/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-1sid2uab/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-req-build-1bq2di4k/

Could you give me a feedback on what I'm doing wrong? Thanks a lot

zhenyu-verisk commented 5 years ago

Have some issue

tiberiuichim commented 5 years ago

I have the same issue. Same type of environment, Archlinux + Anaconda

hawktang commented 4 years ago

Same issue

RCoanda commented 4 years ago

See #763

lydianish commented 1 year ago

See #763

Inspired by the solution in the referenced issue, I solved the problem by downgrading my GCC compiler from 13.1.0 to 11.2.0.

BobBorges commented 10 months ago

same problem