LinuxSir.cn,穿越时空的Linuxsir!

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

CLFS编译正式系统时eglibc出错

[复制链接]
发表于 2010-8-5 18:29:10 | 显示全部楼层 |阅读模式
换了glibc也是一样的出错信息。

出错信息:

  1. ../eglibc-2.12/configure
  2. checking build system type... mips64el-unknown-linux-gnu
  3. checking host system type... mips64el-unknown-linux-gnu
  4. checking for gcc... gcc
  5. checking for suffix of object files... o
  6. checking whether we are using the GNU C compiler... yes
  7. checking whether gcc accepts -g... yes
  8. checking for gcc option to accept ISO C89... none needed
  9. checking how to run the C preprocessor... gcc -E
  10. checking for g++... g++
  11. checking whether we are using the GNU C++ compiler... yes
  12. checking whether g++ accepts -g... yes
  13. configure: running configure fragment for add-on libidn
  14. configure: running configure fragment for add-on nptl
  15. checking add-on ports for preconfigure fragments... alpha am33 arm hppa m68k mips powerpc
  16. checking sysdep dirs... checking for assembler gnu_indirect_function symbol type support... yes
  17. ports/sysdeps/mips/elf ports/sysdeps/unix/sysv/linux/mips/mips64/n32 ports/sysdeps/unix/sysv/linux/mips/mips64/nptl ports/sysdeps/unix/sysv/linux/mips/mips64 ports/sysdeps/unix/sysv/linux/mips/nptl ports/sysdeps/unix/sysv/linux/mips nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread ports/sysdeps/unix/sysv/linux sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet nptl/sysdeps/unix/sysv ports/sysdeps/unix/sysv sysdeps/unix/sysv ports/sysdeps/unix/mips/mips64/n32 ports/sysdeps/unix/mips/mips64 ports/sysdeps/unix/mips nptl/sysdeps/unix ports/sysdeps/unix sysdeps/unix sysdeps/posix ports/sysdeps/mips/mips64/n32 sysdeps/ieee754/ldbl-128 ports/sysdeps/mips/mips64/soft-fp ports/sysdeps/mips/mips64 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 ports/sysdeps/mips sysdeps/wordsize-32 ports/sysdeps/mips/fpu ports/sysdeps/mips/nptl sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
  18. checking for a BSD-compatible install... /tools/bin/install -c
  19. checking whether ln -s works... yes
  20. checking whether /tools/lib/gcc/mipsel-unknown-linux-gnu/4.5.0/../../../../mipsel-unknown-linux-gnu/bin/as is GNU as... yes
  21. checking whether /tools/lib/gcc/mipsel-unknown-linux-gnu/4.5.0/../../../../mipsel-unknown-linux-gnu/bin/ld is GNU ld... yes
  22. checking for /tools/lib/gcc/mipsel-unknown-linux-gnu/4.5.0/../../../../mipsel-unknown-linux-gnu/bin/as... /tools/lib/gcc/mipsel-unknown-linux-gnu/4.5.0/../../../../mipsel-unknown-linux-gnu/bin/as
  23. checking version of /tools/lib/gcc/mipsel-unknown-linux-gnu/4.5.0/../../../../mipsel-unknown-linux-gnu/bin/as... 2.20.1.20100303, ok
  24. checking for /tools/lib/gcc/mipsel-unknown-linux-gnu/4.5.0/../../../../mipsel-unknown-linux-gnu/bin/ld... /tools/lib/gcc/mipsel-unknown-linux-gnu/4.5.0/../../../../mipsel-unknown-linux-gnu/bin/ld
  25. checking version of /tools/lib/gcc/mipsel-unknown-linux-gnu/4.5.0/../../../../mipsel-unknown-linux-gnu/bin/ld... 2.20.1.20100303, ok
  26. checking for pwd... /bin/pwd
  27. checking for gcc... gcc
  28. checking version of gcc... 4.5.0, ok
  29. checking for gnumake... no
  30. checking for gmake... no
  31. checking for make... make
  32. checking version of make... 3.81, ok
  33. checking for gnumsgfmt... no
  34. checking for gmsgfmt... no
  35. checking for msgfmt... msgfmt
  36. checking version of msgfmt... 0.18.1, ok
  37. checking for makeinfo... makeinfo
  38. checking version of makeinfo... 4.13, ok
  39. checking for sed... sed
  40. checking version of sed... 4.2.1, ok
  41. checking for autoconf... no
  42. configure: WARNING:
  43. *** These auxiliary programs are missing or incompatible versions: autoconf
  44. *** some features will be disabled.
  45. *** Check the INSTALL file for required versions.
  46. checking whether ranlib is necessary... no
  47. checking LD_LIBRARY_PATH variable... ok
  48. checking whether GCC supports -static-libgcc... -static-libgcc
  49. checking for bash... /bin/bash
  50. checking for gawk... gawk
  51. checking for perl... no
  52. checking for install-info... /tools/bin/install-info
  53. checking for bison... /tools/bin/bison
  54. checking for signed size_t type... no
  55. checking for libc-friendly stddef.h... yes
  56. checking whether we need to use -P to assemble .S files... no
  57. checking whether .text pseudo-op must be used... yes
  58. checking for assembler global-symbol directive... .globl
  59. checking for .set assembler directive... no
  60. checking for assembler .type directive prefix... @
  61. checking for assembler gnu_unique_object symbol type... yes
  62. checking for .symver assembler directive... yes
  63. checking for ld --version-script... yes
  64. checking for .previous assembler directive... yes
  65. checking for .protected and .hidden assembler directive... yes
  66. checking whether __attribute__((visibility())) is supported... yes
  67. checking for broken __attribute__((visibility()))... no
  68. checking for broken __attribute__((alias()))... no
  69. checking whether to put _rtld_local into .sdata section... yes
  70. checking for .preinit_array/.init_array/.fini_array support... no
  71. configure: error: Need linker with .init_array/.fini_array support.
复制代码
发表于 2010-8-7 09:39:26 | 显示全部楼层
Post by echo;2106885
checking for perl... no

龙机,莫非还是龙机。
如果想到给 龙机 交叉编译 perl,功力不够请死心。
回复 支持 反对

使用道具 举报

发表于 2010-8-9 12:00:54 | 显示全部楼层
这类问题的解决方法... 读代码。
在configure.in文件里, 搜索initarray, 可以看到为什么会失败,是gcc配置的问题。
回复 支持 反对

使用道具 举报

发表于 2010-8-9 12:55:02 | 显示全部楼层
Post by swordhui;2107486
这类问题的解决方法... 读代码。
在configure.in文件里, 搜索initarray, 可以看到为什么会失败,是gcc配置的问题。

楼主问题是没有满足编译安装依赖

关于依赖,一般软件包作者在 README INSTALL DOC FAQ 中有描述,及少数懒人什么也不写。
比如 glibc 安装依赖 在 INSTALL 中有小节有祥述。

对 LFS/CLFS 更简单,手册作者有列举每个软件包依赖关系。
源代码文档都可免看,虽然有心人,不该如此偷懒。
http://cross-lfs.org/view/clfs-s ... c/dependencies.html
EGLIBCInstallation depends on: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Gettext,          Grep, Gzip, Make, Perl, Sed and Texinfo


Test suite depends on: None


Must be installed before: None

如果严格按手册走,依赖关系自然满足。
回复 支持 反对

使用道具 举报

发表于 2010-8-11 13:49:27 | 显示全部楼层
呵呵,这类问题还是根据错误提示,反查代码,定位原因比较好,即使遇到了文档中没提到的依赖关系,也能找出来。
回复 支持 反对

使用道具 举报

发表于 2010-8-12 12:49:54 | 显示全部楼层
Post by swordhui;2107848
呵呵,这类问题还是根据错误提示,反查代码,定位原因比较好,即使遇到了文档中没提到的依赖关系,也能找出来。

查源码是终极武器,牛刀,一般情况下,用文档小刀即可,再一个牛刀不是所有人都玩得转。
浪费能量不环保,也不符合懒人习惯。
回复 支持 反对

使用道具 举报

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

本版积分规则

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