<div dir="auto"><div>This looks like <a href="https://bugs.llvm.org/show_bug.cgi?id=37652" target="_blank" rel="noreferrer">https://bugs.llvm.org/show_bug.cgi?id=37652</a> to me. I added a workaround (<a href="https://github.com/CTSRD-CHERI/llvm-project/commit/a7e68c6baf9967cfb288ca6c53c43b29581d27d8">https://github.com/CTSRD-CHERI/llvm-project/commit/a7e68c6baf9967cfb288ca6c53c43b29581d27d8</a>) to our fork but never got around to submitting a review.<div dir="auto"><br></div><div dir="auto">If adding a copy of the libc++ implementation as llvm::shuffle seems like a valid approach I'll upload the patch to phabricator.</div><div dir="auto"><br></div><div dir="auto">Alex</div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 3 Jun 2019, 10:36 Nicolai Hähnle-Montoro via llvm-dev, <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" rel="noreferrer">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I briefly dug into this and I can reproduce it, the issue appears to<br>
be the implementation of std::shuffle (which is called by llvm::sort<br>
with expensive checks).<br>
<br>
Sounds like you should file a bug against libstdc++.<br>
<br>
Cheers,<br>
Nicolai<br>
<br>
<br>
On Thu, May 30, 2019 at 10:39 AM Lau, Luke via llvm-dev<br>
<<a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer noreferrer" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
> Hello,<br>
> I'm trying to run checks with EXPENSIVE_CHECKS enabled, but it crashes when<br>
> generating some intrinsics file with TableGen.<br>
><br>
> > cd /home/luke/Source/llvm-project/build && /home/luke/Source/llvm-<br>
> > project/build/bin/llvm-tblgen -gen-intrinsic-impl -I /home/luke/Source/llvm-<br>
> > project/llvm/include/llvm/IR -I /home/luke/Source/llvm-project/llvm/include<br>
> > /home/luke/Source/llvm-project/llvm/include/llvm/IR/Intrinsics.td -o<br>
> > include/llvm/IR/IntrinsicImpl.inc -d include/llvm/IR/IntrinsicImpl.inc.d<br>
> > /usr/bin/../lib/gcc/x86_64-linux-<br>
> > gnu/8/../../../../include/c++/8/debug/safe_container.h:83:<br>
> > Error: attempt to self move assign.<br>
> ><br>
> > Objects involved in the operation:<br>
> > sequence "this" @ 0x0x7fe3b3070468 {<br>
> > }<br>
> ><br>
><br>
> The command I've been using to configure it is<br>
><br>
> > cmake ../llvm -G Ninja \<br>
> > -DCMAKE_BUILD_TYPE=Debug \<br>
> > -DLLVM_ENABLE_LLD=On \<br>
> > -DLLVM_ENABLE_EXPENSIVE_CHECKS=On<br>
> ><br>
><br>
> Removing the -DLLVM_ENABLE_EXPENSIVE_CHECKS=On allows it to build. Is there<br>
> something wrong with the version on libstdc++ on my system? (Debian testing)<br>
> This was happening on revision 5857bf5d1e5a5ffe5ae51a38514ee55495c0cc69<br>
> --------------------------------------------------------------<br>
> Intel Research and Development Ireland Limited<br>
> Registered in Ireland<br>
> Registered Office: Collinstown Industrial Park, Leixlip, County Kildare<br>
> Registered Number: 308263<br>
><br>
><br>
> This e-mail and any attachments may contain confidential material for the sole<br>
> use of the intended recipient(s). Any review or distribution by others is<br>
> strictly prohibited. If you are not the intended recipient, please contact the<br>
> sender and delete all copies.<br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer noreferrer" target="_blank">llvm-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br>
<br>
<br>
-- <br>
Lerne, wie die Welt wirklich ist,<br>
aber vergiss niemals, wie sie sein sollte.<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer noreferrer" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>
</div></div>