QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 894|回复: 0

【LFS】用uClibc替换glibc,编译错,请指教!!!

[复制链接]
发表于 2003-8-7 18:38:47 | 显示全部楼层 |阅读模式
安装LFS的文档,编译到glibc的时候,我用uClibc来代理它,执行make menuconfig ;make
编译出错,
请问编译uClibc和glibc有不同的地方么?

编译错误如下:
make -C  i386
make[4]: Entering directory `/home/lfs/Uclibc/www.uclibc.org/downloads/uClibc-0.9.20/libc/sysdeps/linux/i386'
gcc  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing  -mpreferred-stack-boundary=2 -falign-jumps=0 -falign-loops=0 -Os     -fno-builtin -nostdinc -D_LIBC -I../../../../include -I. -I/stage1//lib/gcc-lib/i686-pc-linuxnu/3.3/include -DNDEBUG -fPIC -c ../common/gmon-start.c -S -o gmon-start.S
In file included from ../common/gmon-start.c:21:
../../../../include/stdlib.h:35:20: stddef.h: No such file or directory
In file included from ../../../../include/sys/types.h:30,
                 from ../../../../include/stdlib.h:405,
                 from ../common/gmon-start.c:21:
../../../../include/bits/types.h:29:20: stddef.h: No such file or directory
In file included from ../../../../include/bits/types.h:144,
                 from ../../../../include/sys/types.h:30,
                 from ../../../../include/stdlib.h:405,
                 from ../common/gmon-start.c:21:
../../../../include/bits/pthreadtypes.h:48: error: parse error before "size_t"
../../../../include/bits/pthreadtypes.h:48: warning: no semicolon at end of struct or union
../../../../include/bits/pthreadtypes.h:51: error: parse error before "__stacksize"
../../../../include/bits/pthreadtypes.h:51: warning: type defaults to `int' in declaration of `__stacksize'
../../../../include/bits/pthreadtypes.h:51: warning: data definition has no type or storage class
../../../../include/bits/pthreadtypes.h:52: warning: type defaults to `int' in declaration of `pthread_attr_t'
../../../../include/bits/pthreadtypes.h:52: warning: data definition has no type or storage class
In file included from ../../../../include/stdlib.h:405,
                 from ../common/gmon-start.c:21:
../../../../include/sys/types.h:146:20: stddef.h: No such file or directory
In file included from ../common/gmon-start.c:21:
../../../../include/stdlib.h:422: error: parse error before "size_t"
../../../../include/stdlib.h:422: warning: function declaration isn't a prototype
../../../../include/stdlib.h:451: error: parse error before "size_t"
../../../../include/stdlib.h:452: warning: function declaration isn't a prototype
../../../../include/stdlib.h:546: error: parse error before "__size"
../../../../include/stdlib.h:546: warning: function declaration isn't a prototype
../../../../include/stdlib.h:548: error: parse error before "__nmemb"
../../../../include/stdlib.h:549: warning: function declaration isn't a prototype
../../../../include/stdlib.h:569: error: parse error before "size_t"
../../../../include/stdlib.h:569: warning: function declaration isn't a prototype
In file included from ../../../../include/stdlib.h:579,
                 from ../common/gmon-start.c:21:
../../../../include/alloca.h:25:20: stddef.h: No such file or directory
In file included from ../../../../include/stdlib.h:579,
                 from ../common/gmon-start.c:21:
../../../../include/alloca.h:33: error: parse error before "__size"
../../../../include/alloca.h:33: warning: function declaration isn't a prototype
In file included from ../common/gmon-start.c:21:
../../../../include/stdlib.h:584: error: parse error before "__size"
../../../../include/stdlib.h:584: warning: function declaration isn't a prototype
../../../../include/stdlib.h:733: error: parse error before "size_t"
../../../../include/stdlib.h:733: warning: function declaration isn't a prototype
../../../../include/stdlib.h:737: error: parse error before "size_t"
../../../../include/stdlib.h:738: warning: function declaration isn't a prototype
In file included from ../common/gmon-start.c:22:
../../../../include/unistd.h:199:20: stddef.h: No such file or directory
In file included from ../common/gmon-start.c:22:
../../../../include/unistd.h:311: error: parse error before "size_t"
../../../../include/unistd.h:311: warning: function declaration isn't a prototype
../../../../include/unistd.h:314: error: parse error before "size_t"
../../../../include/unistd.h:314: warning: function declaration isn't a prototype
../../../../include/unistd.h:318: error: parse error before "size_t"
../../../../include/unistd.h:319: warning: function declaration isn't a prototype
../../../../include/unistd.h:320: error: parse error before "size_t"
../../../../include/unistd.h:321: warning: function declaration isn't a prototype
../../../../include/unistd.h:341: error: parse error before "size_t"
../../../../include/unistd.h:342: warning: function declaration isn't a prototype
../../../../include/unistd.h:345: error: parse error before "size_t"
../../../../include/unistd.h:346: warning: function declaration isn't a prototype
../../../../include/unistd.h:424: error: parse error before "size_t"
../../../../include/unistd.h:424: warning: function declaration isn't a prototype
In file included from ../common/gmon-start.c:22:
../../../../include/unistd.h:513: error: parse error before "confstr"
../../../../include/unistd.h:513: error: parse error before "size_t"
../../../../include/unistd.h:513: warning: type defaults to `int' in declaration of `confstr'
../../../../include/unistd.h:513: warning: function declaration isn't a prototype
../../../../include/unistd.h:513: warning: data definition has no type or storage class
../../../../include/unistd.h:665: error: parse error before "size_t"
../../../../include/unistd.h:665: warning: function declaration isn't a prototype
../../../../include/unistd.h:690: error: parse error before "size_t"
../../../../include/unistd.h:690: warning: function declaration isn't a prototype
../../../../include/unistd.h:713: error: parse error before "size_t"
../../../../include/unistd.h:713: warning: function declaration isn't a prototype
In file included from ../common/gmon-start.c:22:
../../../../include/unistd.h:735: error: parse error before "size_t"
../../../../include/unistd.h:735: warning: function declaration isn't a prototype
../../../../include/unistd.h:742: error: parse error before "size_t"
../../../../include/unistd.h:742: warning: function declaration isn't a prototype
../../../../include/unistd.h:752: error: parse error before "size_t"
../../../../include/unistd.h:752: warning: function declaration isn't a prototype
../../../../include/unistd.h:753: error: parse error before "size_t"
../../../../include/unistd.h:753: warning: function declaration isn't a prototype
../../../../include/unistd.h:770: error: parse error before "size_t"
../../../../include/unistd.h:771: warning: function declaration isn't a prototype
make[4]: *** [gmon-start.S] Error 1
make[4]: Leaving directory `/home/lfs/Uclibc/www.uclibc.org/downloads/uClibc-0.9.20/libc/sysdeps/linux/i386'
make[3]: *** [_dir_i386] Error 2
make[3]: Leaving directory `/home/lfs/Uclibc/www.uclibc.org/downloads/uClibc-0.9.20/libc/sysdeps/linux'
make[2]: *** [_dir_linux] Error 2
make[2]: Leaving directory `/home/lfs/Uclibc/www.uclibc.org/downloads/uClibc-0.9.20/libc/sysdeps'
make[1]: *** [_dir_sysdeps] Error 2
make[1]: Leaving directory `/home/lfs/Uclibc/www.uclibc.org/downloads/uClibc-0.9.20/libc'
make: *** [_dir_libc] Error 2
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-5 16:23 , Processed in 0.041900 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表