Your problem is in the following command:
"ucfront-gcc arm-elf-gcc -O2 -g -fomit-frame-pointer -fno-common -fno-builtin -Wall -DEMBED -Dlinux -D__linux__ -Dunix -D__uClinux__ -c -o ter\mcap.o termcap.c"
I suggust you should modify Makefile or other thing in /mnt/sdb/uClinux-dist/lib/libg/gtermcap/ directory