public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Thompson, Matt (GSFC-610.1)[SCIENCE SYSTEMS AND APPLICATIONS INC]" <matthew.thompson@nasa.gov>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Re: [EXTERNAL] Re: Reducing size of GCC installation?
Date: Tue, 4 Aug 2020 21:10:32 +0000	[thread overview]
Message-ID: <FFAF1499-8D0E-467D-AFD1-9286228395EE@nasa.gov> (raw)
In-Reply-To: <20200804202414.GK6753@gate.crashing.org>

Well, don't I feel dumb. I'd seen install-strip before on that page long ago, but I guess I just forgot about it (plus I got used to using strip with rustup/cargo builds which don't strip by default).

And per your question, building with install-strip (in a different, but similar image):

$ du -hsc gcc/*
35M	gcc/bin
12M	gcc/include
22M	gcc/lib
29M	gcc/lib64
119M	gcc/libexec
15M	gcc/share
230M	total

I will take a 1.3G reduction in space. 

I guess it's time to start using install-strip like a madman and see what I can break in other codes! :D 

-- 
Matt Thompson, SSAI, Ld Scientific Programmer/Analyst
NASA GSFC,    Global Modeling and Assimilation Office
Code 610.1,  8800 Greenbelt Rd,  Greenbelt,  MD 20771
Phone: 301-614-6712                 Fax: 301-614-6246
http://science.gsfc.nasa.gov/sed/bio/matthew.thompson

On 8/4/20, 4:24 PM, "Segher Boessenkool" <segher@kernel.crashing.org> wrote:

    Hi!

    On Tue, Aug 04, 2020 at 07:26:09PM +0000, Thompson, Matt (GSFC-610.1)[SCIENCE SYSTEMS AND APPLICATIONS INC] via Gcc-help wrote:
    > To wit, I'm trying to build some Docker images and found that the code I'm eventually trying to build with gcc (gfortran, actually) doesn't like the versions from RPMs/DEBs/etc. So, my first step is usually to do what I'm quite used to and build GCC a la:
    > 
    >   ../gcc-10.2.0/configure --prefix=$HOME/GCC/10.2.0 --disable-multilib --enable-languages=c,c++,fortran
    >   make
    >   make install
    > 
    > and this works. Huzzah.

    make install-strip

    > Ouch. 1.6G.

    How much does install-strip safe?

    > Or perhaps is there a configure option to "ensmallen GCC" upon installation?

    Yes :-)  It is documented on

    https://urldefense.proofpoint.com/v2/url?u=https-3A__gcc.gnu.org_install_finalinstall.html&d=DwIBAg&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=t-_8LOcT3mR0eRjGIhNBgNcMPWsPBrZlJ8ZiJNKcEVg&m=6Ev8kbRqoawi75HbJkraV_KIXPl6EzRDJK_UzsUpl4Q&s=Jd1M-j9kKHFNkzzM7aJ4Ws2_9iGeEYxw0x9qsmP2JYg&e= 

    There may be other tricks in the installation manual you missed as well?

    Good luck and have fun,


    Segher


  reply	other threads:[~2020-08-04 21:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-04 19:26 Thompson, Matt (GSFC-610.1)[SCIENCE SYSTEMS AND APPLICATIONS INC]
2020-08-04 20:24 ` Segher Boessenkool
2020-08-04 21:10   ` Thompson, Matt (GSFC-610.1)[SCIENCE SYSTEMS AND APPLICATIONS INC] [this message]
2020-08-04 20:50 ` Jonathan Wakely

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=FFAF1499-8D0E-467D-AFD1-9286228395EE@nasa.gov \
    --to=matthew.thompson@nasa.gov \
    --cc=gcc-help@gcc.gnu.org \
    --cc=segher@kernel.crashing.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).