You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The build fails on i386 systems with no __SSE__ due to missing _mm_pause() #11274
On the mageia i586 build system I am getting this:
/home/iurt/rpmbuild/BUILD/opencv-3.4.1/modules/core/src/parallel_impl.cpp:396:21: note: in expansion of macro 'CV_PAUSE' CV_PAUSE(16); ^~~~~~~~ /home/iurt/rpmbuild/BUILD/opencv-3.4.1/modules/core/src/parallel_impl.cpp: In member function 'void cv::ThreadPool::run(const cv::Range&, const cv::ParallelLoopBody&, double)': /home/iurt/rpmbuild/BUILD/opencv-3.4.1/modules/core/src/parallel_impl.cpp:53:79: error: '_mm_pause' was not declared in this scope # define CV_PAUSE(v) do { for (int __delay = (v); __delay > 0; --__delay) { _mm_pause(); } } while (0) ^ /home/iurt/rpmbuild/BUILD/opencv-3.4.1/modules/core/src/parallel_impl.cpp:673:33: note: in expansion of macro 'CV_PAUSE' CV_PAUSE(16);
_mm_pause is actually SSE2 only. I have a P3 machine with SSE but no SSE2 where the build still fails. A simple s/__SSE__/__SSE2__/ on top of #11275 is enough to fix it.
Activity
shlomif commentedon Apr 9, 2018
Also see http://debian.2.n7.nabble.com/Bug-735627-yrmcds-FTBFS-on-i386-mm-pause-was-not-declared-in-this-scope-td3153524.html
alalek commentedon Apr 9, 2018
Workaround is to specify custom
CV_PAUSE(v)macro with empty body via CXXFLAGS / CMAKE_CXX_FLAGS /OPENCV_EXTRA_CXX_FLAGS.alalek commentedon Apr 9, 2018
@shlomif Could you try this patch: #11275 ?
shlomif commentedon Apr 9, 2018
@alalek : thanks! Trying now on http://pkgsubmit.mageia.org/ .
shlomif commentedon Apr 10, 2018
@alalek : the patch seems to work fine on http://pkgsubmit.mageia.org/ - thanks!
vsyrjala commentedon May 12, 2019
_mm_pause is actually SSE2 only. I have a P3 machine with SSE but no SSE2 where the build still fails. A simple
s/__SSE__/__SSE2__/on top of #11275 is enough to fix it.alalek commentedon May 12, 2019
@vsyrjala Feel free to prepare Pull Request (for 3.4 branch).
vsyrjala commentedon May 13, 2019
Too lazy to fork for a oneliner.