This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

other/7894: When configured for cross-compiling ("<target>-" program-prefix), install of gcov as <prefix>/bin/<target>-gcov first removes <prefix>/bin/gcov


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]