[cfe-dev] clang r163717 (right now) not buildable? (asan_report.cc:282)
samsonov at google.com
Thu Sep 13 03:20:01 PDT 2012
On Wed, Sep 12, 2012 at 8:27 PM, David Blaikie <dblaikie at gmail.com> wrote:
> On Wed, Sep 12, 2012 at 9:14 AM, Marshall Clow <mclow.lists at gmail.com>
> > On Sep 12, 2012, at 9:00 AM, Sean McBride <sean at rogue-research.com>
> >> Hi all,
> >> I'm doing a pretty plain CMake build of clang, and it seems to not be
> buildable, giving (on 2 machines):
> >> [ 15%] Building CXX object
> >> [ 15%] /llvm/llvm/projects/compiler-rt/lib/asan/asan_report.cc:282:1:
> error: function declared 'noreturn' should not return
> >> }
> >> ^
> >> 1 error generated.
> >> make: ***
> Error 1
> >> Any one else seeing this?
> > Yes, I'm seeing it too.
> I guess this might've been what Daniel Dunbar was trying to suppress
> the other day.
Yeah, the problem is that old Clang (3.0 is also considered "old" here)
incorrectly produces -Winvalid-noreturn
if a function has local variable with noreturn destructor.
Yesterday we've added -Werror to default compile flags for AddressSanitizer
runtime, so your build breaks there.
Probably it's not the best idea: as David mentions, developers may use
different compilers. We may break many
of them if their weird (or old) compiler produces any kind of warning in
ASan code. I'm removing -Werror now.
> What version of clang are you using to build?
> - David
> > -- Marshall
> > Marshall Clow Idio Software <mailto:mclow.lists at gmail.com>
> > A.D. 1517: Martin Luther nails his 95 Theses to the church door and is
> promptly moderated down to (-1, Flamebait).
> > -- Yu Suzuki
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev