[LLVMbugs] [Bug 23387] New: clang fails to compile magick/attribute.c from ImageMagick using -fopenmp=libiomp5 -Xclang -fopenmp=libiomp5
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri May 1 06:51:10 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23387
Bug ID: 23387
Summary: clang fails to compile magick/attribute.c from
ImageMagick using -fopenmp=libiomp5 -Xclang
-fopenmp=libiomp5
Product: clang
Version: 3.6
Hardware: Macintosh
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: howarth.mailing.lists at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 14274
--> https://llvm.org/bugs/attachment.cgi?id=14274&action=edit
preprocessed source for magick/attribute.c from ImageMagick
The build of ImageMagick-6.8.2-6 and ImageMagick-6.9.1-2 both fail using
current clang 3.7 svn with the proposed patches from
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20150427/128219.html
and
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20150427/128227.html
applied. The compilation of magick/attribute.c fails with the error...
magick/attribute.c:180: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(image,image,image->rows,1)
^
magick/attribute.c:329: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(image,image,1,1)
^
magick/attribute.c:332:7: error: loop iteration variable in the associated loop
of 'omp parallel for' directive may not be threadprivate or thread local,
predetermined as
private
for (i=0; i < (ssize_t) image->colors; i++)
^
magick/attribute.c:300:5: note: loop iteration variable is predetermined as
linear
i;
^
magick/attribute.c:480: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(image,image,image->rows,1)
^
magick/attribute.c:873: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(image,image,1,1)
^
magick/attribute.c:876:7: error: loop iteration variable in the associated loop
of 'omp parallel for' directive may not be threadprivate or thread local,
predetermined as
private
for (i=0; i < (ssize_t) image->colors; i++)
^
magick/attribute.c:870:9: note: loop iteration variable is predetermined as
linear
i;
^
magick/attribute.c:966: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(image,image,image->rows,1)
^
5 warnings and 2 errors generated.
The error can be reproduced with the attached attributes.i preprocessed source
file and 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
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150501/15b68290/attachment.html>
More information about the llvm-bugs
mailing list