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

Yuri via llvm-dev llvm-dev at lists.llvm.org
Wed Nov 2 12:04:34 PDT 2016


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
   String();  // Not meant to be instantiated.
   ^
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
   String();  // Not meant to be instantiated.
   ^
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() {
   ^


https://llvm.org/bugs/show_bug.cgi?id=30877


More information about the llvm-dev mailing list