qmarcou / IGoR

IGoR is a C++ software designed to infer V(D)J recombination related processes from sequencing data. Find full documentation at:
https://qmarcou.github.io/IGoR/
GNU General Public License v3.0
47 stars 25 forks source link

error : make/make install #39

Closed sravani9408 closed 5 years ago

sravani9408 commented 5 years ago

1 error generated. make[1]: [igor-Coverageerrcounter.o] Error 1 make: [install-recursive] Error 1


Hello qmarcou,
As suggested I did make clean , make and then make install. Still I am getting the same errors. Below is the log file.
[error_logs.txt](https://github.com/qmarcou/IGoR/files/2917457/error_logs.txt)

Thanks
qmarcou commented 5 years ago

Hi @sravani9408 , Could you give me a bit more information? e.g the command line you have used and the complete error log ? Which compiler are you using on which operating system? Otherwise without more information, I don't see any reason for such error, I can only advise you to first use make clean and then make again, before make install Best regards,

sravani9408 commented 5 years ago

Hello qmarcou, Could you please help me fix this error. Attached is the error log.

error.log

Coverageerrcounter.cpp:141:19: note: in instantiation of member function 'std::1::unordered_map<std::1::basic_string, Event_realization, std::1::hash<std::__1::basic_string >, std::1::equal_to<std::__1::basic_string >, std::1::allocator<std::1::pair<const std::1::basic_string, Event_realization> > >::operator=' requested here v_realizations = v_gene_event_p->get_realizations_map(); ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility:325:5: note: copy assignment operator is implicitly deleted because 'pair<std::1::basic_string, Event_realization>' has a user-declared move constructor pair(pair&&) = default; ^ 1 error generated. make[2]: [igor-Coverageerrcounter.o] Error 1 mv -f .deps/igor-Errorscounter.Tpo .deps/igor-Errorscounter.Po make[1]: [all-recursive] Error 1 make: *** [all] Error 2

qmarcou commented 5 years ago

Hello @sravani9408 , I suspect you may have missed some of the installation guidelines. Although you have edited your message I think I remember you're using MacOS and have installed gcc via brew and used ./configure without further option. Please have a look at the installation manual stating:

MacOS is shipped with another compiler (Clang) when installing Xcode that is called upon calling gcc (through name aliasing) and is not supporting OpenMP. In order to use gcc and compile with it an OpenMP application you will first need to download Macports or Homebrew and install gcc from there.

and

Note: if you decide to use Homebrew you should apparently refrain yourself from assigning the newly installed gcc to the gcc command(see this page for more details). You will thus have to pass the correct compiler instructions to the configure script with the CC and CXX flags.

and

Many options can be appended to ./configure such as ./configure CC=gcc CXX=g+ + to enforce the use of gcc as compiler. The full set of the configure script options can be found here.

Please remember that once you have installed GCC via Homebrew you will have to pass the correct compiler's name and version to the configure script in order to use it. Given the fact that in your error log make is calling g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I./../libs/jemalloc/include/jemalloc -I./../libs/gsl_sub -DIGOR_DATA_DIR=\"/usr/local/share/igor\" -g -O2 -MT igor-Coverageerrcounter.o -MD -MP -MF .deps/igor-Coverageerrcounter.Tpo -c -o igor-Coverageerrcounter.otest -f 'Coverageerrcounter.cpp' || echo './'Coverageerrcounter.cpp I suspect by using g++ you are still using the Clang compiler instead of gcc.

Note: also please remember that for now too recent versions of GCC (>8.x.x) are not supported due to some unknown errors at compile time.

sravani9408 commented 5 years ago

Hello @qmarcou

Thank you so much. I used Macports(gcc 6) and append options to configure instead of homebrew and it worked.

Thanks again, Sravani