Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests modules build fails (Clang) conflicting types for sigsetjmp #5740

Closed
PolarNick239 opened this issue Dec 2, 2015 · 1 comment
Closed

Comments

@PolarNick239
Copy link
Contributor

When trying to compile with Clang-3.7:

In file included from /home/polarnick/libraries/opencv/master/opencv/modules/ts/src/ts.cpp:116:
/usr/include/setjmp.h:59:12: error: conflicting types for '__sigsetjmp'
extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask) __THROWNL;
           ^
/usr/include/pthread.h:745:12: note: previous declaration is here
extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) __THROWNL;
           ^
1 error generated.
modules/ts/CMakeFiles/opencv_ts.dir/build.make:146: recipe for target 'modules/ts/CMakeFiles/opencv_ts.dir/src/ts.cpp.o' failed

Relevant issues:

Workaround:

Don't build tests module: run cmake with -DBUILD_opencv_ts=0.

@andreygursky
Copy link

This has been fixed in 2.4 a year ago: 6bb6039. Unfortunately, without any meaningful commit message (i.e., why this was needed for QNX support). The recent commit message doesn't explain it either. It doesn't even refer to this bug report.

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

No branches or pull requests

3 participants