编译GLIBC时出错,高手指点
编译glibc2.3.5,makes时出现
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.5/. objdir=`pwd` all
make[1]: Entering directory `/root/embedded/tools/glibc-2.3.5'
make -C csu subdir_lib
make[2]: Entering directory `/root/embedded/tools/glibc-2.3.5/csu'
make[2]: Leaving directory `/root/embedded/tools/glibc-2.3.5/csu'
make[2]: Entering directory `/root/embedded/tools/glibc-2.3.5/csu'
arm-linux-gcc ../sysdeps/unix/sysv/linux/init-first.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -I../include -I. -I/root/embedded/tools/build-glibc/csu -I.. -I../libio -I/root/embedded/tools/build-glibc -I../sysdeps/arm/elf -I../linuxthreads/sysdeps/unix/sysv/linux/arm -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/arm -I../sysdeps/unix/sysv/linux/arm -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/arm -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/arm/fpu -I../sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /root/embedded/obj/lib/gcc/arm-linux/3.4.4/include -isystem /root/embedded/obj/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -o /root/embedded/tools/build-glibc/csu/init-first.o -MD -MP -MF /root/embedded/tools/build-glibc/csu/init-first.o.dt -MT /root/embedded/tools/build-glibc/csu/init-first.o
In file included from ../sysdeps/unix/sysdep.h:21,
from ../sysdeps/unix/arm/sysdep.h:19,
from ../sysdeps/unix/sysv/linux/arm/sysdep.h:25,
from ../sysdeps/unix/sysv/linux/init-first.c:24:
../sysdeps/unix/sysv/linux/sys/syscall.h:25:24: asm/unistd.h: 没有那个文件或目录
In file included from ../sysdeps/unix/sysv/linux/sys/param.h:24,
from ../sysdeps/unix/sysv/linux/init-first.c:26:
/root/embedded/obj/include/linux/param.h:4:23: asm/param.h: 没有那个文件或目录
In file included from ../signal/signal.h:333,
from ../include/signal.h:5,
from ../linuxthreads/internals.h:23,
from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
from ../sysdeps/generic/ldsodefs.h:38,
from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
from ../sysdeps/unix/sysv/linux/init-first.c:30:
../sysdeps/unix/sysv/linux/bits/sigcontext.h:28:29: asm/sigcontext.h: 没有那个文件或目录
In file included from ../include/signal.h:5,
from ../linuxthreads/internals.h:23,
from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
from ../sysdeps/generic/ldsodefs.h:38,
from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
from ../sysdeps/unix/sysv/linux/init-first.c:30:
../signal/signal.h:336: warning: "struct sigcontext" declared inside parameter list
../signal/signal.h:336: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from ../linuxthreads/internals.h:23,
from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
from ../sysdeps/generic/ldsodefs.h:38,
from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
from ../sysdeps/unix/sysv/linux/init-first.c:30:
../include/signal.h:40: warning: "struct sigcontext" declared inside parameter list
In file included from ../sysdeps/unix/sysv/linux/arm/sigcontextinfo.h:20,
from ../linuxthreads/internals.h:27,
from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
from ../sysdeps/generic/ldsodefs.h:38,
from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
from ../sysdeps/unix/sysv/linux/init-first.c:30:
../sysdeps/unix/sysv/linux/arm/bits/armsigctx.h:33:24: asm/ptrace.h: 没有那个文件或目录
In file included from ../sysdeps/unix/sysv/linux/arm/sigcontextinfo.h:20,
from ../linuxthreads/internals.h:27,
from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
from ../sysdeps/generic/ldsodefs.h:38,
from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
from ../sysdeps/unix/sysv/linux/init-first.c:30:
../sysdeps/unix/sysv/linux/arm/bits/armsigctx.h:64: error: field `reg' has incomplete type
In file included from ../socket/sys/socket.h:35,
from ../include/sys/socket.h:2,
from ../inet/netinet/in.h:24,
from ../include/netinet/in.h:3,
from ../resolv/resolv.h:57,
from ../include/resolv.h:11,
from ../linuxthreads/descr.h:19,
from ../linuxthreads/internals.h:30,
from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
from ../sysdeps/generic/ldsodefs.h:38,
from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
from ../sysdeps/unix/sysv/linux/init-first.c:30:
../sysdeps/unix/sysv/linux/bits/socket.h:304:24: asm/socket.h: 没有那个文件或目录
make[2]: *** [/root/embedded/tools/build-glibc/csu/init-first.o] 错误 1
make[2]: Leaving directory `/root/embedded/tools/glibc-2.3.5/csu'
make[1]: *** [csu/subdir_lib] 错误 2
make[1]: Leaving directory `/root/embedded/tools/glibc-2.3.5'
make: *** [all] 错误 2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论