Weird Compiler Error of the Day
by JS
I got the following error when trying to compile the latest svn version of opencv:
error: invalid controlling predicate
A quick Google search yielded this gem of a compiler bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38650.
The offending loop:
#ifdef _OPENMP #pragma omp for schedule(static, 1) #endif /* _OPENMP */ for( i = first; (i < first + count) && next; i++ )
That is all.
UPDATE: Turns out I was using a stale configuration file from svn for this build. It seems like OpenCV has entirely too many build systems. They should ditch autoconf and go with cmake exclusively.
