Mail Archives: cygwin/2000/09/06/12:46:15
> -----Original Message-----
> From: sun409 AT pchome DOT com DOT tw [mailto:sun409 AT pchome DOT com DOT tw]
> Sent: Wednesday, September 06, 2000 5:06 PM
> To: cygwin AT sources DOT redhat DOT com
> Subject: Mix Path Name Problem
>
>
> Hi,
>
> I notice that cygwin can handle path name correctly. For example,
>
> In a DOS prompt window,
>
> cd \
> gcc -g -c C:\cygwin\tmp\main.c
> objdump -DxlS main.o
>
> cygwin can find the source in C:\cygwin\tmp\main.c correctly.
>
> Now I have make a cross GNU tool chain including binutils-2.10
> and gcc-2.95.2 for MIPS.
>
> In a DOS prompt window,
>
> cd \
> C:\tools\mips-elf-gcc -g -c C:\cygwin\tmp\main.c
> C:\tools\mips-elf-objdump -DxlS main.o
>
> The mips-elf-objdump trys to find the source in
> /cygdrive/c/C:\cygwin\tmp\main.c
>
> I have tried to find the answer in binutils-20000722-1.src.tar.gz
> which should be the source cygwin used to build binutils. But
> I can't find any clue. Please tell me the magic. Thank you!
>
Probably mips-elf-gcc put "C:\cygwin\tmp\main.c" in main.o as source file
name but objdump is fooled thinking that (because it does not start by '/'
or '\') "C:\cygwin\tmp\main.c" is a relative path name :-(
Try to use cygpath when calling gcc to avoid drive letters in the source
path names and you should not have any more problem; as you ported gcc
yourself (I think) you could also patch gcc so that is calls the proper
cygwin API function to convert its input path names to cygwin syntax :-)
HTH
Bernard
--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel: +33 (0) 1 47 68 80 80
Fax: +33 (0) 1 47 88 97 85
e-mail: dautrevaux AT microprocess DOT com
b DOT dautrevaux AT usa DOT net
--------------------------------------------
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -