Jack,
Could you, please, submit a bug report? -- including steps to
reproduce (where you got imageMagick sources, how exactly you compiled
them, etc)
Andrey,
I opened...
https://llvm.org/bugs/show_bug.cgi?id=23387
This issue appears many times during the imagemagick build where the
register type being used in declaring loop iteration variables. The
preprocessed source attached to the bug report can be used to reproduce the
compiler error with the command...
# clang-3.7 -DHAVE_CONFIG_H -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -O3 -g -fopenmp=libiomp5 -Xclang
-fopenmp=libiomp5 -Wall -fexceptions -D_FORTIFY_SOURCE=0 -D_THREAD_SAFE
-DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -c attribute.i
where 'clang-3.7' is whatever you call your local clang 3.7svn compiler.
Hopefully that should suffice to debug this (unless you are missing
some more entries in the openmp headers and the preprocessed source needs
to be regenerated).
Jack
ps This issue can be hacked around for now by removing usage the 'register'
type on the offending local iteration variable declarations which exposed a
second blocker in the imagemagick build...
https://llvm.org/bugs/show_bug.cgi?id=23392
due to a compiler ICE. The problem can be reproduced with the preprocessed
source attached to that report and the command...
clang-3.7 -DHAVE_CONFIG_H -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp=libiomp5 -O2 -g -Xclang
-fopenmp=libiomp5 -L/sw/opt/llvm-3.7.0/lib -Wall -march=penryn -fexceptions
-D_FORTIFY_SOURCE=0 -D_THREAD_SAFE -pthread -DMAGICKCORE_HDRI_ENABLE=1
-DMAGICKCORE_QUANTUM_DEPTH=16 -c feature.i -fno-common -DPIC
The ICE smells like a similar issue with static support since the
compilation warnings include...
magick/feature.c:317:60: warning: extra tokens at the end of '#pragma omp
parallel for' are ignored [-Wextra-tokens] #pragma omp parallel for
schedule(static,4) shared(status)
magick_threads(edge_image,edge_image,edge_image->rows,1)
magick/feature.c:429:60: warning: extra tokens at the end of '#pragma omp
parallel for' are ignored [-Wextra-tokens] #pragma omp parallel for
schedule(static,4) shared(status)
magick_threads(edge_image,edge_image,edge_image->rows,1)
Andrey,