This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: configure fails if not root
- From: Brian Dessent <brian at dessent dot net>
- To: Rick Mann <rmann at latencyzero dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 06 Oct 2007 01:47:11 -0700
- Subject: Re: configure fails if not root
- References: <2A4D994C-2AEC-46DB-9A52-746B8A5B5094@latencyzero.com>
- Reply-to: gcc-help at gcc dot gnu dot org
Rick Mann wrote:
> First I configure binutils, then build it and install it (as root),
> then I set the path, then I configure GCC with --with-headers=the
> newlib headers, and I run into this problem:
> ...
> Copying ../../newlib-1.15.0/newlib/libc/include to /usr/local/arm-elf/
> arm-elf/sys-include
> mkdir: /usr/local/arm-elf/arm-elf/sys-include: Permission denied
This is pretty much why --with-headers is deprecated/obsolete. Its
entire purpose is to simply copy headers into the location under $prefix
where the cross compiler that's about to be built will expect to find
them. If that's too ugly for you then use a sysroot instead.
Brian