if you do something like :

pkginfo | egrep -i 'gcc|make'

do you get something like :

application SMCgcc gcc
system SUNWxcu4t XCU4 make and sccs utilities


if not, then the packages are not installed, and that's why you can neither use make nor compile...

solution is : install the packages