build failure in modules/traincascade/boost.cpp (Bug #894)
Description
building OpenCV 2.2 on Solaris 11express with the sun studio 12u1 compiler fails with the below error
I do not have a patch ATM
...
[ 95%] Building CXX object modules/traincascade/CMakeFiles/opencv_traincascade.dir/boost.o
cd /export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade && /opt/sunstudio12.1/bin/CC -DHAVE_CONFIG_H -D_REENTRANT -DNDEBUG -D+EXTENSIONS+ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -DSOLARIS10 -DNO_DEBUG -D_UNICODE -DUNICODE -D_RWSTD_REENTRANT -D_XOPEN_SOURCE=500 -D_XPG5 -I/usr/include/stdcxx4/ansi -I/usr/include/stdcxx4 -I/opt/kde4/include -I/usr/include/stdcxx4/ansi -I/usr/include/stdcxx4 -library=no%Cstd -library=Crun -features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic -instances=global -template=geninlinefuncs -s -xdebugformat=dwarf -xlang=c99 -xalias_level=compatible -xustr=ascii_utf16_ushort -Qoption ccfe -features=gcc -Qoption ccfe -features=zla -Qoption ccfe ++boolflag:sunwcch=false -mt -xF=%none -xbuiltin=%all -xinline=%auto -xprefetch=auto -xprefetch_auto_type=indirect_array_access -xprefetch_level=3 -xalias_level=compatible -KPIC -DPIC -xipo=0 -xO3 -xregs=no%frameptr -xjobs=2 -xrestrict=%all -xthreadvar=%all -z combreloc -z redlocsym -z nodefaultlib -z ignore -z now -z rescan -z absexec -xldscope=symbolic -xlibmil -s -xtarget=pentium4 -m32 -xarch=sse2 -xchip=pentium4 -xcache=8/64/4:256/128/8 -lc -lm -ldl -lpthread -lposix4 -lrt -mt -Y P,/opt/kde4/lib -i -L/opt/kde4/lib -R/opt/kde4/lib -L/usr/lib -R/usr/lib -Bdynamic -lstdcxx4 -lCrun -lc -lm -m32 -s -Y P,/opt/kde4/lib -i -L/opt/kde4/lib -R/opt/kde4/lib -L/usr/lib -R/usr/lib -Bdynamic -lstdcxx4 -lCrun -lc -lm -xtarget=pentium4 -m32 -xarch=sse2 -xchip=pentium4 -xcache=8/64/4:256/128/8 -xipo=0 -xO3 -xO3 -DNDEBUG -I/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/. -I/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0 -I/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/include -I/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/include/opencv -I/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade -I/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/core/include -I/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/imgproc/include -I/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/objdetect/include -I/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/ml/include -I/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/highgui/include -I/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/video/include -I/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/features2d/include -I/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/flann/include -I/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/calib3d/include -I/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/legacy/include -o CMakeFiles/opencv_traincascade.dir/boost.o -c /export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.cpp
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/flann/include/opencv2/flann/allocator.h", line 94: Warning: blocksize hides cvflann::PooledAllocator::blocksize.
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/flann/include/opencv2/flann/allocator.h", line 124: Warning: blocksize hides cvflann::PooledAllocator::blocksize.
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/ml/include/opencv2/ml/ml.hpp", line 750: Warning: Types cannot be declared in anonymous union.
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/ml/include/opencv2/ml/ml.hpp", line 1061: Warning: CvForestTree::train hides the virtual function CvDTree::train(const cv::Mat&, int, const cv::Mat&, const cv::Mat&, const cv::Mat&, const cv::Mat&, const cv::Mat&, CvDTreeParams).
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/ml/include/opencv2/ml/ml.hpp", line 1061: Warning: CvForestTree::train hides the virtual function CvDTree::train(CvMLData*, CvDTreeParams).
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/ml/include/opencv2/ml/ml.hpp", line 1280: Warning: CvBoostTree::train hides the virtual function CvDTree::train(const cv::Mat&, int, const cv::Mat&, const cv::Mat&, const cv::Mat&, const cv::Mat&, const cv::Mat&, CvDTreeParams).
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/ml/include/opencv2/ml/ml.hpp", line 1280: Warning: CvBoostTree::train hides the virtual function CvDTree::train(CvMLData*, CvDTreeParams).
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.h", line 60: Warning: CvCascadeBoostTree::predict hides the virtual function CvDTree::predict(const CvMat*, const CvMat*, bool) const.
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.h", line 60: Warning: CvCascadeBoostTree::predict hides the virtual function CvDTree::predict(const cv::Mat&, const cv::Mat&, bool) const.
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.h", line 60: Warning: CvCascadeBoostTree::write hides the virtual function CvDTree::write(CvFileStorage*, const char*) const.
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.h", line 60: Warning: CvCascadeBoostTree::write hides the virtual function CvDTree::write(CvFileStorage*) const.
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.h", line 60: Warning: CvCascadeBoostTree::read hides the virtual function CvBoostTree::read(CvFileStorage*, CvFileNode*, CvBoost*, CvDTreeTrainData*).
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.h", line 60: Warning: CvCascadeBoostTree::read hides the virtual function CvBoostTree::read(CvFileStorage*, CvFileNode*, CvDTreeTrainData*).
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.h", line 60: Warning: CvCascadeBoostTree::read hides the virtual function CvBoostTree::read(CvFileStorage*, CvFileNode*).
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.h", line 82: Warning: CvCascadeBoost::train hides the virtual function CvBoost::train(const CvMat*, int, const CvMat*, const CvMat*, const CvMat*, const CvMat*, const CvMat*, CvBoostParams, bool).
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.h", line 82: Warning: CvCascadeBoost::train hides the virtual function CvBoost::train(const cv::Mat&, int, const cv::Mat&, const cv::Mat&, const cv::Mat&, const cv::Mat&, const cv::Mat&, CvBoostParams, bool).
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.h", line 82: Warning: CvCascadeBoost::train hides the virtual function CvBoost::train(CvMLData*, CvBoostParams, bool).
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.h", line 82: Warning: CvCascadeBoost::predict hides the virtual function CvBoost::predict(const CvMat*, const CvMat*, CvMat*, CvSlice, bool, bool) const.
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.h", line 82: Warning: CvCascadeBoost::predict hides the virtual function CvBoost::predict(const cv::Mat&, const cv::Mat&, const cv::Range&, bool, bool) const.
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.h", line 82: Warning: CvCascadeBoost::write hides the virtual function CvBoost::write(CvFileStorage*, const char*) const.
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.h", line 82: Warning: CvCascadeBoost::read hides the virtual function CvBoost::read(CvFileStorage*, CvFileNode*).
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.cpp", line 1325: Error: right is not defined.
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.cpp", line 1326: Error: right is not defined.
"/export/home/test/packages/BUILD/OpenCV-2.2.0/i386/OpenCV-2.2.0/modules/traincascade/boost.cpp", line 1327: Error: right is not defined.
History
Updated by Vadim Pisarevsky almost 14 years ago
the problem can not be reproduced with the trunk version; probably, it has been fixed.
- Status changed from Open to Done
- (deleted custom field) set to fixed