ports/160856: graphics/opencv-core: CLANG build fails

Hartmann at FreeBSD.org Hartmann at FreeBSD.org
Tue Sep 20 20:30:16 UTC 2011


>Number:         160856
>Category:       ports
>Synopsis:       graphics/opencv-core: CLANG build fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 20 20:30:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Hartmann, Oliver
>Release:        FreeBSD 9.0-BETA2/amd64 CLANG built
>Organization:
FU Berlin
>Environment:
>Description:
Updatuing/building port graphics/opencv-core with CLANG fails with follwoing error: 

In file included from /usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/modules/flann/include/opencv2/flann/params.h:33:
/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/modules/flann/include/opencv2/flann/any.h:88:67: error: call to function 'operator<<' that is neither visible in the template definition nor found by argument-dependent lookup
    virtual void print(std::ostream& out, void* const* src) { out << *reinterpret_cast<T const*>(*src); }
                                                                  ^
/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/modules/flann/include/opencv2/flann/any.h:136:44: note: in instantiation of member function 'cdiggins::anyimpl::big_any_policy<cdiggins::anyimpl::empty_any>::print' requested here
    static typename choose_policy<T>::type policy;
                                           ^
/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/modules/flann/include/opencv2/flann/any.h:159:18: note: in instantiation of function template specialization 'cdiggins::anyimpl::get_policy<cdiggins::anyimpl::empty_any>' requested here
        : policy(anyimpl::get_policy<anyimpl::empty_any>()), object(NULL)
                 ^
/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/modules/flann/include/opencv2/flann/any.h:276:22: note: 'operator<<' should be declared prior to the call site or in namespace 'cdiggins::anyimpl'
inline std::ostream& operator <<(std::ostream& out, const any& any_val)
                     ^
2 errors generated.
*** Error code 1
1 error
*** Error code 2
[ 23%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/precomp.o
/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/modules/ts/src/ts_gtest.cpp:4945:7: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]
      *static_cast<int*>(NULL) = 1;
      ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/ports/graphics/opencv-core/work/OpenCV-2.3.1/modules/ts/src/ts_gtest.cpp:4945:7: note: consider using __builtin_trap() or qualifying pointer with 'volatile'
[ 24%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_arrtest.o
[ 25%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts.o
[ 26%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_func.o
1 warning generated.
Linking CXX shared library ../../lib/libopencv_ts.so
[ 26%] Built target opencv_ts
1 error
*** Error code 2
1 error
*** Error code 1

Stop in /usr/ports/graphics/opencv-core.

>How-To-Repeat:
Try building port graphics/opencv-core with CLANG
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list