Closed sravani9408 closed 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,
Hello qmarcou, Could you please help me fix this error. Attached is the error log.
Coverageerrcounter.cpp:141:19: note: in instantiation of member function
'std::1::unordered_map<std::1::basic_string
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.o
test -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.
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
1 error generated. make[1]: [igor-Coverageerrcounter.o] Error 1 make: [install-recursive] Error 1