[aspect-devel] compilation error

Lev Karatun lev.karatun at gmail.com
Wed Nov 2 06:45:24 PDT 2016


Hi,

I was trying to update Aspect to the latest version and got the following
error:

[  0%] Building CXX object CMakeFiles/aspect.dir/source/simulator/core.cc.o
In file included from
/home/lev/aspect/aspect_debug/include/aspect/simulator.h:30,
                 from
/home/lev/aspect/aspect_debug/source/simulator/core.cc:22:
/home/lev/aspect/dealii_debug/include/deal.II/lac/trilinos_block_vector.h:
In member function ‘void std::vector<_Tp, _Alloc>::resize(size_t, _Tp)
[with _Tp = dealii::TrilinosWrappers::Vector, _Alloc =
std::allocator<dealii::TrilinosWrappers::Vector>]’:
/home/lev/aspect/dealii_debug/include/deal.II/lac/trilinos_block_vector.h:399:
warning: ‘dealii::TrilinosWrappers::Vector::Vector()’ is deprecated
(declared at
/home/lev/aspect/dealii_debug/include/deal.II/lac/trilinos_vector.h:770)
In file included from /home/lev/aspect/trilinos/include/Amesos.h:34,
                 from
/home/lev/aspect/dealii_debug/include/deal.II/lac/trilinos_solver.h:34,
                 from
/home/lev/aspect/dealii_debug/include/deal.II/lac/generic_linear_algebra.h:143,
                 from
/home/lev/aspect/aspect_debug/include/aspect/global.h:35,
                 from
/home/lev/aspect/aspect_debug/include/aspect/simulator.h:42,
                 from
/home/lev/aspect/aspect_debug/source/simulator/core.cc:22:
/home/lev/aspect/trilinos/include/Amesos_BaseSolver.h: At global scope:
/home/lev/aspect/trilinos/include/Amesos_BaseSolver.h:410: warning: unused
parameter ‘paramList’
/home/lev/aspect/trilinos/include/Amesos_BaseSolver.h:432: warning: unused
parameter ‘TimingParameterList’
In file included from
/home/lev/aspect/dealii_debug/include/deal.II/base/parameter_handler.h:24,
                 from
/home/lev/aspect/aspect_debug/include/aspect/simulator.h:26,
                 from
/home/lev/aspect/aspect_debug/source/simulator/core.cc:22:
/home/lev/aspect/dealii_debug/include/deal.II/bundled/boost/smart_ptr/scoped_ptr.hpp:
In copy constructor ‘dealii::std_cxx11::unique_ptr<dealii::Mapping<2, 2>
>::unique_ptr(const dealii::std_cxx11::unique_ptr<dealii::Mapping<2, 2>
>&)’:
/home/lev/aspect/dealii_debug/include/deal.II/base/std_cxx11/unique_ptr.h:60:
  instantiated from
‘aspect::Simulator<dim>::Simulator(ompi_communicator_t*,
dealii::ParameterHandler&) [with int dim = 2]’
/home/lev/aspect/aspect_debug/source/simulator/core.cc:2471:   instantiated
from here
/home/lev/aspect/dealii_debug/include/deal.II/bundled/boost/smart_ptr/scoped_ptr.hpp:47:
error: ‘boost::scoped_ptr<T>::scoped_ptr(const boost::scoped_ptr<T>&) [with
T = dealii::Mapping<2, 2>]’ is private
/home/lev/aspect/dealii_debug/include/deal.II/base/std_cxx11/unique_ptr.h:60:
error: within this context
/home/lev/aspect/aspect_debug/source/simulator/core.cc: In constructor
‘aspect::Simulator<dim>::Simulator(ompi_communicator_t*,
dealii::ParameterHandler&) [with int dim = 2]’:
/home/lev/aspect/aspect_debug/source/simulator/core.cc:2471:   instantiated
from here
/home/lev/aspect/aspect_debug/source/simulator/core.cc:218: note:
synthesized method ‘dealii::std_cxx11::unique_ptr<dealii::Mapping<2, 2>
>::unique_ptr(const dealii::std_cxx11::unique_ptr<dealii::Mapping<2, 2>
>&)’ first required here
In file included from
/home/lev/aspect/dealii_debug/include/deal.II/base/parameter_handler.h:24,
                 from
/home/lev/aspect/aspect_debug/include/aspect/simulator.h:26,
                 from
/home/lev/aspect/aspect_debug/source/simulator/core.cc:22:
/home/lev/aspect/dealii_debug/include/deal.II/bundled/boost/smart_ptr/scoped_ptr.hpp:
In copy constructor ‘dealii::std_cxx11::unique_ptr<dealii::Mapping<3, 3>
>::unique_ptr(const dealii::std_cxx11::unique_ptr<dealii::Mapping<3, 3>
>&)’:
/home/lev/aspect/dealii_debug/include/deal.II/base/std_cxx11/unique_ptr.h:60:
  instantiated from
‘aspect::Simulator<dim>::Simulator(ompi_communicator_t*,
dealii::ParameterHandler&) [with int dim = 3]’
/home/lev/aspect/aspect_debug/source/simulator/core.cc:2471:   instantiated
from here
/home/lev/aspect/dealii_debug/include/deal.II/bundled/boost/smart_ptr/scoped_ptr.hpp:47:
error: ‘boost::scoped_ptr<T>::scoped_ptr(const boost::scoped_ptr<T>&) [with
T = dealii::Mapping<3, 3>]’ is private
/home/lev/aspect/dealii_debug/include/deal.II/base/std_cxx11/unique_ptr.h:60:
error: within this context
/home/lev/aspect/aspect_debug/source/simulator/core.cc: In constructor
‘aspect::Simulator<dim>::Simulator(ompi_communicator_t*,
dealii::ParameterHandler&) [with int dim = 3]’:
/home/lev/aspect/aspect_debug/source/simulator/core.cc:2471:   instantiated
from here
/home/lev/aspect/aspect_debug/source/simulator/core.cc:218: note:
synthesized method ‘dealii::std_cxx11::unique_ptr<dealii::Mapping<3, 3>
>::unique_ptr(const dealii::std_cxx11::unique_ptr<dealii::Mapping<3, 3>
>&)’ first required here
/home/lev/aspect/dealii_debug/include/deal.II/bundled/boost/system/error_code.hpp:
At global scope:
/home/lev/aspect/dealii_debug/include/deal.II/bundled/boost/system/error_code.hpp:221:
warning: ‘boost::system::posix_category’ defined but not used
/home/lev/aspect/dealii_debug/include/deal.II/bundled/boost/system/error_code.hpp:222:
warning: ‘boost::system::errno_ecat’ defined but not used
/home/lev/aspect/dealii_debug/include/deal.II/bundled/boost/system/error_code.hpp:223:
warning: ‘boost::system::native_ecat’ defined but not used
make[2]: *** [CMakeFiles/aspect.dir/source/simulator/core.cc.o] Error 1
make[1]: *** [CMakeFiles/aspect.dir/all] Error 2
make: *** [all] Error 2

Tips on how to solve it would be appreciated.

Best regards,
Lev Karatun.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20161102/0b0fc8e5/attachment.html>


More information about the Aspect-devel mailing list