LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 995|回复: 2

做CLFS embedded的编译静态gcc出现的问题:

[复制链接]
发表于 2006-12-1 16:24:21 | 显示全部楼层 |阅读模式
这是刚开始不久的一步就出错,出错信息如下:
      该打的补丁都打了.


fs/sources/gcc-build/./gcc/ -B/mnt/clfs/cross-tools/i486-pc-linux-uclibc/bin/ -B/mnt/clfs/cross-tools/i486-pc-linux-uclibc/lib/ -isystem /mnt/clfs/cross-tools/i486-pc-linux-uclibc/include -isystem /mnt/clfs/cross-tools/i486-pc-linux-uclibc/sys-include' \
        mkinstalldirs='/bin/sh ../../gcc-4.1.1/gcc/../mkinstalldirs' \
          /bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
TARGET_CPU_DEFAULT="" \
        HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
        /bin/sh ../../gcc-4.1.1/gcc/mkconfig.sh tconfig.h
/mnt/clfs/sources/gcc-build/./gcc/xgcc -B/mnt/clfs/sources/gcc-build/./gcc/ -B/mnt/clfs/cross-tools/i486-pc-linux-uclibc/bin/ -B/mnt/clfs/cross-tools/i486-pc-linux-uclibc/lib/ -isystem /mnt/clfs/cross-tools/i486-pc-linux-uclibc/include -isystem /mnt/clfs/cross-tools/i486-pc-linux-uclibc/sys-include -O2 -O2 -g -O2   -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I../../gcc-4.1.1/gcc -I../../gcc-4.1.1/gcc/. -I../../gcc-4.1.1/gcc/../include -I../../gcc-4.1.1/gcc/../libcpp/include   -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time  -fno-omit-frame-pointer \
          -c ../../gcc-4.1.1/gcc/crtstuff.c -DCRT_BEGIN \
          -o crtbegin.o
In file included from /mnt/clfs/usr/include/bits/posix1_lim.h:154,
                 from /mnt/clfs/usr/include/limits.h:144,
                 from /mnt/clfs/sources/gcc-build/./gcc/include/limits.h:122,
                 from /mnt/clfs/sources/gcc-build/./gcc/include/syslimits.h:7,
                 from /mnt/clfs/sources/gcc-build/./gcc/include/limits.h:11,
                 from ../../gcc-4.1.1/gcc/tsystem.h:108,
                 from ../../gcc-4.1.1/gcc/crtstuff.c:68:
/mnt/clfs/usr/include/bits/uClibc_local_lim.h:15:3: error: #error local_lim.h was incorrectly updated, use the NPTL version from glibc
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/mnt/clfs/sources/gcc-build/gcc'
make: *** [all-gcc] Error 2


请问有哪位知道解决的办法吗?
发表于 2006-12-1 22:03:23 | 显示全部楼层
你的宿机如果不是lfslive光盘,运行 :
bash --version | head -n1 | cut -d" " -f2-4
echo "Binutils: "; ld --version | head -n1 | cut -d" " -f3-4
bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-
echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
diff --version | head -n1
find --version | head -n1
gawk --version | head -n1
gcc --version | head -n1
/lib/libc.so.6 | head -n1 | cut -d" " -f1-7
grep --version | head -n1
gzip --version | head -n1
make --version | head -n1
patch --version | head -n1
sed --version | head -n1
tar --version | head -n1
看结果怎样?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-4 08:33:54 | 显示全部楼层
问题解决,今天看官方maillist说:

chapter uClibc-snapshot-headers

- PREFIX=${CLFS} install_dev
+ make PREFIX=${CLFS} install_dev

..FYI.. The last few uClibc snapshots are broken. The last version that
works with this code is 20061128
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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