On 04/09/2024 04:03, Roger Marquis wrote:
Am seeing a CCACHE error in Poudriere since moving to a new disk
(permissions are the same):

  ccache: error: Failed to create temporary file for /root/.ccache/tmp/opt.stdout: Permission denied

Now you'd think having CCACHE_DIR=/var/cache/ccache in make.conf and
poudriere.conf would address this but it does not.  What I also have is:

   etc/make.conf:CCACHE_BUILD=yes
   etc/make.conf:CCACHE_DIR=/var/cache/ccache
   etc/make.conf:SCCACHE_DIR=/var/cache/ccache
   etc/make.conf:OVERLAYS+=/var/cache/ccache/overlay
   etc/make.conf:CCACHE_SIZE="50.0G"
   poudriere.conf:CCACHE_DIR=/var/cache/ccache
   poudriere.conf:CCACHE_DIR_NON_ROOT_SAFE=yes
   poudriere.conf:ALLOW_MAKE_JOBS_PACKAGES="pkg ccache py*"
   /var/cache/ccache/ccache.conf:cache_dir = /var/cache/ccache
   /var/cache/ccache/ccache.conf:base_dir = /var/cache/ccache
   /var/cache/ccache/ccache.conf:hash_dir = false
   /var/cache/ccache/ccache.conf:max_size = 50.0G

Probably not all of these settings are necessary but then there is
conflicting info on various websites.

Can anyone see what might be breaking ccache here or recommend
additional debugging?

In the past months I've tried ccache in poudriere, but I also got random permission errors like you. Running poudriere bulk again completed without error, even though I didn't change anything in the poudriere configuration. After 4 or 5 months with ccache enabled, I turned it off.
It only brought me more trouble.

Kind regards
Miroslav Lachman

Reply via email to