Reply to comment

hajma's picture

OpenMP problems compiling

Hi,
when building kdegraphics 4.4.3 on OpenSolaris with the Sun Studio 12U1 compiler, the code inherited from LibRaw fails to build saying:
...
"/.../srcdir/libs/libkdcraw/libraw/libraw/libraw_types.h", line 109: Error: "}" expected instead of "start of omp pragma".
"/.../srcdir/libs/libkdcraw/libraw/libraw/libraw_types.h", line 109: Error: A declaration does not specify a tag or an identifier.
"/.../srcdir/libs/libkdcraw/libraw/libraw/libraw_types.h", line 109: Error: Use ";" to terminate declarations.
"/.../srcdir/libs/libkdcraw/libraw/libraw/libraw_types.h", line 109: Error: invalid OpenMP pragma: start of omp pragma.
...
...

the line 109 is line 106 in the current libraw 0.8.5

I'm not into OpenMP but in the official docs (http://www.openmp.org/mp-documents/OpenMP3.0-SummarySpec.pdf), the firstprivate clause requires a directive, e.g. parallel. So the OpenMP part seems broken.

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].
  • Images can be added to this post.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.