GCC 2.95.3 works for me. I compiled it on one machine, and moved it to another machine.
Have to make sure the paths are exactly the same, of course. I presume that your paths are the exactly same.
Did you make sure you've copied ALL the files? The ones from binutils too.
Caveat: GCC on SunOS / Solaris is very sensitive to the patch level. If you patch the machine, you should rebuild GCC. Seriously. Patches can change the /usr/include/... files, which GCC sometimes caches modified versions of those header files. When they become out of sync, antics and hilarity ensue... er, umm, I mean... frustrating and tricky debugging sessions ensue.
Follow up caveat: if you build GCC on one machine, and copy it over to another machine... make sure they are at the same patch level.
HTH, --Eljay