Gentoo Archives: gentoo-user

From: gevisz <gevisz@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] march cflag for Intel Pentium Dual-Core E2160 SLA8Z Malay processor
Date: Tue, 02 Oct 2018 19:46:07
Message-Id: CA+t6X7fbyN-5JBkPDjkjE+aKV1Ktp0JfWGxKS0VdkWbn7+3QsA@mail.gmail.com
In Reply to: Re: [gentoo-user] march cflag for Intel Pentium Dual-Core E2160 SLA8Z Malay processor by Walter Dnes
1 ср, 19 сент. 2018 г. в 11:38, Walter Dnes <waltdnes@××××××××.org>:
2 >
3 > If you have gcc *ON THE TARGET MACHINE*, execute the command...
4 >
5 > gcc -c -Q -march=native --help=target | grep march=
6
7 I finally installed a web browser on the target computer, and
8 so can (just for the history:) copy and paste the result of running
9 this and other commands on the target computer.
10
11 # gcc -c -Q -march=native --help=target | grep march=
12 -march=core2
13 So, you were right about core2
14
15 # lscpu
16 Architecture: x86_64
17 CPU op-mode(s): 32-bit, 64-bit
18 Byte Order: Little Endian
19 CPU(s): 2
20 On-line CPU(s) list: 0,1
21 Thread(s) per core: 1
22 Core(s) per socket: 2
23 Socket(s): 1
24 NUMA node(s): 1
25 Vendor ID: GenuineIntel
26 CPU family: 6
27 Model: 15
28 Model name: Intel(R) Pentium(R) Dual CPU E2160 @ 1.80GHz
29 Stepping: 13
30 CPU MHz: 1800.000
31 CPU max MHz: 1800.0000
32 CPU min MHz: 1200.0000
33 BogoMIPS: 3599.97
34 L1d cache: 32K
35 L1i cache: 32K
36 L2 cache: 1024K
37 NUMA node0 CPU(s): 0,1
38 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
39 cmov pat pse36 clflush dts acpi mmx fxsr sse
40 sse2 ss ht tm
41 pbe syscall nx lm constant_tsc arch_perfmon pebs bts
42 rep_good nopl aperfmperf eagerfpu pni dtes64 monitor
43 ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm
44 kaiser dtherm
45
46 So, mmxext flag is indeed absent here.
47
48 I have not yet included it in CPU_FLAGS_X86 and think that
49 it produces a strange error messages when I try emerge some
50 packages like firefox:
51
52 # emerge firefox
53 These are the packages that would be merged, in order:
54 Calculating dependencies... done!
55
56 !!! The ebuild selected to satisfy
57 ">=media-video/ffmpeg-1.2.6-r1:0[X?,encode?,gsm?,jpeg2k?,mp3?,opus?,sdl?,speex?,theora?,threads?,truetype?,vaapi?,vdpau?,x264?]"
58 has unmet requirements.
59 - media-video/ffmpeg-3.3.6::gentoo USE="X alsa bzip2 encode gpl
60 hardcoded-tables iconv mp3 network opengl postproc sdl threads
61 truetype vdpau vorbis x264 xcb xvid zlib (-altivec) -amr -amrenc
62 -bluray -bs2b -cdio (-celt) -chromaprint -chromium -cpudetection
63 -debug -doc -fdk -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp
64 -gnutls -gsm -iec61883 -ieee1394 -jack -jpeg2k -kvazaar -ladspa
65 -libass -libcaca -libilbc -librtmp -libsoxr -libv4l -lzma (-mipsdspr1)
66 (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -nvenc -openal -openh264
67 -openssl -opus -oss -pic -pulseaudio -rubberband -samba -schroedinger
68 -snappy -sofalizer -speex -ssh -static-libs -test -theora -twolame
69 -v4l -vaapi -vpx -wavpack -webp -x265 -zeromq -zimg -zvbi"
70 ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmx sse sse2 sse3 ssse3
71 -3dnow -3dnowext -aes -avx -avx2 -fma3 -fma4 -mmxext -sse4_1 -sse4_2
72 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt
73 graph2dot ismindex pktdumper qt-faststart sidxindex trasher"
74
75 The following REQUIRED_USE flag constraints are unsatisfied:
76 cpu_flags_x86_sse? ( cpu_flags_x86_mmxext )
77
78 The above constraints are a subset of the following complete expression:
79 libv4l? ( v4l ) fftools_cws2fws? ( zlib ) test? ( encode )
80 postproc? ( gpl ) frei0r? ( gpl ) cdio? ( gpl ) samba? ( gpl ) encode?
81 ( x264? ( gpl ) x265? ( gpl ) xvid? ( gpl ) X? ( !xcb? ( gpl ) ) )
82 arm64? ( cpu_flags_arm_v8 ) cpu_flags_arm_v8? ( cpu_flags_arm_vfpv3
83 cpu_flags_arm_neon ) cpu_flags_arm_neon? ( cpu_flags_arm_thumb2
84 cpu_flags_arm_vfp ) cpu_flags_arm_vfpv3? ( cpu_flags_arm_vfp )
85 cpu_flags_arm_thumb2? ( cpu_flags_arm_v6 ) cpu_flags_arm_v6? (
86 cpu_flags_arm_thumb ) cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
87 cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) cpu_flags_x86_fma3? (
88 cpu_flags_x86_avx ) cpu_flags_x86_xop? ( cpu_flags_x86_avx )
89 cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) cpu_flags_x86_aes? (
90 cpu_flags_x86_sse4_2 ) cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 )
91 cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) cpu_flags_x86_ssse3? (
92 cpu_flags_x86_sse3 ) cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
93 cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) cpu_flags_x86_sse? (
94 cpu_flags_x86_mmxext ) cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx )
95 cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) cpu_flags_x86_3dnow? (
96 cpu_flags_x86_mmx )
97
98 (dependency required by "virtual/ffmpeg-9-r2::gentoo" [ebuild])
99 (dependency required by "www-client/firefox-60.2.0::gentoo" [ebuild])
100 (dependency required by "firefox" [argument])
101
102 I will try to include mmxext into CPU_FLAGS_X86 and see if this error
103 message appears again.
104
105 And finally:
106 # gcc -c -Q -march=native --help=target
107 The following options are target specific:
108 -m128bit-long-double [enabled]
109 -m16 [disabled]
110 -m32 [disabled]
111 -m3dnow [disabled]
112 -m3dnowa [disabled]
113 -m64 [enabled]
114 -m80387 [enabled]
115 -m8bit-idiv [disabled]
116 -m96bit-long-double [disabled]
117 -mabi= sysv
118 -mabm [disabled]
119 -maccumulate-outgoing-args [disabled]
120 -maddress-mode= long
121 -madx [disabled]
122 -maes [disabled]
123 -malign-data= compat
124 -malign-double [disabled]
125 -malign-functions= 0
126 -malign-jumps= 0
127 -malign-loops= 0
128 -malign-stringops [enabled]
129 -mandroid [disabled]
130 -march= core2
131 -masm= att
132 -mavx [disabled]
133 -mavx2 [disabled]
134 -mavx256-split-unaligned-load [disabled]
135 -mavx256-split-unaligned-store [disabled]
136 -mavx5124fmaps [disabled]
137 -mavx5124vnniw [disabled]
138 -mavx512bw [disabled]
139 -mavx512cd [disabled]
140 -mavx512dq [disabled]
141 -mavx512er [disabled]
142 -mavx512f [disabled]
143 -mavx512ifma [disabled]
144 -mavx512pf [disabled]
145 -mavx512vbmi [disabled]
146 -mavx512vl [disabled]
147 -mavx512vpopcntdq [disabled]
148 -mbionic [disabled]
149 -mbmi [disabled]
150 -mbmi2 [disabled]
151 -mbranch-cost= 3
152 -mcld [disabled]
153 -mclflushopt [disabled]
154 -mclwb [disabled]
155 -mclzero [disabled]
156 -mcmodel= [default]
157 -mcpu=
158 -mcrc32 [disabled]
159 -mcx16 [enabled]
160 -mdispatch-scheduler [disabled]
161 -mdump-tune-features [disabled]
162 -mf16c [disabled]
163 -mfancy-math-387 [enabled]
164 -mfentry [disabled]
165 -mfma [disabled]
166 -mfma4 [disabled]
167 -mforce-drap [disabled]
168 -mfp-ret-in-387 [enabled]
169 -mfpmath= sse
170 -mfsgsbase [disabled]
171 -mfunction-return= keep
172 -mfused-madd
173 -mfxsr [enabled]
174 -mgeneral-regs-only [disabled]
175 -mglibc [enabled]
176 -mhard-float [enabled]
177 -mhle [disabled]
178 -miamcu [disabled]
179 -mieee-fp [enabled]
180 -mincoming-stack-boundary= 0
181 -mindirect-branch-register [disabled]
182 -mindirect-branch= keep
183 -minline-all-stringops [disabled]
184 -minline-stringops-dynamically [disabled]
185 -mintel-syntax
186 -mlarge-data-threshold=<number> 65536
187 -mlong-double-128 [disabled]
188 -mlong-double-64 [disabled]
189 -mlong-double-80 [enabled]
190 -mlwp [disabled]
191 -mlzcnt [disabled]
192 -mmemcpy-strategy=
193 -mmemset-strategy=
194 -mmitigate-rop [disabled]
195 -mmmx [enabled]
196 -mmovbe [disabled]
197 -mmpx [disabled]
198 -mms-bitfields [disabled]
199 -mmusl [disabled]
200 -mmwaitx [disabled]
201 -mno-align-stringops [disabled]
202 -mno-default [disabled]
203 -mno-fancy-math-387 [disabled]
204 -mno-push-args [disabled]
205 -mno-red-zone [disabled]
206 -mno-sse4 [enabled]
207 -mnop-mcount [disabled]
208 -momit-leaf-frame-pointer [disabled]
209 -mpc32 [disabled]
210 -mpc64 [disabled]
211 -mpc80 [disabled]
212 -mpclmul [disabled]
213 -mpcommit [disabled]
214 -mpku [disabled]
215 -mpopcnt [disabled]
216 -mprefer-avx128 [disabled]
217 -mpreferred-stack-boundary= 0
218 -mprefetchwt1 [disabled]
219 -mprfchw [disabled]
220 -mpush-args [enabled]
221 -mrdpid [disabled]
222 -mrdrnd [disabled]
223 -mrdseed [disabled]
224 -mrecip [disabled]
225 -mrecip=
226 -mrecord-mcount [disabled]
227 -mred-zone [enabled]
228 -mregparm= 6
229 -mrtd [disabled]
230 -mrtm [disabled]
231 -msahf [enabled]
232 -msgx [disabled]
233 -msha [disabled]
234 -mskip-rax-setup [disabled]
235 -msoft-float [disabled]
236 -msse [enabled]
237 -msse2 [enabled]
238 -msse2avx [disabled]
239 -msse3 [enabled]
240 -msse4 [disabled]
241 -msse4.1 [disabled]
242 -msse4.2 [disabled]
243 -msse4a [disabled]
244 -msse5
245 -msseregparm [disabled]
246 -mssse3 [enabled]
247 -mstack-arg-probe [disabled]
248 -mstack-protector-guard= tls
249 -mstackrealign [disabled]
250 -mstringop-strategy= [default]
251 -mstv [enabled]
252 -mtbm [disabled]
253 -mtls-dialect= gnu
254 -mtls-direct-seg-refs [enabled]
255 -mtune-ctrl=
256 -mtune= core2
257 -muclibc [disabled]
258 -mveclibabi= [default]
259 -mvect8-ret-in-mem [disabled]
260 -mvzeroupper [enabled]
261 -mx32 [disabled]
262 -mxop [disabled]
263 -mxsave [disabled]
264 -mxsavec [disabled]
265 -mxsaveopt [disabled]
266 -mxsaves [disabled]
267
268 Known assembler dialects (for use with the -masm= option):
269 att intel
270
271 Known ABIs (for use with the -mabi= option):
272 ms sysv
273
274 Known code models (for use with the -mcmodel= option):
275 32 kernel large medium small
276
277 Valid arguments to -mfpmath=:
278 387 387+sse 387,sse both sse sse+387 sse,387
279
280 Known indirect branch choices (for use with the
281 -mindirect-branch=/-mfunction-return= options):
282 keep thunk thunk-extern thunk-inline
283
284 Known data alignment choices (for use with the -malign-data= option):
285 abi cacheline compat
286
287 Known vectorization library ABIs (for use with the -mveclibabi= option):
288 acml svml
289
290 Known address mode (for use with the -maddress-mode= option):
291 long short
292
293 Known stack protector guard (for use with the
294 -mstack-protector-guard= option):
295 global tls
296
297 Valid arguments to -mstringop-strategy=:
298 byte_loop libcall loop rep_4byte rep_8byte rep_byte unrolled_loop
299 vector_loop
300
301 Known TLS dialects (for use with the -mtls-dialect= option):
302 gnu gnu2

Replies