1 |
On 14/09/12 23:44, Michael Mol wrote: |
2 |
> On Fri, Sep 14, 2012 at 4:19 PM, Nikos Chantziaras <realnc@×××××.com> wrote: |
3 |
>> On 14/09/12 22:48, Mick wrote: |
4 |
>>> |
5 |
>>> I got this message in elog: |
6 |
>>> |
7 |
>>> * Messages for package dev-util/valgrind-3.7.0-r4: |
8 |
>>> |
9 |
>>> * Valgrind will not work if glibc does not have debug symbols. |
10 |
>>> * To fix this you can add splitdebug to FEATURES in make.conf |
11 |
>>> * and remerge glibc. See: |
12 |
>>> * https://bugs.gentoo.org/show_bug.cgi?id=214065 |
13 |
>>> * https://bugs.gentoo.org/show_bug.cgi?id=274771 |
14 |
>>> * https://bugs.gentoo.org/show_bug.cgi?id=388703 |
15 |
>>> |
16 |
>>> but my glibc has no splitdebug USE flags |
17 |
>> |
18 |
>> |
19 |
>> What the other posters said, except that you shouldn't add "splitdebug" in |
20 |
>> your make.conf. If you do that, it will affect all packages. |
21 |
>> |
22 |
>> What you do instead is put this text into /etc/portage/env/sys-libs/glibc |
23 |
>> (yes, it must be a text file, not a directory): |
24 |
>> |
25 |
>> CFLAGS="${CFLAGS} -g" |
26 |
>> CXXFLAGS="${CXXFLAGS} -g" |
27 |
>> FEATURES="${FEATURES} splitdebug" |
28 |
> |
29 |
> I'm fairly sure (I could be wrong) that splitdebug doesn't cause -g or |
30 |
> a derivative to be added to CFLAGS. Hence why I have "-ggdb" in my |
31 |
> CFLAGS. |
32 |
|
33 |
That's why added "-g" above. Having it in CFLAGS by default slows down |
34 |
compilation (with some packages dramatically, like webkit.) I only |
35 |
enable it for splitdebug. |