1 |
On Tue, Dec 4, 2018 at 10:47 AM Mick <michaelkintzios@×××××.com> wrote: |
2 |
> |
3 |
> On Tuesday, 4 December 2018 08:06:22 GMT Alexander Kapshuk wrote: |
4 |
> > On Tue, Dec 4, 2018 at 9:35 AM Mick <michaelkintzios@×××××.com> wrote: |
5 |
> > > Two Intel systems with 4G RAM failed to build chromium, even after setting |
6 |
> > > |
7 |
> > > MAKEOPTS="-j2". The ebuild is checking for a minimum of 3G RAM: |
8 |
> > > >>> Running pre-merge checks for www-client/chromium-70.0.3538.110 |
9 |
> > > |
10 |
> > > * Checking for at least 3 GiB RAM ... [ ok |
11 |
> > > ] |
12 |
> > > * Checking for at least 5 GiB disk space at "/var/tmp/portage/www-client/ |
13 |
> > > |
14 |
> > > chromium-70.0.3538.110/temp" ... [ ok |
15 |
> > > ] |
16 |
> > > |
17 |
> > > Given I've spent more than two days compiling to get nowhere with this, |
18 |
> > > I'm |
19 |
> > > thinking: |
20 |
> > > |
21 |
> > > a) Chromium probably needs more than 3G now. |
22 |
> > > b) Either the ebuild, or portage, ought to check available RAM and |
23 |
> > > dynamically adjust the number of jobs accordingly - or have I watched too |
24 |
> > > many AI movies? |
25 |
> > > |
26 |
> > > -- |
27 |
> > > Regards, |
28 |
> > > Mick |
29 |
> > |
30 |
> > You're right. Chromium does require more than 3G of RAM to build. |
31 |
> > Here are the current system requirements for building Chromium on Linux: |
32 |
> > |
33 |
> > System requirements |
34 |
> > A 64-bit Intel machine with at least 8GB of RAM. More than 16GB is |
35 |
> > highly recommended. |
36 |
> |
37 |
> OK it figures, an AMD system with 16G RAM and /var/portage/ on a tmpfs had no |
38 |
> problem. |
39 |
> |
40 |
> |
41 |
> > At least 100GB of free disk space. |
42 |
> |
43 |
> O_O What the ... ? |
44 |
> |
45 |
> |
46 |
> > You must have Git and Python v2 installed already. |
47 |
> > |
48 |
> > See the link below for details. |
49 |
> > https://chromium.googlesource.com/chromium/src/+/HEAD/docs/linux_build_instr |
50 |
> > uctions.md#system-requirements |
51 |
> |
52 |
> Thanks for this. It may be I'll need to build chromium as a binary on the |
53 |
> faster PC from now on and copy it over to the older clients, but I can't |
54 |
> recall what command spews out the detailed CFLAGS for the client which I will |
55 |
> need to run on the faster host's CLI to emerge the binary. Grateful for any |
56 |
> hints. |
57 |
> |
58 |
> -- |
59 |
> Regards, |
60 |
> Mick |
61 |
|
62 |
Perhaps these two gcc commands are what you're after: |
63 |
gcc -c -Q -march=native --help=target |
64 |
gcc -### -march=native /usr/include/stdlib.h |
65 |
|
66 |
See this link for details, https://wiki.gentoo.org/wiki/GCC_optimization |