I was stuck at the unsupported GCC error in building Dart on my Snow Leopard. The fix was simple - to remove the explicit version requirement, and let it use the system default. Hope it doesn’t break anything.
Unsupported compiler 'GCC 4.2' selected for architecture 'x86_64'
Basically we have to clear out all references to GCC 4.2 from
GCC_VERSION = 4.2;
to
GCC_VERSION = ""
Since this version has been references in a thousand places, a global search and replace was needed. I am inside the dart/ directory.
$ find . -name "*.pbxproj" -print -exec sed -i 's/GCC_VERSION = 4.2/GCC_VERSION = ""/g' {} \;
And ** BUILD SUCCEEDED **
Cool!