ccache: error: Failed to create directory /home/${user}/.ccache/tmp: Permission denied/
which in itself is logical since there is no /home/${user} in attendance. However, with the conf set to specific patch it would not expected that /home/${user} is being sought.
/logs/target/linux/compile.txt does not really provide further info which script/conf is causing this, even when being run in debug mode.
Perhaps it's a result of the ccache default, from the man page:
cache_dir (CCACHE_DIR)
This setting specifies where ccache will keep its cached compiler outputs. It will only take effect if set in the system-wide configuration file or as an
environment variable. The default is $HOME/.ccache.
Print current configuration options and from where they originate (environment variable, configuration file or compile-time default) in human-readable format.
But works only when invoked as ccache but that does not work since it does not get build that way but only as linked in compiler...