Re: Buildd failed: C compiler cannot create executables
On Fri, Nov 27, 2009 at 3:42 AM, Felipe Sateler <fsateler@gmail.com> wrote:
> Your package build-depends on ccache, and it actively enforces it in the
> debian/rules file. Why is that?
>
> I would be willing to bet money that the problem is that buildd's have
> no (writable) home directory, so ccache fails. Drop the ccache stuff, or
> if it _absolutely_ necessary, setup a bogus $HOME so that ccache can
> work in the buildds.
Packages should definitely not enforce building with ccache.
The right way to enable usage of ccache is to set
PATH=/usr/lib/ccache:$PATH in your environment.
If you use pbuilder to build your packages, add this to your ~/.pbuilderrc:
export CCACHE_DIR="/var/cache/pbuilder/ccache"
export PATH="/usr/lib/ccache:${PATH}"
EXTRAPACKAGES=ccache
BINDMOUNTS="${CCACHE_DIR}"
--
bye,
pabs
http://wiki.debian.org/PaulWise
Reply to: