Re: Prublem building LO master in clang 3.6

2017-01-17 Thread Tor Lillqvist
> I'm still on Ubuntu 14.04 and didn't have the time to install a more recent
> version

Well, just don't use the clang plugins then?

--tml
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Prublem building LO master in clang 3.6

2017-01-17 Thread Giuseppe Castagno

On 01/16/2017 10:33 AM, Stephan Bergmann wrote:
...



We removed plugin support for Clang < 3.4 with
,
and I'd like to bump the baseline again in the future, depending on the
oldest version that people are using (for a good reason).  Any specific
reason you're using Clang 3.6?


Not specifically.
I'm still on Ubuntu 14.04 and didn't have the time to install a more 
recent version (apparently 3.8 should be available on my distro).


Thanks.

--
Kind Regards,
Giuseppe Castagno aka beppec56
Acca Esse http://www.acca-esse.eu
giuseppe.castagno at acca-esse.eu
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Prublem building LO master in clang 3.6

2017-01-16 Thread Stephan Bergmann

On 01/14/2017 12:37 PM, Giuseppe Castagno wrote:

tryiong to build LO recent master in clang 3.6 I got an error building
plugins:
...

[build CXX] compilerplugins/clang/salbool.cxx
/srv5/git/LO/lo-gerrit-clang-dbgutil/compilerplugins/clang/salbool.cxx:111:15:
error: no member named 'isLookupContext' in 'clang::DeclContext'
if (!ctx->isLookupContext()) {
 ~~~  ^


This specific issue should be fixed with 
 
"Use compat::isLookupContext."


However, most people (esp. those writing plugins) probably use newer 
Clang than 3.6 by now, so there may be more issues with older Clang 
remaining in compilerplugins/clang/ that remained undetected for a while.


We removed plugin support for Clang < 3.4 with 
, 
and I'd like to bump the baseline again in the future, depending on the 
oldest version that people are using (for a good reason).  Any specific 
reason you're using Clang 3.6?

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Prublem building LO master in clang 3.6

2017-01-14 Thread julien2412
Giuseppe Castagno wrote
> ...
> CC=clang-3.6
> CXX=clang++-3.6
> CLANGDIR=/usr/lib/llvm-3.6
> ...
> [build CXX] compilerplugins/clang/salbool.cxx
> /srv5/git/LO/lo-gerrit-clang-dbgutil/compilerplugins/clang/salbool.cxx:111:15:
>  
> error: no member named 'isLookupContext' in 'clang::DeclContext'
>  if (!ctx->isLookupContext()) {
>   ~~~  ^
> ...

Hello Giuseppe,

I downloaded 3.6.2 and 3.7 Clang version, it seems "isLookupContext" has
been added in DeclContext from 3.7

I think it should be taken into account here:
 38 inline bool isLookupContext(clang::DeclContext const & ctxt) {
 39 #if CLANG_VERSION >= 30700
 40 return ctxt.isLookupContext();
 41 #else
 42 return !ctxt.isFunctionOrMethod()
 43 && ctxt.getDeclKind() != clang::Decl::LinkageSpec;
 44 #endif
(see
http://opengrok.libreoffice.org/xref/core/compilerplugins/clang/compat.hxx#38)

Now I must recognize I don't know why CLANG_VERSION isn't detected as <
30700.

Just to be sure:
- you don't have 2 clang version in parallel
- you didn't downgrade your clang version
- you runned "ccache -C && make clean && ./autogen.sh && make" once to be
sure, there's no buggy remnants from old build
?

Julien



--
View this message in context: 
http://nabble.documentfoundation.org/Prublem-building-LO-master-in-clang-3-6-tp4205297p4205327.html
Sent from the Dev mailing list archive at Nabble.com.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Prublem building LO master in clang 3.6

2017-01-14 Thread Giuseppe Castagno

Hi all,

tryiong to build LO recent master in clang 3.6 I got an error building 
plugins:


CC=clang-3.6
CXX=clang++-3.6
CLANGDIR=/usr/lib/llvm-3.6
--disable-ccache
--with-vendor=Acca Esse, I-10067
--with-external-tar=/srv5/git/LO/externals
--enable-python=system
--with-gdrive-client-id=
--with-gdrive-client-secret=
--with-lang=en-US
--enable-dbgutil
--enable-werror
--enable-online-update
--disable-mergelibs
--without-system-poppler
--without-system-openssl
--without-system-libpng
--without-system-libxml
--without-system-jpeg
--without-system-postgresql
--with-build-version=2017-01-14 12:33:12 - Rev. master:5930cf8 based on 
master:5930cf8

--enable-compiler-plugins

...

[build CXX] compilerplugins/clang/salbool.cxx
/srv5/git/LO/lo-gerrit-clang-dbgutil/compilerplugins/clang/salbool.cxx:111:15: 
error: no member named 'isLookupContext' in 'clang::DeclContext'

if (!ctx->isLookupContext()) {
 ~~~  ^
1 error generated.
/srv5/git/LO/lo-gerrit-clang-dbgutil/compilerplugins/Makefile-clang.mk:92: 
recipe for target 
'/srv5/git/LO/lo-gerrit-clang-dbgutil/compilerplugins/obj/salbool.o' failed
make: *** 
[/srv5/git/LO/lo-gerrit-clang-dbgutil/compilerplugins/obj/salbool.o] Error 1


Thanks

--
Kind Regards,
Giuseppe Castagno aka beppec56
Acca Esse http://www.acca-esse.eu
giuseppe.castagno at acca-esse.eu
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice