[kde-freebsd] attempt to compile kdelibs-4.7.3 with clang.

David Naylor naylor.b.david at gmail.com
Fri Dec 23 15:28:22 UTC 2011


On Sunday, 18 December 2011 04:26:40 Chuck Burns wrote:
> In file included from
> /usr/ports/x11/kdelibs4/work/kdelibs-4.7.3/kjs/lookup.cpp:23:
> /usr/ports/x11/kdelibs4/work/kdelibs-4.7.3/kjs/lookup.h:324:33: error:
> static_cast from 'KJS::JSGlobalObject *' to 'KJS::JSObject *' is not
> allowed KJS::JSObject *globalObject = static_cast<KJS::JSObject
> *>(exec->lexicalInterpreter()->globalObject());
> 
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> *** Error code 1
> 1 error
> *** Error code 2
> 
> The code compiles fine with gcc.. but I wonder if this is a clang bug,
> or a bug in kde ?

Hi,

Clang aims to be compatible with gcc and if gcc can compile the file then it 
is quite possible a clang bug although clang will not support everything gcc 
does.   

The bug database [1] for llvm/clang lists all the bugs affecting compilation 
of Qt [2] and possibly KDE.  

Regards

[1] http://llvm.org/bugs/
[2] http://llvm.org/bugs/show_bug.cgi?id=5881
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-freebsd/attachments/20111223/b40370d6/attachment.sig>


More information about the kde-freebsd mailing list