[llvm-dev] Llvm build is broken (at least on FreeBSD)

Matthias Braun via llvm-dev llvm-dev at lists.llvm.org
Wed Nov 2 12:39:01 PDT 2016


> On Nov 2, 2016, at 12:04 PM, Yuri via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Current revision 285840 fails to build on FreeBSD.
> 
> I used the command:
> cmake -G "Unix Makefiles" ../llvm -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/opt/llvm/current && gmake
> 
> (I am aware of FreeBSD llvm/clang ports, but the source build should always succeed as well.)
> 
> Yuri
> 
> 
> ---errors---
> Scanning dependencies of target gtest
> [ 91%] Building CXX object utils/unittest/CMakeFiles/gtest.dir/googletest/src/gtest-all.cc.o
> In file included from /xpool/llvm/latest/llvm/utils/unittest/googletest/src/gtest-all.cc:42:
> In file included from /xpool/llvm/latest/llvm/utils/unittest/googletest/src/gtest.cc:132:
> /xpool/llvm/latest/llvm/utils/unittest/googletest/src/gtest-internal-inl.h:153:3: error: field of type 'testing::internal::String' has private default constructor
>  GTestFlagSaver() {
>  ^
> /usr/local/include/gtest/internal/gtest-string.h:157:3: note: declared private here
Looks like it picked up some header from your machine instead of using the gtest bundled with llvm (llvm/unittest/googletest/include/gtest/internal/gtest-string.h). Not sure how/why that can happen.

- Matthias



More information about the llvm-dev mailing list