Building mozc(-ut) with distcc/ccache installed results in various errors.
The problem is caused by distcc/ccache exporting their own versions of GCC and Clang, check with which gcc
or which clang
.
The temporary fix is to disable the corresponding options in /etc/makepkg.conf, or just setting the CC environment variable to the standalone version of GCC or Clang:
export CC=/usr/bin/gcc
or export CC=/usr/bin/clang
UPDATE: @Nocifer: Thank you for the quick response, the solution you suggested is definitely the best way.
Pinned Comments
Nocifer commented on 2022-05-29 21:54 (UTC) (edited on 2023-08-22 09:33 (UTC) by Nocifer)
If you're getting compilation errors, please delete your Bazel cache (
~/.cache/bazel
by default).