<div dir="ltr"><div dir="ltr"><div dir="ltr">Attached is the log.<div>I'm building with:</div><div><br></div><div><div>clang version 10.0.0 (<a href="https://github.com/llvm/llvm-project/">https://github.com/llvm/llvm-project/</a> 3a6da1122b990386edeba0987d0d1fdc9c8dc53d)</div><div>Target: x86_64-unknown-linux-gnu</div><div>Thread model: posix</div></div><div><br></div><div>On some Ubuntu-like distribution.</div><div><br></div><div>I also ran with ASAN once and it found a bunch of leaks in bin/tco.</div><div><br></div><div>Best,</div><div><br></div><div>-- </div><div>Mehdi</div><div><br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 7, 2020 at 4:36 AM Richard Barton <<a href="mailto:Richard.Barton@arm.com">Richard.Barton@arm.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div lang="EN-GB">
<div class="gmail-m_-8981131987037944685WordSection1">
<p class="MsoNormal">Hi Medhi<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Definitely not expected, the tests should all pass. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">As well as what David asked, the verbose output from lit would be helpful for debugging too.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks for giving it a try.<u></u><u></u></p>
<p class="MsoNormal">Rich<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-style:none none none solid;border-left-width:1.5pt;border-left-color:blue;padding:0in 0in 0in 4pt">
<div>
<div style="border-style:solid none none;border-top-width:1pt;border-top-color:rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> David Truby <<a href="mailto:David.Truby@arm.com" target="_blank">David.Truby@arm.com</a>>
<br>
<b>Sent:</b> 7 April, 2020 11:49<br>
<b>To:</b> Richard Barton <<a href="mailto:Richard.Barton@arm.com" target="_blank">Richard.Barton@arm.com</a>>; Mehdi AMINI <<a href="mailto:joker.eph@gmail.com" target="_blank">joker.eph@gmail.com</a>><br>
<b>Cc:</b> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<b>Subject:</b> Re: [llvm-dev] F18 ready to be merged + preview of merge<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:12pt;color:black">Hi Mehdi,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;color:black">I can't replicate those failures at my end, could you let me know what OS, compiler and CMake flags you're using so I can try and reproduce?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;color:black">Thanks!<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt;color:black">David Truby<u></u><u></u></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="gmail-m_-8981131987037944685divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> llvm-dev <<a href="mailto:llvm-dev-bounces@lists.llvm.org" target="_blank">llvm-dev-bounces@lists.llvm.org</a>> on behalf of Mehdi AMINI via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>><br>
<b>Sent:</b> 07 April 2020 06:44<br>
<b>To:</b> Richard Barton <<a href="mailto:Richard.Barton@arm.com" target="_blank">Richard.Barton@arm.com</a>><br>
<b>Cc:</b> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a> <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>><br>
<b>Subject:</b> Re: [llvm-dev] F18 ready to be merged + preview of merge</span> <u></u>
<u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal">Hi, <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">This sounds reasonable to me overall. There are some CMake issue to go through (I need to dig into it a bit).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">When I run `ninja check-flang` at the moment (after fixing CMake) I end up with:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">Testing Time: 16.22s<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">********************<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Failing Tests (12):<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> Flang :: Lower/pre-fir-tree04.f90<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> Flang :: Semantics/allocate11.f90<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> Flang :: Semantics/allocate13.f90<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> Flang :: Semantics/c_f_pointer.f90<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> Flang :: Semantics/call04.f90<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> Flang :: Semantics/canondo16.f90<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> Flang :: Semantics/coarrays01.f90<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> Flang :: Semantics/critical02.f90<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> Flang :: Semantics/doconcurrent01.f90<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> Flang :: Semantics/dosemantics11.f90<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> Flang :: Semantics/resolve50.f90<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> Flang :: Semantics/resolve87.f90<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Are these known issues?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">-- <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Mehdi<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Mon, Apr 6, 2020 at 7:27 AM Richard Barton via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-style:none none none solid;border-left-width:1pt;border-left-color:rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<div>
<div>
<p class="MsoNormal">Hi llvm-dev<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">We believe we have completed enough of the agreed pre-upstreaming changes to start talking about merging F18 into LLVM. The live status is tracked at [1]. There are a few details that we have not managed to hammer out and we propose to
tackle inside the LLVM monorepo. I have put a summary of these at the bottom of this mail.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Does anyone have any objections to flang being merged into LLVM with these issues still in-flight? Obviously we remain committed to solving them after merging into LLVM?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">If that is all good then, as previously agreed, we want to give folks something more concrete to review and a bit of time to give feedback on it before we commit. David Truby has just now created a preview of what the LLVM project would
look like with F18 merged in as flang. The obvious caveat is that both LLVM and F18 are continuing development so there will be additional commits on both sides of the real merge when it happens.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Here is the merge preview: <a href="https://github.com/DavidTruby/llvm-project/" target="_blank">
https://github.com/DavidTruby/llvm-project/</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">This branch shows:<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-left:0in">
<u></u><span style="font-size:10pt;font-family:Symbol"><span>·<span style="font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman"">
</span></span></span><u></u><span style="font-family:DengXian">The commit history of F18 re-written as a straight line branch by Peter Waller's script.<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:0in">
<u></u><span style="font-size:10pt;font-family:Symbol"><span>·<span style="font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman"">
</span></span></span><u></u><span style="font-family:DengXian">A commit that tweaks F18's README to rename it as flang and make it more relevant inside the monorepo (being reviewed under
<a href="https://github.com/flang-compiler/f18/pull/909" target="_blank">https://github.com/flang-compiler/f18/pull/909</a>).<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:0in">
<u></u><span style="font-size:10pt;font-family:Symbol"><span>·<span style="font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman"">
</span></span></span><u></u><span style="font-family:DengXian">The merge commit that adds F18 to the monorepo as flang<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:0in">
<u></u><span style="font-size:10pt;font-family:Symbol"><span>·<span style="font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman"">
</span></span></span><u></u><span style="font-family:DengXian">A patch to the monorepo cmake that adds flang as an optionally built target - see also
<a href="https://reviews.llvm.org/D72416" target="_blank">https://reviews.llvm.org/D72416</a>
<u></u><u></u></span></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I really encourage all folks maintaining buildbots or downstream builds to give this a look over to make sure it works for you. For everyone else, I hope this looks good to you too. All feedback very welcome.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">If everyone is happy with that, we'll agree on a new date in the regular F18 community call on Monday. I'll be back in touch after that.<u></u><u></u></p>
</div>
<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">Rich<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Remaining Details still in-progress<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">[1] clang-format<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">F18's clang-format file will have a few differences to the global formatting style. These are mainly ones that control alignment of code. We have not come to an agreement as a community on the best way forward here. This
<a href="http://lists.llvm.org/pipermail/flang-dev/2020-March/000243.html" target="_blank">
flang-dev thread</a> summarises the debate. We would like to continue this debate after F18 becomes part of the monorepo.
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">[2] llvm_unreachable<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Previously we stated that we would try to use llvm_unreachable in F18 whenever possible. Presently, F18 has a similar function called die, but this is used to cover multiple run-time error cases only some of which should be covered by llvm_unreachable.
We would like to handle all cases together which also means coming up with a good system for reporting ICEs. See
<a href="https://github.com/flang-compiler/f18/issues/966" target="_blank">these code review comments</a> for details. We propose to start fresh on this work after F18 becomes part of the monorepo.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">[3] remove_if vs RemoveCarriageReturns<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Whilst removing code that manipulated C-style strings we hit upon a case which seemed to show that std::remove_if was a regression on certain targets over the current algorithm using C standard memmove. This
<a href="http://lists.llvm.org/pipermail/flang-dev/2020-April/000265.html" target="_blank">
flang-dev thread</a> summarises the situation and we are gathering further data before deciding what to do. We propose to continue to investigate this and make any necessary changes after F18 becomes part of the monorepo.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">[4] Doxygen infrastructure<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">We are still working through the final comments on <a href="https://github.com/flang-compiler/f18/pull/1065" target="_blank">
this patch</a> and hope to have it merged before we become part of LLVM. As this patch simply adds the infrastructure to add doxygen comments and there are no doxygen comments in F18 source at present, we think that this should not block F18's inclusion in
the monorepo. We commit to finishing this off once F18 becomes part of the monorepo.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(150,150,150)">Created with Microsoft OneNote 2016.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Times New Roman",serif"> </span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote></div>