public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* other/7894: When configured for cross-compiling ("<target>-" program-prefix), install of gcov as <prefix>/bin/<target>-gcov first removes <prefix>/bin/gcov
@ 2002-09-12 2:56 Thibaud.GAILLARD
0 siblings, 0 replies; only message in thread
From: Thibaud.GAILLARD @ 2002-09-12 2:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 7894
>Category: other
>Synopsis: When configured for cross-compiling ("<target>-" program-prefix), install of gcov as <prefix>/bin/<target>-gcov first removes <prefix>/bin/gcov
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Sep 12 02:56:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:
>Release: 3.2
>Organization:
ATMEL / Nantes, France
>Environment:
System: SunOS dts21 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-5_10
Architecture: sun4
host: sparc-sun-solaris2.8
build: sparc-sun-solaris2.8
target: avr-unknown-none
configured with: ./configure --prefix=/softsol2/freeware/SolarisV2.6 --target=avr --program-prefix=avr- --enable-languages=c
>Description:
Subject:/Synopsis: says it all!
>How-To-Repeat:
Run configure, then make install to see the problem
>Fix:
It seems that "install-common:" target in gcc/Makefile.in is not properly written when it comes to installing "gcov":
> # Install the compiler executables built during cross compilation.
> install-common: native $(EXTRA_PARTS) lang.install-common
>
> [...]
>
> # Install gcov if it was compiled.
> -if [ -f gcov$(exeext) ]; \
> then \
> rm -f $(bindir)/gcov$(exeext); \
> $(INSTALL_PROGRAM) gcov$(exeext) $(bindir)/$(GCOV_INSTALL_NAME)$(exeext); \
> fi
> $(INSTALL_SCRIPT) gccbug $(bindir)/$(GCCBUG_INSTALL_NAME)
Removed program and installed program should have the same name, so there should either be
> rm -f $(bindir)/$(GCOV_INSTALL_NAME)$(exeext); \
> $(INSTALL_PROGRAM) gcov$(exeext) $(bindir)/$(GCOV_INSTALL_NAME)$(exeext); \
or
> rm -f $(bindir)/gcov$(exeext); \
> $(INSTALL_PROGRAM) gcov$(exeext) $(bindir)/gcov$(exeext); \
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-12 9:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-12 2:56 other/7894: When configured for cross-compiling ("<target>-" program-prefix), install of gcov as <prefix>/bin/<target>-gcov first removes <prefix>/bin/gcov Thibaud.GAILLARD
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).