Hi polikuo
When I had to compile a kernel I needed to load:
tce-load -i compiletc perl5 bash ncursesw-dev bc glibc_apps elfutils-dev
I think the ncursesw-dev was only needed for make menuconfig.
I keep on seeing this popping up in your output:
sh: command: line 1: illegal option -c
Maybe you need to install bash?