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).