"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/Users/HYLuk/Documents/NetBeansProjects/Perfectsi
m'
VPATH=. -spec win32-g++ -o qttmp-Debug.mk nbproject/qt-Debug.pro
/bin/sh: -spec: command not found
make[1]: *** [nbproject/qt-Debug.mk] Error 127
make[1]: Leaving directory `/c/Users/HYLuk/Documents/NetBeansProjects/Perfectsim
'
make: *** [.build-impl] Error 2

=============================
sh on its own can run
I don't know why if sh is in the system path,how come it can be run standalone
HELP please