dealii Installation

53 views
Skip to first unread message

王艺康

unread,
May 28, 2024, 9:07:09 AMMay 28
to deal.II User Group
Hello, everyone.
I'm having a problem installing dealii with candi.I'm installing dealii-9.5.1 on Ubuntu 16.0.4 via candi, only then all the dependencies I need can be downloaded and installed correctly but I get an error when installing dealii.



/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc: In instantiation of ‘std::tuple<std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> > > dealii::GridTools::internal::guess_owners_of_entities(MPI_Comm, const std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const std::vector<ContainedType>&, double) [with int spacedim = 1; T = dealii::Point<1>; MPI_Comm = int]’:
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:6195:71:   required from ‘dealii::GridTools::internal::DistributedComputePointLocationsInternal<dim, spacedim> dealii::GridTools::internal::distributed_compute_point_locations(const dealii::GridTools::Cache<dim, spacedim>&, const std::vector<dealii::Point<spacedim> >&, const std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const std::vector<bool>&, double, bool, bool) [with int dim = 1; int spacedim = 1]’
/home/hj/dealii-candi/home/hj/wyk/candi/build/deal.II-v9.5.1/source/grid/grid_tools.inst:1289:12:   required from here
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:5970:67: error: converting to ‘std::tuple<std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> > >’ from initializer list would use explicit constructor ‘constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >}; <template-parameter-2-2> = void; _Elements = {std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >}]’
       return {std::move(ranks), std::move(ptr), std::move(indices)};
                                                                   ^
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc: In instantiation of ‘std::tuple<std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> > > dealii::GridTools::internal::guess_owners_of_entities(MPI_Comm, const std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const std::vector<ContainedType>&, double) [with int spacedim = 2; T = dealii::Point<2, double>; MPI_Comm = int]’:
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:6195:71:   required from ‘dealii::GridTools::internal::DistributedComputePointLocationsInternal<dim, spacedim> dealii::GridTools::internal::distributed_compute_point_locations(const dealii::GridTools::Cache<dim, spacedim>&, const std::vector<dealii::Point<spacedim> >&, const std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const std::vector<bool>&, double, bool, bool) [with int dim = 1; int spacedim = 2]’
/home/hj/dealii-candi/home/hj/wyk/candi/build/deal.II-v9.5.1/source/grid/grid_tools.inst:1388:12:   required from here
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:5970:67: error: converting to ‘std::tuple<std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> > >’ from initializer list would use explicit constructor ‘constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >}; <template-parameter-2-2> = void; _Elements = {std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >}]’
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc: In instantiation of ‘std::tuple<std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> > > dealii::GridTools::internal::guess_owners_of_entities(MPI_Comm, const std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const std::vector<ContainedType>&, double) [with int spacedim = 3; T = dealii::Point<3, double>; MPI_Comm = int]’:
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:6195:71:   required from ‘dealii::GridTools::internal::DistributedComputePointLocationsInternal<dim, spacedim> dealii::GridTools::internal::distributed_compute_point_locations(const dealii::GridTools::Cache<dim, spacedim>&, const std::vector<dealii::Point<spacedim> >&, const std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const std::vector<bool>&, double, bool, bool) [with int dim = 1; int spacedim = 3]’
/home/hj/dealii-candi/home/hj/wyk/candi/build/deal.II-v9.5.1/source/grid/grid_tools.inst:1487:12:   required from here
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:5970:67: error: converting to ‘std::tuple<std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> > >’ from initializer list would use explicit constructor ‘constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >}; <template-parameter-2-2> = void; _Elements = {std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >}]’
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc: In instantiation of ‘std::tuple<std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> > > dealii::GridTools::internal::guess_owners_of_entities(MPI_Comm, const std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const std::vector<ContainedType>&, double) [with int spacedim = 1; T = std::vector<dealii::Point<1> >; MPI_Comm = int]’:
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:6587:71:   required from ‘dealii::GridTools::internal::DistributedComputeIntersectionLocationsInternal<structdim, spacedim> dealii::GridTools::internal::distributed_compute_intersection_locations(const dealii::GridTools::Cache<dim, spacedim>&, const std::vector<std::vector<dealii::Point<spacedim> > >&, const std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const std::vector<bool>&, double) [with int structdim = 1; int dim = 1; int spacedim = 1]’
/home/hj/dealii-candi/home/hj/wyk/candi/build/deal.II-v9.5.1/source/grid/grid_tools.inst:2240:14:   required from here
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:5970:67: error: converting to ‘std::tuple<std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> > >’ from initializer list would use explicit constructor ‘constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >}; <template-parameter-2-2> = void; _Elements = {std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >}]’
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc: In instantiation of ‘std::tuple<std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> > > dealii::GridTools::internal::guess_owners_of_entities(MPI_Comm, const std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const std::vector<ContainedType>&, double) [with int spacedim = 2; T = std::vector<dealii::Point<2, double>, std::allocator<dealii::Point<2, double> > >; MPI_Comm = int]’:
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:6587:71:   required from ‘dealii::GridTools::internal::DistributedComputeIntersectionLocationsInternal<structdim, spacedim> dealii::GridTools::internal::distributed_compute_intersection_locations(const dealii::GridTools::Cache<dim, spacedim>&, const std::vector<std::vector<dealii::Point<spacedim> > >&, const std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const std::vector<bool>&, double) [with int structdim = 1; int dim = 1; int spacedim = 2]’
/home/hj/dealii-candi/home/hj/wyk/candi/build/deal.II-v9.5.1/source/grid/grid_tools.inst:2272:14:   required from here
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:5970:67: error: converting to ‘std::tuple<std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> > >’ from initializer list would use explicit constructor ‘constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >}; <template-parameter-2-2> = void; _Elements = {std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >}]’
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc: In instantiation of ‘std::tuple<std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> > > dealii::GridTools::internal::guess_owners_of_entities(MPI_Comm, const std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const std::vector<ContainedType>&, double) [with int spacedim = 3; T = std::vector<dealii::Point<3, double>, std::allocator<dealii::Point<3, double> > >; MPI_Comm = int]’:
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:6587:71:   required from ‘dealii::GridTools::internal::DistributedComputeIntersectionLocationsInternal<structdim, spacedim> dealii::GridTools::internal::distributed_compute_intersection_locations(const dealii::GridTools::Cache<dim, spacedim>&, const std::vector<std::vector<dealii::Point<spacedim> > >&, const std::vector<std::vector<dealii::BoundingBox<spacedim> > >&, const std::vector<bool>&, double) [with int structdim = 1; int dim = 1; int spacedim = 3]’
/home/hj/dealii-candi/home/hj/wyk/candi/build/deal.II-v9.5.1/source/grid/grid_tools.inst:2304:14:   required from here
/home/hj/dealii-candi/home/hj/wyk/candi/deal.II-v9.5.1/source/grid/grid_tools.cc:5970:67: error: converting to ‘std::tuple<std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> > >’ from initializer list would use explicit constructor ‘constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >}; <template-parameter-2-2> = void; _Elements = {std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >, std::vector<unsigned int, std::allocator<unsigned int> >}]’

source/grid/CMakeFiles/object_grid_release.dir/build.make:355: recipe for target 'source/grid/CMakeFiles/object_grid_release.dir/grid_tools.cc.o' failed
make[2]: *** [source/grid/CMakeFiles/object_grid_release.dir/grid_tools.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....







Timo Heister

unread,
May 28, 2024, 9:42:26 AMMay 28
to dea...@googlegroups.com
Ubuntu 16.04 is a very outdated (and unsupported) system. What compiler version of GCC are you using? (gcc -v)



--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/e08e22fc-5877-43a6-b469-7a4170ae5cfdn%40googlegroups.com.

陈敏

unread,
May 29, 2024, 8:12:28 AMMay 29
to dea...@googlegroups.com
Hi wang

Ubuntu 16 is too outdate, and you can do something like:
  1. use new version of ubuntu, ubuntu 2004, ubuntu 22.04 for example
  2. install a new gcc compiler which support new c++ Standard
  3. use spack to install dealii
  4. install old version of dealii (dealii 9.0.0 for example) in ubuntu 16
Best
Chen

王艺康 <yikangw...@gmail.com> 于2024年5月28日周二 21:07写道:

王艺康

unread,
May 29, 2024, 8:14:17 AMMay 29
to deal.II User Group
I have gcc version 5.4.0, which came with the installation of Ubuntu 16.04.12, and for specific reasons I have no way of upgrading my Ubuntu.I would like to ask in this case if I download the new gcc to solve my installation problem

hj:~/dealii-candi/home/hj/wyk/candi$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Wolfgang Bangerth

unread,
May 29, 2024, 1:15:18 PMMay 29
to dea...@googlegroups.com
On 5/29/24 06:12, 王艺康 wrote:
> **
>
> I have gcc version 5.4.0, which came with the installation of Ubuntu 16.04.12,
> and for specific reasons I have no way of upgrading my Ubuntu.I would like to
> ask in this case if I download the new gcc to solve my installation problem

It is possible, but you might run into other problems with software that's too
old then. You've got a system that's 8 years old. Many of the software
packages (e.g. MPI) are going to be ten years old. You can almost certainly
install an earlier deal.II version on such a system because it was developed
for packages at that time, but you should expect that newer deal.II versions
were developed on the expectation that the underlying packages are also
reasonably new.

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/


Reply all
Reply to author
Forward
0 new messages