X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Message-ID: <4DDEB70C.6070100@cwilson.fastmail.fm>
Date: Thu, 26 May 2011 16:24:44 -0400
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
Reply-To: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Cygwin and Windows Paths Leaking Through
References: <31711163.post@talk.nabble.com> <4DDEB26B.1080509@cwilson.fastmail.fm> <31711473.post@talk.nabble.com>
In-Reply-To: <31711473.post@talk.nabble.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 5/26/2011 4:17 PM, sweinberger wrote:
> 
> 
> Here's your problem: binutils and gcc don't support compiling "in the
>> source tree".  You need to create a separate, empty build directory
>> *outside* the src directory, and run configure/make in there.
> 
> I did just that.
> 
> I downloaded binutils-2.21 and expanded everything into a new empty folder. 
> Here is where I downloaded everything to:
> 
> /usr/local/binutils-2.21.
> 
> /binutils-2.21 is a new folder.
> 
> I changed directories to that folder, executed the .configure line, in my
> case,
> 
> ./configure --target=mips-elf
> 
> and I then entered "make" (without the double quotes).

No, that's exactly what you should NOT do: you are attempting to build
inside the same folder where the source is.

You need to create a DIFFERENT (really empty, as opposed to full of a
bunch of source files) folder, say:

/usr/local/build-binutils/

and do this:

$ cd /usr/local/build-binutils/
$ /usr/local/binutils-2.21/configure (options)
$ make

--
Chuck

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

