缺少crti.o编译错误

时间:2013-09-17 13:07:56

标签: cross-compiling uclibc

早上好,我正在尝试构建一个uClibc发行版并成功编译了binutils,gcc和Linux头文件,但是当我尝试编译uClibc软件时,它会在完成之前退出并出现以下错误:

./libpthread/nptl/descr.h:293:37: error: 'PTHREAD_KEYS_MAX' undeclared here (not in a function)
make: *** [libpthread/nptl/sysdeps/unix/sysv/linux/gen_lowlevelrobustlock.s] Error 1
rawcc: error: /tmp/software/staging/bin/../lib/crti.o: No such file or directory
rawcc: error: /tmp/software/staging/bin/../lib/crt1.o: No such file or directory
rawcc: error: /tmp/software/staging/bin/../lib/crtn.o: No such file or directory
rawcc: error: /tmp/software/staging/bin/../lib/crti.o: No such file or directory
rawcc: error: /tmp/software/staging/bin/../lib/crt1.o: No such file or directory
rawcc: error: /tmp/software/staging/bin/../lib/crtn.o: No such file or directory

如果我在Debian站点上查看这些文件所在的包,它们似乎位于libc-dev包中。所以我的问题是,如果这些是libc包的一部分,那就是我正在尝试编译的,这不是鸡和蛋的情况吗?我显然在实时操作系统中有这些文件,但是这些文件不应该被使用,因为它们用于不同的libc(eglibc)正确吗?感谢您提供的任何帮助!

戴夫

0 个答案:

没有答案