autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: /var/cache/ccache/tmp


From: Eric Blake
Subject: Re: /var/cache/ccache/tmp
Date: Mon, 28 Feb 2011 10:38:02 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7

On 02/28/2011 10:17 AM, Don Cohen wrote:
> 
> This is related to the configure script for building clisp.
> 
>  > > This is in linux, building from current source.
>  > > I earlier did the configure successfully as root but now cannot do it
>  > > as a non-root user.
>  > >
>  > > The output of configure ends with
>  > >   checking whether the C compiler works... no
>  > >   configure: error: in `/home/don/hg/clisp/build-dir':
>  > >   configure: error: C compiler cannot create executables
>  > >   See `config.log' for more details.
>  > > which turns out to mean in the configure directory.
>  > > Here's the relevant output from that file.
>  > >   configure:3945: checking for C compiler version
>  > >   configure:3954: gcc -m64 --version >&5
>  > >   ccache: failed to create /var/cache/ccache/tmp (Permission denied)
>  > >   configure:3965: $? = 1
>  > >   configure:3954: gcc -m64 -v >&5
>  > >   ccache: failed to create /var/cache/ccache/tmp (Permission denied)
>  > >   configure:3965: $? = 1
>  > >
>  > > What is trying to create /var/cache/ccache/tmp and why?

Autoconf itself does not try to create this directory.  I'm guessing
that on your machine, the 'gcc' on your PATH is a wrapper around ccache,
and it is ccache that is creating that directory.

>  > > It seems that the "root" of the problem is that the earlier configure
>  > > as root created that same tmp directory belonging to root.  Also the
>  > > ccache directory belongs to root (with group ccache) and was not
>  > > marked writable (or executable) by other.

>  > I am pretty sure this is a generic "root/non-root" issue which has
>  > nothing to do with clisp.
>  > please talk to address@hidden mailing list.

I don't think the autoconf list is any better.  Maybe you'll have more
luck asking the ccache folks whether there is a behavioral problem in
how ccache creates its temp directories (for example, should it be
creating a directory per uid rather than trying to reuse a directory
created by an earlier run as root?).

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]