Hmm, I always build with configureccache yes
on my main machine and I don't recall seeing this problem with libbson, and our buildbot machines build with configureccache no
and I don't think I've seen it there either. However, I haven't tried Ventura yet; maybe something has changed.
Are the permissions and ownership of /opt/local/var/macports/build and /opt/local/var/macports/build/.ccache and /opt/local/var/macports/build/.ccache/tmp correct? On my system I have:
$ ls -ld /opt/local/var/macports/build{,/.ccache{,/tmp}}
drwxr-xr-x 61 root wheel 1952 Dec 4 09:05 /opt/local/var/macports/build
drwxr-xr-x 20 macports wheel 640 Dec 4 08:44 /opt/local/var/macports/build/.ccache
drwxr-xr-x 4 macports wheel 128 Dec 4 08:49 /opt/local/var/macports/build/.ccache/tmp
Based on the error message I presume /opt/local/var/macports/build/.ccache/tmp does not yet exist on your system. Has this worked for you before? Does it work with other ports?