[Libreoffice] First build resumed but failed on incomplete dependancies

Christian Lohmaier lohmaier+libreoffice at googlemail.com
Fri May 6 09:05:16 PDT 2011


Hi Peter, *,

On Fri, May 6, 2011 at 5:35 PM, Peter Teeson <peter.teeson at bell.net> wrote:
> [...]
> OK my version of ccache is 3.1.4

And are you sure that this is also used when building?
Please show configure's output regarding the ccache check.

And also make sure to run configure/autogen.sh from a clean shell,
without having the environment variables from a previous compile set
(i.e. from a shell were you didn't source the MacOSX*Env.Set.sh file)

> --disable-systray

not really needed, as gtk is not available, that one is disabled as
well automatically.

> Still a problem. Here are log extracts:
> ......
> Building module lingucomponent
> Compiling: lingucomponent/source/spellcheck/macosxspell/macreg.cxx
> Compiling: lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
> i686-apple-darwin10-g++-4.0.1: objective-c++: No such file or directory
> i686-apple-darwin10-g++-4.0.1: objective-c++: No such file or directory
> i686-apple-darwin10-g++-4.0.1: language --ccache-skip not recognized
> i686-apple-darwin10-g++-4.0.1: language --ccache-skip not recognized
> i686-apple-darwin10-g++-4.0.1: language --ccache-skip not recognized
> i686-apple-darwin10-g++-4.0.1: language --ccache-skip not recognized
> dmake:  Error code 1, while making '../../../unxmacxi.pro/slo/macreg.obj'
> Retrying /Users/pteeson/git/libo/lingucomponent/source/spellcheck/macosxspell

This really looks like the ccache bug wrt. --ccache-skip handling,
where it would strip the wrong arguments.

when use of ccache-skip is enabled, the following:
http://cgit.freedesktop.org/libreoffice/bootstrap/tree/solenv/inc/unxmacx.mk#n103
# -x options generally ignored by ccache, tell it that it can cache
# the result nevertheless
CCACHE_SKIP:=$(eq,$(USE_CCACHE),YES --ccache-skip $(NULL))
OBJCXXFLAGS:=$(CCACHE_SKIP) -x $(CCACHE_SKIP) objective-c++ -fobjc-exceptions

will result in "--ccache-skip -x --ccache-skip objective-c++
-fobjc-exceptions" to be added to the compile flags.
Your snippet (single-process build would be easier to tell what line
belongs to what execution) shows that apparently
"-x --ccache-skip objective-c++ -fobjc-exceptions" ends up being
passed to the compiler.

And this clearly is wrong, the real compiler should be called with "-x
objective-c++ -fobjc-exceptions"

I still think something is wrong with your ccache-setup.  Please post
what the variable CXX and CC are set to in the MacOSX*Env.Set.sh
file/what compiler command is actually used.

How did you setup ccache? Using symlinks or by passing environment variables?

ciao
Christian


More information about the LibreOffice mailing list