Hi,

A couple of bugs turn up when building 3.8.1 using portland group compiler (see below) I attached a patch for each, hoping they can make it into the 3.10 release if they are not already there.

Burlen


[1]

[ 84%] Building CXX object Servers/Filters/CMakeFiles/vtkPVFilters.dir/vtkMaterialInterfaceIdList.cxx.o "/global/common/euclid/usg/pgi/10.8/linux86-64/10.8/include/CC/stl/_function_base.h", line 76: error:
          no operator "<" matches these operands
            operand types are: const vtkMaterialInterfaceIdListItem < const
                      vtkMaterialInterfaceIdListItem
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=vtkMaterialInterfaceIdListItem]" at line 154 of
"/global/common/euclid/usg/pgi/10.8/linux86-64/10.8/inclu
                      de/CC/stl/_heap.c"
instantiation of "void std::__adjust_heap(_RandomAccessIterator,
                      _Distance, _Distance, _Tp, _Compare) [with
_RandomAccessIterator=vtkMaterialInterfaceIdListItem *,
                      _Distance=long, _Tp=vtkMaterialInterfaceIdListItem,
_Compare=std::less<vtkMaterialInterfaceIdListItem>]" at
                      line 224 of
"/global/common/euclid/usg/pgi/10.8/linux86-64/10.8/inclu
                      de/CC/stl/_heap.c"
            instantiation of "void std::__make_heap(_RandomAccessIterator,
                      _RandomAccessIterator, _Compare, _Tp *, _Distance *)
                      [with
_RandomAccessIterator=vtkMaterialInterfaceIdListItem *,
                      _Compare=std::less<vtkMaterialInterfaceIdListItem>,
_Tp=vtkMaterialInterfaceIdListItem, _Distance=ptrdiff_t]"
                      at line 236 of
"/global/common/euclid/usg/pgi/10.8/linux86-64/10.8/inclu
                      de/CC/stl/_heap.c"
            instantiation of "void std::make_heap(_RandomAccessIterator,
                      _RandomAccessIterator, _Compare) [with
_RandomAccessIterator=vtkMaterialInterfaceIdListItem *, _Compare=std::less<vtkMaterialInterfaceIdListItem>]" at
                      line 1055 of
"/global/common/euclid/usg/pgi/10.8/linux86-64/10.8/inclu
                      de/CC/stl/_algo.c"
            instantiation of "void std::__partial_sort(_RandomAccessIter,
_RandomAccessIter, _RandomAccessIter, _Tp *, _Compare) [with _RandomAccessIter=vtkMaterialInterfaceIdListItem
                      *, _Tp=vtkMaterialInterfaceIdListItem,
_Compare=std::less<vtkMaterialInterfaceIdListItem>]" at
                      line 1070 of
"/global/common/euclid/usg/pgi/10.8/linux86-64/10.8/inclu
                      de/CC/stl/_algo.c"
            instantiation of "void std::partial_sort(_RandomAccessIter,
                      _RandomAccessIter, _RandomAccessIter) [with
_RandomAccessIter=vtkMaterialInterfaceIdListItem *]" at
                      line 78 of
"/global/homes/l/loring/Euclid/ParaView/ParaView-3.8.1/Se
                      rvers/Filters/vtkMaterialInterfaceIdList.cxx"

1 error detected in the compilation of "/global/homes/l/loring/Euclid/ParaView/ParaView-3.8.1/Servers/Filters/vtkMaterialInterfaceIdList.cxx". make[2]: *** [Servers/Filters/CMakeFiles/vtkPVFilters.dir/vtkMaterialInterfaceIdList.cxx.o] Error 2
make[1]: *** [Servers/Filters/CMakeFiles/vtkPVFilters.dir/all] Error 2
make: *** [all] Error 2



[2]

"/global/homes/l/loring/Euclid/ParaView/ParaView-3.8.1/Servers/Filters/vtkEnSightReader2.h", line 331: error:
          namespace "std" has no member "string"
    vtkstd::map<vtkstd::string, vtkstd::map<int, long> > FileOffsets;
                        ^

1 error detected in the compilation of "/global/homes/l/loring/Euclid/ParaView/PV3-3.8.1-pgi/Servers/Filters/vtkEnSight6BinaryReader2ClientServer.cxx". make[2]: *** [Servers/Filters/CMakeFiles/vtkPVFiltersCS.dir/vtkEnSight6BinaryReader2ClientServer.cxx.o] Error 2
make[1]: *** [Servers/Filters/CMakeFiles/vtkPVFiltersCS.dir/all] Error 2
make: *** [all] Error 2



--- ../ParaView-3.8.1/Servers/Filters/vtkEnSightReader2.h	2010-09-28 07:08:44.000000000 -0700
+++ /global/homes/l/loring/Euclid/ParaView/ParaView-3.8.1/Servers/Filters/vtkEnSightReader2.h	2011-02-11 16:31:22.501429000 -0800
@@ -19,6 +19,7 @@
 
 #include "vtkGenericEnSightReader2.h"
 #include <vtkstd/map> // For ivars
+#include <vtkstd/string> // For ivars
 
 class vtkDataSet;
 class vtkDataSetCollection;
--- ../ParaView-3.8.1/Servers/Filters/vtkMaterialInterfaceIdListItem.h	2010-09-28 07:08:45.000000000 -0700
+++ /global/homes/l/loring/Euclid/ParaView/ParaView-3.8.1/Servers/Filters/vtkMaterialInterfaceIdListItem.h	2011-02-11 16:18:58.306562000 -0800
@@ -66,27 +66,27 @@
     return this->Data[GLOBAL_ID];
   }
   // Comparison made by global id.
-  bool operator<(vtkMaterialInterfaceIdListItem &other)
+  bool operator<(const vtkMaterialInterfaceIdListItem &other) const
   {
     return this->GetGlobalId()<other.GetGlobalId();
   }
   // Comparison made by global id.
-  bool operator<=(vtkMaterialInterfaceIdListItem &other)
+  bool operator<=(const vtkMaterialInterfaceIdListItem &other) const
   {
     return this->GetGlobalId()<=other.GetGlobalId();
   }
   // Comparison made by global id.
-  bool operator>(vtkMaterialInterfaceIdListItem &other)
+  bool operator>(const vtkMaterialInterfaceIdListItem &other) const
   {
     return this->GetGlobalId()>other.GetGlobalId();
   }
   // Comparison made by global id.
-  bool operator>=(vtkMaterialInterfaceIdListItem &other)
+  bool operator>=(const vtkMaterialInterfaceIdListItem &other) const
   {
     return this->GetGlobalId()>=other.GetGlobalId();
   }
   // Comparison made by global id.
-  bool operator==(vtkMaterialInterfaceIdListItem &other)
+  bool operator==(const vtkMaterialInterfaceIdListItem &other) const
   {
     return this->GetGlobalId()==other.GetGlobalId();
   }
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to