[kde-freebsd] Cmake problem with ccache

Martin Wilke miwi at FreeBSD.org
Sat Aug 23 11:51:41 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Aug 22, 2008 at 01:48:49AM +0200, Pietro Cerutti wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> Dear KDE team,
> 
> I've just found out that cmake doesn't work when ccache is enabled.
> 
> The following reasoning is just a conjecture, as I have no deep
> understanding of cmake.
> 
> Cmake looks for binutils' binaries in the same path where it finds the
> compiler, which is /usr/local/libexec/ccache/ when ccache is on.
> 
> Have a look at lines 31-50 of the file in cmake's ${WRKSRC}:
> Modules/CMakeFindBinUtils.cmake
> 
> The binutils binaries ar, ranlib, strip, ld, nm, objdump and objcopy are
> looked for in _CMAKE_TOOLCHAIN_PREFIX, thus not found when the latter is
> set to /usr/local/libexec/ccache
> 
> What about patching CMakeFindBinUtils.cmake to make it look for binutils
> in /usr/bin/ by default?

Remove your .ccache dir and rebuild. 

> 
> I've seen this:
> http://lists.freebsd.org/pipermail/freebsd-ports/2008-June/049090.html
> but couldn't find a solution there.
> 
> Regards,
> 
> - --
> Pietro Cerutti
> gahr at FreeBSD.org
> 
> PGP Public Key:
> http://gahr.ch/pgp
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.9 (FreeBSD)
> 
> iEYEAREKAAYFAkit/uAACgkQwMJqmJVx945UQwCgwTOyl6IQEADXZpwUQNKlBR10
> YucAoN1+s2aFaxWtM6sI+smo+dQ7lf2H
> =zTGC
> -----END PGP SIGNATURE-----
> _______________________________________________
> kde-freebsd mailing list
> kde-freebsd at kde.org
> https://mail.kde.org/mailman/listinfo/kde-freebsd
> See also http://freebsd.kde.org/ for latest information
> 

- -- 

+-----------------------+-------------------------------+
|  PGP    : 0x05682353  |  Jabber : miwi(at)BSDCrew.de  |
|  ICQ    : 169139903   |  Mail   : miwi(at)FreeBSD.org |
+-----------------------+-------------------------------+
|	Mess with the Best, Die like the Rest!		|
+-----------------------+-------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkiv3awACgkQFwpycAVoI1MgagCgqfQgScsAGQ6eolTiP5UdDbZF
MxEAoJm17+KJMdwHt2sV/Wh4ChST94v6
=hpE7
-----END PGP SIGNATURE-----


More information about the kde-freebsd mailing list