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 autoconf@xxxxxxx 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 eblake@xxxxxxxxxx +1-801-349-2682 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf