[llvm-dev] CMake Cache PGO error

Brian Cain via llvm-dev llvm-dev at lists.llvm.org
Thu Mar 16 07:39:52 PDT 2017


> -----Original Message-----
> From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Vedant
> Kumar via llvm-dev
...
> Haven't given the PGO cache file a shot, but I ran into a similar problem today,
> and solved the issue by making sure that my host compiler had access to a
> working copy of the profiling runtime.
> 
> For me, that's: ninja libclang_rt.profile_osx.a
> 
> If that's not your issue, try checking the CMake{Error,Output}.log files, and
> figure out why exactly the check is failing (most likely it has nothing to do with
> the "c++11 unsupported" error message).

When I build with ASan+sanitizer coverage I get the same error as Timo.  For me, it's due to undefined references to pthread_*/dlsym/__dynamic_cast/typeinfo for __cxxabi, etc.  I'm using Ubuntu 14.04.

I think I understand that the problem is somehow related to my host compiler but it's not clear to me how to address it.

This bug hints at the fact that the underlying problem might be a need for a static libc++: https://bugs.llvm.org/show_bug.cgi?id=30919

The dynamic_cast test case w/-static-libstdc++ fails for me: https://bugs.llvm.org/show_bug.cgi?id=30919#c3 but my build is after the fix (r 287373).   I haven't tried it with LIBCXX_ENABLE_STATIC_ABI_LIBRARY yet, I'll try that next.  I suppose that must be applied to my stage0/host compiler first before running my ASan build.

-Brian



More information about the llvm-dev mailing list