public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] check-reqs* vs CFLAGS=-g
@ 2013-08-01 11:33 Michał Górny
  2013-08-02  2:07 ` [gentoo-dev] " Duncan
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Michał Górny @ 2013-08-01 11:33 UTC (permalink / raw
  To: Gentoo Developer Mailing List; +Cc: jlec

[-- Attachment #1: Type: text/plain, Size: 1359 bytes --]

Hello,

Since LLVM builds have grown in size lately, I wanted to add some of
check-reqs-r1 checks to it. However, I'm having real trouble guessing
what the correct sizes should be.

Most importantly, as bug #479356 points out, using '-g' greatly
increases the build size. My small measures show that without that
option, LLVM has peek build space consumption around:

- 400-550M without clang (depending on targets),
- 950-1200M with clang,
- 16G with clang & USE=debug (assertions, checks).

Those measures were done with '-O2', USE=-debug and single ABI build.
multilib build consumes almost twice as much.

But if we change the flags, for complete llvm+clang:

- 1.2G for -O2 (as shown above),
- 12G for -O0 -g.

With such a difference, I don't really see using one of the two values.
If I go for the lower one, '-g' users may still hit unexpected
out-of-space issues (like the bug shows). If I go for the higher one,
many users (including me) will unnecessarily hit the space constraints.

What can we do to improve this? I'm not really happy to have LLVM
ebuild analyze CFLAGS to set proper space constraints. Maybe we should
make check-reqs-r1 automatically bump the constraints by some
statistical multiplier when it detects -g?

[1]:https://bugs.gentoo.org/show_bug.cgi?id=479356

-- 
Best regards,
Michał Górny

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 966 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-08-05  8:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-01 11:33 [gentoo-dev] check-reqs* vs CFLAGS=-g Michał Górny
2013-08-02  2:07 ` [gentoo-dev] " Duncan
2013-08-02  8:05   ` Michał Górny
2013-08-02  9:34     ` Diego Elio Pettenò
2013-08-02 12:08 ` [gentoo-dev] " Andreas K. Huettel
2013-08-02 12:20   ` Michał Górny
2013-08-02 12:47   ` Diego Elio Pettenò
2013-08-05  8:04     ` [gentoo-dev] " Ryan Hill
2013-08-05  8:30 ` Ryan Hill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox