i am compiling Qt4.8.0 on solaris 10,when i am compile Qt with g++,it can success,configure as follows:
./configure -debug -platform solaris-g++-64 -no-webkit -no-script
gmake
gmake install

but,now i wanna compile Qt with CC ,but i get some errors ,the process is as follows:
export CC=cc
export CXX=CC
export CXXFLAGS="-m64 -library=stlport4"
export CFLAGS="-m64 -library=stlport4"
export LDFLAGS="-m64 -library=stlport4"
./configure -debug -platform solaris-cc-64 -no-webkit -no-script

this step is successful
but when i gmake,i get these errors:

Wrong IR type: 27

gmake[1]: *** [.obj/debug-shared/qpaintbuffer.o] Error 2
gmake[1]: Leaving directory `/export/home/tools/QT/install/qt-everywhere-opensource-src-4.8.0/src/gui'
gmake: *** [sub-gui-make_default-ordered] Error 2

i dont what the reason is ,so it is very kind of you to tell me how can i do to solve this problem and can compile Qt on solaris 10 successfully.
thank you very much