I am trying to build vxl 1.5.1 on ia64 with the following:

 

CXX=icpc

CC=icc

CXXFLAGS=-cxxlib-icc

 

The following error is reported:

 

Building CXX object core/vil/algo/CMakeFiles/vil_algo.dir/Templates/vil_median+bool-.o

/opt/intel_cc_80/include/c++/algorithm(428): error: no instance of overloaded function "std::swap" matches the argument list

            argument types are: (std::vector<bool, std::allocator<bool>>::iterator::reference, std::vector<bool, std::allocator<bool>>::iterator::reference)

        _STD_DW swap(*_Left, *_Right);

        ^

          detected during:

            instantiation of "void std::iter_swap(_FwdIt1, _FwdIt2) [with _FwdIt1=std::vector<bool, std::allocator<bool>>::iterator, _FwdIt2=std::vector<bool, std::allocator<bool>>::iterator]" at line 1875

            instantiation of "void std::_Med3(_RanIt, _RanIt, _RanIt) [with _RanIt=std::vector<bool, std::allocator<bool>>::iterator]" at line 1888

            instantiation of "void std::_Median(_RanIt, _RanIt, _RanIt) [with _RanIt=std::vector<bool, std::allocator<bool>>::iterator]" at line 1901

            instantiation of "std::pair<_FwdIt, _FwdIt> std::_Unguarded_partition(_RanIt, _RanIt) [with _RanIt=std::vector<bool, std::allocator<bool>>::iterator]" at line 2478

            instantiation of "void std::nth_element(_RanIt, _RanIt, _RanIt) [with _RanIt=std::vector<bool, std::allocator<bool>>::iterator]" at line 47 of "/cis/project/software/opt/ia64/vxl-1.5.1/core/vil/algo/vil_median.h"

            instantiation of "T vil_sorted_value(const vil_image_view<T> &, unsigned int, const vil_structuring_element &, int, int, std::vector<T, std::allocator<_Elem>> &, double) [with T=bool]" at line 44 of "/cis/project/software/opt/ia64/vxl-1.5.1/core/vil/algo/vil_median.txx"

            instantiation of "void vil_median(const vil_image_view<T> &, vil_image_view<T> &, const vil_structuring_element &) [with T=bool]"

 

compilation aborted for /cis/project/software/opt/ia64/vxl-1.5.1/core/vil/algo/Templates/vil_median+bool-.cxx (code 2)

make[2]: *** [core/vil/algo/CMakeFiles/vil_algo.dir/Templates/vil_median+bool-.o] Error 2

 

 

I can build 1.4.0 in the same environment.

 

Any help would be appreciated.

 

Michael Bowers