From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12029 invoked by alias); 12 Aug 2008 13:12:39 -0000 Received: (qmail 12020 invoked by uid 22791); 12 Aug 2008 13:12:39 -0000 X-Spam-Check-By: sourceware.org Received: from sohm.kpitcummins.com (HELO sohm.kpit.com) (203.197.93.231) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 12 Aug 2008 13:12:04 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: '-print-prog-name' does not work on Vista OS Date: Tue, 12 Aug 2008 14:15:00 -0000 Message-ID: <82C3BC9106BCE149B63464D79D0A22FD058EAF49@sohm.kpit.com> From: "Siddharth Sengupta" To: Cc: "Siddharth Sengupta" , "Gina Verlekar" , "Prafulla Thakare" Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00115.txt.bz2 Hi, We have built a MinGW H8 toolchain using gcc-4.2-20080402, binutils-2.18.50 and=20 newlib-1.16.0.=20 The following command did not give the expected output on Vista OS for=20 this toolchain, Command: h8300-elf-gcc -print-prog-name=3Dcc1 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=3Dcc1 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=20 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,=20 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:=20 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.=20 Command: gcc -print-prog-name=3Dcc1 Output: C:/MinGW/bin/../libexec/gcc/mingw32/3.4.5/cc1.exe Expected Result: Same as Output=20 To confirm whether the difference in MinGW versions resulted in this behaviour, we built MinGW GNU H8 toolchain using the above versions.=20 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