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

* Re: '-print-prog-name' does not work on Vista OS
  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
  0 siblings, 2 replies; 4+ messages in thread
From: Brian Dessent @ 2008-08-13  8:43 UTC (permalink / raw)
  To: Siddharth Sengupta; +Cc: gcc-help, Gina Verlekar, Prafulla Thakare

Siddharth Sengupta wrote:

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

This is PR33281 (which was not a complete fix) and PR35916 (which
concerned the remaining instances in libiberty not covered by the
previous) which was finally fixed for 4.4.0.  The fix should be trivial
to backport to older versions.  Alternatively you can override CFLAGS
and BOOT_CFLAGS manually on the make command.

Brian

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

* RE: '-print-prog-name' does not work on Vista OS
  2008-08-13  8:43 ` Brian Dessent
@ 2008-08-22 17:31   ` Siddharth Sengupta
  2008-08-28  2:21   ` Siddharth Sengupta
  1 sibling, 0 replies; 4+ messages in thread
From: Siddharth Sengupta @ 2008-08-22 17:31 UTC (permalink / raw)
  To: gcc-help; +Cc: Gina Verlekar, Prafulla Thakare


Hi,

> This is PR33281 (which was not a complete fix) and PR35916 (which 
> concerned the remaining instances in libiberty not covered by the
> previous) which was finally fixed for 4.4.0.  The fix should be 
> trivial to backport to older versions.  Alternatively you can override

> CFLAGS and BOOT_CFLAGS manually on the make command.
>
> Brian

We referred to PR33281 and PR35916 as mentioned and built the toolchain
again after overriding the CFLAGS in the '*config/mh-mingw' file.
BOOT_CFLAGS was already overridden by a patch applied earlier in the
same file. 
However this fix doesn't seem to work as the problem still persists on
the Vista machine. The 'h8300-elf-gcc -print-prog-name=cc1' works on the
Windows XP machine as before.

Is there any thing else that needs to be done?

Thanks and Regards,
Siddhartha Sengupta

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

* RE: '-print-prog-name' does not work on Vista OS
  2008-08-13  8:43 ` Brian Dessent
  2008-08-22 17:31   ` Siddharth Sengupta
@ 2008-08-28  2:21   ` Siddharth Sengupta
  1 sibling, 0 replies; 4+ messages in thread
From: Siddharth Sengupta @ 2008-08-28  2:21 UTC (permalink / raw)
  To: gcc-help; +Cc: Gina Verlekar, Prafulla Thakare



Hi,

> This is PR33281 (which was not a complete fix) and PR35916 (which
> concerned the remaining instances in libiberty not covered by the
> previous) which was finally fixed for 4.4.0.

Since PR33281 and PR35916 were fixed in GCC 4.4.0, we downloaded the
GCC-4.4-20080822 sources, and built a MinGW H8 toolchain using the
following sources:
1) Binutils-2.18.50  
2) Newlib-1.16.0 and 
3) GCC-4.4-20080822
Additional Information: MinGW versions used are same as mentioned
before i.e. mingw-runtime-3.12.tar.gz and w32api-3.9.tar.gz.

But even with this toolchain the problem still persists i.e. the 
command "-print-prog-name=cc1" only echoes back "cc1". However the
same problem is now seen not only in Vista but in Windows XP too.
Could you please suggest where exactly we are going wrong? 

Regards,
Siddhartha 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).