Bug#356735: Compiling libc-udeb with -Os ?
On Mon, Mar 13, 2006 at 09:02:20PM +0000, Thiemo Seufer wrote:
> On Mon, Mar 13, 2006 at 01:40:01PM +0100, Robert Millan wrote:
> > Package: glibc
> > Severity: wishlist
> >
> > I've tested what would be the size saving when building glibc with -Os:
> >
> > $ du -h */*udeb
> > 1020K normal/libc6-udeb_2.3.6-3_amd64.udeb
> > 12K normal/libnss-dns-udeb_2.3.6-3_amd64.udeb
> > 20K normal/libnss-files-udeb_2.3.6-3_amd64.udeb
> > 888K tiny/libc6-udeb_2.3.6-3_amd64.udeb
> > 12K tiny/libnss-dns-udeb_2.3.6-3_amd64.udeb
> > 16K tiny/libnss-files-udeb_2.3.6-3_amd64.udeb
> >
> > For the udeb I think it's significant. I would suggest adding a build pass for
> > -Os (and possibly other tinification options), and use that to prepare the
> > udebs.
> >
> > What do you think? Would you like a patch for this?
>
> Did you try if the result actually works? At least historically glibc
> was somewhat problematic when compiled with other than default
> optimisations.
nptl and librt don't seem to like it:
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-cond8.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-once3.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-once4.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-join5.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-cancel4.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-cancel5.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-cancel9.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-cancel17.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-cancel22.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-cancel23.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-cancelx4.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-cancelx5.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-cancelx9.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-cancelx16.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-cancelx17.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-cancelx18.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-cancelx20.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-cancelx21.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-cleanupx4.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-oncex3.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/nptl/tst-oncex4.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/rt/tst-mqueue8.out] Error 1
make[3]: *** [/tmp/glibc/glibc-2.3.6/build-tree/amd64-libc/rt/tst-mqueue8x.out] Error 1
--
Robert Millan
Reply to: