From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4106 invoked by alias); 12 Sep 2002 09:56:04 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 4050 invoked by uid 71); 12 Sep 2002 09:56:03 -0000 Resent-Date: 12 Sep 2002 09:56:03 -0000 Resent-Message-ID: <20020912095603.4047.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, thibaud.gaillard@nto.atmel.com Received: (qmail 31480 invoked from network); 12 Sep 2002 09:50:54 -0000 Received: from unknown (HELO mailserv.atmel-nantes.fr) (195.6.168.30) by sources.redhat.com with SMTP; 12 Sep 2002 09:50:54 -0000 Received: from mailserv (localhost [127.0.0.1]) by mailserv.atmel-nantes.fr (8.12.5/8.12.5) with ESMTP id g8C9sWRY028829 for ; Thu, 12 Sep 2002 11:54:33 +0200 (MET DST) Received: from dts21.nto.atmel.com (dts21 [172.29.203.21]) by ulysse.nto.atmel.com (8.8.6 (PHNE_17135)/8.8.6) with ESMTP id LAA09088 for ; Thu, 12 Sep 2002 11:51:39 +0200 (METDST) Received: (from tgaillar@localhost) by dts21.nto.atmel.com (8.11.6+Sun/8.10.2) id g8C9p9Q17402; Thu, 12 Sep 2002 11:51:09 +0200 (MEST) Message-Id: <200209120951.g8C9p9Q17402@dts21.nto.atmel.com> Date: Thu, 12 Sep 2002 02:56:00 -0000 From: Thibaud.GAILLARD@cadmail.atmel-nantes.fr Reply-To: thibaud.gaillard@nto.atmel.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: other/7894: When configured for cross-compiling ("-" program-prefix), install of gcov as /bin/-gcov first removes /bin/gcov X-SW-Source: 2002-09/txt/msg00204.txt.bz2 List-Id: >Number: 7894 >Category: other >Synopsis: When configured for cross-compiling ("-" program-prefix), install of gcov as /bin/-gcov first removes /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: