Latest git pull breaks stat.cpp.o build (Bug #2938)
Description
net1# git describe 2.4.4-912-g78c70ab [ 1%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/stat.cpp.o cd /smartbuild/work/opencv.git/release/modules/core && /usr/bin/c++ -Dopencv_core_EXPORTS -DHAVE_CVCONFIG_H -D__OPENCV_BUILD=1 -DCVAPI_EXPORTS -DOPENCV_NOSTL -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -msse3 -ffunction-sections -O3 -DNDEBUG -DNDEBUG -fPIC -I/smartbuild/work/opencv.git/modules/core/perf -I/smartbuild/work/opencv.git/modules/highgui/include -I/smartbuild/work/opencv.git/modules/imgproc/include -I/smartbuild/work/opencv.git/modules/core/include -I/smartbuild/work/opencv.git/modules/ts/include -I/smartbuild/work/opencv.git/release/modules/core -I/smartbuild/work/opencv.git/modules/core/src -I/smartbuild/work/opencv.git/modules/core/test -I/smartbuild/work/opencv.git/modules/gpu/include -I/smartbuild/work/opencv.git/release -isystem /usr/local/include -include "/smartbuild/work/opencv.git/release/modules/core/precomp.hpp" -Winvalid-pch -o CMakeFiles/opencv_core.dir/src/stat.cpp.o -c /smartbuild/work/opencv.git/modules/core/src/stat.cpp /smartbuild/work/opencv.git/modules/core/src/stat.cpp: In function ‘void cv::batchDistL1_(const _Tp*, const _Tp*, size_t, int, int, _Rt*, const uchar*)’: /smartbuild/work/opencv.git/modules/core/src/stat.cpp:1597:20: error: ‘numeric_limits’ is not a member of ‘std’ /smartbuild/work/opencv.git/modules/core/src/stat.cpp:1597:43: error: expected primary-expression before ‘>’ token /smartbuild/work/opencv.git/modules/core/src/stat.cpp:1597:44: error: ‘::max’ has not been declared /smartbuild/work/opencv.git/modules/core/src/stat.cpp:1597:44: note: suggested alternatives: In file included from /usr/include/c++/4.7/algorithm:62:0, from /smartbuild/work/opencv.git/modules/core/include/opencv2/core/cvstd.hpp:63, from /smartbuild/work/opencv.git/modules/core/include/opencv2/core/base.hpp:54, from /smartbuild/work/opencv.git/modules/core/include/opencv2/core.hpp:52, from /smartbuild/work/opencv.git/modules/core/include/opencv2/core/utility.hpp:51, from /smartbuild/work/opencv.git/release/modules/core/precomp.hpp:46: /usr/include/c++/4.7/bits/stl_algobase.h:254:5: note: ‘std::max’ In file included from /smartbuild/work/opencv.git/modules/core/include/opencv2/core/utility.hpp:51:0, from /smartbuild/work/opencv.git/release/modules/core/precomp.hpp:46: /smartbuild/work/opencv.git/modules/core/include/opencv2/core.hpp:302:17: note: ‘cv::max’ /smartbuild/work/opencv.git/modules/core/src/stat.cpp: In function ‘void cv::batchDistL2Sqr_(const _Tp*, const _Tp*, size_t, int, int, _Rt*, const uchar*)’: /smartbuild/work/opencv.git/modules/core/src/stat.cpp:1615:20: error: ‘numeric_limits’ is not a member of ‘std’ /smartbuild/work/opencv.git/modules/core/src/stat.cpp:1615:43: error: expected primary-expression before ‘>’ token /smartbuild/work/opencv.git/modules/core/src/stat.cpp:1615:44: error: ‘::max’ has not been declared /smartbuild/work/opencv.git/modules/core/src/stat.cpp:1615:44: note: suggested alternatives: In file included from /usr/include/c++/4.7/algorithm:62:0, from /smartbuild/work/opencv.git/modules/core/include/opencv2/core/cvstd.hpp:63, from /smartbuild/work/opencv.git/modules/core/include/opencv2/core/base.hpp:54, from /smartbuild/work/opencv.git/modules/core/include/opencv2/core.hpp:52, from /smartbuild/work/opencv.git/modules/core/include/opencv2/core/utility.hpp:51, from /smartbuild/work/opencv.git/release/modules/core/precomp.hpp:46: /usr/include/c++/4.7/bits/stl_algobase.h:254:5: note: ‘std::max’ In file included from /smartbuild/work/opencv.git/modules/core/include/opencv2/core/utility.hpp:51:0, from /smartbuild/work/opencv.git/release/modules/core/precomp.hpp:46: /smartbuild/work/opencv.git/modules/core/include/opencv2/core.hpp:302:17: note: ‘cv::max’ /smartbuild/work/opencv.git/modules/core/src/stat.cpp: In function ‘void cv::batchDistL2_(const _Tp*, const _Tp*, size_t, int, int, _Rt*, const uchar*)’: /smartbuild/work/opencv.git/modules/core/src/stat.cpp:1633:20: error: ‘numeric_limits’ is not a member of ‘std’ /smartbuild/work/opencv.git/modules/core/src/stat.cpp:1633:43: error: expected primary-expression before ‘>’ token /smartbuild/work/opencv.git/modules/core/src/stat.cpp:1633:44: error: ‘::max’ has not been declared /smartbuild/work/opencv.git/modules/core/src/stat.cpp:1633:44: note: suggested alternatives: In file included from /usr/include/c++/4.7/algorithm:62:0, from /smartbuild/work/opencv.git/modules/core/include/opencv2/core/cvstd.hpp:63, from /smartbuild/work/opencv.git/modules/core/include/opencv2/core/base.hpp:54, from /smartbuild/work/opencv.git/modules/core/include/opencv2/core.hpp:52, from /smartbuild/work/opencv.git/modules/core/include/opencv2/core/utility.hpp:51, from /smartbuild/work/opencv.git/release/modules/core/precomp.hpp:46: /usr/include/c++/4.7/bits/stl_algobase.h:254:5: note: ‘std::max’ In file included from /smartbuild/work/opencv.git/modules/core/include/opencv2/core/utility.hpp:51:0, from /smartbuild/work/opencv.git/release/modules/core/precomp.hpp:46: /smartbuild/work/opencv.git/modules/core/include/opencv2/core.hpp:302:17: note: ‘cv::max’ make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/stat.cpp.o] Error 1 make[2]: Leaving directory `/smartbuild/work/opencv.git/release' make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 make[1]: Leaving directory `/smartbuild/work/opencv.git/release' make: *** [all] Error 2
Associated revisions
fixed bug #2938
History
Updated by Vladislav Vinogradov almost 12 years ago
- Description changed from net1# git describe 2.4.4-912-g78c70ab [ 1%] Building CXX object modules/... to <pre> net1# git describe 2.4.4-912-g78c70ab [ 1%] Building CXX ob... More
Updated by Vladislav Vinogradov almost 12 years ago
Hello, David Favor.
The opencv2/core/cvstd.hpp
, opencv2/core/base.hpp
, opencv2/core.hpp
were introduced in master branch:
In file included from /usr/include/c++/4.7/algorithm:62:0,
from /smartbuild/work/opencv.git/modules/core/include/opencv2/core/cvstd.hpp:63,
from /smartbuild/work/opencv.git/modules/core/include/opencv2/core/base.hpp:54,
from /smartbuild/work/opencv.git/modules/core/include/opencv2/core.hpp:52,
from /smartbuild/work/opencv.git/modules/core/include/opencv2/core/utility.hpp:51,
from /smartbuild/work/opencv.git/release/modules/core/precomp.hpp:46:
This headers is not available in 2.4 branch. But you post
net1# git describe
2.4.4-912-g78c70ab
There is some mismatch in your local repository. Please check that you are on 2.4 branch and try to rebuild library (rerun cmake, run make clean, and then make).
- Affected version changed from branch '2.4' to branch 'master' (2.4.9)
- Status changed from Open to Cancelled
Updated by David Favor almost 12 years ago
net1# git clone git://code.opencv.org/opencv.git opencv.git
net1# cd opencv.git
net1# git describe
2.4.5-797-g67073da
Same problem. See attached file for detail.
- File opencv.build.log added
Updated by David Favor almost 12 years ago
net1# git branch -ar
origin/2.4
origin/HEAD -> origin/master
origin/cuda-dev
origin/master
I'm using the default git clone repository (master).
Updated by David Favor almost 12 years ago
Fails in same way with today's pull...
net1# git describe
2.4.5-807-g54511b4
Updated by Vladislav Vinogradov almost 12 years ago
- Status changed from Cancelled to Open
Updated by Vladislav Vinogradov almost 12 years ago
- Pull request set to https://github.com/Itseez/opencv/pull/788
- Assignee set to Vladislav Vinogradov
Updated by Vladislav Vinogradov almost 12 years ago
Hello, David Favor.
This bug must be fixed in last commit. Could you pull last changes and check build?
By the way, current master branch is unstable due to refactoring process.
If you want to use stable OpenCV I recommend you to use 2.4 version (2.4.5 or 2.4 branch).
Updated by Vladislav Vinogradov almost 12 years ago
- Status changed from Open to Done