Command that failed is:
home/ubuntu/sibin/new_timesys/wds3/toolchain/bin/mipsisa32r2-timesys-linux-uclibc-g++ -W -Wall -Wpointer-arith -pipe -O3 -g -Wno-uninitialized -D_POSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTIONS -D_REENTRANT -DACE_HAS_AIO_CALLS -I/mnt/acelinux -DACE_HAS_EXCEPTIONS -DACE_BUILD_DLL -DACE_OS_BUILD_DLL -c -fPIC -o .shobj/Basic_Types.o Basic_Types.cpp
and the failed include is:
/mnt/acelinux/acelinux/OS.h:3377:33: error: linux/aio.h: No such file or directory
No idea what ACE is all about, but the directory has the same files as /usr/include/linux on a normal install. There is no aio.h in that directory, which makes me think that this must be something special related to ACE.