I found this post about using GCC 4.2 in Xcode 4.2 StackOverflow Post. Did anyone else receive the error "Error writing -: Broken pipe" after following the steps in the above post?
After following the steps I can see GCC 4.2 as an option for the compiler. Compiling a project using LLVM compiler 3.0 still works, but using LLVM GCC 4.2 or GCC 4.2 generates the pipe error.
I hope someone encountered the same problem and managed to fix it!
Simple and userful solution https://github.com/kennethreitz/osx-gcc-installer/ It automates the lists of the declaration on the stackoverflow