I think it has something to do with the reset mechanism of the wiced sense. I ended up cracking the case open, disconnecting everything, pressed some hidden buttons randomly, and put it back together, and boom! it started working again!
Interesting. But the building environment works perfectly now.
Thanks for your help though, i've already followed that video.
I just find the Linux SDK contains its own version of make and perl very annoying, as perl requires some older version of libperl which my machine does not have, ended up i have to remove the old perl and make a symbolic link to the system perl for the compile process to work.