<div dir="ltr">Hi,<div><br></div><div>Thanks. I recompiled everything (on Windows) using this real machine:</div><div><br></div><div>#under msys2</div><div><div>$ cat /proc/cpuinfo</div><div>processor       : 0</div><div>vendor_id       : GenuineIntel</div><div>cpu family      : 6</div><div>model           : 23</div><div>model name      : Genuine Intel(R) CPU           U2300  @ 1.20GHz</div><div>stepping        : 10</div><div>cpu MHz         : 1197.000</div><div>cache size      : 1024 KB</div><div>physical id     : 0</div><div>siblings        : 2</div><div>core id         : 0</div><div>cpu cores       : 2</div><div>apicid          : 0</div><div>initial apicid  : 0</div><div>fpu             : yes</div><div>fpu_exception   : yes</div><div>cpuid level     : 13</div><div>wp              : yes</div><div>flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm xsave osxsave lahf_lm dtherm</div><div>clflush size    : 64</div><div>cache_alignment : 64</div><div>address sizes   : 36 bits physical, 48 bits virtual</div><div>power management:</div></div><div><br></div><div>but I got the same error:</div><div><br></div><div><div>00007FF85FBF874F 48 83 7A 18 10       cmp         qword ptr [rdx+18h],10h  </div><div>00007FF85FBF8754 48 8B 6A 10          mov         rbp,qword ptr [rdx+10h]  </div><div>00007FF85FBF8758 72 03                jb          std::basic_string<char,std::<wbr>char_traits<char>,std::<wbr>allocator<char> >::basic_string<char,std::<wbr>char_traits<char>,std::<wbr>allocator<char> >+2Dh (07FF85FBF875Dh)  </div><div>00007FF85FBF875A 48 8B 32             mov         rsi,qword ptr [rdx]  </div><div>00007FF85FBF875D 48 83 FD 10          cmp         rbp,10h  </div><div>00007FF85FBF8761 73 27                jae         std::basic_string<char,std::<wbr>char_traits<char>,std::<wbr>allocator<char> >::basic_string<char,std::<wbr>char_traits<char>,std::<wbr>allocator<char> >+5Ah (07FF85FBF878Ah)  </div><div><b>00007FF85FBF8763 C5 F8 10 06          vmovups     xmm0,xmmword ptr [rsi]  </b></div><div>00007FF85FBF8767 C5 F8 11 01          vmovups     xmmword ptr [rcx],xmm0  </div><div>00007FF85FBF876B 48 89 69 10          mov         qword ptr [rcx+10h],rbp</div></div><div><br></div><div>Are there any parameters that I can use for avoid to use AVX (or better) instructions?</div><div><br></div><div>(I am using LLVM 5.0)</div><div><br></div><div>Thanks</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><table width="230" border="0" style="color:rgb(33,33,33);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px"><tbody><tr><td width="82" height="80" align="left"><a title="MiningMath Associates" href="http://www.miningmath.com/component/content/article/4.html?src=ass&mdm=email&cpn=FAC#Fabrício+Ceolin" style="color:rgb(126,87,194);outline:transparent solid 1px" target="_blank"><img width="82" height="80" border="0" alt="MiningMath Associates" src="http://www.miningmath.com/divulgacao/elogo.png"></a></td><td width="148" height="80" align="center"><font face="tahoma, sans-serif" color="#1D3E77" size="2pt"><b>Fabrício Ceolin</b></font><br><a title="tel:+55 (31) 8675-1359" style="color:rgb(51,103,214)"><font face="tahoma, sans-serif" color="#1D3E77" size="2pt">+55 (31) 98675-1359</font></a><br><a title="MiningMath Associates" href="http://www.miningmath.com/?src=ass&mdm=email&cpn=FAC" style="color:rgb(126,87,194)" target="_blank"><font face="tahoma, sans-serif" color="#1D3E77" size="2pt">MiningMath Associates</font></a><br><font face="tahoma, sans-serif" color="#1D3E77" size="2pt"><a title="www.miningmath.com" href="http://www.miningmath.com/?src=ass&mdm=email&cpn=FAC" style="color:rgb(126,87,194)" target="_blank">www.miningmath.com</a><br></font></td></tr></tbody></table></div><div><br><br></div></div></div></div>
<br><div class="gmail_quote">2017-10-24 15:50 GMT-02:00 Roland Scheidegger <span dir="ltr"><<a href="mailto:sroland@vmware.com" target="_blank">sroland@vmware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Am 24.10.2017 um 18:26 schrieb Fabrício Ceolin:<br>
> Hi,<br>
><br>
> I am trying to build mesa-dev on windows.<br>
><br>
> I am learning how to do it, through the<br>
> project <a href="https://github.com/pal1000/mesa-dist-win/tree/master/buildscript" rel="noreferrer" target="_blank">https://github.com/<wbr>pal1000/mesa-dist-win/tree/<wbr>master/buildscript</a><br>
> <<a href="https://github.com/pal1000/mesa-dist-win/tree/master/buildscript" rel="noreferrer" target="_blank">https://github.com/pal1000/<wbr>mesa-dist-win/tree/master/<wbr>buildscript</a>><br>
><br>
> I tried to use the binaries from pal1000, but I got an illegal<br>
> instruction problem in opengl32.dll when I tried to run my application<br>
> (VTK based).<br>
><br>
> 00007FF96252B0CF  cmp         qword ptr [rdx+18h],10h  <br>
> 00007FF96252B0D4  mov         rbp,qword ptr [rdx+10h]  <br>
> 00007FF96252B0D8  jb         <br>
> std::basic_string<char,std::<wbr>char_traits<char>,std::<wbr>allocator<char><br>
>>::basic_string<char,std::<wbr>char_traits<char>,std::<wbr>allocator<char> >+2Dh<br>
> (07FF96252B0DDh)  <br>
> 00007FF96252B0DA  mov         rsi,qword ptr [rdx]  <br>
> 00007FF96252B0DD  cmp         rbp,10h  <br>
> 00007FF96252B0E1  jae       <br>
>  std::basic_string<char,std::<wbr>char_traits<char>,std::<wbr>allocator<char><br>
>>::basic_string<char,std::<wbr>char_traits<char>,std::<wbr>allocator<char> >+5Ah<br>
> (07FF96252B10Ah)  <br>
</span>> *00007FF96252B0E3  vmovups     xmm0,xmmword ptr [rsi]  *<br>
<div><div class="h5">> 00007FF96252B0E7  vmovups     xmmword ptr [rcx],xmm0  <br>
> 00007FF96252B0EB  mov         qword ptr [rcx+10h],rbp  <br>
><br>
> I tried to build everything on a target machine, but the problem was not<br>
> solved.<br>
><br>
> I saw here that movups is in avx instruction set here<br>
> <a href="http://www.felixcloutier.com/x86/MOVUPS.html" rel="noreferrer" target="_blank">http://www.felixcloutier.com/<wbr>x86/MOVUPS.html</a><br>
> <<a href="http://www.felixcloutier.com/x86/MOVUPS.html" rel="noreferrer" target="_blank">http://www.felixcloutier.com/<wbr>x86/MOVUPS.html</a>><br>
><br>
> My target machine has the following cpuinfo (inside msys64):<br>
><br>
> cat /proc/cpuinfo<br>
> processor       : 0<br>
> vendor_id       : GenuineIntel<br>
> cpu family      : 6<br>
> model           : 6<br>
> model name      : QEMU Virtual CPU version 2.0.0<br>
> stepping        : 3<br>
> cpu MHz         : 2993.000<br>
> cache size      : 4096 KB<br>
> fpu             : yes<br>
> fpu_exception   : yes<br>
> cpuid level     : 4<br>
> wp              : yes<br>
> flags           : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca<br>
> cmov pat pse36 clflush mmx fxsr sse sse2 pni vmx cx16 x2apic popcnt<br>
> hypervisor lahf_lm epb dtherm fsgsbase tsc_adjust bmi1 hle avx2 clflushopt<br>
> clflush size    : 64<br>
> cache_alignment : 64<br>
> address sizes   : 40 bits physical, 48 bits virtual<br>
> power management:<br>
><br>
> How can I compile opengl32.dll without use the avx instruction set?<br>
><br>
> My compilation command was (from mesa-dist-win):<br>
><br>
> python c:\Python27\Scripts\scons.py build=release platform=windows<br>
> machine=x86_64 swr=1 libgl-gdi osmesa graw-gdi<br>
<br>
</div></div>Generally, generic x86_64 target should only use sse2.<br>
If you're running llvmpipe though, the code will use runtime detection<br>
of features for generated code. I have no idea if that code there<br>
causing the crash was runtime-compiled by llvm or not. If yes, it could<br>
mean there's still bugs with llvm and cpu detection features (detecting<br>
this is quite a mess due to the OS having to support it). Albeit your<br>
cpu features make no sense at all, you cannot have avx2 but not avx (and<br>
you don't have the newer sse flags neither, even for a virtual cpu that<br>
is pretty odd supporting avx2 but not these...).<br>
Interestingly, xsave isn't listed neither, which is necessary for avx to<br>
indicate the OS supports it, suggesting your OS does not. No idea why...<br>
<br>
Roland<br>
<br>
<br>
<br>
><br>
> Thanks<br>
><br>
><br>
> MiningMath Associates<br>
> <<a href="http://www.miningmath.com/component/content/article/4.html?src=ass&mdm=email&cpn=FAC#Fabr%C3%ADcio+Ceolin" rel="noreferrer" target="_blank">http://www.miningmath.com/<wbr>component/content/article/4.<wbr>html?src=ass&mdm=email&cpn=<wbr>FAC#Fabr%C3%ADcio+Ceolin</a>><br>
> *Fabrício Ceolin*<br>
> <a href="tel:%2B55%20%2831%29%2098675-1359" value="+5531986751359">+55 (31) 98675-1359</a><br>
> MiningMath Associates <<a href="http://www.miningmath.com/?src=ass&mdm=email&cpn=FAC" rel="noreferrer" target="_blank">http://www.miningmath.com/?<wbr>src=ass&mdm=email&cpn=FAC</a>><br>
> <a href="http://www.miningmath.com" rel="noreferrer" target="_blank">www.miningmath.com</a> <<a href="http://www.miningmath.com/?src=ass&mdm=email&cpn=FAC" rel="noreferrer" target="_blank">http://www.miningmath.com/?<wbr>src=ass&mdm=email&cpn=FAC</a>><br>
><br>
><br>
><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
><br>
<br>
</blockquote></div><br></div>