<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 16, 2016 at 1:48 PM, Carsten Mattner <span dir="ltr"><<a href="mailto:carstenmattner@gmail.com" target="_blank">carstenmattner@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Fri, Sep 16, 2016 at 10:18 PM, Teresa Johnson <<a href="mailto:tejohnson@google.com">tejohnson@google.com</a>> wrote:<br>
><br>
> Cc'ing llvm-dev again in case someone knows what is going on.<br>
><br>
> That error is coming from a polly configure script, which I don't<br>
> have cloned into my own tree. Not sure why polly would behave<br>
> differently when configuring for ThinLTO. Does polly configure ok<br>
> when configuring the same way, but for regular LTO?<br>
<br>
</span>Yes it does, and I don't remember when I've added it, meaning it's<br>
been working when bootstrapping llvm with the host gcc toolchain, for<br>
a long time.<br></blockquote><div><br></div><div>You mentioned in your original email:</div><div>> I first tried to rebuild llvm with llvm-3.9, which has ThinLTO, by</div><div>> providing -DLLVM_ENABLE_LTO=Thin, but that failed very quickly, so I</div><div>> fell back to building with -DLLVM_ENABLE_LTO=On and using the system</div><div>> CC/CXX (gcc 6.1).</div><div><br></div><div>I assume this error when you try to bootstrap using llvm-3.9 and ThinLTO then? What about bootstrapping with llvm-3.9 and -DLLVM_ENABLE_LTO=On?</div><div><br></div><div>If the latter works, I'll have to clone polly and see if I can reproduce it and see what is different between a -DLLVM_ENABLE_LTO=Thin and -DLLVM_ENABLE_LTO=On build then.</div><div><br></div><div>Teresa</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
> On Fri, Sep 16, 2016 at 12:36 PM, Carsten Mattner <<a href="mailto:carstenmattner@gmail.com">carstenmattner@gmail.com</a>> wrote:<br>
> ><br>
> > Hi Teresa,<br>
> ><br>
> > I've just attempted a THIN_LTO build again, and the<br>
> > error I ran into is as follows, and happens during<br>
> > cmake. I'm explicitly telling cmake to us llvm-ar and llvm-ranlib<br>
> > as suggested.<br>
> ><br>
> > [...]<br>
> > -- Performing Test COMPILER_RT_HAS_STATIC_FLAG - Success<br>
> > -- Performing Test COMPILER_RT_SUPPORTS_ATOMIC_<wbr>KEYWORD<br>
> > -- Performing Test COMPILER_RT_SUPPORTS_ATOMIC_<wbr>KEYWORD - Success<br>
> > -- Builtin supported architectures:<br>
> > -- ISL version: isl-0.17.1-164-gcbba1b6<br>
> > -- Performing Test HAS_ATTRIBUTE_WARN_UNUSED_<wbr>RESULT<br>
> > -- Performing Test HAS_ATTRIBUTE_WARN_UNUSED_<wbr>RESULT - Failed<br>
> > -- Performing Test HAVE___ATTRIBUTE__<br>
> > -- Performing Test HAVE___ATTRIBUTE__ - Failed<br>
> > -- Performing Test HAVE_DECL_FFS<br>
> > -- Performing Test HAVE_DECL_FFS - Failed<br>
> > -- Performing Test HAVE_DECL___BUILTIN_FFS<br>
> > -- Performing Test HAVE_DECL___BUILTIN_FFS - Failed<br>
> > -- Performing Test HAVE_DECL__BITSCANFORWARD<br>
> > -- Performing Test HAVE_DECL__BITSCANFORWARD - Failed<br>
> > CMake Error at tools/polly/lib/External/<wbr>CMakeLists.txt:90 (message):<br>
> >   No ffs implementation found<br>
> > [...]<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><span style="font-family:times;font-size:medium"><table cellspacing="0" cellpadding="0"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top:2px solid rgb(213,15,37)">Teresa Johnson |</td><td nowrap style="border-top:2px solid rgb(51,105,232)"> Software Engineer |</td><td nowrap style="border-top:2px solid rgb(0,153,57)"> <a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a> |</td><td nowrap style="border-top:2px solid rgb(238,178,17)"> 408-460-2413</td></tr></tbody></table></span></div>
</div></div>