CVE and update status of the FreeBSD ports tree3,295 unaddressed CVEs in 670 portsAll times are CET
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 ccache
installs 3.7.12_9 from latest; from quarterly (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 versionamd64aarch64i386
FreeBSD 163.7.12_93.7.12_9–
FreeBSD 153.7.12_93.7.12_9–
FreeBSD 143.7.12_93.7.12_93.7.12_9

quarterly (2026Q4)

FreeBSD versionamd64aarch64i386
FreeBSD 153.7.12_93.7.12_9–
FreeBSD 143.7.12_93.7.12_93.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

PRSummaryStatusChanged
261705maintainer-feedback? devel/ccache when using zfs the cache size reported by ccache is incorrect; with ufs it is correctOpen2026-09-03
247530maintainer-feedback? devel/ccache: add periodic cleanup scriptOpen2026-05-22

Commits (183)

Emanuel Haupt (ehaupt) · 3.1.7_1
Add links for newer gcc versions.

Submitted by:	amdmi3
881319ef72
Emanuel Haupt (ehaupt) · 3.1.7
Fix a typo.

Submitted by:	bcr
Feature safe:	yes
51bd89445a
Emanuel Haupt (ehaupt) · 3.1.7
Add an option to statically build ccache.

PR:		164606
Submitted by:	zi
7a30e3c83a
Emanuel Haupt (ehaupt) · 3.1.7
Update to 3.1.7
25ea690ef6
Emanuel Haupt (ehaupt) · 3.1.6
Improve english grammar.

Submitted by:	swills (via mail)
Feature safe:	yes
64f575f808
Emanuel Haupt (ehaupt) · 3.1.6
Improve grammar and use @dirrmtry

PR:		163615
Submitted by:	swills
Feature safe:	yes
b12cd5c9de
Emanuel Haupt (ehaupt) · 3.1.6
Update to 3.1.6

Feature safe:	yes
a5530537cd
Emanuel Haupt (ehaupt) · 3.1.5_2
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
Emanuel Haupt (ehaupt) · 3.1.5_1
Restore the possibility to define EXTRA_COMPILERS which must reside in $PATH.

PR:		158888
Submitted by:	Pan Tsu <inyaoo@gmail.com>
85c54a34d9
Emanuel Haupt (ehaupt) · 3.1.5
Update to 3.1.5
ce07f86b84
Emanuel Haupt (ehaupt) · 3.1.4_3
Provide 'ccache.tar' tarball for easy use with ports-mgmt/tinderbox.
838a9a041d
Emanuel Haupt (ehaupt) · 3.1.4_2
Add pkg-plist
31736eb2e3
Emanuel Haupt (ehaupt) · 3.1.4_2
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
Emanuel Haupt (ehaupt) · 3.1.4_1
Allow the use of non-default compilers such as clang.

PR:		155008
Submitted by:	avilla
3bfe3f7919
Emanuel Haupt (ehaupt) · 3.1.4
Update to 3.1.4
457b91d0bf
Emanuel Haupt (ehaupt) · 3.1.3
Update to 3.1.3
e3abdc0603
Emanuel Haupt (ehaupt) · 3.1.1_2
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
Emanuel Haupt (ehaupt) · 3.1.1_1
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
Emanuel Haupt (ehaupt) · 3.1.1
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.
b6afd8d9dd
Emanuel Haupt (ehaupt) · 3.1
Fix installation of a document file.

Submitted by:   ohauer
Pointyhat to:   ehaupt (self)
43e00ada5c
Emanuel Haupt (ehaupt) · 3.1
Update to 3.1
6892d4f337
Emanuel Haupt (ehaupt) · 3.0.1_3
Provide symlinks for clang and llvm-gcc compilers in addition to gcc

PR:		150613
Submitted by:	amdmi3
336b955ced
Dmitry Marakasov (amdmi3) · 3.0.1_2
- Oops, revert previous commit - I meant to do a send-pr
831728006c
Dmitry Marakasov (amdmi3) · 3.0.1_1
- Provide symlinks for clang and llvm-gcc compilers as well
d6bd6c4b3f
Emanuel Haupt (ehaupt) · 3.0.1
Update to 3.0.1

PR:		148228, 146527
Submitted by:	ale, Christer Edwards <christer.edwards@gmail.com>
Reviewed by:	ports
9de9547ccf
Emanuel Haupt (ehaupt) · 2.4_9
Take maintainership
bbd6e21a05
Mark Linimon (linimon) · 2.4_9
Reset ahze@ due to maintainer-timeouts and no response to email.

Hat:		portmgr
83fb1239f7
Michael Johnson (ahze) · 2.4_9
- 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
Michael Johnson (ahze) · 2.4_8
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
Rong-En Fan (rafan) · 2.4_7
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)
741aa71483
Michael Johnson (ahze) · 2.4_7
Add links to gcc44 and gcc-ooo, only add links to gcc295 on i386 and alpha
d403d4013a
Michael Johnson (ahze) · 2.4_6
Add links to gcc43
095530e8b0
Michael Johnson (ahze) · 2.4_5
- Remove gcc35 link
3e10043f24
Alex Dupre (ale) · 2.4_4
- 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:	maintainer
4fbf6452a6
Michael Johnson (ahze) · 2.4_3
- Update MASTER_SITES to fix fetch

PR:		94179
Submitted by:	Shaun Amott <shaun@inerd.com>
Approved by:	portmgr (erwin, marcus)
c61493cf79
Michael Johnson (ahze) · 2.4_3
- Fix example so it works better with make buildworld if you define NOCCACHE   with out installing ccache links in PREFIX/libexec/ccache/ - Add gcc42
779f9e9bad
Ruslan Ermilov (ru) · 2.4_2
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
Michael Johnson (ahze) · 2.4_2
- 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:	schweikh
c7897d0359
Michael Johnson (ahze) · 2.4_1
- Add SHA256 - Add SIZE to a few ports
3e4b179fa7
Michael Johnson (ahze) · 2.4_1
- Add support for gcc41
d3493a5657
David E. O'Brien (obrien) · 2.4_1
At Kris's request, back out the MACHINE_ARCH spelling correction until after 5.4-RELEASE.
c3d8037aeb
David E. O'Brien (obrien) · 2.4_1
Assist getting more ports working on AMD64 by obeying the Ports Collection documentation and use 'ARCH' rather than 'MACHINE_ARCH'.
f2fc2d60ae
Michael Johnson (ahze) · 2.4_1
- Add a note to icc users about adding LOCALBASE/intel_cc_80/bin to CCACHE_PATH
801ea5582e
Michael Johnson (ahze) · 2.4_1
Fix another typo

Submitted by:	chad@cropcirclesystems.org
be31d9ae60
Michael Johnson (ahze) · 2.4_1
- Back out of last commit, this does not work like I intended
75854144ee
Michael Johnson (ahze) · 2.4_1
- Update howto example so make [build]kernel uses ccache.
e7fb8197e4
Michael Johnson (ahze) · 2.4_1
Correct stupid typo
277fa15535
Michael Johnson (ahze) · 2.4_1
- 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
Michael Johnson (ahze) · 2.4_1
s/LOCALBASE/DOCSDIR/ in pkg-message

Submitted by:	info@otsune.com
f4aa47515a
Michael Johnson (ahze) · 2.4_1
- Don't use PKGMESSAGE or install HOWTO if WITHOUT_COMPILER_LINKS is defined

Submitted by:	Skip Ford
08a7b2bf3f