Skip to content

The build fails on i386 systems with no __SSE__ due to missing _mm_pause() #11274

Closed

Description

@shlomif

Hi!

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);

Please look into fixing it.

Activity

  1. alalek commented on Apr 9, 2018

    @alalek
    Member

    Workaround is to specify custom CV_PAUSE(v) macro with empty body via CXXFLAGS / CMAKE_CXX_FLAGS / OPENCV_EXTRA_CXX_FLAGS.

  2. alalek commented on Apr 9, 2018

    @alalek
    Member

    @shlomif Could you try this patch: #11275 ?

  3. vsyrjala commented on May 12, 2019

    @vsyrjala

    _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.

  4. alalek commented on May 12, 2019

    @alalek
    Member

    @vsyrjala Feel free to prepare Pull Request (for 3.4 branch).

  5. vsyrjala commented on May 13, 2019

    @vsyrjala

    Too lazy to fork for a oneliner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions