[cfe-dev] clang 3.0 build failure on powerpc-apple-darwin9

Jack Howarth howarth at bromo.med.uc.edu
Fri Dec 2 06:40:16 PST 2011


  Building the new llvm/clang 3.0 release using cmake with the Apple system gcc-4.0.1 compiler
from Xcode 3.1.4 on powerpc-apple-darwin9.8.0 fails at...

[ 23%] Building CXX object tools/clang/lib/Serialization/CMakeFiles/clangSerialization.dir/ASTCommon.cpp.o
cd /sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/build/tools/clang/lib/Serialization && /sw/var/lib/fink/path-prefix-g++-4.0/c++   -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -DHAVE_CLANG_CONFIG_H -fPIC -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -fno-rtti -O3 -DNDEBUG -mmacosx-version-min=10.5 -I/sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/build/tools/clang/lib/Serialization -I/sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/tools/clang/lib/Serialization -I/sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/tools/clang/include -I/sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/build/tools/clang/include -I/sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/build/include -I/sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/include    -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fno-exceptions -o CMakeFiles/clangSerialization.dir/ASTCommon.cpp.o -c /sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/tools/clang/lib/Serialization/ASTCommon.cpp
/sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/tools/clang/include/clang/Basic/Diagnostic.h:590: error: 'clang::DiagnosticsEngine::<anonymous enum> clang::DiagnosticsEngine::MaxArguments' is private
/sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/tools/clang/include/clang/Basic/PartialDiagnostic.h:36: error: within this context
/sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/tools/clang/include/clang/Basic/Diagnostic.h:621: error: 'clang::DiagnosticsEngine::<anonymous enum> clang::DiagnosticsEngine::MaxFixItHints' is private
/sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/tools/clang/include/clang/Basic/PartialDiagnostic.h:68: error: within this context
/sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/tools/clang/include/clang/Serialization/ASTBitCodes.h: In static member function 'static clang::serialization::TypeIdx clang::serialization::TypeIdx::fromTypeID(clang::serialization::TypeID)':
/sw/src/fink.build/llvm30-3.0-1/llvm-3.0.src/tools/clang/include/clang/Serialization/ASTBitCodes.h:100: warning: passing negative value '-0x00000000000000001' for argument 1 to 'clang::serialization::TypeIdx::TypeIdx(uint32_t)'
make[2]: *** [tools/clang/lib/Serialization/CMakeFiles/clangSerialization.dir/ASTCommon.cpp.o] Error 1
make[1]: *** [tools/clang/lib/Serialization/CMakeFiles/clangSerialization.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

The build succeeds if CC/CXX are set to the Apple gcc-4.2/g++-4.2 compilers instead. This issue was introduced some time after Jun 23rd
into llvm svn.
            Jack




More information about the cfe-dev mailing list