Installation error, please help, thx!

47 views
Skip to first unread message

Michael

unread,
Oct 25, 2017, 5:03:23 PM10/25/17
to deal.II User Group
Hi,

I've installed dealii before using the default step from README. This time, I am trying to install dealii with trilinos, but getting the following kind of errors during installation:

"
/usr/include/c++/6/tuple:648:21: error: no type named ‘type’ in ‘struct std::enable_if<false, bool>’
         bool>::type=false>
                     ^~~~~
/usr/include/c++/6/tuple:648:21: note: invalid template non-type parameter
/usr/include/c++/6/tuple:636:19: note: candidate: template<class ... _UElements, typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), std::reference_wrapper<const dealii::ChunkSparsityPattern>, std::_Placeholder<1>, std::_Placeholder<2>, float*, std::unique_ptr<long unsigned int [], std::default_delete<long unsigned int []> >, std::unique_ptr<unsigned int [], std::default_delete<unsigned int []> >, std::reference_wrapper<const dealii::Vector<double> >, std::reference_wrapper<dealii::Vector<float> > >::_NotSameTuple<_UElements ...>() && std::_TC<(8ul == sizeof... (_UElements)), std::reference_wrapper<const dealii::ChunkSparsityPattern>, std::_Placeholder<1>, std::_Placeholder<2>, float*, std::unique_ptr<long unsigned int [], std::default_delete<long unsigned int []> >, std::unique_ptr<unsigned int [], std::default_delete<unsigned int []> >, std::reference_wrapper<const dealii::Vector<double> >, std::reference_wrapper<dealii::Vector<float> > >::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(8ul == sizeof... (_UElements)), std::reference_wrapper<const dealii::ChunkSparsityPattern>, std::_Placeholder<1>, std::_Placeholder<2>, float*, std::unique_ptr<long unsigned int [], std::default_delete<long unsigned int []> >, std::unique_ptr<unsigned int [], std::default_delete<unsigned int []> >, std::reference_wrapper<const dealii::Vector<double> >, std::reference_wrapper<dealii::Vector<float> > >::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (8ul >= 1)), bool>::type <anonymous> > constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...)
         constexpr tuple(_UElements&&... __elements)
"

I checked the directory /usr/include/c++/6/ which seems being redirected from /usr/include/c++/6.2.0/. The date of directory c++/6 is the date when I installed BOOST. Not sure if this information could help. Please let me know if you want some cmake output files. Any information from you would be helpful, thanks a lot.

Daniel Arndt

unread,
Oct 25, 2017, 5:21:36 PM10/25/17
to deal.II User Group
Michael,

can you just provide us with the full make output when starting from a clean build directory?

Best,
Daniel

Michael

unread,
Oct 25, 2017, 8:43:16 PM10/25/17
to deal.II User Group
The following is my make output file. Thank you so much.
makeoutput.txt

Wolfgang Bangerth

unread,
Oct 25, 2017, 9:35:31 PM10/25/17
to dea...@googlegroups.com
On 10/25/2017 06:43 PM, Michael wrote:
> /home/superman/software/dealii-8.5.0/include/deal.II/lac/chunk_sparse_matrix.templates.h: In instantiation of ‘somenumber dealii::ChunkSparseMatrix<number>::matrix_norm_square(const dealii::Vector<somenumber>&) const [with somenumber = double; number = double]’:
> /home/superman/software/dealii-8.5.0/build/source/lac/chunk_sparse_matrix.inst:64:58: required from here
> /home/superman/software/dealii-8.5.0/include/deal.II/lac/chunk_sparse_matrix.templates.h:856:56: error: cannot convert ‘const std::unique_ptr<unsigned int []>’ to ‘const size_type* {aka const unsigned int*}’ in initialization
> const size_type *colnum_ptr = cols->sparsity_pattern.colnums;
> ^~~~~~~

Something is rather messed up here. colnums is a std::unique_ptr, but has only
been since July 17. But in the same commit that changed colnums to a
unique_ptr, I also changed the line in question to
const size_type *colnum_ptr = cols->sparsity_pattern.colnums.get();

In other words, the files
include/deal.II/lac/sparsity_pattern.h
include/deal.II/lac/chunk_sparse_matrix.templates.h
in your tree are not both at the same state -- one appears to be a development
version from after July 17, the other one from before.

Something must have gotten out of whack when you updated from github. Try
again with a clean directory.

Best
W.

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

Michael

unread,
Oct 25, 2017, 10:52:56 PM10/25/17
to deal.II User Group
Thanks, I did replaced original include/deal.II/lac/sparsity_pattern.h file by a new one from github. That was because I got errors during installation. 

I've tried again with a clean directory, and get those errors again, please take a look at make output file below. And please let me know if anything else I can provide or try. Thanks again!

By the way, I also tried to replace both sparsity_pattern.h and chunk_sparse_matrix.templates.h by a newer ones from github and there still errors happened in chunk_sparse_matrix.templates.h file.
makeoutput.txt

Wolfgang Bangerth

unread,
Oct 25, 2017, 11:20:23 PM10/25/17
to dea...@googlegroups.com, Michael
On 10/25/2017 08:52 PM, Michael wrote:
> /home/superman/software/dealii-8.5.0/include/deal.II/lac/sparsity_pattern.h: In member function ‘dealii::SparsityPatternIterators::size_type dealii::SparsityPatternIterators::Accessor::row() const’:
> /home/superman/software/dealii-8.5.0/include/deal.II/lac/sparsity_pattern.h:1156:7: error: ‘upper_bound’ is not a member of ‘std’
> std::upper_bound(sparsity_pattern->rowstart,
> ^~~

Something is still not right. This file was last touched on August 13 of this
year, but line 1156 does not contain the code the error message shows.

In other words, your source directory does not correspond to the current
development version of deal.II. I don't know how you created it, but it is not
in a consistent state.

Michael

unread,
Oct 26, 2017, 12:53:30 AM10/26/17
to deal.II User Group
You remind me that I need to replace all source files(I was using 8.5.0). So I download version 8.5.1 and get my problem solved. Thanks a lot, I really appreciate it.
Reply all
Reply to author
Forward
0 new messages