X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <31711473.post@talk.nabble.com> Date: Thu, 26 May 2011 13:17:32 -0700 (PDT) From: sweinberger To: cygwin AT cygwin DOT com Subject: Re: Cygwin and Windows Paths Leaking Through In-Reply-To: <4DDEB26B.1080509@cwilson.fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <31711163 DOT post AT talk DOT nabble DOT com> <4DDEB26B DOT 1080509 AT cwilson DOT fastmail DOT fm> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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). I got most of the way through, but keeled over in the ld subfolder with the error message shown above. The make file changed the active path to /usr/local/bin-utils-2.21/ld The make file then executed: LIB_PATH='' /bin/sh ./genscripts.sh "." "/usr/local/lib" "/usr/local" "/usr/local" i686-pc-cygwin mips-unknown-elf mips-elf "elf32ebmip" "/usr/local/lib /lib /usr/lib" no elf32ebmip "mips-elf" You can type the above command line directly and get the same error, namely: : No such file or directory line 2: ./emulparams/elf32bmip.sh The shell script thinks that ./emulparams/elf32bmip.sh does not exist. From its point of view it does not, because of Windows path / Cygwin path differences. The shell script thinks of the path as C:/.../elf32bmip.sh for whatever reason. The relative path does not matter. Thanks, Sarah -- View this message in context: http://old.nabble.com/Cygwin-and-Windows-Paths-Leaking-Through-tp31711163p31711473.html Sent from the Cygwin list mailing list archive at Nabble.com. -- 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