[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#783876: gcc-5: consider stripping lto1 / cc1 / cc1plus



On Mon, Aug 03, 2015 at 09:47:33AM +0200, Aurelien Jarno wrote:
> On 2015-04-30 23:10, Matthias Klose wrote:
> > On 04/30/2015 10:43 PM, Daniel Serpell wrote:
> > > Currently, gcc-5 packages are really big because the files under
> > > /usr/lib/gcc/x86_64-linux-gnu/5 are not stripped, and each one of
> > > lto1, cc1 and cc1plus is about 130MB.
> > > 
> > > Please, can those files be striped in the default installation?
> > 
> > I'd like to avoid this, and only change that near the next Debian release.
> > These binaries are linked against libbacktrace to provide a verbose backtrace on
> > internal compiler errors, which you can't get with stripped binaries.
> 
> If that's not possible could you please at least change these binaries to
> use compressed debug sections at least? That should save quite some space
> already.

I would believe that is not easily possible. I don't know the detailed
behavior of libbacktrace, but it is using & parsing the DWARF debug
information of the binaries (cc1, cc1plus, ...), so I guess you'll need
to patch (significantly) libbacktrace to compress the debug sections.

BTW, I don't see the size of cc1 etc... as an issue. Compilers are
useful on "development" machines, and these are usually not very small
(and have enought disk space).

Cheers
-- 
Basile Starynkevitch            http://starynkevitch.net/Basile/
France                          basile at starynkevitch.net


Reply to: