Home   Manual

Compile error 149


#1

Hi guys,

I’m trying to compile/install Gamess, but a big message of Error is showing.
After the sequence of command:

cmake -Wno-dev …/

make -j2

putfileextension.dir/moc_lammpsinputdialog.cxx.o
[ 71%] Linking CXX shared module …/…/…/…/lib/inputfileextension.so
[ 71%] Built target inputfileextension
Makefile:149: recipe for target ‘all’ failed
make: *** [all] Error 2

​Tips?​
​I include a file output in ​


#2

I think you mean that you’re compiling Avogadro, not GAMESS. :wink:

Since you’re using make -j2 any error isn’t clear from the small paste you included.

Can you run make (no -j2) and paste the whole log, e.g., to pastebin?


#3

I’m sorry, I wrote about the error thinking of another program.
Well, I rode both with -j2 and without, and the error is the same.

[ 63%] Linking CXX executable …/…/…/…/…/bin/qube
[ 63%] Built target qube
[ 63%] Building C object libavogadro/src/extensions/swcntbuilder/tubegen/CMakeFiles/tubegen.dir/Bitmap.c.o
[ 63%] Building C object libavogadro/src/extensions/swcntbuilder/tubegen/CMakeFiles/tubegen.dir/Core3DMath.c.o
[ 63%] Building C object libavogadro/src/extensions/swcntbuilder/tubegen/CMakeFiles/tubegen.dir/eprintf.c.o
[ 63%] Building CXX object libavogadro/src/extensions/swcntbuilder/tubegen/CMakeFiles/tubegen.dir/ANSR.cpp.o
[ 63%] Building CXX object libavogadro/src/extensions/swcntbuilder/tubegen/CMakeFiles/tubegen.dir/Cell.cpp.o
[ 63%] Building CXX object libavogadro/src/extensions/swcntbuilder/tubegen/CMakeFiles/tubegen.dir/CrystalCell.cpp.o
[ 63%] Building CXX object libavogadro/src/extensions/swcntbuilder/tubegen/CMakeFiles/tubegen.dir/diamond.cpp.o
[ 63%] Building CXX object libavogadro/src/extensions/swcntbuilder/tubegen/CMakeFiles/tubegen.dir/fcc.cpp.o
[ 63%] Building CXX object libavogadro/src/extensions/swcntbuilder/tubegen/CMakeFiles/tubegen.dir/graphite.cpp.o
[ 64%] Building CXX object libavogadro/src/extensions/swcntbuilder/tubegen/CMakeFiles/tubegen.dir/TubeGen.cpp.o
[ 64%] Building CXX object libavogadro/src/extensions/swcntbuilder/tubegen/CMakeFiles/tubegen.dir/TubuleBasis.cpp.o
[ 64%] Linking CXX static library libtubegen.a
[ 64%] Built target tubegen
[ 64%] Generating ui_swcntbuilderwidget.h
[ 64%] Generating moc_swcntbuilderextension.cxx
[ 64%] Generating moc_swcntbuilderwidget.cxx
[ 64%] Generating moc_avotubegen.cxx
Scanning dependencies of target swcntbuilderextension
[ 64%] Building CXX object libavogadro/src/extensions/swcntbuilder/CMakeFiles/swcntbuilderextension.dir/__/insertcommand.cpp.o
[ 64%] Building CXX object libavogadro/src/extensions/swcntbuilder/CMakeFiles/swcntbuilderextension.dir/swcntbuilderextension.cpp.o
[ 65%] Building CXX object libavogadro/src/extensions/swcntbuilder/CMakeFiles/swcntbuilderextension.dir/swcntbuilderwidget.cpp.o
[ 65%] Building CXX object libavogadro/src/extensions/swcntbuilder/CMakeFiles/swcntbuilderextension.dir/avotubegen.cpp.o
[ 65%] Building CXX object libavogadro/src/extensions/swcntbuilder/CMakeFiles/swcntbuilderextension.dir/moc_swcntbuilderextension.cxx.o
[ 65%] Building CXX object libavogadro/src/extensions/swcntbuilder/CMakeFiles/swcntbuilderextension.dir/moc_swcntbuilderwidget.cxx.o
[ 65%] Building CXX object libavogadro/src/extensions/swcntbuilder/CMakeFiles/swcntbuilderextension.dir/moc_avotubegen.cxx.o
[ 65%] Linking CXX shared module …/…/…/…/lib/swcntbuilderextension.so
[ 65%] Built target swcntbuilderextension
[ 65%] Generating moc_qtaimextension.cxx
Scanning dependencies of target qtaimextension
[ 65%] Building CXX object libavogadro/src/extensions/qtaim/CMakeFiles/qtaimextension.dir/qtaimextension.cpp.o
[ 65%] Building CXX object libavogadro/src/extensions/qtaim/CMakeFiles/qtaimextension.dir/qtaimwavefunction.cpp.o
[ 65%] Building CXX object libavogadro/src/extensions/qtaim/CMakeFiles/qtaimextension.dir/qtaimwavefunctionevaluator.cpp.o
libavogadro/src/extensions/qtaim/CMakeFiles/qtaimextension.dir/build.make:115: recipe for target ‘libavogadro/src/extensions/qtaim/CMakeFiles/qtaimextension.dir/qtaimwavefunctionevaluator.cpp.o’ failed
CMakeFiles/Makefile2:2773: recipe for target ‘libavogadro/src/extensions/qtaim/CMakeFiles/qtaimextension.dir/all’ failed
Makefile:149: recipe for target ‘all’ failed


#4

I have not had an answer so far.


#5

You keep posting error reports from parallel builds. The error seems to be with inputfileextension but nothing in the text or image reflects those files.


#6

/home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunctionevaluator.cpp:2340:78: error: no matching function for call to ‘Avogadro::QTAIMWavefunctionEvaluator::ipow(Eigen::internal::enable_if<true, Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange> >::type, int)’
value(2,2)+=(m_occno(m)(2m_cdg000(m)m_cdg002(m)-2ipow(m_cdg001(m),2) ));
^
In file included from /home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunctionevaluator.cpp:27:0:
/home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunctionevaluator.h:105:25: note: candidate: static qreal Avogadro::QTAIMWavefunctionEvaluator::ipow(qreal, qint64)
static inline qreal ipow(qreal a, qint64 n)
^
/home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunctionevaluator.h:105:25: note: no known conversion for argument 1 from ‘Eigen::internal::enable_if<true, Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange> >::type {aka Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange>}’ to ‘qreal {aka double}’
In file included from /usr/local/include/eigen3/Eigen/Core:361:0,
from /home/verena/avogadro/avogadro/build/libavogadro/include/avogadro/primitive.h:36,
from /home/verena/avogadro/avogadro/build/libavogadro/include/avogadro/molecule.h:29,
from /home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunction.h:40,
from /home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunctionevaluator.h:13,
from /home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunctionevaluator.cpp:27:
/usr/local/include/eigen3/Eigen/src/Core/util/Meta.h: In instantiation of ‘Eigen::Index Eigen::internal::size(const T&) [with T = long long int; Eigen::Index = long int]’:
/usr/local/include/eigen3/Eigen/src/Core/IndexedView.h:124:45: required from ‘Eigen::Index Eigen::IndexedView<XprType, RowIndices, ColIndices>::rows() const [with XprType = Eigen::Matrix<double, -1, 1>; RowIndices = long long int; ColIndices = Eigen::internal::SingleRange; Eigen::Index = long int]’
/usr/local/include/eigen3/Eigen/src/Core/…/plugins/CommonCwiseBinaryOps.h:50:1: required from ‘typename Eigen::internal::enable_if<true, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<typename Eigen::internal::promote_scalar_arg<typename Eigen::internal::traits::Scalar, T, Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<T, typename Eigen::internal::traits::Scalar, Eigen::internal::scalar_product_op<T, typename Eigen::internal::traits::Scalar> > >::value>::type, typename Eigen::internal::traits::Scalar>, const typename Eigen::internal::plain_constant_type<Derived, typename Eigen::internal::promote_scalar_arg<typename Eigen::internal::traits::Scalar, T, Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<T, typename Eigen::internal::traits::Scalar, Eigen::internal::scalar_product_op<T, typename Eigen::internal::traits::Scalar> > >::value>::type>::type, const Derived> >::type Eigen::operator*(const T&, const StorageBaseType&) [with T = int; Derived = Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange>; typename Eigen::internal::enable_if<true, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<typename Eigen::internal::promote_scalar_arg<typename Eigen::internal::traits::Scalar, T, Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<T, typename Eigen::internal::traits::Scalar, Eigen::internal::scalar_product_op<T, typename Eigen::internal::traits::Scalar> > >::value>::type, typename Eigen::internal::traits::Scalar>, const typename Eigen::internal::plain_constant_type<Derived, typename Eigen::internal::promote_scalar_arg<typename Eigen::internal::traits::Scalar, T, Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<T, typename Eigen::internal::traits::Scalar, Eigen::internal::scalar_product_op<T, typename Eigen::internal::traits::Scalar> > >::value>::type>::type, const Derived> >::type = const Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op, const Eigen::Matrix<double, -1, 1> >, const Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange> >; Eigen::MatrixBase::StorageBaseType = Eigen::MatrixBase<Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange> >]’
/home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunctionevaluator.cpp:246:32: required from here
/usr/local/include/eigen3/Eigen/src/Core/util/Meta.h:334:40: error: request for member ‘size’ in ‘x’, which is of non-class type ‘const long long int’
Index size(const T& x) { return x.size(); }
^
libavogadro/src/extensions/qtaim/CMakeFiles/qtaimextension.dir/build.make:115: recipe for target ‘libavogadro/src/extensions/qtaim/CMakeFiles/qtaimextension.dir/qtaimwavefunctionevaluator.cpp.o’ failed
make[2]: *** [libavogadro/src/extensions/qtaim/CMakeFiles/qtaimextension.dir/qtaimwavefunctionevaluator.cpp.o] Error 1
CMakeFiles/Makefile2:2773: recipe for target ‘libavogadro/src/extensions/qtaim/CMakeFiles/qtaimextension.dir/all’ failed
make[1]: *** [libavogadro/src/extensions/qtaim/CMakeFiles/qtaimextension.dir/all] Error 2
Makefile:149: recipe for target ‘all’ failed
make: *** [all] Error 2


#7

I removed all the libraries that are needed, and installed again, this is the “new” bug.
I just use ‘make’ not ‘make -j2’


#8

You’re using too new a version of Eigen. Please use Eigen2 or Eigen 3.2 or older.


#9

/home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunctionevaluator.h:105:25: note: no known conversion for argument 1 from ‘Eigen::internal::enable_if<true, Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange> >::type {aka Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange>}’ to ‘qreal {aka double}’
/home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunctionevaluator.cpp:2339:17: error: no match for ‘operator+=’ (operand types are ‘Eigen::DenseCoeffsBase<Eigen::Matrix<double, 3, 3>, 1>::Scalar {aka double}’ and ‘const Eigen::Product<Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange>, Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double, double>, const Eigen::Product<Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op, const Eigen::Matrix<double, -1, 1> >, const Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange> >, Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange>, 0>, const Eigen::Product<Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op, const Eigen::Matrix<double, -1, 1> >, const Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange> >, Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange>, 0> >, 0>’)
value(1,2)+=(m_occno(m)(2m_cdg000(m)m_cdg011(m)-2m_cdg010(m)m_cdg001
^
/home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunctionevaluator.cpp:2340:78: error: no matching function for call to ‘Avogadro::QTAIMWavefunctionEvaluator::ipow(Eigen::internal::enable_if<true, Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange> >::type, int)’
value(2,2)+=(m_occno(m)
(2m_cdg000(m)m_cdg002(m)-2ipow(m_cdg001(m),2) ));
^
In file included from /home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunctionevaluator.cpp:27:0:
/home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunctionevaluator.h:105:25: note: candidate: static qreal Avogadro::QTAIMWavefunctionEvaluator::ipow(qreal, qint64)
static inline qreal ipow(qreal a, qint64 n)
^
/home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunctionevaluator.h:105:25: note: no known conversion for argument 1 from ‘Eigen::internal::enable_if<true, Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange> >::type {aka Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange>}’ to ‘qreal {aka double}’
In file included from /usr/local/include/eigen3/Eigen/Core:361:0,
from /home/verena/avogadro/avogadro/build/libavogadro/include/avogadro/primitive.h:36,
from /home/verena/avogadro/avogadro/build/libavogadro/include/avogadro/molecule.h:29,
from /home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunction.h:40,
from /home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunctionevaluator.h:13,
from /home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunctionevaluator.cpp:27:
/usr/local/include/eigen3/Eigen/src/Core/util/Meta.h: In instantiation of ‘Eigen::Index Eigen::internal::size(const T&) [with T = long long int; Eigen::Index = long int]’:
/usr/local/include/eigen3/Eigen/src/Core/IndexedView.h:124:45: required from ‘Eigen::Index Eigen::IndexedView<XprType, RowIndices, ColIndices>::rows() const [with XprType = Eigen::Matrix<double, -1, 1>; RowIndices = long long int; ColIndices = Eigen::internal::SingleRange; Eigen::Index = long int]’
/usr/local/include/eigen3/Eigen/src/Core/…/plugins/CommonCwiseBinaryOps.h:50:1: required from ‘const Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<typename Eigen::internal::promote_scalar_arg<typename Eigen::internal::traits::Scalar, T, Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<T, typename Eigen::internal::traits::Scalar, Eigen::internal::scalar_product_op<T, typename Eigen::internal::traits::Scalar> > >::value>::type, typename Eigen::internal::traits::Scalar>, const typename Eigen::internal::plain_constant_type<Derived, typename Eigen::internal::promote_scalar_arg<typename Eigen::internal::traits::Scalar, T, Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<T, typename Eigen::internal::traits::Scalar, Eigen::internal::scalar_product_op<T, typename Eigen::internal::traits::Scalar> > >::value>::type>::type, const Derived> Eigen::operator
(const T&, const StorageBaseType&) [with T = int; Derived = Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange>; typename Eigen::internal::plain_constant_type<Derived, typename Eigen::internal::promote_scalar_arg<typename Eigen::internal::traits::Scalar, T, Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<T, typename Eigen::internal::traits::Scalar, Eigen::internal::scalar_product_op<T, typename Eigen::internal::traits::Scalar> > >::value>::type>::type = Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op, const Eigen::Matrix<double, -1, 1> >; typename Eigen::internal::traits::Scalar = double; typename Eigen::internal::promote_scalar_arg<typename Eigen::internal::traits::Scalar, T, Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<T, typename Eigen::internal::traits::Scalar, Eigen::internal::scalar_product_op<T, typename Eigen::internal::traits::Scalar> > >::value>::type = double; Eigen::MatrixBase::StorageBaseType = Eigen::MatrixBase<Eigen::IndexedView<Eigen::Matrix<double, -1, 1>, long long int, Eigen::internal::SingleRange> >]’
/home/verena/avogadro/avogadro/libavogadro/src/extensions/qtaim/qtaimwavefunctionevaluator.cpp:246:32: required from here
/usr/local/include/eigen3/Eigen/src/Core/util/Meta.h:334:40: error: request for member ‘size’ in ‘x’, which is of non-class type ‘const long long int’
Index size(const T& x) { return x.size(); }
^
libavogadro/src/extensions/qtaim/CMakeFiles/qtaimextension.dir/build.make:115: recipe for target ‘libavogadro/src/extensions/qtaim/CMakeFiles/qtaimextension.dir/qtaimwavefunctionevaluator.cpp.o’ failed
make[2]: *** [libavogadro/src/extensions/qtaim/CMakeFiles/qtaimextension.dir/qtaimwavefunctionevaluator.cpp.o] Error 1
CMakeFiles/Makefile2:2773: recipe for target ‘libavogadro/src/extensions/qtaim/CMakeFiles/qtaimextension.dir/all’ failed
make[1]: *** [libavogadro/src/extensions/qtaim/CMakeFiles/qtaimextension.dir/all] Error 2
Makefile:149: recipe for target ‘all’ failed
make: *** [all] Error 2

I change the version of the Eigen 3.4, for Eigen2.
The same error.


#10

When you try to compile with Eigen 2, do you still see this part of the error /usr/local/include/eigen3

In that case, the compiler is still picking up the Eigen3 include files.