ExpansionHunter
ExpansionHunter copied to clipboard
Error in installing
Hi,
I want to use this software to call STR in my WGS data, when i install it, an error occurs . The following error is happening in the make step:
make[2]: Warning: File 'genotyping/CMakeFiles/genotyping.dir/depend.make' has modification time 215 s in the future [ 38%] Building CXX object genotyping/CMakeFiles/genotyping.dir/AlignMatrix.cpp.o [ 39%] Building CXX object genotyping/CMakeFiles/genotyping.dir/AlleleChecker.cpp.o [ 39%] Building CXX object genotyping/CMakeFiles/genotyping.dir/RepeatGenotype.cpp.o In file included from /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.cpp:23: /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.hh: In member function ‘ehunter::NumericInterval ehunter::RepeatGenotype::shortAlleleSizeInUnitsCi() const’: /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.hh:65:80: error: implicitly-declared ‘constexpr ehunter::NumericInterval::NumericInterval(const ehunter::NumericInterval&)’ is deprecated [-Werror=deprecated-copy] 65 | NumericInterval shortAlleleSizeInUnitsCi() const { return alleles_.front().ci; } | ^~ In file included from /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.hh:32, from /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.cpp:23: /work/Software/ExpansionHunter-master/common/Common.hh:82:22: note: because ‘ehunter::NumericInterval’ has user-provided ‘ehunter::NumericInterval& ehunter::NumericInterval::operator=(const ehunter::NumericInterval&)’ 82 | NumericInterval& operator=(const NumericInterval& other) | ^~~~~~~~ In file included from /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.cpp:23: /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.hh: In member function ‘ehunter::NumericInterval ehunter::RepeatGenotype::longAlleleSizeInUnitsCi() const’: /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.hh:84:78: error: implicitly-declared ‘constexpr ehunter::NumericInterval::NumericInterval(const ehunter::NumericInterval&)’ is deprecated [-Werror=deprecated-copy] 84 | NumericInterval longAlleleSizeInUnitsCi() const { return alleles_.back().ci; } | ^~ In file included from /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.hh:32, from /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.cpp:23: /work/Software/ExpansionHunter-master/common/Common.hh:82:22: note: because ‘ehunter::NumericInterval’ has user-provided ‘ehunter::NumericInterval& ehunter::NumericInterval::operator=(const ehunter::NumericInterval&)’ 82 | NumericInterval& operator=(const NumericInterval& other) | ^~~~~~~~ /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.cpp: In function ‘std::ostream& ehunter::operator<<(std::ostream&, const ehunter::RepeatGenotype&)’: /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.cpp:65:12: error: implicitly-declared ‘constexpr ehunter::NumericInterval::NumericInterval(const ehunter::NumericInterval&)’ is deprecated [-Werror=deprecated-copy] 65 | out << shortAlleleCi; | ^~~~~~~~~~~~~ In file included from /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.hh:32, from /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.cpp:23: /work/Software/ExpansionHunter-master/common/Common.hh:82:22: note: because ‘ehunter::NumericInterval’ has user-provided ‘ehunter::NumericInterval& ehunter::NumericInterval::operator=(const ehunter::NumericInterval&)’ 82 | NumericInterval& operator=(const NumericInterval& other) | ^~~~~~~~ /work/Software/ExpansionHunter-master/common/Common.hh:123:61: note: initializing argument 2 of ‘std::ostream& ehunter::operator<<(std::ostream&, ehunter::NumericInterval)’ 123 | std::ostream& operator<<(std::ostream& out, NumericInterval numericInterval); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.cpp:71:23: error: implicitly-declared ‘constexpr ehunter::NumericInterval::NumericInterval(const ehunter::NumericInterval&)’ is deprecated [-Werror=deprecated-copy] 71 | out << "/" << longAlleleCi; | ^~~~~~~~~~~~ In file included from /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.hh:32, from /work/Software/ExpansionHunter-master/genotyping/RepeatGenotype.cpp:23: /work/Software/ExpansionHunter-master/common/Common.hh:82:22: note: because ‘ehunter::NumericInterval’ has user-provided ‘ehunter::NumericInterval& ehunter::NumericInterval::operator=(const ehunter::NumericInterval&)’ 82 | NumericInterval& operator=(const NumericInterval& other) | ^~~~~~~~ /work/Software/ExpansionHunter-master/common/Common.hh:123:61: note: initializing argument 2 of ‘std::ostream& ehunter::operator<<(std::ostream&, ehunter::NumericInterval)’ 123 | std::ostream& operator<<(std::ostream& out, NumericInterval numericInterval); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors make[2]: *** [genotyping/CMakeFiles/genotyping.dir/build.make:89: genotyping/CMakeFiles/genotyping.dir/RepeatGenotype.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:634: genotyping/CMakeFiles/genotyping.dir/all] Error 2 make: *** [Makefile:141: all] Error 2
I don't know what's wrong with it , can you please tell me how to solve it ? Thanks very much.
Best
I solved this error, thanks all the same
Glad to hear that you resolved the error!
By the way, if it is an option, please consider using a pre-compiled binary attached to each release. Unless you ran cmake in the release mode, the pre-compiled binary will run faster.