This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Cygwin and Windows Paths Leaking Through
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