A problem occurs when I compile the latest LAMMPS

I do as listed, but it did not work. The source code is fresh.
make clean-all
make package-purge
make pu
make g++
Thanks in advance

I am not sure what the problem is. If I do a fresh clone and then compile, everything looks ok. Maybe that is the fastest solution in this case, assuming you haven’t made any modifications that you want to keep.

I am not sure what the problem is. If I do a fresh clone and then compile, everything looks ok. Maybe that is the fastest solution in this case, assuming you haven’t made any modifications that you want to keep.

The problem is that some recently added code needs to be corrected for the case of extremely large systems (64-bit atom tags). This is extremely rare and obviously Steve didn’t compile in this mode, when he made the changes.

Axel

Ah, I see. That clears up everything.

yes, that’s the problem. A fix will be in the next patch.

Until then, change to these lines in DeleteAtoms::bondring()

with tagint instead of int.

int **bond_type = cptr->atom->bond_type;
tagint **bond_atom = cptr->atom->bond_atom;

int **angle_type = cptr->atom->angle_type;
tagint **angle_atom1 = cptr->atom->angle_atom1;
tagint **angle_atom2 = cptr->atom->angle_atom2;
tagint **angle_atom3 = cptr->atom->angle_atom3;

int **dihedral_type = cptr->atom->dihedral_type;
tagint **dihedral_atom1 = cptr->atom->dihedral_atom1;
tagint **dihedral_atom2 = cptr->atom->dihedral_atom2;
tagint **dihedral_atom3 = cptr->atom->dihedral_atom3;
tagint **dihedral_atom4 = cptr->atom->dihedral_atom4;

int **improper_type = cptr->atom->improper_type;
tagint **improper_atom1 = cptr->atom->improper_atom1;
tagint **improper_atom2 = cptr->atom->improper_atom2;
tagint **improper_atom3 = cptr->atom->improper_atom3;
tagint **improper_atom4 = cptr->atom->improper_atom4;

Steve

Thank you all, it is solved.
Thanks again.
Best Regards.
Qitao LIU

/home/qi/Install/mpich/bin/mpicxx -cxx=g++ -O3 -DLAMMPS_GZIP -DLAMMPS_BIGBIG -DLAMMPS_MEMALIGN=64 -I…/…/lib/voronoi/includelink -I…/…/lib/poems -DLMP_MPIIO -I…/…/lib/meam -DMPICH_SKIP_MPICXX -I/home/qi/Install/mpich/include -DFFT_FFTW3 -I/home/qi/Install/fftw/include -I/home/qi/Install/voro++/include/voro++ -c …/compute_chunk_atom.cpp
…/compute_chunk_atom.cpp: In member function ‘void LAMMPS_NS::ComputeChunkAtom::compress_chunk_ids()’:
…/compute_chunk_atom.cpp:937:12: error: no match for ‘operator=’ (operand types are ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ and ‘std::map<int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, int> >}’)
for (pos = hash->begin(); pos != hash->end(); ++pos)
^
…/compute_chunk_atom.cpp:937:12: note: candidate is:
In file included from /usr/include/c++/4.8.2/map:60:0,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_tree.h:157:12: note: std::_Rb_tree_iterator<std::pair<const long int, int> >& std::_Rb_tree_iterator<std::pair<const long int, int> >::operator=(const std::_Rb_tree_iterator<std::pair<const long int, int> >&)
struct _Rb_tree_iterator
^
/usr/include/c++/4.8.2/bits/stl_tree.h:157:12: note: no known conversion for argument 1 from ‘std::map<int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, int> >}’ to ‘const std::_Rb_tree_iterator<std::pair<const long int, int> >&’
…/compute_chunk_atom.cpp:937:33: error: no match for ‘operator!=’ (operand types are ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ and ‘std::map<int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, int> >}’)
for (pos = hash->begin(); pos != hash->end(); ++pos)
^
…/compute_chunk_atom.cpp:937:33: note: candidates are:
In file included from /usr/include/c++/4.8.2/map:60:0,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_tree.h:221:7: note: bool std::_Rb_tree_iterator<_Tp>::operator!=(const _Self&) const [with _Tp = std::pair<const long int, int>; std::_Rb_tree_iterator<_Tp>::_Self = std::_Rb_tree_iterator<std::pair<const long int, int> >]
operator!=(const _Self& __x) const
^
/usr/include/c++/4.8.2/bits/stl_tree.h:221:7: note: no known conversion for argument 1 from ‘std::map<int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, int> >}’ to ‘const _Self& {aka const std::_Rb_tree_iterator<std::pair<const long int, int> >&}’
In file included from /usr/include/c++/4.8.2/string:52:0,
from …/force.h:20,
from …/compute_chunk_atom.cpp:20:
/usr/include/c++/4.8.2/bits/basic_string.h:2556:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
/usr/include/c++/4.8.2/bits/basic_string.h:2556:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:937:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::basic_string<_CharT, _Traits, _Alloc>’
for (pos = hash->begin(); pos != hash->end(); ++pos)
^
In file included from /usr/include/c++/4.8.2/string:52:0,
from …/force.h:20,
from …/compute_chunk_atom.cpp:20:
/usr/include/c++/4.8.2/bits/basic_string.h:2544:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator!=(const _CharT* __lhs,
^
/usr/include/c++/4.8.2/bits/basic_string.h:2544:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:937:46: note: mismatched types ‘const _CharT*’ and ‘std::_Rb_tree_iterator<std::pair<const long int, int> >’
for (pos = hash->begin(); pos != hash->end(); ++pos)
^
In file included from /usr/include/c++/4.8.2/string:52:0,
from …/force.h:20,
from …/compute_chunk_atom.cpp:20:
/usr/include/c++/4.8.2/bits/basic_string.h:2532:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
/usr/include/c++/4.8.2/bits/basic_string.h:2532:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:937:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::basic_string<_CharT, _Traits, _Alloc>’
for (pos = hash->begin(); pos != hash->end(); ++pos)
^
In file included from /usr/include/c++/4.8.2/bits/char_traits.h:40:0,
from /usr/include/c++/4.8.2/string:40,
from …/force.h:20,
from …/compute_chunk_atom.cpp:20:
/usr/include/c++/4.8.2/bits/postypes.h:221:5: note: template bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&)
operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
^
/usr/include/c++/4.8.2/bits/postypes.h:221:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:937:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::fpos<_StateT>’
for (pos = hash->begin(); pos != hash->end(); ++pos)
^
In file included from /usr/include/c++/4.8.2/map:62:0,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_multimap.h:888:5: note: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator!=(const std::multimap<_Key, _Tp, _Compare, _Alloc>&, const std::multimap<_Key, _Tp, _Compare, _Alloc>&)
operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
^
/usr/include/c++/4.8.2/bits/stl_multimap.h:888:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:937:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::multimap<_Key, _Tp, _Compare, _Alloc>’
for (pos = hash->begin(); pos != hash->end(); ++pos)
^
In file included from /usr/include/c++/4.8.2/map:61:0,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_map.h:986:5: note: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator!=(const std::map<_Key, _Tp, _Compare, _Alloc>&, const std::map<_Key, _Tp, _Compare, _Alloc>&)
operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x,
^
/usr/include/c++/4.8.2/bits/stl_map.h:986:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:937:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::map<_Key, _Tp, _Compare, _Alloc>’
for (pos = hash->begin(); pos != hash->end(); ++pos)
^
In file included from /usr/include/c++/4.8.2/map:60:0,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_tree.h:927:5: note: template<class _Key, class _Val, class _KeyOfValue, class _Compare, class _Alloc> bool std::operator!=(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&, const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)
operator!=(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
^
/usr/include/c++/4.8.2/bits/stl_tree.h:927:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:937:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>’
for (pos = hash->begin(); pos != hash->end(); ++pos)
^
In file included from /usr/include/c++/4.8.2/map:60:0,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_tree.h:316:5: note: template bool std::operator!=(const std::_Rb_tree_iterator<_Tp>&, const std::_Rb_tree_const_iterator<_Val>&)
operator!=(const _Rb_tree_iterator<_Val>& __x,
^
/usr/include/c++/4.8.2/bits/stl_tree.h:316:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:937:46: note: ‘std::map<int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, int> >}’ is not derived from ‘const std::_Rb_tree_const_iterator<_Val>’
for (pos = hash->begin(); pos != hash->end(); ++pos)
^
In file included from /usr/include/c++/4.8.2/bits/stl_tree.h:62:0,
from /usr/include/c++/4.8.2/map:60,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/allocator.h:143:5: note: template bool std::operator!=(const std::allocator<_Tp1>&, const std::allocator<_Tp1>&)
operator!=(const allocator<_Tp>&, const allocator<_Tp>&)
^
/usr/include/c++/4.8.2/bits/allocator.h:143:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:937:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::allocator<_Tp1>’
for (pos = hash->begin(); pos != hash->end(); ++pos)
^
In file included from /usr/include/c++/4.8.2/bits/stl_tree.h:62:0,
from /usr/include/c++/4.8.2/map:60,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/allocator.h:138:5: note: template<class _T1, class _T2> bool std::operator!=(const std::allocator<_Tp1>&, const std::allocator<_T2>&)
operator!=(const allocator<_T1>&, const allocator<_T2>&)
^
/usr/include/c++/4.8.2/bits/allocator.h:138:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:937:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::allocator<_Tp1>’
for (pos = hash->begin(); pos != hash->end(); ++pos)
^
In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:67:0,
from /usr/include/c++/4.8.2/bits/stl_tree.h:61,
from /usr/include/c++/4.8.2/map:60,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_iterator.h:353:5: note: template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
operator!=(const reverse_iterator<_IteratorL>& __x,
^
/usr/include/c++/4.8.2/bits/stl_iterator.h:353:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:937:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::reverse_iterator<_Iterator>’
for (pos = hash->begin(); pos != hash->end(); ++pos)
^
In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:67:0,
from /usr/include/c++/4.8.2/bits/stl_tree.h:61,
from /usr/include/c++/4.8.2/map:60,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_iterator.h:303:5: note: template bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
operator!=(const reverse_iterator<_Iterator>& __x,
^
/usr/include/c++/4.8.2/bits/stl_iterator.h:303:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:937:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::reverse_iterator<_Iterator>’
for (pos = hash->begin(); pos != hash->end(); ++pos)
^
In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8.2/bits/stl_tree.h:61,
from /usr/include/c++/4.8.2/map:60,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_pair.h:227:5: note: template<class _T1, class _T2> bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
^
/usr/include/c++/4.8.2/bits/stl_pair.h:227:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:937:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::pair<_T1, _T2>’
for (pos = hash->begin(); pos != hash->end(); ++pos)
^
…/compute_chunk_atom.cpp:997:12: error: no match for ‘operator=’ (operand types are ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ and ‘std::map<int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, int> >}’)
for (pos = hash->begin(); pos != hash->end(); ++pos) {
^
…/compute_chunk_atom.cpp:997:12: note: candidate is:
In file included from /usr/include/c++/4.8.2/map:60:0,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_tree.h:157:12: note: std::_Rb_tree_iterator<std::pair<const long int, int> >& std::_Rb_tree_iterator<std::pair<const long int, int> >::operator=(const std::_Rb_tree_iterator<std::pair<const long int, int> >&)
struct _Rb_tree_iterator
^
/usr/include/c++/4.8.2/bits/stl_tree.h:157:12: note: no known conversion for argument 1 from ‘std::map<int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, int> >}’ to ‘const std::_Rb_tree_iterator<std::pair<const long int, int> >&’
…/compute_chunk_atom.cpp:997:33: error: no match for ‘operator!=’ (operand types are ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ and ‘std::map<int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, int> >}’)
for (pos = hash->begin(); pos != hash->end(); ++pos) {
^
…/compute_chunk_atom.cpp:997:33: note: candidates are:
In file included from /usr/include/c++/4.8.2/map:60:0,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_tree.h:221:7: note: bool std::_Rb_tree_iterator<_Tp>::operator!=(const _Self&) const [with _Tp = std::pair<const long int, int>; std::_Rb_tree_iterator<_Tp>::_Self = std::_Rb_tree_iterator<std::pair<const long int, int> >]
operator!=(const _Self& __x) const
^
/usr/include/c++/4.8.2/bits/stl_tree.h:221:7: note: no known conversion for argument 1 from ‘std::map<int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, int> >}’ to ‘const _Self& {aka const std::_Rb_tree_iterator<std::pair<const long int, int> >&}’
In file included from /usr/include/c++/4.8.2/string:52:0,
from …/force.h:20,
from …/compute_chunk_atom.cpp:20:
/usr/include/c++/4.8.2/bits/basic_string.h:2556:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
/usr/include/c++/4.8.2/bits/basic_string.h:2556:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:997:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::basic_string<_CharT, _Traits, _Alloc>’
for (pos = hash->begin(); pos != hash->end(); ++pos) {
^
In file included from /usr/include/c++/4.8.2/string:52:0,
from …/force.h:20,
from …/compute_chunk_atom.cpp:20:
/usr/include/c++/4.8.2/bits/basic_string.h:2544:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator!=(const _CharT* __lhs,
^
/usr/include/c++/4.8.2/bits/basic_string.h:2544:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:997:46: note: mismatched types ‘const _CharT*’ and ‘std::_Rb_tree_iterator<std::pair<const long int, int> >’
for (pos = hash->begin(); pos != hash->end(); ++pos) {
^
In file included from /usr/include/c++/4.8.2/string:52:0,
from …/force.h:20,
from …/compute_chunk_atom.cpp:20:
/usr/include/c++/4.8.2/bits/basic_string.h:2532:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
/usr/include/c++/4.8.2/bits/basic_string.h:2532:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:997:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::basic_string<_CharT, _Traits, _Alloc>’
for (pos = hash->begin(); pos != hash->end(); ++pos) {
^
In file included from /usr/include/c++/4.8.2/bits/char_traits.h:40:0,
from /usr/include/c++/4.8.2/string:40,
from …/force.h:20,
from …/compute_chunk_atom.cpp:20:
/usr/include/c++/4.8.2/bits/postypes.h:221:5: note: template bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&)
operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
^
/usr/include/c++/4.8.2/bits/postypes.h:221:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:997:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::fpos<_StateT>’
for (pos = hash->begin(); pos != hash->end(); ++pos) {
^
In file included from /usr/include/c++/4.8.2/map:62:0,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_multimap.h:888:5: note: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator!=(const std::multimap<_Key, _Tp, _Compare, _Alloc>&, const std::multimap<_Key, _Tp, _Compare, _Alloc>&)
operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
^
/usr/include/c++/4.8.2/bits/stl_multimap.h:888:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:997:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::multimap<_Key, _Tp, _Compare, _Alloc>’
for (pos = hash->begin(); pos != hash->end(); ++pos) {
^
In file included from /usr/include/c++/4.8.2/map:61:0,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_map.h:986:5: note: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator!=(const std::map<_Key, _Tp, _Compare, _Alloc>&, const std::map<_Key, _Tp, _Compare, _Alloc>&)
operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x,
^
/usr/include/c++/4.8.2/bits/stl_map.h:986:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:997:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::map<_Key, _Tp, _Compare, _Alloc>’
for (pos = hash->begin(); pos != hash->end(); ++pos) {
^
In file included from /usr/include/c++/4.8.2/map:60:0,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_tree.h:927:5: note: template<class _Key, class _Val, class _KeyOfValue, class _Compare, class _Alloc> bool std::operator!=(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&, const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)
operator!=(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
^
/usr/include/c++/4.8.2/bits/stl_tree.h:927:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:997:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>’
for (pos = hash->begin(); pos != hash->end(); ++pos) {
^
In file included from /usr/include/c++/4.8.2/map:60:0,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_tree.h:316:5: note: template bool std::operator!=(const std::_Rb_tree_iterator<_Tp>&, const std::_Rb_tree_const_iterator<_Val>&)
operator!=(const _Rb_tree_iterator<_Val>& __x,
^
/usr/include/c++/4.8.2/bits/stl_tree.h:316:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:997:46: note: ‘std::map<int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, int> >}’ is not derived from ‘const std::_Rb_tree_const_iterator<_Val>’
for (pos = hash->begin(); pos != hash->end(); ++pos) {
^
In file included from /usr/include/c++/4.8.2/bits/stl_tree.h:62:0,
from /usr/include/c++/4.8.2/map:60,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/allocator.h:143:5: note: template bool std::operator!=(const std::allocator<_Tp1>&, const std::allocator<_Tp1>&)
operator!=(const allocator<_Tp>&, const allocator<_Tp>&)
^
/usr/include/c++/4.8.2/bits/allocator.h:143:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:997:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::allocator<_Tp1>’
for (pos = hash->begin(); pos != hash->end(); ++pos) {
^
In file included from /usr/include/c++/4.8.2/bits/stl_tree.h:62:0,
from /usr/include/c++/4.8.2/map:60,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/allocator.h:138:5: note: template<class _T1, class _T2> bool std::operator!=(const std::allocator<_Tp1>&, const std::allocator<_T2>&)
operator!=(const allocator<_T1>&, const allocator<_T2>&)
^
/usr/include/c++/4.8.2/bits/allocator.h:138:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:997:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::allocator<_Tp1>’
for (pos = hash->begin(); pos != hash->end(); ++pos) {
^
In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:67:0,
from /usr/include/c++/4.8.2/bits/stl_tree.h:61,
from /usr/include/c++/4.8.2/map:60,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_iterator.h:353:5: note: template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
operator!=(const reverse_iterator<_IteratorL>& __x,
^
/usr/include/c++/4.8.2/bits/stl_iterator.h:353:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:997:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::reverse_iterator<_Iterator>’
for (pos = hash->begin(); pos != hash->end(); ++pos) {
^
In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:67:0,
from /usr/include/c++/4.8.2/bits/stl_tree.h:61,
from /usr/include/c++/4.8.2/map:60,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_iterator.h:303:5: note: template bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
operator!=(const reverse_iterator<_Iterator>& __x,
^
/usr/include/c++/4.8.2/bits/stl_iterator.h:303:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:997:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::reverse_iterator<_Iterator>’
for (pos = hash->begin(); pos != hash->end(); ++pos) {
^
In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8.2/bits/stl_tree.h:61,
from /usr/include/c++/4.8.2/map:60,
from …/compute_chunk_atom.h:24,
from …/compute_chunk_atom.cpp:17:
/usr/include/c++/4.8.2/bits/stl_pair.h:227:5: note: template<class _T1, class _T2> bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
^
/usr/include/c++/4.8.2/bits/stl_pair.h:227:5: note: template argument deduction/substitution failed:
…/compute_chunk_atom.cpp:997:46: note: ‘std::map<long int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const long int, int> >}’ is not derived from ‘const std::pair<_T1, _T2>’
for (pos = hash->begin(); pos != hash->end(); ++pos) {
^
…/compute_chunk_atom.cpp: In member function ‘void LAMMPS_NS::ComputeChunkAtom::check_molecules()’:
…/compute_chunk_atom.cpp:1029:25: error: cannot convert ‘LAMMPS_NS::tagint* {aka long int*}’ to ‘int*’ in initialization
int *molecule = atom->molecule;
^
make[1]: *** [compute_chunk_atom.o] Error 1
make[1]: Leaving directory `/home/qi/lammps/src/Obj_g++’
make: *** [g++] Error 2

Anyone who can help me?

Just change the offending line to
tagint *molecule = atom->molecule;

It will be in the next patch.

Steve

Thanks for you reply, I update to today’s version, but the problem still exists.
Best regards,
Qitao

Thanks for you reply, I update to today's version, but the problem still

the svn and git repositories were not syncing since friday and are
only in sync again since less than two hours ago.
so please check again.

axel.