[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-commits
Subject:    Re: [libcxx] r243574 - Recommit r243503 "[libcxx] Cleanup CMake configuration and integrate with LLV
From:       Eric Fiselier <eric () efcs ! ca>
Date:       2015-07-31 1:07:52
Message-ID: CAB=TDAVp6JDMZ24gMb_+g+XfuEK=qCkHqTJi6Q21hZZtUwd+yw () mail ! gmail ! com
[Download RAW message or body]

These warnings were occuring before my patch though. I'm not sure why
they are causing issues now.

On Thu, Jul 30, 2015 at 9:00 PM, Alexey Samsonov <vonosmas@gmail.com> \
wrote:
> Some of this is caused by -Werror: when we boostrap LLVM with just-built
> Clang, we pass LLVM_ENABLE_WERROR, and looks like it fires a warning for
> libc++:
> 
> /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/libcxx/include/locale:1879:29:
>                 
> error: 'std::__1::__time_get_c_storage<char>' has virtual functions but
> non-virtual destructor [-Werror,-Wnon-virtual-dtor]
> class _LIBCPP_TYPE_VIS_ONLY __time_get_c_storage
> 
> 
> On Thu, Jul 30, 2015 at 5:35 PM, Eric Fiselier <eric@efcs.ca> wrote:
> > 
> > Looks like the updated commit broke the sanitizer build again. I'm
> > looking into it but I'm having trouble reproducing.
> > If anybody has access to the logs I would like to see them.
> > 
> > On Thu, Jul 30, 2015 at 6:33 PM, Eric Fiselier <eric@efcs.ca> wrote:
> > > FYI I recommitted the working parts of this patch as r243698. I
> > > removed the "HandleLLVMOptions.cmake" include which was causing all \
> > > of the problems. Please let me know if anything comes up.
> > > 
> > > /Eric
> > > 
> > > 
> > > On Thu, Jul 30, 2015 at 4:26 PM, Eric Fiselier <eric@efcs.ca> wrote:
> > > > > What would/does `-DLLVM_USE_SANITIZER=Thread` do differently than
> > > > > `-DCMAKE_CXX_FLAGS=-
> > > > > fsanitize=thread` here?
> > > > 
> > > > Using LLVM_USE_SANITIZER will prevent LLVM from adding certain link
> > > > flags such as '-Wl,-z,defs', '-ffunction-sections' and
> > > > '-fdata-sections' and it will force LLVM to provide some level of
> > > > debug information in RELEASE mode.
> > > > 
> > > > For sanitizers other than Thread, LLVM_USE_SANITIZER will add extra
> > > > flags such as '-fsanitize-no-recover'.
> > > > 
> > > > Also, for libc++, using LLVM_USE_SANITIZER sets the testsuite up to
> > > > run with the sanitizers as well.
> > > > 
> > > > On Thu, Jul 30, 2015 at 4:09 PM, Jonathan Roelofs
> > > > <jonathan@codesourcery.com> wrote:
> > > > > 
> > > > > 
> > > > > On 7/30/15 12:47 PM, Alexey Samsonov wrote:
> > > > > > 
> > > > > > I actually support the idea of including LLVM CMake modules \
> > > > > > from libc++ CMake: the logic for building instrumented LLVM and \
> > > > > > building instrumented libc++ should better be listed in a \
> > > > > > single place, and be controlled by LLVM_USE_SANITIZER options: \
> > > > > > i.e. when we configure libc++ from compiler-rt, we should pass \
> > > > > > -DLLVM_USE_SANITIZER=Thread rather than \
> > > > > > -DCMAKE_CXX_FLAGS=-fsanitize=thread. It's not possible to do \
> > > > > > this right now, though (for instance we build two different \
> > > > > > versions of MSan-libc++), but I think I'd be able to work on \
> > > > > > that once your patch lands and the dust settles.
> > > > > > 
> > > > > 
> > > > > What would/does `-DLLVM_USE_SANITIZER=Thread` do differently than
> > > > > `-DCMAKE_CXX_FLAGS=-fsanitize=thread` here?
> > > > > 
> > > > > 
> > > > > Jon
> > > > > 
> > > > > 
> > > > > --
> > > > > Jon Roelofs
> > > > > jonathan@codesourcery.com
> > > > > CodeSourcery / Mentor Embedded
> 
> 
> 
> 
> --
> Alexey Samsonov
> vonosmas@gmail.com
_______________________________________________
cfe-commits mailing list
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic