DaehwanKimLab / centrifuge

Classifier for metagenomic sequences
GNU General Public License v3.0
235 stars 73 forks source link

"make" error over cloned repository #209

Open Valentin-Bio-zz opened 3 years ago

Valentin-Bio-zz commented 3 years ago

Hello I just want to install centrifuge, when doing cd into centrigfuge folder, I run "make" and got the following:

git clone https://github.com/infphilo/centrifuge cd centrifuge/ make USE_SRA=1 NCBI_NGS_DIR=/path-to/ngs-sdk.2.11.0-linux/ NCBI_VDB_DIR=/path-to/ngs-sdk.2.11.0-linux/ /usr/bin/g++ -O3 -m64 -msse2 -funroll-loops -g3 -std=c++11 -DCOMPILER_OPTIONS="\"-O3 -m64 -msse2 -funroll-loops -g3 -std=c++11 -DPOPCNT_CAPABILITY\"" -DPOPCNT_CAPABILITY \ -fno-strict-aliasing -DCENTRIFUGE_VERSION="\"1.0.4\"" -DBUILD_HOST="\"hostname\"" -DBUILD_TIME="\"date\"" -DCOMPILER_VERSION="\"/usr/bin/g++ -v 2>&1 | tail -1\"" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DBOWTIE_MM -DCENTRIFUGE -DBOWTIE2 -DBOWTIE_64BIT_INDEX -DNDEBUG -Wall \ -I third_party \ -o centrifuge-build-bin centrifuge_build.cpp \ ccnt_lut.cpp ref_read.cpp alphabet.cpp shmem.cpp edit.cpp bt2_idx.cpp reference.cpp ds.cpp limit.cpp random_source.cpp tinythread.cpp diff_sample.cpp centrifuge_build_main.cpp \ -lpthread In file included from bt2_idx.h:62, from centrifuge_build.cpp:27: processor_support.h:52:22: error: extended character “ is not valid in an identifier 52 | std::cerr << ���ERROR: please define cpuid() for this build.\n”; | ^ processor_support.h:52:72: error: extended character ” is not valid in an identifier 52 | std::cerr << “ERROR: please define __cpuid() for this build.\n”; | ^ In file included from bt2_idx.h:62, from bt2_idx.cpp:25: processor_support.h:52:22: error: extended character “ is not valid in an identifier 52 | std::cerr << ���ERROR: please define cpuid() for this build.\n”; | ^ processor_support.h:52:72: error: extended character ” is not valid in an identifier 52 | std::cerr << “ERROR: please define __cpuid() for this build.\n”;

mourisl commented 3 years ago

It seems this quote symbol was not in English version. I just updated it, and it should work now.