glibc-dbg used by anyone?
Hi,
sorry for the repost, but the problem persists on my system.
In glibc-package.bbclass there is a glibc-dbg in the PACKAGES list. However after a build (nylon/mtx-1, glibc 2.3.3) I find empty binaries in the .debug dirs under install and image. Looking at the recipes I find that glibc is built with "--disable-debug".
So I'd like to know if this package can be built successfully and / or is used by anyone else? If not, would anyone mind just removing it from the list of packages in glibc-package.bbclass?
Cheers,
Martin
Signature · 4 lines
----------- / http://herbert.the-little-red-haired-girl.org / ------------- =+= Die Freiheit ist uns ein schoenes Weib. Sie hat einen Ober- und Unterleib.
Quoted 9 lines · Martin Dietze
In glibc-package.bbclass there is a glibc-dbg in the PACKAGES list. However after a build (nylon/mtx-1, glibc 2.3.3) I find empty binaries in the .debug dirs under install and image. Looking at the recipes I find that glibc is built with "--disable-debug".
So I'd like to know if this package can be built successfully and / or is used by anyone else? If not, would anyone mind just removing it from the list of packages in glibc-package.bbclass?
Glibc is configured --disable-debug by default because enabling the debug build requires an additional compilation pass (and hence increases the total build time by about 50%). Practically speaking, most users don't want to debug the C library and hence the shorter build time seems like the larger net win. However, the packaging infrastructure is there so that you can, if you want, change the configuration flags to --enable-debug and build a debuggable package.
Removing support for glibc-dbg altogether seems like it would be a bit of a retrograde step since this would make it harder for those folks who do want to debug the library to do so. If the presence of the empty binaries is vexing you then the right thing to do is probably to teach package.bbclass to inhibit the generation of the debug package if there isn't actually any debug data present.
p.
Quoted 3 lines · Phil Blundell
Glibc is configured --disable-debug by default because enabling the debug build requires an additional compilation pass (and hence increases the total build time by about 50%). Practically speaking, most users
That explains a lot.
Quoted 6 lines
Removing support for glibc-dbg altogether seems like it would be a bit of a retrograde step since this would make it harder for those folks who do want to debug the library to do so. If the presence of the empty binaries is vexing you then the right thing to do is probably to teach package.bbclass to inhibit the generation of the debug package if there isn't actually any debug data present.
Well, I would not mind. The problem comes with insane.bbclass causing the build to fail because there is a glibc-dbg package defined in glibc-package.bbclass but it contains only empty files.
We'd thus need to make the inclusion of glibc-dbg in ${PACKAGES} depend on whether we want debug code or not. As a very simplstic solution we might just add a variable that can be set or unset in the recipe (or even a distro's config file) which controls both, the configure options and the inclusion of glibc-dbg in ${PACKAGES}?
Cheers,
Martin
Signature · 3 lines
----------- / http://herbert.the-little-red-haired-girl.org / ------------- =+= This parrot is no more.