Add links for newer gcc versions. Submitted by: amdmi3881319ef72
Port details
devel/ccache 3.7.12_9
Tool to minimize the compile time of C/C++ programs
Port info
- Maintainer
- bdrewery@FreeBSD.org
- Packages
- latest: 3.7.12_9
- Upstream
- up to date
- Last update
- to 3.7.12_9 · f4cbd23d2f
- Quarterly
- 2026Q4: 3.7.12_9
- WWW
- https://ccache.samba.org/
- Links
- cgit · VuXML · Report wrong data
Install
- Package
# pkg install ccacheinstalls 3.7.12_9 fromlatest; fromquarterly(2026Q4) 3.7.12_9- Port
# cd /usr/ports/devel/ccache && make install clean# make -C /usr/ports/devel/ccache config # change options first
- Size
- 135 KiB download · 483 KiB installed
- Depends on
- nothing
- License
- GPLv3+
- Options
- 3 of 5 on in the package: CLANGLINK DOCS LLVMLINK
Show the 2 options that are off
STATIC TINDERBOX - pkg-message
Shown after installing
NOTE: Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for information on using ccache with FreeBSD ports and src.
Packages by version and architecture
latest
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 3.7.12_9 | 3.7.12_9 | – |
| FreeBSD 15 | 3.7.12_9 | 3.7.12_9 | – |
| FreeBSD 14 | 3.7.12_9 | 3.7.12_9 | 3.7.12_9 |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 3.7.12_9 | 3.7.12_9 | – |
| FreeBSD 14 | 3.7.12_9 | 3.7.12_9 | 3.7.12_9 |
version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.
Unaddressed and VuXML only (0)
No unaddressed CVE and nothing reported by
pkg audit for the packaged version 3.7.12_9.Fixed (0)
No VuXML entries for this package.
Problem reports (2) · open in Bugzilla, most recently changed first
| PR | Summary | Status | Changed |
|---|---|---|---|
| 261705 | maintainer-feedback? devel/ccache when using zfs the cache size reported by ccache is incorrect; with ufs it is correct | Open | 2026-09-03 |
| 247530 | maintainer-feedback? devel/ccache: add periodic cleanup script | Open | 2026-05-22 |
Commits (183)
Fix a typo. Submitted by: bcr Feature safe: yes51bd89445a
Add an option to statically build ccache. PR: 164606 Submitted by: zi7a30e3c83a
Update to 3.1.725ea690ef6
Improve english grammar. Submitted by: swills (via mail) Feature safe: yes64f575f808
Improve grammar and use @dirrmtry PR: 163615 Submitted by: swills Feature safe: yesb12cd5c9de
Update to 3.1.6 Feature safe: yesa5530537cd
Add options to create compiler links for clang and llvm. Also add a warning that clang is not yet fully supported by ccache. PR: 161029 (based on) Submitted by: Volodymyr Kostyrko <c.kworr@gmail.com>509991cc05
Restore the possibility to define EXTRA_COMPILERS which must reside in $PATH. PR: 158888 Submitted by: Pan Tsu <inyaoo@gmail.com>85c54a34d9
Update to 3.1.5ce07f86b84
Provide 'ccache.tar' tarball for easy use with ports-mgmt/tinderbox.838a9a041d
Add pkg-plist31736eb2e3
Only create symlinks for existing compiler. This functionality is outsourced into a script which can be run manually after installing or deinstalling additional compiler. PR: 155568 (based on)e2de9d6528
Allow the use of non-default compilers such as clang. PR: 155008 Submitted by: avilla3bfe3f7919
Update to 3.1.4457b91d0bf
Update to 3.1.3e3abdc0603
Provide make.conf/src.conf instructions that still allow ccache to be used for the lib32 bits in a buildworld. The recent committed fix would just revert to regular gcc. Submitted by: Rob Farmer <rfarmer@predatorlabs.net> (via cvs-all@)5672b7a6d1
Update instructions on how to workaround a buildworld failure. [1] http://kerneltrap.org/mailarchive/freebsd-hackers/2010/11/8/6886684 PR: 151287 (related) Submitted by: Dimitry Andric, avilla Discussed on: hackers [1]975249e719
Update to 3.1.1
Excerpt from the ChangeLog:
* ccache now falls back to preprocessor mode when a non-regular include file
(device, socket, etc) has been detected so that potential hanging due to
blocking reads is avoided.
* CRC errors are now detected when decompressing compressed files in the
cache.
* Fixed potential object file corruption race on NFS.
* Minor documentation corrections.
* Fixed configure detection of ar.b6afd8d9ddFix installation of a document file. Submitted by: ohauer Pointyhat to: ehaupt (self)43e00ada5c
Update to 3.16892d4f337
Provide symlinks for clang and llvm-gcc compilers in addition to gcc PR: 150613 Submitted by: amdmi3336b955ced
- Oops, revert previous commit - I meant to do a send-pr831728006c
- Provide symlinks for clang and llvm-gcc compilers as welld6bd6c4b3f
Update to 3.0.1 PR: 148228, 146527 Submitted by: ale, Christer Edwards <christer.edwards@gmail.com> Reviewed by: ports9de9547ccf
Take maintainershipbbd6e21a05
Reset ahze@ due to maintainer-timeouts and no response to email. Hat: portmgr83fb1239f7
- Fix bug with mmap() on 8.x [1] - Remove gcc 295, 32, 33, 40, and 40 support [2] - Bump PORTREVISION PR: ports/136971 [1] ports/136679 [2] Submitted by: Aragon Gouveia <aragon@phat.za.net> [1] Ulrich Spoerlein <uqs@spoerlein.net> [2] gerald [2]ba71064e44
Fix a bug in x_realloc() which tries to read out too many bytes from the old storage after allocating new storage. PR: ports/127639 Submitted by: Thorsten Glaser <tg@mirbsd.de> (MirBSD project) Reported by: Mel <mel.xyzzy@rachie.is-a-geek.net>f61d73c5e5
Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script. Specifically, newer autoconf (> 2.13) has different semantic of the configure target. In short, one should use --build=CONFIGURE_TARGET instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning and the old semantic may be removed in later autoconf releases.
To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.
To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.
Changes to Mk/*:
- Add runtime detection magic in bsd.port.mk
- Remove CONFIGURE_TARGET hack in various bsd.*.mk
- USE_GNOME=gnometarget is now an no-op
Changes to individual ports, other than removing the CONFIGURE_TARGET hack:
= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
- comms/gnuradio
- science/abinit
- science/elmer-fem
- science/elmer-matc
- science/elmer-meshgen2d
- science/elmerfront
- science/elmerpost
= use x86_64 as ARCH
- devel/g-wrap
= other changes
- print/magicfilter
GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf
Total # of ports modified: 1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)
PR: 126524 (obsoletes 52917)
Submitted by: rafan
Tested on: two pointyhat 7-amd64 exp runs (by pav)
Approved by: portmgr (pav)741aa71483Add links to gcc44 and gcc-ooo, only add links to gcc295 on i386 and alphad403d4013a
Add links to gcc43095530e8b0
- Remove gcc35 link3e10043f24
- Add CCACHE_CACHE_COMPILER patch - Improve examples - Add two new scripts to enhance buildworld/buildkernel ccache may now be used safely and effectively to build the FreeBSD source tree. Follow the pkg-message tips to exploit it. Approved by: maintainer4fbf6452a6
- Update MASTER_SITES to fix fetch PR: 94179 Submitted by: Shaun Amott <shaun@inerd.com> Approved by: portmgr (erwin, marcus)c61493cf79
- Fix example so it works better with make buildworld if you define NOCCACHE with out installing ccache links in PREFIX/libexec/ccache/ - Add gcc42779f9e9bad
Attempt to attract maintainer's attention to a problem a lot of our users reported when doing "make buildworld" with NOCCACHE defined (hardcodes CC and CXX to "/usr/bin/{cc|c++}").7b9a3e55c1- Add support to turn off hasing the compiler size and mtime via a enviroment variable, this aids in 'buildworld' and 'buildkernel'.
CCACHE_NOHASH_SIZE_MTIME
This tells ccache to not hash the real compiler's size and modi-
fication time. Normally this is the mechanism to detect compiler
upgrades. There are situations however, where even though the
compiler's size or modification time has changed you can safely
use the cached objects (e.g. if as part of your build system the
compiler is built as well and the compiler's source has not
changed; or if the compiler has only changes that do not affect
code generation). Use this feature only if you know what you are
doing.
Submitted by: schweikhc7897d0359- Add SHA256 - Add SIZE to a few ports3e4b179fa7
- Add support for gcc41d3493a5657
At Kris's request, back out the MACHINE_ARCH spelling correction until after 5.4-RELEASE.c3d8037aeb
Assist getting more ports working on AMD64 by obeying the Ports Collection documentation and use 'ARCH' rather than 'MACHINE_ARCH'.f2fc2d60ae
- Add a note to icc users about adding LOCALBASE/intel_cc_80/bin to CCACHE_PATH801ea5582e
Fix another typo Submitted by: chad@cropcirclesystems.orgbe31d9ae60
- Back out of last commit, this does not work like I intended75854144ee
- Update howto example so make [build]kernel uses ccache.e7fb8197e4
Correct stupid typo277fa15535
- Add a note in howto about changeing the default cache location since the default cache size is 1GB and this is larger than the the default partition size of root (/) [1] - Use PREFIX instead of LOCALBASE for patch to libexec/ccache/.. in howto Requested by: mezz [1]cc29c55e6b
s/LOCALBASE/DOCSDIR/ in pkg-message Submitted by: info@otsune.comf4aa47515a
- Don't use PKGMESSAGE or install HOWTO if WITHOUT_COMPILER_LINKS is defined Submitted by: Skip Ford08a7b2bf3f