On 14/09/12 23:44, Michael Mol wrote:
On Fri, Sep 14, 2012 at 4:19 PM, Nikos Chantziaras <rea...@gmail.com> wrote:
On 14/09/12 22:48, Mick wrote:

I got this message in elog:

* Messages for package dev-util/valgrind-3.7.0-r4:

   * Valgrind will not work if glibc does not have debug symbols.
   * To fix this you can add splitdebug to FEATURES in make.conf
   * and remerge glibc.  See:
   * https://bugs.gentoo.org/show_bug.cgi?id=214065
   * https://bugs.gentoo.org/show_bug.cgi?id=274771
   * https://bugs.gentoo.org/show_bug.cgi?id=388703

but my glibc has no splitdebug USE flags


What the other posters said, except that you shouldn't add "splitdebug" in
your make.conf.  If you do that, it will affect all packages.

What you do instead is put this text into /etc/portage/env/sys-libs/glibc
(yes, it must be a text file, not a directory):

CFLAGS="${CFLAGS} -g"
CXXFLAGS="${CXXFLAGS} -g"
FEATURES="${FEATURES} splitdebug"

I'm fairly sure (I could be wrong) that splitdebug doesn't cause -g or
a derivative to be added to CFLAGS. Hence why I have "-ggdb" in my
CFLAGS.

That's why added "-g" above. Having it in CFLAGS by default slows down compilation (with some packages dramatically, like webkit.) I only enable it for splitdebug.


Reply via email to