build error in kdegraphics
Alexander Neundorf
neundorf at kde.org
Wed May 26 21:04:59 CEST 2010
On Wednesday 26 May 2010, Pavel Heimlich, a.k.a. hajma wrote:
> Hi Alex,
>
> 2010/5/5 Alexander Neundorf <neundorf at kde.org>:
> > I never used OpenMP, so I don't know.
> > For the time being I wouldn't oppose a patch to get kdegraphics
> > compiling.
>
> Attached is the patch that makes kdegraphics compile here.
> The part for libs/libkdcraw/test/CMakeLists.txt would need some
> IF-ing, I am not sure how to best handle it.
Attached is an updated version of the patch.
Can you please verify that it works for you ?
The -xopenmp flag depends on the compiler, not on the operating system,
right ?
One thing I noticed when looking at the cmake output on my.cdash.org is that
it says
-- The C compiler identification is SunPro
-- The CXX compiler identification is Unknown
The problem here is the "Unknown" for the CXX compiler.
If you look in share/cmake-2.6/Modules/CMakeCXXCompilerId.cpp.in, you will
see:
#elif defined(__SUNPRO_CC)
# define COMPILER_ID "SunPro"
This should be defined for the SunStudio compiler (also according to
http://docs.sun.com/app/docs/doc/820-7599/6nirkt75m?l=en&a=view#bkaoe ).
Could you please try to find out whether this #elif matches in your case ?
Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdegraphics-openmp-sun.patch
Type: text/x-diff
Size: 3546 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20100526/ca8d36dc/attachment-0001.bin
More information about the Kde-buildsystem
mailing list