- To: gcc-help@xxxxxxxxxxx
- Subject: [PATCH] Re: gcc install fails silently (AVR build)
- From: Sylvain Leroux <sylvain@xxxxxxxxxxx>
- Date: Wed, 18 Jul 2012 23:31:56 +0200
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- In-reply-to: <50072407.6070602@chicoree.fr>
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110307 Icedove/3.0.11
On 07/18/2012 11:00 PM, Sylvain Leroux wrote:
It appears that for some reason the installation of gcc does not follow
the same path as for the other binaries.
By taking a closer look at the output of 'make install' it appears that
gcc is in fact installed with the requested name, but removed just
afterward:
-------8<----------
rm -f /tmp/gcc-4.7.1/bin/avr-gcc-4.7.1
/usr/bin/install -c xgcc /tmp/gcc-4.7.1/bin/avr-gcc-4.7.1 (install)
rm -f /tmp/gcc-4.7.1/bin/avr-gcc-4.7.1 (delete )
-------8<----------
I fixed the problem by swapping the two corresponding lines in the
target 'install-driver' of the file ${GCCSRC}gcc/Makefile.in:
--- Makefile.in.orig 2012-07-18 23:16:01.000000000 +0200
+++ Makefile.in 2012-07-18 23:16:13.000000000 +0200
@@ -4650,10 +4650,10 @@
# $(target_noncanonical)-gcc-$(version)
# and also as either gcc (if native) or $(gcc_tooldir)/bin/gcc.
install-driver: installdirs xgcc$(exeext)
-rm -f $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
- -$(INSTALL_PROGRAM) xgcc$(exeext)
$(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
-rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version)$(exeext)
+ -$(INSTALL_PROGRAM) xgcc$(exeext)
$(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
-( cd $(DESTDIR)$(bindir) && \
$(LN) $(GCC_INSTALL_NAME)$(exeext)
$(target_noncanonical)-gcc-$(version)$(exeext) )
-if [ -f gcc-cross$(exeext) ] ; then \
if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \
I don't think this had any side effect - and should be safe for inclusion.
- Sylvain
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]