Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] march cflag for Intel Pentium Dual-Core E2160 SLA8Z Malay processor
Date: Wed, 03 Oct 2018 09:50:15
Message-Id: 20181003094951.GA2572@waltdnes.org
In Reply to: Re: [gentoo-user] march cflag for Intel Pentium Dual-Core E2160 SLA8Z Malay processor by gevisz
1 What's happening is that the ebuild is going through a lookup table of
2 CPU flags, and saying... "if you invoke a certain advanced feature, then
3 you also have to invoke the base version of that feature". If you ask
4 for the advanced feature, but not the base feature, it's like trying to
5 build the top 4 storeys of a 10-storey building without the bottom 6
6 storeys. From your output...
7
8 If you're calling for avx2, then you also need avx
9 > cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
10
11 If you're calling for sse4_2, then you also need sse4_1
12 > cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 )
13
14 If you're calling for sse4_1, then you also need ssse3
15 > cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 )
16
17 If you're calling for ssse3, then you also need sse3 (count the "s")
18 > cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 )
19
20 If you're calling for sse3, then you also need sse2
21 > cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
22
23 If you're calling for sse2, then you also need sse
24 > cpu_flags_x86_sse2? ( cpu_flags_x86_sse )
25
26 If you're calling for sse, then you also need mmxext
27 > cpu_flags_x86_sse? ( cpu_flags_x86_mmxext )
28
29 If you're calling for mmxext, then you also need mmx
30 > cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx )
31
32 AMD If you're calling for 3dnowext, then you also need 3dnow
33 > cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow )
34
35 AMD If you're calling for 3dnow, then you also need mmx
36 > cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx )
37
38 Basically, if flag B is an extension of flag A and builds on it, then
39 calling flag B requires calling flag A. Think of it as a "march flag
40 dependency tree".
41
42 --
43 Walter Dnes <waltdnes@××××××××.org>
44 I don't run "desktop environments"; I run useful applications

Replies