Gerard E. Seibert
unread,Jan 12, 2023, 3:29:37 PM1/12/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ques...@freebsd.org
I am unable to get “sccache” to work with poudriere. I have tried to
follow all the various “HOW-TO” examples, but nothing seems to work.
This is an excep[t from the latest poudriere build log:
---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
OVERLAYS+=/overlays/sccache
FORCE_PACKAGE=yes
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
#### ####
DEFAULT_VERSIONS=samba=4.13 ssl=openssl mysql=8.0 php=8.1
SCCACHE_DIR=/usr/home/gerard/.ccache/sccache
WITH_CCACHE_BUILD=yes
CCACHE_DIR=/root/.ccache
#### Misc Poudriere ####
.include "/etc/make.conf.ports_env"
GID=0
UID=0
DISABLE_MAKE_JOBS=poudriere
---End make.conf---
===> Returning to build of rust-1.66.1
===========================================================================
=======================<phase: configure
>============================ ===== env: NO_DEPENDS=yes USER=root UID=0
>GID=0
===> Configuring for rust-1.66.1
==> Starting sccache
sccache: Starting the server...
sccache: Listening on port 0
Compile requests 0
Compile requests executed 0
Cache hits 0
Cache misses 0
Cache timeouts 0
Cache read errors 0
Forced recaches 0
Cache write errors 0
Compilation failures 0
Cache errors 0
Non-cacheable compilations 0
Non-cacheable calls 0
Non-compilation calls 0
Unsupported compiler calls 0
Average cache write 0.000 s
Average cache read miss 0.000 s
Average cache read hit 0.000 s
Failed distributed compilations 0
Cache location Local disk:
"/usr/home/gerard/.ccache/sccache" Cache size
0 bytes Max cache size 16 GiB
After poudriere has finished building “rust”, the output of “sccache
-s” is the same:
sccache -s
Compile requests 0
Compile requests executed 0
Cache hits 0
Cache misses 0
Cache timeouts 0
Cache read errors 0
Forced recaches 0
Cache write errors 0
Compilation failures 0
Cache errors 0
Non-cacheable compilations 0
Non-cacheable calls 0
Non-compilation calls 0
Unsupported compiler calls 0
Average cache write 0.000 s
Average cache read miss 0.000 s
Average cache read hit 0.000 s
Failed distributed compilations 0
Cache location Local disk:
"/home/gerard/.cache/sccache" Cache size 0
bytes Max cache size 10 GiB
It is evident that it did not cache anything. “ccache”; however, it
seems to be working perfectly. I was told to place the following entry
in the “/usr/local/etc/poudriere.d/make.conf” file:
SCCACHE_DIR=/usr/home/gerard/.ccache/sccache
I did so; however, nothing seemed to have changed. I am also confused
about where the “CCACHE_DIR=/root/.ccache” setting originates.
--
Jerry