[AMBER-Developers] cpptraj compilation error

From: InSuk Joung <i.joung.gmail.com>
Date: Thu, 31 May 2012 14:40:00 -0400

I just pulled a fresh copy from the git repository and tried compilation on
TACC ranger but I got this error message below. Does anyone can help
resolve the problem?
The compiler was pgi 7.2-5.

pgCC -c -I/work/01780/isjoung/AMBER/include -O2 -DBINTRAJ -DHASGZ -DHASBZ2
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DBINTRAJ
-I/work/01780/isjoung/AMBER/include -o ClusterList.o ClusterList.cpp
"ClusterNode.h", line 24: warning: type qualifier on return type is
meaningless
      inline const int Num() const { return num_; }
                       ^

"ClusterNode.h", line 25: warning: type qualifier on return type is
meaningless
      inline const int Centroid() const { return centroid_; }
                       ^

"/share/apps/pgi/7.2-5/linux86-64/7.2-5/include/CC/stl/_function_base.h",
line 76: error:
          no operator "<" matches these operands
            operand types are: const ClusterNode < const ClusterNode
    bool operator()(const _Tp& __x, const _Tp& __y) const { return __x <
__y; }
                                                                       ^
          detected during:
            instantiation of "bool std::less<_Tp>::operator()(const _Tp &,
                      const _Tp &) const [with _Tp=ClusterNode]" at line 161
                      of

"/share/apps/pgi/7.2-5/linux86-64/7.2-5/include/CC/stl/_l
                      ist.c"
            instantiation of "void std::_S_merge(std::list<_Tp, _Alloc> &,
                      std::list<_Tp, _Alloc> &, _StrictWeakOrdering) [with
                      _Tp=ClusterNode, _Alloc=std::allocator<ClusterNode>,
                      _StrictWeakOrdering=std::less<ClusterNode>]" at line
187
                      of

"/share/apps/pgi/7.2-5/linux86-64/7.2-5/include/CC/stl/_l
                      ist.c"
            instantiation of "void std::_S_sort(std::list<_Tp, _Alloc> &,
                      _StrictWeakOrdering) [with _Tp=ClusterNode,
                      _Alloc=std::allocator<ClusterNode>,
                      _StrictWeakOrdering=std::less<ClusterNode>]" at line
499
                      of

"/share/apps/pgi/7.2-5/linux86-64/7.2-5/include/CC/stl/_l
                      ist.h"
            instantiation of "void std::list<_Tp, _Alloc>::sort() [with
                      _Tp=ClusterNode, _Alloc=std::allocator<ClusterNode>]"

1 error detected in the compilation of "ClusterList.cpp".
make[3]: *** [ClusterList.o] Error 2
make[3]: Leaving directory
`/work/01780/isjoung/AMBER/AmberTools/src/cpptraj/src'
make[2]: *** [install] Error 2
make[2]: Leaving directory
`/work/01780/isjoung/AMBER/AmberTools/src/cpptraj'
make[1]: *** [serial] Error 2
make[1]: Leaving directory `/work/01780/isjoung/AMBER/AmberTools/src'
make: *** [install] Error 2


-- 
Best,
InSuk Joung
_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Thu May 31 2012 - 12:00:01 PDT
Custom Search