public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* '-print-prog-name' does not work on Vista OS
@ 2008-08-12 14:15 Siddharth Sengupta
  2008-08-13  8:43 ` Brian Dessent
  0 siblings, 1 reply; 4+ messages in thread
From: Siddharth Sengupta @ 2008-08-12 14:15 UTC (permalink / raw)
  To: gcc-help; +Cc: Siddharth Sengupta, Gina Verlekar, Prafulla Thakare

Hi,

We have built a MinGW H8 toolchain using gcc-4.2-20080402,
binutils-2.18.50 and 
newlib-1.16.0. 

The following command did not give the expected output on Vista OS for 
this toolchain,
Command: h8300-elf-gcc -print-prog-name=cc1
Output: cc1
Expected Result:
$(TCINSTALL)/h8300-elf/bin/../libexec/gcc/h8300-elf/4.2-
		GNUH8_v0802/cc1.exe
where, $(TCINSTALL) is the toolchain installation directory.

The same command when run on WinXP, gave the correct path,
Command: h8300-elf-gcc -print-prog-name=cc1
Output:
$(TCINSTALL)/h8300-elf/bin/../libexec/gcc/h8300-elf/4.2-GNUH8_v0802/
	cc1.exe
Expected Result: Same as Output
where, $(TCINSTALL) is the toolchain installation directory.

Additional Information:

The sources used for building the GNU H8 MinGW toolchain are 
gcc-core-3.4.5-20060117-3.tar.gz,
gcc-g++-3.4.5-20060117-3.tar.gz, binutils-2.17.50-20060824-1.tar.gz, 
mingw-runtime-3.12.tar.gz and w32api-3.9.tar.gz.

We also downloaded "MinGW-5.1.4.exe" from the official MinGW website and
found
that the command works as expected on Vista OS.
This used the following versions: 
gcc-core-3.4.5-20060117-3.tar.gz,
gcc-g++-3.4.5-20060117-3.tar.gz, binutils-2.17.50-20060824-1.tar.gz,
mingw-runtime-3.14.tar.gz and w32api-3.11.tar.gz. 

Command: gcc -print-prog-name=cc1
Output: C:/MinGW/bin/../libexec/gcc/mingw32/3.4.5/cc1.exe
Expected Result: Same as Output 

To confirm whether the difference in MinGW versions resulted in this
behaviour,
we built MinGW GNU H8 toolchain using the above versions. 
However, the '-print-prog-name' command still gave the same problem.
The same command when run on WinXP, worked correctly.

Can somebody please tell where the problem exactly lies?

Regards
Siddharth Sengupta

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-27 11:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-12 14:15 '-print-prog-name' does not work on Vista OS Siddharth Sengupta
2008-08-13  8:43 ` Brian Dessent
2008-08-22 17:31   ` Siddharth Sengupta
2008-08-28  2:21   ` Siddharth Sengupta

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