[cfe-dev] Compilation error with Apple GCC 4.0.1

Csaba Raduly rcsaba at gmail.com
Sun Oct 30 01:27:05 PDT 2011


I'm trying to build r143304 with

$ g++ -v
Using built-in specs.
Target: powerpc-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5493~1/src/configure
--disable-checking -enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=i686-apple-darwin9 --program-prefix=
--host=powerpc-apple-darwin9 --target=powerpc-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5493)

on OS X 10.5.8 Leopard (PowerPC) with XCode 3.1.4

and I'm getting the following errors:

llvm[4]: Compiling Diagnostic.cpp for Release+Asserts build
/Volumes/data/LLVM/llvm/tools/clang/lib/Basic/../../include/clang/Basic/Diagnostic.h:590:
error: ‘clang::DiagnosticsEngine::<anonymous enum>
clang::DiagnosticsEngine::MaxArguments’ is private
/Volumes/data/LLVM/llvm/tools/clang/lib/Basic/../../include/clang/Basic/PartialDiagnostic.h:36:
error: within this context
/Volumes/data/LLVM/llvm/tools/clang/lib/Basic/../../include/clang/Basic/Diagnostic.h:621:
error: ‘clang::DiagnosticsEngine::<anonymous enum>
clang::DiagnosticsEngine::MaxFixItHints’ is private
/Volumes/data/LLVM/llvm/tools/clang/lib/Basic/../../include/clang/Basic/PartialDiagnostic.h:68:
error: within this context

/Volumes/data/LLVM/llvm/tools/clang/lib/Parse/../../include/clang/Parse/Parser.h:
In destructor ‘clang::Parser::BalancedDelimiterTracker::~BalancedDelimiterTracker()’:
/Volumes/data/LLVM/llvm/tools/clang/lib/Parse/../../include/clang/Parse/Parser.h:439:
error: ‘void clang::Parser::DelimiterTracker::pop(clang::tok::TokenKind)’
is private
/Volumes/data/LLVM/llvm/tools/clang/lib/Parse/../../include/clang/Parse/Parser.h:479:
error: within this context
make[4]: *** [/Volumes/data/LLVM/build-release/tools/clang/lib/Parse/Release+Asserts/ParseAST.o]
Error 1

Is Apple GCC 4.0.1 not supported anymore? Reading GettingStarted,html
suggests that it should work.

-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds




More information about the cfe-dev mailing list