http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46086
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-11-16 13:38:21 UTC --- (In reply to comment #7) > configure: error: in > `/usr/ports/lang/gcc45/work/build/sparc64-portbld-freebsd9.0/libgomp': > configure: error: C compiler cannot create executables > See `config.log' for more details. Why do people always ignore this line? At a guess, I'd say you don't have the prerequisites installed in a system dir, or haven't re-run ldconfig, so the dynamic linker can't find the libs, in which case try setting LD_LIBRARY_PATH