LinuxSir.cn,穿越时空的Linuxsir!

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

LFS6.1[binutils-2.15.94.0.2.2]make 出错,代码如下

[复制链接]
发表于 2005-12-18 20:10:11 | 显示全部楼层 |阅读模式
host:Ubuntu 5.10
内核确定:lfs@ubuntu:/home/fjjjs/G/sources/binutils-build$ cat /proc/version
Linux version 2.6.12-10-386 (buildd@terranova) (gcc version 3.4.5 20050809 (prerelease) (Ubuntu 3.4.4-6ubuntu8)) #1 Fri Nov 18 11:51:02 UTC 2005


  1. lfs@ubuntu:/home/fjjjs/G/sources/binutils-build$ make
  2. make[1]: Entering directory `/home/fjjjs/G/sources/binutils-build/libiberty'
  3. make[2]: Entering directory `/home/fjjjs/G/sources/binutils-build/libiberty/testsuite'
  4. make[2]: Nothing to be done for `all'.
  5. make[2]: Leaving directory `/home/fjjjs/G/sources/binutils-build/libiberty/testsuite'
  6. make[1]: Leaving directory `/home/fjjjs/G/sources/binutils-build/libiberty'
  7. make[1]: Entering directory `/home/fjjjs/G/sources/binutils-build/intl'
  8. make[1]: Nothing to be done for `all'.
  9. make[1]: Leaving directory `/home/fjjjs/G/sources/binutils-build/intl'
  10. make[1]: Entering directory `/home/fjjjs/G/sources/binutils-build/bfd'
  11. make  all-recursive
  12. make[2]: Entering directory `/home/fjjjs/G/sources/binutils-build/bfd'
  13. Making all in doc
  14. make[3]: Entering directory `/home/fjjjs/G/sources/binutils-build/bfd/doc'
  15. make[3]: Nothing to be done for `all'.
  16. make[3]: Leaving directory `/home/fjjjs/G/sources/binutils-build/bfd/doc'
  17. Making all in po
  18. make[3]: Entering directory `/home/fjjjs/G/sources/binutils-build/bfd/po'
  19. make[3]: Nothing to be done for `all'.
  20. make[3]: Leaving directory `/home/fjjjs/G/sources/binutils-build/bfd/po'
  21. make[3]: Entering directory `/home/fjjjs/G/sources/binutils-build/bfd'
  22. make[3]: Leaving directory `/home/fjjjs/G/sources/binutils-build/bfd'
  23. make[2]: Leaving directory `/home/fjjjs/G/sources/binutils-build/bfd'
  24. make[1]: Leaving directory `/home/fjjjs/G/sources/binutils-build/bfd'
  25. make[1]: Entering directory `/home/fjjjs/G/sources/binutils-build/opcodes'
  26. make  all-recursive
  27. make[2]: Entering directory `/home/fjjjs/G/sources/binutils-build/opcodes'
  28. Making all in po
  29. make[3]: Entering directory `/home/fjjjs/G/sources/binutils-build/opcodes/po'
  30. make[3]: Nothing to be done for `all'.
  31. make[3]: Leaving directory `/home/fjjjs/G/sources/binutils-build/opcodes/po'
  32. make[3]: Entering directory `/home/fjjjs/G/sources/binutils-build/opcodes'
  33. make[3]: Leaving directory `/home/fjjjs/G/sources/binutils-build/opcodes'
  34. make[2]: Leaving directory `/home/fjjjs/G/sources/binutils-build/opcodes'
  35. make[1]: Leaving directory `/home/fjjjs/G/sources/binutils-build/opcodes'
  36. make[1]: Entering directory `/home/fjjjs/G/sources/binutils-build/binutils'
  37. make  all-recursive
  38. make[2]: Entering directory `/home/fjjjs/G/sources/binutils-build/binutils'
  39. Making all in doc
  40. make[3]: Entering directory `/home/fjjjs/G/sources/binutils-build/binutils/doc'
  41. make[3]: Nothing to be done for `all'.
  42. make[3]: Leaving directory `/home/fjjjs/G/sources/binutils-build/binutils/doc'
  43. Making all in po
  44. make[3]: Entering directory `/home/fjjjs/G/sources/binutils-build/binutils/po'
  45. make[3]: Nothing to be done for `all'.
  46. make[3]: Leaving directory `/home/fjjjs/G/sources/binutils-build/binutils/po'
  47. make[3]: Entering directory `/home/fjjjs/G/sources/binutils-build/binutils'
  48. /bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2  -o ar  arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a   -ldl
  49. gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -o ar arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -ldl
  50. arlex.o: In function `main':
  51. /home/fjjjs/G/sources/binutils-build/binutils/arlex.c:1: multiple definition of `main'
  52. arparse.o:/home/fjjjs/G/sources/binutils-build/binutils/arparse.c:1: first defined here
  53. ar.o: In function `main':
  54. ../../binutils-2.15.94.0.2.2/binutils/ar.c:342: multiple definition of `main'
  55. arparse.o:/home/fjjjs/G/sources/binutils-build/binutils/arparse.c:1: first defined here
  56. /usr/bin/ld: Warning: size of symbol `main' changed from 16 in arparse.o to 3220 in ar.o
  57. bucomm.o: In function `make_tempname':
  58. ../../binutils-2.15.94.0.2.2/binutils/bucomm.c:425: warning: the use of `mktemp' is dangerous, better use `mkstemp'
  59. ar.o: In function `mri_emul':
  60. ar.c:(.text+0x22): undefined reference to `yyparse'
  61. collect2: ld returned 1 exit status
  62. make[3]: *** [ar] Error 1
  63. make[3]: Leaving directory `/home/fjjjs/G/sources/binutils-build/binutils'
  64. make[2]: *** [all-recursive] Error 1
  65. make[2]: Leaving directory `/home/fjjjs/G/sources/binutils-build/binutils'
  66. make[1]: *** [all-recursive-am] Error 2
  67. make[1]: Leaving directory `/home/fjjjs/G/sources/binutils-build/binutils'
  68. make: *** [all-binutils] Error 2
复制代码
发表于 2005-12-18 20:35:21 | 显示全部楼层
主系统是不是没装Bison
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-18 20:45:28 | 显示全部楼层
check过有好多no,bison是有的..
  1. lfs@ubuntu:/home/fjjjs/G/sources/binutils-build$ ../binutils-2.15.94.0.2.2/configure --prefix=/tools --disable-nls
  2. loading cache ./config.cache
  3. checking host system type... i686-pc-linux-gnu
  4. checking target system type... i686-pc-linux-gnu
  5. checking build system type... i686-pc-linux-gnu
  6. checking for a BSD compatible install... (cached) /usr/bin/install -c
  7. checking whether ln works... (cached) yes
  8. checking whether ln -s works... (cached) yes
  9. checking for gcc... (cached) gcc
  10. checking whether the C compiler (gcc  ) works... yes
  11. checking whether the C compiler (gcc  ) is a cross-compiler... no
  12. checking whether we are using GNU C... (cached) yes
  13. checking whether gcc accepts -g... (cached) yes
  14. checking for gnatbind... no
  15. checking whether compiler driver understands Ada... (cached) no
  16. checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16 $$f1 $$f2
  17. checking for correct version of gmp.h... no
  18. checking for bison... (cached) bison
  19. checking for bison... (cached) bison -y
  20. checking for gm4... (cached) m4
  21. checking for flex... no
  22. checking for flex... no
  23. checking for lex... no
  24. checking for makeinfo... (cached) makeinfo
  25. *** removing intl/Makefile to force reconfigure
  26. *** removing libiberty/Makefile to force reconfigure
  27. *** removing opcodes/Makefile to force reconfigure
  28. *** removing bfd/Makefile to force reconfigure
  29. *** removing binutils/Makefile to force reconfigure
  30. checking for i686-pc-linux-gnu-ar... no
  31. checking for ar... (cached) ar
  32. checking for i686-pc-linux-gnu-as... no
  33. checking for as... (cached) as
  34. checking for i686-pc-linux-gnu-dlltool... no
  35. checking for dlltool... (cached) dlltool
  36. checking for i686-pc-linux-gnu-ld... no
  37. checking for ld... (cached) ld
  38. checking for i686-pc-linux-gnu-nm... no
  39. checking for nm... (cached) nm
  40. checking for i686-pc-linux-gnu-ranlib... no
  41. checking for ranlib... (cached) ranlib
  42. checking for i686-pc-linux-gnu-windres... no
  43. checking for windres... (cached) windres
  44. checking for i686-pc-linux-gnu-objcopy... no
  45. checking for objcopy... (cached) objcopy
  46. checking for i686-pc-linux-gnu-objdump... no
  47. checking for objdump... (cached) objdump
  48. checking for i686-pc-linux-gnu-ar... no
  49. checking for ar... (cached) ar
  50. checking for i686-pc-linux-gnu-as... no
  51. checking for as... (cached) as
  52. checking for i686-pc-linux-gnu-dlltool... no
  53. checking for dlltool... (cached) dlltool
  54. checking for i686-pc-linux-gnu-ld... no
  55. checking for ld... (cached) ld
  56. checking for i686-pc-linux-gnu-nm... no
  57. checking for nm... (cached) nm
  58. checking for i686-pc-linux-gnu-ranlib... no
  59. checking for ranlib... (cached) ranlib
  60. checking for i686-pc-linux-gnu-windres... no
  61. checking for windres... (cached) windres
  62. checking whether to enable maintainer-specific portions of Makefiles... no
  63. checking if symbolic links between directories work... (cached) yes
  64. creating ./config.status
  65. creating Makefile
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-12-18 21:27:10 | 显示全部楼层
装个flex试试吧.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-18 22:16:19 | 显示全部楼层
我把Ubuntu软件管理包里的所有开发包都安装以后
  1. lfs@ubuntu:/home/fjjjs/G/sources/binutils-build$ ../binutils-2.15.94.0.2.2/configure --prefix=/tools --disable-nls
  2. loading cache ./config.cache
  3. checking host system type... i686-pc-linux-gnu
  4. checking target system type... i686-pc-linux-gnu
  5. checking build system type... i686-pc-linux-gnu
  6. checking for a BSD compatible install... (cached) /usr/bin/install -c
  7. checking whether ln works... (cached) yes
  8. checking whether ln -s works... (cached) yes
  9. checking for gcc... (cached) gcc
  10. checking whether the C compiler (gcc  ) works... yes
  11. checking whether the C compiler (gcc  ) is a cross-compiler... no
  12. checking whether we are using GNU C... (cached) yes
  13. checking whether gcc accepts -g... (cached) yes
  14. checking for gnatbind... (cached) gnatbind
  15. checking whether compiler driver understands Ada... (cached) no
  16. checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16 $$f1 $$f2
  17. checking for correct version of gmp.h... no
  18. checking for bison... (cached) bison
  19. checking for bison... (cached) bison -y
  20. checking for gm4... (cached) m4
  21. checking for flex... (cached) flex
  22. checking for flex... (cached) flex
  23. checking for makeinfo... (cached) makeinfo
  24. checking for i686-pc-linux-gnu-ar... no
  25. checking for ar... (cached) ar
  26. checking for i686-pc-linux-gnu-as... no
  27. checking for as... (cached) as
  28. checking for i686-pc-linux-gnu-dlltool... no
  29. checking for dlltool... (cached) dlltool
  30. checking for i686-pc-linux-gnu-ld... no
  31. checking for ld... (cached) ld
  32. checking for i686-pc-linux-gnu-nm... no
  33. checking for nm... (cached) nm
  34. checking for i686-pc-linux-gnu-ranlib... no
  35. checking for ranlib... (cached) ranlib
  36. checking for i686-pc-linux-gnu-windres... no
  37. checking for windres... (cached) windres
  38. checking for i686-pc-linux-gnu-objcopy... no
  39. checking for objcopy... (cached) objcopy
  40. checking for i686-pc-linux-gnu-objdump... no
  41. checking for objdump... (cached) objdump
  42. checking for i686-pc-linux-gnu-ar... no
  43. checking for ar... (cached) ar
  44. checking for i686-pc-linux-gnu-as... no
  45. checking for as... (cached) as
  46. checking for i686-pc-linux-gnu-dlltool... no
  47. checking for dlltool... (cached) dlltool
  48. checking for i686-pc-linux-gnu-ld... no
  49. checking for ld... (cached) ld
  50. checking for i686-pc-linux-gnu-nm... no
  51. checking for nm... (cached) nm
  52. checking for i686-pc-linux-gnu-ranlib... no
  53. checking for ranlib... (cached) ranlib
  54. checking for i686-pc-linux-gnu-windres... no
  55. checking for windres... (cached) windres
  56. checking whether to enable maintainer-specific portions of Makefiles... no
  57. checking if symbolic links between directories work... (cached) yes
  58. creating ./config.status
  59. creating Makefile
复制代码
make 仍出同样的错.
回复 支持 反对

使用道具 举报

发表于 2005-12-18 22:59:02 | 显示全部楼层
试试 binutils-2.16。
回复 支持 反对

使用道具 举报

发表于 2005-12-19 10:04:32 | 显示全部楼层
删掉解压的源码,重新编译。
原来是少flex,后来没更新makefile
回复 支持 反对

使用道具 举报

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

本版积分规则

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