[cfe-dev] Compilation error with Apple GCC 4.0.1

Ted Kremenek kremenek at apple.com
Mon Oct 31 10:24:44 PDT 2011


I don't know if this is specific to GCC 4.0.1, but I can say that if it is that there is no interest in making the Clang sources work with that old compiler.  That may have been the case 4 years ago, but it certainly isn't now.

Sent from my iPad

On Oct 30, 2011, at 1:27 AM, Csaba Raduly <rcsaba at gmail.com> wrote:

> 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
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list