Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179115 - gcc ebuild should delete the precompiled headers binary for stdc++
Summary: gcc ebuild should delete the precompiled headers binary for stdc++
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-19 15:18 UTC by devsk
Modified: 2007-05-19 20:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description devsk 2007-05-19 15:18:28 UTC
There are two system-wide precompiled headers (occupying about 65MB of space) for stdc++ in /usr/lib/gcc/*/*/include/g++-v4/*/bits/stdc++.h.gch/ compiled with "-O0 -g" and "-O2 -g" respectively. These are never used (unless people compile their C++ packages with "-O2 -g" only) and are not packaged by other distros either. These can bring down the size of stage2 by 7MB and for livecd by 16MB (hence giving you extra space for other programs)...:D

Reproducible: Always

Steps to Reproduce:
1. Its all in the description...:)
2.
3.




If there is requirement to have these on a system (for example a gcc dev or may be a specific project wants to use them), perhaps we could add a flag for it.
Comment 1 devsk 2007-05-19 15:21:05 UTC
ohh, I forgot its 65MB on AMD64, but 36MB on x86.
Comment 2 SpanKY gentoo-dev 2007-05-19 19:14:58 UTC
pch generation is part of the default gcc build ... Fedora includes those files

use INSTALL_MASK if you dont want them on your system
Comment 3 devsk 2007-05-19 20:18:57 UTC
And it doesn't matter whether they are useful or not? They are not only not useful but are huge. We do so much to compress man pages, remove unneeded files and save 10MB, whereas this junk occupies 65MB and takes up precious livecd space.

> pch generation is part of the default gcc build

if gentoo gcc was pure "default gcc build", I would buy your logic.

> Fedora includes those files

debian doesn't. Its just that nobody has filed a bug against Fedora so far.