[Android Software Development] b95505017:
Hi I want to follow this thread and this guide

[INFO][ROM] Guide to build AOSP 4.2. Builds provided for crespo and 4g trying to build 4.2 on Nexus S using Mac osx lion.

I installed git coreutils findutils gnu-sed gnupg pngcrush repo and gcc4.7.2 using brew, but get this:

/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin11.4.2/4.7.2/../../../../include/c++/4.7.2/limits:1405:35: error: template argument 1 is invalid
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin11.4.2/4.7.2/../../../../include/c++/4.7.2/limits:1479:44: error: template argument 1 is invalid
make: *** [/Volumes/androidout/android/host/darwin-x86/obj/STATIC_LIBRARIES/libLLVMTableGen_intermediates/TableGenBackend.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from external/llvm/include/llvm/ADT/StringRef.h:18:0,
from external/llvm/include/llvm/TableGen/StringMatcher.h:20,
from external/llvm/lib/TableGen/StringMatcher.cpp:14:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin11.4.2/4.7.2/../../../../include/c++/4.7.2/limits:1405:35: error: template argument 1 is invalid
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin11.4.2/4.7.2/../../../../include/c++/4.7.2/limits:1479:44: error: template argument 1 is invalid
make: *** [/Volumes/androidout/android/host/darwin-x86/obj/STATIC_LIBRARIES/libLLVMTableGen_intermediates/StringMatcher.o] Error 1
In file included from external/llvm/include/llvm/ADT/StringRef.h:18:0,
from external/llvm/include/llvm/ADT/Twine.h:13,
from external/llvm/lib/TableGen/Error.cpp:16:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin11.4.2/4.7.2/../../../../include/c++/4.7.2/limits:1405:35: error: template argument 1 is invalid
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin11.4.2/4.7.2/../../../../include/c++/4.7.2/limits:1479:44: error: template argument 1 is invalid
make: *** [/Volumes/androidout/android/host/darwin-x86/obj/STATIC_LIBRARIES/libLLVMTableGen_intermediates/Error.o] Error 1
In file included from external/llvm/include/llvm/ADT/StringRef.h:18:0,
from external/llvm/include/llvm/Support/MemoryBuffer.h:17,
from external/llvm/lib/TableGen/TGLexer.cpp:17:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin11.4.2/4.7.2/../../../../include/c++/4.7.2/limits:1405:35: error: template argument 1 is invalid
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin11.4.2/4.7.2/../../../../include/c++/4.7.2/limits:1479:44: error: template argument 1 is invalid
make: *** [/Volumes/androidout/android/host/darwin-x86/obj/STATIC_LIBRARIES/libLLVMTableGen_intermediates/TGLexer.o] Error 1
In file included from external/llvm/include/llvm/ADT/StringRef.h:18:0,
from external/llvm/include/llvm/ADT/FoldingSet.h:21,
from external/llvm/include/llvm/TableGen/Record.h:19,
from external/llvm/lib/TableGen/TGParser.h:17,
from external/llvm/lib/TableGen/Main.cpp:18:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin11.4.2/4.7.2/../../../../include/c++/4.7.2/limits:1405:35: error: template argument 1 is invalid
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin11.4.2/4.7.2/../../../../include/c++/4.7.2/limits:1479:44: error: template argument 1 is invalid
In file included from external/llvm/include/llvm/ADT/StringRef.h:18:0,
from external/llvm/include/llvm/ADT/FoldingSet.h:21,
from external/llvm/include/llvm/TableGen/Record.h:19,
from external/llvm/lib/TableGen/Record.cpp:14:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin11.4.2/4.7.2/../../../../include/c++/4.7.2/limits:1405:35: error: template argument 1 is invalid
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin11.4.2/4.7.2/../../../../include/c++/4.7.2/limits:1479:44: error: template argument 1 is invalid
make: *** [/Volumes/androidout/android/host/darwin-x86/obj/STATIC_LIBRARIES/libLLVMTableGen_intermediates/Main.o] Error 1
make: *** [/Volumes/androidout/android/host/darwin-x86/obj/STATIC_LIBRARIES/libLLVMTableGen_intermediates/Record.o] Error 1

Is that my build env error or something?

Thanks!