LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: popoCat

Help : CLFS紧急求助

[复制链接]
发表于 2006-2-19 02:06:25 | 显示全部楼层
如果包版本一样的话,就不会有什么问题。你才开始,建议重新开始一次,看看问题是否还存在。不过记得要把目录删除干净!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-19 13:29:26 | 显示全部楼层
昨天晚上重新更新了文件,今天准备继续搞:)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-19 17:51:40 | 显示全部楼层
我重新下载了所有新的包,重新编译,宿主环境是gentoo,这回真的确认不支持nptl了,结果到了5.8. Glibc-20051107的Prepare Glibc for compilation: 时,configure又不过,报错如下:
BUILD_CC="gcc" CC="${LFS_TARGET}-gcc" \
>     AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
>     ../glibc-20051107/configure --prefix=/tools \
>     --host=${LFS_TARGET} --build=${LFS_HOST} \
>     --disable-profile --enable-add-ons \
>     --with-tls --enable-kernel=2.6.0 --with-__thread \
>     --with-binutils=/cross-tools/bin --with-headers=/tools/include \
>     --cache-file=config.cache
configure: creating cache config.cache
checking build system type... i686-cross-linux-gnu
checking host system type... i686-pc-linux-gnu
running configure fragment for add-on libidn
running configure fragment for add-on nptl
checking sysdep dirs... sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/i386 libidn/sysdeps/unix nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu nptl/sysdeps/i386/i686 sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu nptl/sysdeps/i386 sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 nptl/sysdeps/generic sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /bin/install -c
checking whether ln -s works... yes
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for gcc... gcc
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether i686-pc-linux-gnu-g++ accepts -g... yes
checking whether /mnt/lfs/cross-tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../i686-pc-linux-gnu/bin/as is GNU as... yes
checking whether /mnt/lfs/cross-tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../i686-pc-linux-gnu/bin/ld is GNU ld... yes
checking for /mnt/lfs/cross-tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../i686-pc-linux-gnu/bin/as... /mnt/lfs/cross-tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../i686-pc-linux-gnu/bin/as
checking version of /mnt/lfs/cross-tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../i686-pc-linux-gnu/bin/as... 2.16.1, ok
checking for /mnt/lfs/cross-tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../i686-pc-linux-gnu/bin/ld... /mnt/lfs/cross-tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../i686-pc-linux-gnu/bin/ld
checking version of /mnt/lfs/cross-tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../i686-pc-linux-gnu/bin/ld... 2.16.1, ok
checking for pwd... /bin/pwd
checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc
checking version of i686-pc-linux-gnu-gcc... 4.0.2, ok
checking for gnumake... no
checking for gmake... gmake
checking version of gmake... 3.80, ok
checking for gnumsgfmt... no
checking for gmsgfmt... gmsgfmt
checking version of gmsgfmt... 0.14.4, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.8, ok
checking for sed... sed
checking version of sed... 4.1.4, ok
checking for autoconf... autoconf
checking whether autoconf works... yes
checking whether ranlib is necessary... no
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... -static-libgcc
checking for bash... /bin/sh
checking for gawk... gawk
checking for perl... /usr/bin/perl
checking for install-info... /usr/bin/install-info
checking for bison... /usr/bin/bison
checking for signed size_t type... no
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for .set assembler directive... yes
checking for assembler .type directive prefix... @
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for broken __attribute__((visibility()))... no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... yes
checking for libunwind-support in compiler... no
checking for -z nodelete option... yes
checking for -z nodlopen option... yes
checking for -z initfirst option... yes
checking for -z relro option... yes
checking for -Bgroup option... yes
checking for libgcc_s suffix...
checking for --as-needed option... no
checking whether --noexecstack is desirable for .S files... yes
checking for -z combreloc... yes
checking for -z execstack... yes
checking for -fpie... no
checking for -fno-unit-at-a-time... yes
checking for -fstack-protector... no
checking whether cc puts quotes around section names... no
checking for assembler .weak directive... yes
checking whether CFI directives are supported... yes
checking for ld --no-whole-archive... yes
checking for gcc -fexceptions... yes
checking for DWARF2 unwind info support... no_registry_needed
checking for __builtin_expect... yes
checking for __builtin_memset... no
checking for redirection of built-in functions... yes
checking for __thread... yes
checking for tls_model attribute... yes
checking for libgd... no
checking for is_selinux_enabled in -lselinux... no
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for long double... yes
checking size of long double... 12
running configure fragment for sysdeps/i386/elf
checking for i386 TLS support... yes
running configure fragment for nptl/sysdeps/pthread
checking for forced unwind support... no
configure: error: forced unwind support is required


难道非宿主系统非得要有nptl支持,才能编译cross tools吗? 又一次受打击了,不过我一定要继续搞下去。哪位大侠支支手啊....... sos
回复 支持 反对

使用道具 举报

发表于 2006-2-19 18:28:35 | 显示全部楼层
running configure fragment for add-on nptl

你编译的 glibc 是用nptl的。CVS的 glibc 默认就带 nptl。你删除了 nptl 这个目录再 configure 试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-19 21:41:03 | 显示全部楼层
我想可能是对原文意思理解有误吧, file:///E:/Tmp/LFS-BOOK-CLFS-SVN-20060214-HTML/x86/cross-tools/glibc.html 里面说成这样:
For NPTL enabled systems the following lines need to be added to config.cache:
echo "libc_cv_forced_unwind=yes" > config.cache
echo "libc_cv_c_cleanup=yes" >> config.cache

我就觉得这里的systems是指host,而我的gentoo是不支持nptl的,但后面编译Glibc,在configure时,说forced unwind support is required。我实在没办法,只好把上面 echo 又加进去重编译,没想到居然过了。所以我觉得上面那句话意思应该是:如果你想让编译的glibc支持nptl,就要把那两个echo加到config.cache中。
回复 支持 反对

使用道具 举报

发表于 2006-2-19 22:03:46 | 显示全部楼层
你理解的没错。(至少我觉得你没错)。

至于 “在configure时,说forced unwind support is required ” 这个问题,你试试删除 glibc-xxx 目录下边的 nptl 目录再configure。
回复 支持 反对

使用道具 举报

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

本版积分规则

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