[cfe-dev] clang no longer building with gcc 4.2.1 on PPC Mac/Leopard System

Don Crandall macrxnapa at gmail.com
Fri Apr 26 14:18:35 PDT 2013

Greetings all,

Just to let you know that my attempts to build llvm-clang are halted by 
the following error...

/Users/donc/projects/llvmtrunk/tools/clang/lib/CodeGen/CGDeclCXX.cpp: In 
member function 'void 
/Users/donc/projects/llvmtrunk/tools/clang/lib/CodeGen/CGDeclCXX.cpp:306: error: 
'class std::vector<llvm::Constant*, std::allocator<llvm::Constant*> >' 
has no member named 'data'
make[2]: *** 
Error 1
make[1]: *** [tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/all] 
Error 2
make: *** [all] Error 2

_Using this CMAKE config:

_janeway:cmakedllvm donc$ CC=/usr/bin/gcc-4.2 CXX=/usr/bin/g++-4.2 cmake 
-DCMAKE_C_FLAGS=-fno-common -DCMAKE_CXX_FLAGS=-fno-common 
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON /Users/donc/projects/llvmtrunk

Side note: Home built gcc versions 4.7.3 and 4.8.0 blast by this without 
so much as a warning. So...

Newer C++ standards allow this?

All build testing on a G5 with Mac OS X 10.5.8
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130426/f8d21348/attachment.html>

More information about the cfe-dev mailing list