delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/06/12:46:15

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <17B78BDF120BD411B70100500422FC6309E0D2@IIS000>
From: Bernard Dautrevaux <Dautrevaux AT microprocess DOT com>
To: "'sun409 AT pchome DOT com DOT tw'" <sun409 AT pchome DOT com DOT tw>, cygwin AT sources DOT redhat DOT com
Subject: RE: Mix Path Name Problem
Date: Wed, 6 Sep 2000 18:15:38 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

> -----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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019