* RE: Mix Path Name Problem
@ 2000-09-06 9:24 Bernard Dautrevaux
0 siblings, 0 replies; 2+ messages in thread
From: Bernard Dautrevaux @ 2000-09-06 9:24 UTC (permalink / raw)
To: 'sun409@pchome.com.tw', cygwin
> -----Original Message-----
> From: sun409@pchome.com.tw [ mailto:sun409@pchome.com.tw ]
> Sent: Wednesday, September 06, 2000 5:06 PM
> To: cygwin@sources.redhat.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@microprocess.com
b.dautrevaux@usa.net
--------------------------------------------
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Mix Path Name Problem
@ 2000-09-06 0:05 sun409
0 siblings, 0 replies; 2+ messages in thread
From: sun409 @ 2000-09-06 0:05 UTC (permalink / raw)
To: cygwin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1211 bytes --]
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!
Regards,
Tim Ouyang
==========================================================
PC home §K¶O¹q¤l«H½c¡A¥ýýæÃ: http://www.pchome.com.tw
PC home Online ºô¸ô®a®x¡@¡@ ·|Âû²Ã¤@¡AÂ¥xÃW³Ã¤jªº¤J¤fºô¯¸
==========================================================
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-09-06 9:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-06 9:24 Mix Path Name Problem Bernard Dautrevaux
-- strict thread matches above, loose matches on Subject: below --
2000-09-06 0:05 sun409
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).