[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
OpenBSD + ccache
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: OpenBSD + ccache
- From: Anthony Chavez <acc_(_at_)_anthonychavez_(_dot_)_org>
- Date: Wed, 16 Jun 2004 10:35:45 -0600
- Cancel-lock: sha1:yzW/KoJiJ2zZuwl9HzTMIMWohNg=
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Over the past few days, I've experimented with getting ccache to work
with make build on 3.5-stable. Forgoing ccache and simply using
/usr/bin/cc results in a successful build, but I would very much like to
use ccache, since this is a P5/133. ;-)
I've tried:
1. symlinking /usr/local/bin/ccache to /usr/.../bin/{cc,c++,cpp}
2. specifying, e.g., CC=/usr/local/bin/ccache cc in /etc/mk.conf.
3. specifying, e.g., CC=/usr/../bin/cc in /etc/mk.conf and creating a
set of Bourne shell scripts similar to the following:
- --8<---------------cut here---------------start------------->8---
#!/bin/sh
env CCACHE_DIR=/usr/tmp/ccache /usr/local/bin/ccache -M 512M /usr/bin/cc $*
- --8<---------------cut here---------------end--------------->8---
None of these efforts has been successful. I've mostly been focusing on
#3, which bombs the kernel build with the following message. IIRC, #1
also fails with the same message. #2 complains about there being 2
words in ${CC}.
- --8<---------------cut here---------------start------------->8---
making sure the kern library is up to date...
".depend", line 1: Need an operator
".depend", line 2: Need an operator
Fatal errors encountered -- cannot continue
*** Error code 1
Stop in /sys/arch/i386/compile/MYBOX (line 28 of /usr/src/sys/arch/i386/compile/MYBOX/../../../../lib/libkern/Makefile.inc).
- --8<---------------cut here---------------end--------------->8---
Has anyone had better luck?
- --
Anthony Chavez http://www.anthonychavez.org/
mailto:acc_(_at_)_anthonychavez_(_dot_)_org jabber:acc_(_at_)_anthonychavez_(_dot_)_org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFA0HbmbZTbIaRBRXERAk1PAJ0bimV03/JnZIHsdbTW1jb8bBqDoACfcQWR
iflu5VzlUWn4zxTmGbJ3ACI=
=9soS
-----END PGP SIGNATURE-----
Visit your host, monkey.org