Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: Gentoo Developer Mailing List <gentoo-dev@l.g.o>
Cc: jlec@g.o
Subject: [gentoo-dev] check-reqs* vs CFLAGS=-g
Date: Thu, 01 Aug 2013 11:33:48
Message-Id: 20130801133348.3cbba589@gentoo.org
1 Hello,
2
3 Since LLVM builds have grown in size lately, I wanted to add some of
4 check-reqs-r1 checks to it. However, I'm having real trouble guessing
5 what the correct sizes should be.
6
7 Most importantly, as bug #479356 points out, using '-g' greatly
8 increases the build size. My small measures show that without that
9 option, LLVM has peek build space consumption around:
10
11 - 400-550M without clang (depending on targets),
12 - 950-1200M with clang,
13 - 16G with clang & USE=debug (assertions, checks).
14
15 Those measures were done with '-O2', USE=-debug and single ABI build.
16 multilib build consumes almost twice as much.
17
18 But if we change the flags, for complete llvm+clang:
19
20 - 1.2G for -O2 (as shown above),
21 - 12G for -O0 -g.
22
23 With such a difference, I don't really see using one of the two values.
24 If I go for the lower one, '-g' users may still hit unexpected
25 out-of-space issues (like the bug shows). If I go for the higher one,
26 many users (including me) will unnecessarily hit the space constraints.
27
28 What can we do to improve this? I'm not really happy to have LLVM
29 ebuild analyze CFLAGS to set proper space constraints. Maybe we should
30 make check-reqs-r1 automatically bump the constraints by some
31 statistical multiplier when it detects -g?
32
33 [1]:https://bugs.gentoo.org/show_bug.cgi?id=479356
34
35 --
36 Best regards,
37 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
[gentoo-dev] Re: check-reqs* vs CFLAGS=-g Duncan <1i5t5.duncan@×××.net>
Re: [gentoo-dev] check-reqs* vs CFLAGS=-g "Andreas K. Huettel" <dilfridge@g.o>
[gentoo-dev] Re: check-reqs* vs CFLAGS=-g Ryan Hill <dirtyepic@g.o>