public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Thibaud.GAILLARD@cadmail.atmel-nantes.fr
To: gcc-gnats@gcc.gnu.org
Subject: other/7894: When configured for cross-compiling ("<target>-" program-prefix), install of gcov as <prefix>/bin/<target>-gcov first removes <prefix>/bin/gcov
Date: Thu, 12 Sep 2002 02:56:00 -0000	[thread overview]
Message-ID: <200209120951.g8C9p9Q17402@dts21.nto.atmel.com> (raw)


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


                 reply	other threads:[~2002-09-12  9:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200209120951.g8C9p9Q17402@dts21.nto.atmel.com \
    --to=thibaud.gaillard@cadmail.atmel-nantes.fr \
    --cc=gcc-gnats@gcc.gnu.org \
    --cc=thibaud.gaillard@nto.atmel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).