[odb-users] Errors building with ccache

Boris Kolpackov boris at codesynthesis.com
Thu Mar 25 08:59:15 EDT 2021


Wolfgang Haupt <haupt.wolfgang at gmail.com> writes:

> I've seen a problem compiling the odb compiler with ccache.

Yes, this is a known issue and the next version of build2 will
help with detecting the situation better:

https://github.com/build2/build2/issues/86#issuecomment-647401742

In a nutshell, while ccache advertises itself as real GCC, it in
fact is not and is incapable of handling the way build2 compiles
things (with -fdirectives-only, etc). But the above bug report
has some further pointers if you want to try to make it work (our
long-term plan is to provide built-in support for distributed
compilation and caching).



More information about the odb-users mailing list