Installing gcc (or other open source software packages) on a Mac can be tricky. If it's something supported by a package manager, like Fink/FinkCommander, you're all set. But if not...
The problem seems to be that the Mac Development environment (via XCode) includes a rather old (4.2) and non-standard version of gcc (llvm-gcc?._ In theory, you can use this to compile open source software. But many newer OSSW packages are dependent on libraries (mpc, mpfr, gmp, etc) and may require newer versions than those that come with XCode. You can install newer libraries, but they should up in a different path than the native gcc expects, and may conflict with Mac things. You should be able to specify alternate paths for some libraries, but then you don't know for sure that they're compatible with other libraries whose path can't be changed. And it doesn't necessarily solve all the problems.
In my case, I was trying to install avr-gcc 4.7 (!experimental!), and couldn't get past a bunch of "library is incompatible architecture" errors in the configure/build, no matter what I did. Various people have reported similar problems, but I couldn't find an explanation that yielded a general fix. At least not for my combination of SW versions and package managers...
What I ended up doing was to have fink install a 2nd copy of gcc (for Mac) - v4.6 in this case. Fink goes ahead and puts this in the same directories/paths as the other Fink-managed apps/libraries, and installs some basic library support of the correct versions as well. Then, you can "export CC=/sw/bin/gcc-fsf-4.6" before trying to configure/compile your source. This seems to make things go a lot smoother, so I thought I'd share the idea...
(and it's only about a gigabyte of extra compilers/etc!)

