<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 28, 2017 at 10:49 AM, Pengxuan Zheng <span dir="ltr"><<a href="mailto:pzheng@codeaurora.org" target="_blank" class="cremed">pzheng@codeaurora.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_4160784323149285656WordSection1"><p class="MsoNormal">Hi Steve,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Actually, I have observed quite a few front end errors (warnings) when building AOSP master with the tip of LLVM. Not sure if it is a good time to update the AOSP sources on the bot now. Maybe you can help fix some of these errors in AOSP? Here are a few, for example.</p></div></div></blockquote><div><br></div><div>I can take care of fixing these kinds of errors. Can you point me to where the build/test script is for the bot? I want to make sure that we can reproduce that environment exactly, or we will have a hard time catching up on all the errors.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_4160784323149285656WordSection1"><p class="MsoNormal"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">system/core/healthd/<wbr>BatteryMonitor.cpp:166:13: error: comparison of unsigned enum expression < 0 is always false [-Werror,-<span style="color:red">Wtautological-<wbr>unsigned-enum-zero-compare</span>]<u></u><u></u></p><p class="MsoNormal">    if (ret < 0) {<u></u><u></u></p><p class="MsoNormal">        ~~~ ^ ~<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">system/nfc/src/nfc/include/<wbr>tags_int.h:88:31: error: 'register' storage class specifier is deprecated and incompatible with C++17 [-Werror,-<span style="color:red">Wdeprecated-register</span><wbr>]<u></u><u></u></p><p class="MsoNormal">extern unsigned int tags_log2(register unsigned int x);<u></u><u></u></p><p class="MsoNormal">                              ^~~~~~~~~<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">external/v8/src/base/macros.h:<wbr>267:43: error: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Werror,-<span style="color:red">Wnull-pointer-<wbr>arithmetic</span>]<u></u><u></u></p><p class="MsoNormal">  return static_cast<T>(static_cast<T>(<wbr>0) + x);<u></u><u></u></p><p class="MsoNormal">                        ~~~~~~~~~~~~~~~~~ ^<u></u><u></u></p><p class="MsoNormal">external/v8/src/base/macros.h:<wbr>275:10: note: in instantiation of function template specialization 'AddressFrom<unsigned char *>' requested here<u></u><u></u></p><p class="MsoNormal">  return AddressFrom<T>(OffsetFrom(x) & -m);<u></u><u></u></p><p class="MsoNormal">         ^<u></u><u></u></p><p class="MsoNormal">external/v8/src/base/macros.h:<wbr>282:10: note: in instantiation of function template specialization 'RoundDown<unsigned char *>' requested here<u></u><u></u></p><p class="MsoNormal">  return RoundDown<T>(static_cast<T>(x + m - 1), m);<u></u><u></u></p><p class="MsoNormal">         ^<u></u><u></u></p><p class="MsoNormal">external/v8/src/base/platform/<wbr>platform-linux.cc:226:27: note: in instantiation of function template specialization 'RoundUp<unsigned char *>' requested here<u></u><u></u></p><p class="MsoNormal">  uint8_t* aligned_base = RoundUp(base, alignment);<u></u><u></u></p><p class="MsoNormal">                          ^<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">For now, we can probably fix the “invalid instruction” error in the source code on the bot. Oliver, do you have a patch that we can apply to fix the error?</p></div></div></blockquote><div><br></div><div>One problem with locally patching this is going to be how we can move forward later on with updating those projects. Is this literally only a single bot or are there multiple instances using the same sources to build?</div><div><br></div><div>Thanks,</div><div>Steve</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_4160784323149285656WordSection1"><p class="MsoNormal"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks,<u></u><u></u></p><p class="MsoNormal">Pengxuan<u></u><u></u></p><p class="MsoNormal"><b>From:</b> Stephen Hines [mailto:<a href="mailto:srhines@google.com" target="_blank" class="cremed">srhines@google.com</a>] <br><b>Sent:</b> Monday, November 27, 2017 3:57 PM<br><b>To:</b> Friedman, Eli <<a href="mailto:efriedma@codeaurora.org" target="_blank" class="cremed">efriedma@codeaurora.org</a>><br><b>Cc:</b> Oliver Stannard <<a href="mailto:Oliver.Stannard@arm.com" target="_blank" class="cremed">Oliver.Stannard@arm.com</a>>; <a href="mailto:llvm-commits@lists.llvm.org" target="_blank" class="cremed">llvm-commits@lists.llvm.org</a>; <a href="mailto:renato.golin@linaro.org" target="_blank" class="cremed">renato.golin@linaro.org</a>; Saleem Abdulrasool (<a href="mailto:compnerd@compnerd.org" target="_blank" class="cremed">compnerd@compnerd.org</a>) <<a href="mailto:compnerd@compnerd.org" target="_blank" class="cremed">compnerd@compnerd.org</a>>; Joerg Sonnenberger (<a href="mailto:joerg@britannica.bec.de" target="_blank" class="cremed">joerg@britannica.bec.de</a>) <<a href="mailto:joerg@britannica.bec.de" target="_blank" class="cremed">joerg@britannica.bec.de</a>>; Pengxuan Zheng <<a href="mailto:pzheng@codeaurora.org" target="_blank" class="cremed">pzheng@codeaurora.org</a>></p><div><div class="h5"><br><b>Subject:</b> Re: [llvm] r318777 - [ARM] Remove pre-UAL FLDM/FSTM aliases<u></u><u></u></div></div><p></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">This source was actually removed back in October (<a href="https://android-review.googlesource.com/c/platform/frameworks/av/+/507575" target="_blank" class="cremed">https://android-review.<wbr>googlesource.com/c/platform/<wbr>frameworks/av/+/507575</a>). I think it might perhaps be time to upgrade the AOSP sources that the bots are using. Pengxuan, is this something that you can handle? aosp/master should be quite stable these days. I can help if you let me know about any problems you encounter.<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thanks,<u></u><u></u></p></div><div><p class="MsoNormal">Steve<u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Mon, Nov 27, 2017 at 12:13 PM, Friedman, Eli <<a href="mailto:efriedma@codeaurora.org" target="_blank" class="cremed">efriedma@codeaurora.org</a>> wrote:<u></u><u></u></p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><div><p class="MsoNormal">Not sure who the right contact is on the Android side; adding Stephen Hines.<br><br>In the meantime, we can hack up the source code on the bot, I guess... adding Pengxuan.<span style="color:#888888"><br><br><span class="m_4160784323149285656hoenzb">-Eli</span></span><u></u><u></u></p><div><div><p class="MsoNormal"><br><br>On 11/23/2017 2:32 AM, Oliver Stannard wrote:<u></u><u></u></p></div></div></div><div><div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><div><p class="MsoNormal"><span style="color:#1f497d">Hi Eli,</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d">The instructions that are failing in the build are the ones that I removed support for in this patch. They are pre-UAL syntax, and we don’t support this generally, so I think the long-term solution is to fix the code to use the UAL syntax instead.</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d">Do you know who I should contact in AOSP about getting that code updated?</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d">The alternative would be to revert this and keep these aliases, but I’d rather not do that for the reasons discussed in <a href="https://reviews.llvm.org/D39196" target="_blank" class="cremed">https://reviews.llvm.org/<wbr>D39196</a>.</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d">Oliver</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d"> </span><u></u><u></u></p><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif"> Friedman, Eli [<a href="mailto:efriedma@codeaurora.org" target="_blank" class="cremed">mailto:efriedma@codeaurora.<wbr>org</a>] <br><b>Sent:</b> 22 November 2017 19:34<br><b>To:</b> Oliver Stannard; <a href="mailto:llvm-commits@lists.llvm.org" target="_blank" class="cremed">llvm-commits@lists.llvm.org</a><br><b>Subject:</b> Re: [llvm] r318777 - [ARM] Remove pre-UAL FLDM/FSTM aliases</span><u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal">On 11/21/2017 8:20 AM, Oliver Stannard via llvm-commits wrote:<u></u><u></u></p></div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><pre>Author: olista01<u></u><u></u></pre><pre>Date: Tue Nov 21 08:20:25 2017<u></u><u></u></pre><pre>New Revision: 318777<u></u><u></u></pre><pre> <u></u><u></u></pre><pre>URL: <a href="http://llvm.org/viewvc/llvm-project?rev=318777&view=rev" target="_blank" class="cremed">http://llvm.org/viewvc/llvm-<wbr>project?rev=318777&view=rev</a><u></u><u></u></pre><pre>Log:<u></u><u></u></pre><pre>[ARM] Remove pre-UAL FLDM/FSTM aliases<u></u><u></u></pre><pre> <u></u><u></u></pre><pre>These are pre-UAL syntax, and we don't support any other pre-UAL instructions,<u></u><u></u></pre><pre>with the exception of FLDMX/FSTMX, which don't have a UAL equivalent. Therefore<u></u><u></u></pre><pre>there's no reason to keep them or their AsmParser hacks around.<u></u><u></u></pre><pre> <u></u><u></u></pre><pre>With the AsmParser hacks removed, the FLDMX and FSTMX instructions get the same<u></u><u></u></pre><pre>operand diagnostics as the UAL instructions.<u></u><u></u></pre><pre> <u></u><u></u></pre><pre>Differential revision: <a href="https://reviews.llvm.org/D39196" target="_blank" class="cremed">https://reviews.llvm.org/<wbr>D39196</a><u></u><u></u></pre></blockquote><p class="MsoNormal" style="margin-bottom:12.0pt"><br>This is causing a failure on the polly AOSP buildbot (<a href="http://lab.llvm.org:8011/builders/aosp-O3-polly-before-vectorizer-unprofitable/builds/336/steps/build-aosp/logs/stdio" target="_blank" class="cremed">http://lab.llvm.org:8011/<wbr>builders/aosp-O3-polly-before-<wbr>vectorizer-unprofitable/<wbr>builds/336/steps/build-aosp/<wbr>logs/stdio</a>).  Error message:<br><br><u></u><u></u></p><pre><span class="m_4160784323149285656m-7993290813151279682stdout"><span style="font-size:13.5pt">frameworks/av/media/<wbr>libstagefright/codecs/aacenc/<wbr>src/asm/ARMV7/PrePostMDCT_v7.<wbr>s:31:2: error: invalid instruction</span></span><u></u><u></u></pre><pre><span class="m_4160784323149285656m-7993290813151279682stdout"><span style="font-size:13.5pt">        fstmfdd   sp!, {d8 - d15}</span></span><u></u><u></u></pre><pre><span class="m_4160784323149285656m-7993290813151279682stdout"><span style="font-size:13.5pt">        ^</span></span><u></u><u></u></pre><p class="MsoNormal" style="margin-bottom:12.0pt">-Eli<u></u><u></u></p><pre>-- <u></u><u></u></pre><pre>Employee of Qualcomm Innovation Center, Inc.<u></u><u></u></pre><pre>Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project<u></u><u></u></pre></div></div><p class="MsoNormal">IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. <u></u><u></u></p></blockquote><p><u></u> <u></u></p><pre>-- <u></u><u></u></pre><pre>Employee of Qualcomm Innovation Center, Inc.<u></u><u></u></pre><pre>Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project<u></u><u></u></pre></div></div></div></blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></blockquote></div><br></div></div>