我正在尝试构建一些小型测试程序,以便在mips板上运行。
尝试编译时遇到此错误。
EXTRALDFLAGS=-Wall -g3 -static -pthread -Dpthread_yield=sched_yield
TOOL_PREFIX=/crux/shared/mips-android/bin/mipsel-linux-android- make -f gcc-makefile
clean all
echo "Cleaning...."
Cleaning....
rm -f dining.o
rm -f test
/crux/shared/mips-android/bin/mipsel-linux-android-gcc -g -c dining.c -o dining.o
In file included from /crux/mips-android/bin/../sysroot/usr/include/stdint.h:32:0,
from /crux/mips-android/bin/../lib/gcc/mipsel-linux-android/4.6.x
google/include/stdint.h:3,
from /crux/mips-android/bin/../lib/gcc/mipsel-linux-android/4.6.x
google/include-fixed/sys/types.h:43,
from /crux/mips-android/bin/../sysroot/usr/include/sys/time.h:32,
enter code herefrom /crux/mips-android/bin/../sysroot/usr/include/time.h:32,
from /crux/mips-android/bin/../sysroot/usr/include/pthread.h:31,
from dining.c:1:
/crux/mips-android/bin/../sysroot/usr/include/sys/_types.h:40:28: fatal error:
machine/_types.h: No such file or directory
compilation terminated.
make: *** [dining.o] Error 1
抱歉格式不正确,第一次来这里