FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 09-14-2012, 11:09 PM
Nikos Chantziaras
 
Default dev-util/valgrind-3.7.0-r4 and glibc

On 14/09/12 23:44, Michael Mol wrote:

On Fri, Sep 14, 2012 at 4:19 PM, Nikos Chantziaras <realnc@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.
 
Old 09-14-2012, 11:58 PM
Alex Schuster
 
Default dev-util/valgrind-3.7.0-r4 and glibc

Nikos Chantziaras writes:

> 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"

Or put "sys-libs/glibc splitdebug.conf" in /etc/portage/package.env, and
"FEATURES=splitdebug" in /etc/portage/env/splitdebug.conf. The CFLAGS
change should not be necessary. And I also think that you can simply use
FEATURES=... instead of FEATURES="$FEATURES ..." and hope someone will
correct me if not.

Wonko
 

Thread Tools




All times are GMT. The time now is 08:39 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org