linuxnow 发表于 2003-8-7 18:38:47

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

安装LFS的文档,编译到glibc的时候,我用uClibc来代理它,执行make menuconfig ;make
编译出错,
请问编译uClibc和glibc有不同的地方么?

编译错误如下:
make -Ci386
make: 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: *** Error 1
make: Leaving directory `/home/lfs/Uclibc/www.uclibc.org/downloads/uClibc-0.9.20/libc/sysdeps/linux/i386'
make: *** Error 2
make: Leaving directory `/home/lfs/Uclibc/www.uclibc.org/downloads/uClibc-0.9.20/libc/sysdeps/linux'
make: *** Error 2
make: Leaving directory `/home/lfs/Uclibc/www.uclibc.org/downloads/uClibc-0.9.20/libc/sysdeps'
make: *** Error 2
make: Leaving directory `/home/lfs/Uclibc/www.uclibc.org/downloads/uClibc-0.9.20/libc'
make: *** Error 2
页: [1]
查看完整版本: 【LFS】用uClibc替换glibc,编译错,请指教!!!