This question already has an answer here:

When I was trying to install Avogadro, and I was on the step that uses cmake, I got an error message, and when I looked at the error logs, I got this:

Performing C++ SOURCE FILE Test COMPILES_WITHOUT_FPERMISSIVE failed with the following output:
Change Dir: /home/ysv/Documents/avogadro- 1.2.0/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_ca016/fast"
/usr/bin/make -f CMakeFiles/cmTC_ca016.dir/build.make CMakeFiles/cmTC_ca016.dir/build
make[1]: Entering directory '/home/ysv/Documents/avogadro-1.2.0/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_ca016.dir/src.cxx.o
/usr/bin/c++     -fvisibility=hidden -fvisibility-inlines-hidden -DCOMPILES_WITHOUT_FPERMISSIVE   -o CMakeFiles/cmTC_ca016.dir/src.cxx.o -c /home/ysv/Documents/avogadro-1.2.0/build/CMakeFiles/CMakeTmp/src.cxx
/home/ysv/Documents/avogadro-1.2.0/build/CMakeFiles/CMakeTmp/src.cxx:6:26: error: declaration of  [-fpermissive]
  auto_ptr<_Tp> auto_ptr();
/home/ysv/Documents/avogadro-1.2.0/build/CMakeFiles/CMakeTmp/src.cxx:2:28: error: changes meaning of  from  [-fpermissive]
template <class _Tp> class auto_ptr {};
CMakeFiles/cmTC_ca016.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_ca016.dir/src.cxx.o' failed
make[1]: * * * [CMakeFiles/cmTC_ca016.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/ysv/Documents/avogadro-1.2.0/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_ca016/fast' failed
make: * * * [cmTC_ca016/fast] Error 2

Source file was:

template <class _Tp> class auto_ptr {};
template <class _Tp>
struct counted_ptr
 auto_ptr<_Tp> auto_ptr();
int main() {return 0;}

Does anyone have any idea how to solve this? Thanks, kickit

marked as duplicate by N0rbert, karel, Kulfy, Eric Carvalho, Charles Green Dec 28 '18 at 16:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.