Re: Compiling with clang 3.7: breaks in 'external/libwpd'

2015-10-12 Thread Giuseppe Castagno

On 10/12/2015 09:34 AM, Miklos Vajna wrote:

Hi,

On Sat, Oct 10, 2015 at 11:42:23AM +0200, Giuseppe Castagno 
 wrote:

Making all in lib
   CXX  libwpd_internal.lo
clang: error: argument unused during compilation: '-I .'
clang: error: argument unused during compilation: '-I ../..'
clang: error: argument unused during compilation: '-I ../../inc'
clang: error: argument unused during compilation: '-I


Did you read
?
IIRC this error happens if you use ccache and you don't set CCACHE_CPP2.


I set it, the first two lines of my configure script helper look like:

export CCACHE_CPP2=1
./autogen.sh CC=clang CXX=clang++ \

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
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Compiling with clang 3.7: breaks in 'external/libwpd'

2015-10-12 Thread Miklos Vajna
Hi,

On Sat, Oct 10, 2015 at 11:42:23AM +0200, Giuseppe Castagno 
 wrote:
> Making all in lib
>   CXX  libwpd_internal.lo
> clang: error: argument unused during compilation: '-I .'
> clang: error: argument unused during compilation: '-I ../..'
> clang: error: argument unused during compilation: '-I ../../inc'
> clang: error: argument unused during compilation: '-I

Did you read
?
IIRC this error happens if you use ccache and you don't set CCACHE_CPP2.

Regards,

Miklos


signature.asc
Description: Digital signature
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Compiling with clang 3.7: breaks in 'external/libwpd'

2015-10-12 Thread Stephan Bergmann

On 10/10/2015 11:42 AM, Giuseppe Castagno wrote:

Making all in lib
   CXX  libwpd_internal.lo
clang: error: argument unused during compilation: '-I .'
clang: error: argument unused during compilation: '-I ../..'
clang: error: argument unused during compilation: '-I ../../inc'
clang: error: argument unused during compilation: '-I
/srv5/git/LO/lo-clang-test/workdir/UnpackedTarball/librevenge/inc'
Makefile:1042: recipe for target 'libwpd_internal.lo' failed
make[5]: *** [libwpd_internal.lo] Error 1
Makefile:366: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
Makefile:478: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
Makefile:388: recipe for target 'all' failed
make[2]: *** [all] Error 2
/srv5/git/LO/lo-clang-test/external/libwpd/ExternalProject_libwpd.mk:23:
recipe for target
'/srv5/git/LO/lo-clang-test/workdir/ExternalProject/libwpd/build' failed
make[1]: ***
[/srv5/git/LO/lo-clang-test/workdir/ExternalProject/libwpd/build] Error 1
Makefile:103: recipe for target 'libwpd' failed
make: *** [libwpd] Error 2


Smells like compile-step specific -I switches are passed into a compiler 
invocation that ultimately just causes a link-step.  I'd try to get 
better information about what commands are actually invoked by the build 
(something like "make libwpd verbose=1") and figure out from there 
(might be an autotools issue?; building libwpd involves the dreaded 
libtool AFAIK).  I cannot reproduce here (Fedora 22, recent Clang trunk 
build).

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


Re: Compiling with clang 3.7: breaks in 'external/libwpd'

2015-10-12 Thread Thorsten Behrens
Giuseppe Castagno wrote:
> I set it, the first two lines of my configure script helper look like:
> 
> export CCACHE_CPP2=1
> ./autogen.sh CC=clang CXX=clang++ \
> 
And it works without ccache?

Cheers,

-- Thorsten


signature.asc
Description: Digital signature
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Compiling with clang 3.7: breaks in 'external/libwpd'

2015-10-12 Thread Giuseppe Castagno

On 10/12/2015 10:55 AM, Thorsten Behrens wrote:

Giuseppe Castagno wrote:

I set it, the first two lines of my configure script helper look like:

export CCACHE_CPP2=1
./autogen.sh CC=clang CXX=clang++ \


And it works without ccache?


I intend to try this later today.
Will report back.

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
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Compiling with clang 3.7: breaks in 'external/libwpd'

2015-10-12 Thread Giuseppe Castagno

On 10/12/2015 10:55 AM, Thorsten Behrens wrote:

Giuseppe Castagno wrote:

I set it, the first two lines of my configure script helper look like:

export CCACHE_CPP2=1
./autogen.sh CC=clang CXX=clang++ \


And it works without ccache?


Without ccache works all right.
Though:

$ ccache -V
ccache version 3.1.11

I guess I have something wrong with it.
FTTB I'll work without ccache.

Thanks for the help.

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


Re: Compiling with clang 3.7: breaks in 'external/libwpd'

2015-10-12 Thread Christian Lohmaier
On Mon, Oct 12, 2015 at 10:14 AM, Giuseppe Castagno
 wrote:
> On 10/12/2015 09:34 AM, Miklos Vajna wrote:
>> [...]
> I set it, the first two lines of my configure script helper look like:
>
> export CCACHE_CPP2=1
> ./autogen.sh CC=clang CXX=clang++ \

Depending on how you invoke your configure-script helper, that might
only be valid for while your configure script runs, and not when you
later call make.

PS: also use CCACHE_HARDLINK=1 - not only does that save a little
diskspace, it also should be a tiny bit faster.

ciao
Christian
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Compiling with clang 3.7: breaks in 'external/libwpd'

2015-10-10 Thread Giuseppe Castagno

Hi all,

I'm trying to compile with clang 3.7 (home built from source I got as 
described here [1]) on Ubuntu 14.04.


Building LO master f99743e from scratch breaks as:

...

Making all in lib
  CXX  libwpd_internal.lo
clang: error: argument unused during compilation: '-I .'
clang: error: argument unused during compilation: '-I ../..'
clang: error: argument unused during compilation: '-I ../../inc'
clang: error: argument unused during compilation: '-I 
/srv5/git/LO/lo-clang-test/workdir/UnpackedTarball/librevenge/inc'

Makefile:1042: recipe for target 'libwpd_internal.lo' failed
make[5]: *** [libwpd_internal.lo] Error 1
Makefile:366: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
Makefile:478: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
Makefile:388: recipe for target 'all' failed
make[2]: *** [all] Error 2
/srv5/git/LO/lo-clang-test/external/libwpd/ExternalProject_libwpd.mk:23: 
recipe for target 
'/srv5/git/LO/lo-clang-test/workdir/ExternalProject/libwpd/build' failed
make[1]: *** 
[/srv5/git/LO/lo-clang-test/workdir/ExternalProject/libwpd/build] Error 1

Makefile:103: recipe for target 'libwpd' failed
make: *** [libwpd] Error 2

Compilation exited abnormally with code 2 at Sat Oct 10 11:20:08
...

Configured as:

CC=clang
CXX=clang++
--with-external-tar=/srv5/git/LO/externals
--with-lang=en-US
--enable-compiler-plugins
--enable-sal-log
--with-parallelism=1

single core build log of broken project can be read from
http://pastebin.com/QgMyzkJt

Any Idea?

Thanks

--
Kind Regards,
Giuseppe Castagno aka beppec56
Acca Esse http://www.acca-esse.eu
giuseppe.castagno at acca-esse.eu
[1] http://llvm.org/docs/GettingStarted.html#git-mirror
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice