public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Sylvain Leroux <sylvain@chicoree.fr>
To: Georg-Johann Lay <gjl@gcc.gnu.org>
Cc: gcc-help@gcc.gnu.org
Subject: Re: gcc install fails silently (AVR build)
Date: Wed, 18 Jul 2012 21:01:00 -0000	[thread overview]
Message-ID: <50072407.6070602@chicoree.fr> (raw)
In-Reply-To: <50071001.7040603@gcc.gnu.org>

Hi Georg-Johann,
And thanks for your answer. Some comments inline:

On 07/18/2012 09:35 PM, Georg-Johann Lay wrote:
 > If you also downloaded the sources to /tmp/gcc-4.7.1 don't install
 > the compiler to that location.
gcc source, build and install are three different directories.


> You tried without the program suffix?
>
> If you configure without program-suffix and -prefix, the default name of
> the compiler will ne avr-gcc and also an avr-gcc-4.7.1 will be installed.
Just to make it clear, I was not able to find any combination of program 
suffix/prefix that leads to /all/ my binaries being installed as 
'avr-XXXX-4.7.1'...

I made some further tests:
(1) When I configure without program-suffix and -prefix, I indeed got 
gcc installed as 'avr-gcc-4.7.1' -- but all other binaries lack the 
'-4.7.1' suffix (including g++):
sh$ ../gcc-${VERSION}/configure --prefix=/tmp/gcc-${VERSION} \
                                 --target=avr --enable-languages=c,c++
sh$ make -j9 && make install
sh$ ls /tmp/gcc-4.7.1/bin/
avr-c++  avr-g++  avr-gcc-4.7.1  avr-gcc-nm      avr-gcov
avr-cpp  avr-gcc  avr-gcc-ar     avr-gcc-ranlib


(2) When I only add the '-4.7.1' suffix, gcc is still installed as 
'avr-gcc-4.7.1' and all other binaries have the correct suffix -- but no 
longer their prefix:
sh$ ../gcc-${VERSION}/configure --prefix=/tmp/gcc-${VERSION} \
                                 --target=avr --enable-languages=c,c++ \
                                 --program-suffix=-4.7.1
sh$ make -j9 && make install
sh$ ls /tmp/gcc-4.7.1/bin/
avr-gcc-4.7.1  cpp-4.7.1  gcc-4.7.1     gcc-nm-4.7.1      gcov-4.7.1
c++-4.7.1      g++-4.7.1  gcc-ar-4.7.1  gcc-ranlib-4.7.1

(3) When I only add the 'avr-' prefix things are going just like in (1) 
(without -prefix and -suffix): gcc is installed as 'avr-gcc-4.7.1' and 
all other binaries only have the 'avr-' prefix:
sh$ ../gcc-${VERSION}/configure --prefix=/tmp/gcc-${VERSION} \
                                 --target=avr --enable-languages=c,c++ \
                                 --program-prefix=avr-
sh$ make -j9 && make install
sh$ ls /tmp/gcc-4.7.1/bin/
avr-c++  avr-g++  avr-gcc-4.7.1  avr-gcc-nm      avr-gcov
avr-cpp  avr-gcc  avr-gcc-ar     avr-gcc-ranlib

(4) When I both configure with prefix 'avr-' and suffix '-4.7.1', I got 
all my binaries installed with the correct prefix and suffix -- except 
that gcc is /missing/ !
sh$ ../gcc-${VERSION}/configure --prefix=/tmp/gcc-${VERSION} \
                                 --target=avr --enable-languages=c,c++ \
                                 --program-prefix=avr- \
                                 --program-suffix=-4.7.1
sh$ make -j9 && make install
sh$ ls /tmp/gcc-4.7.1/bin/
avr-c++-4.7.1  avr-g++-4.7.1     avr-gcc-nm-4.7.1      avr-gcov-4.7.1
avr-cpp-4.7.1  avr-gcc-ar-4.7.1  avr-gcc-ranlib-4.7.1

(5) When I use a different suffix and no prefix, gcc still is installed 
as ''avr-gcc-4.7.1' whereas the other binaries are installed with the 
requested suffix:
sh$ ../gcc-${VERSION}/configure --prefix=/tmp/gcc-${VERSION} \
                                 --target=avr --enable-languages=c,c++ \
                                 --program-suffix=-custom
sh$ make -j9 && make install
sh$ ls /tmp/gcc-4.7.1/bin/
avr-gcc-4.7.1  cpp-custom     gcc-custom     gcc-ranlib-custom  g++-custom
c++-custom     gcc-ar-custom  gcc-nm-custom  gcov-custom


It appears that for some reason the installation of gcc does not follow 
the same path as for the other binaries.


- Sylvain


  reply	other threads:[~2012-07-18 21:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-17 18:31 Sylvain Leroux
2012-07-18 19:37 ` Georg-Johann Lay
2012-07-18 21:01   ` Sylvain Leroux [this message]
2012-07-18 21:32     ` [PATCH] " Sylvain Leroux
2012-07-19 11:30     ` Georg-Johann Lay
2012-07-19 12:46       ` Sylvain Leroux
2012-07-19 13:00 ` Kai Ruottu

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=50072407.6070602@chicoree.fr \
    --to=sylvain@chicoree.fr \
    --cc=gcc-help@gcc.gnu.org \
    --cc=gjl@gcc.gnu.org \
    /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).