LinuxSir.cn,穿越时空的Linuxsir!

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

eglibc编译出错(已解决)

[复制链接]
发表于 2010-7-5 18:45:50 | 显示全部楼层 |阅读模式
在龙芯上做LFS时,编译eglibc出错


  1. make[4]: Entering directory `/mnt/download/eglibc-2.10.1/time'
  2. make[4]: Nothing to be done for `rtld-all'.
  3. make[4]: Leaving directory `/mnt/download/eglibc-2.10.1/time'
  4. make[3]: Leaving directory `/mnt/download/eglibc-2.10.1/elf'
  5. gcc -B/tools/bin/ -mabi=n32 -nostdlib -nostartfiles -o /mnt/lfs/download/eglibc-bulid/elf/sprof  -Wl,-dynamic-linker=/tools/lib/ld.so.1    -Wl,-z,relro  /mnt/lfs/download/eglibc-bulid/csu/crt1.o /mnt/lfs/download/eglibc-bulid/csu/crti.o `gcc -B/tools/bin/ -mabi=n32 --print-file-name=crtbegin.o` /mnt/lfs/download/eglibc-bulid/elf/sprof.o /mnt/lfs/download/eglibc-bulid/dlfcn/libdl.so.2  -Wl,-rpath-link=/mnt/lfs/download/eglibc-bulid:/mnt/lfs/download/eglibc-bulid/math:/mnt/lfs/download/eglibc-bulid/elf:/mnt/lfs/download/eglibc-bulid/dlfcn:/mnt/lfs/download/eglibc-bulid/nss:/mnt/lfs/download/eglibc-bulid/nis:/mnt/lfs/download/eglibc-bulid/rt:/mnt/lfs/download/eglibc-bulid/resolv:/mnt/lfs/download/eglibc-bulid/crypt:/mnt/lfs/download/eglibc-bulid/nptl /mnt/lfs/download/eglibc-bulid/libc.so.6 /mnt/lfs/download/eglibc-bulid/libc_nonshared.a -lgcc -Wl,--as-needed -lgcc_s  -Wl,--no-as-needed `gcc -B/tools/bin/ -mabi=n32 --print-file-name=crtend.o` /mnt/lfs/download/eglibc-bulid/csu/crtn.o
  6. LC_ALL=C sed -e 's%@RTLD@%/tools/lib/ld.so.1%g' -e 's%@VERSION@%2.10.1%g' -e 's%@PKGVERSION@%(EGLIBC) %g' -e 's%@REPORT_BUGS_TO@%<http://www.eglibc.org/issues/>%g' -e 's%@BASH@%/bin/bash%g' -e 's%@TEXTDOMAINDIR@%/tools/share/locale%g' < ldd.bash.in | LC_ALL=C sed -f ../eglibc-2.10.1/ports/sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed > /mnt/lfs/download/eglibc-bulid/elf/ldd.new
  7. sed: couldn't open file ../eglibc-2.10.1/ports/sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: No such file or directory
  8. make[2]: *** [/mnt/lfs/download/eglibc-bulid/elf/ldd] Error 4
  9. make[2]: Leaving directory `/mnt/download/eglibc-2.10.1/elf'
  10. make[1]: *** [elf/others] Error 2
  11. make[1]: Leaving directory `/mnt/download/eglibc-2.10.1'
  12. make: *** [all] Error 2
复制代码


一开始说是找不到ldd-rewrite.sed文件,但是我修正了路径并编译通过这里后出现了下面的错误。


  1. make[4]: Entering directory `/mnt/download/eglibc-2.10.1/time'
  2. make[4]: Nothing to be done for `rtld-all'.
  3. make[4]: Leaving directory `/mnt/download/eglibc-2.10.1/time'
  4. make[3]: Leaving directory `/mnt/download/eglibc-2.10.1/elf'
  5. gcc -B/tools/bin/ -mabi=n32 -nostdlib -nostartfiles -o /mnt/lfs/download/eglibc-bulid/elf/sprof -Wl,-dynamic-linklfs/download/eglibc-bulid/csu/crt1.o /mnt/lfs/download/eglibc-bulid/csu/crti.o `gcc -B/tools/bin/ -mabi=n32 --prinlibc-bulid/elf/sprof.o /mnt/lfs/download/eglibc-bulid/dlfcn/libdl.so.2 -Wl,-rpath-link=/mnt/lfs/download/eglibc-bt/lfs/download/eglibc-bulid/elf:/mnt/lfs/download/eglibc-bulid/dlfcn:/mnt/lfs/download/eglibc-bulid/nss:/mnt/lfs/dglibc-bulid/rt:/mnt/lfs/download/eglibc-bulid/resolv:/mnt/lfs/download/eglibc-bulid/crypt:/mnt/lfs/download/eglibcibc.so.6 /mnt/lfs/download/eglibc-bulid/libc_nonshared.a -lgcc -Wl,--as-needed -lgcc_s -Wl,--no-as-needed `gcc -Bnd.o` /mnt/lfs/download/eglibc-bulid/csu/crtn.o
  6. LC_ALL=C sed -e 's%@RTLD@%/tools/lib/ld.so.1%g' -e 's%@VERSION@%2.10.1%g' -e 's%@PKGVERSION@%(EGLIBC) %g' -e 's%@R/>%g' -e 's%@BASH@%/bin/bash%g' -e 's%@TEXTDOMAINDIR@%/tools/share/locale%g' < ldd.bash.in | LC_ALL=C sed -f /mnt/x/sysv/linux/mips/mips64/ldd-rewrite.sed > /mnt/lfs/download/eglibc-bulid/elf/ldd.new
  7. chmod 555 /mnt/lfs/download/eglibc-bulid/elf/ldd.new
  8. mv -f /mnt/lfs/download/eglibc-bulid/elf/ldd.new /mnt/lfs/download/eglibc-bulid/elf/ldd
  9. gcc -B/tools/bin/ -mabi=n32 -nostdlib -nostartfiles -static -o /mnt/lfs/download/eglibc-bulid/elf/sln /mnt/lfs/wnload/eglibc-bulid/csu/crti.o `gcc -B/tools/bin/ -mabi=n32 --print-file-name=crtbegin.o` /mnt/lfs/download/eglibculid/libc.a -lgcc /mnt/lfs/download/eglibc-bulid/libc.a `gcc -B/tools/bin/ -mabi=n32 --print-file-name=crtend.o`
  10. /mnt/lfs/download/eglibc-bulid/libc.a(iofclose.o): In function `_IO_acquire_lock_fct':
  11. /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
  12. /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
  13. /mnt/lfs/download/eglibc-bulid/libc.a(iofclose.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
  14. /mnt/lfs/download/eglibc-bulid/libc.a(iofflush.o): In function `_IO_acquire_lock_fct':
  15. /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
  16. /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
  17. /mnt/lfs/download/eglibc-bulid/libc.a(iofflush.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
  18. /mnt/lfs/download/eglibc-bulid/libc.a(iogetdelim.o): In function `_IO_acquire_lock_fct':
  19. /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
  20. /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
  21. /mnt/lfs/download/eglibc-bulid/libc.a(iogetdelim.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_v0
  22. /mnt/lfs/download/eglibc-bulid/libc.a(wfileops.o): In function `_IO_acquire_lock_fct':
  23. /mnt/download/eglibc-2.10.1/libio/../libio/libioP.h:985: undefined reference to `_Unwind_Resume'
  24. /mnt/download/eglibc-2.10.1/libio/../libio/libioP.h:985: undefined reference to `_Unwind_Resume'
  25. /mnt/lfs/download/eglibc-bulid/libc.a(wfileops.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
  26. /mnt/lfs/download/eglibc-bulid/libc.a(fileops.o): In function `_IO_acquire_lock_fct':
  27. /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
  28. /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
  29. /mnt/lfs/download/eglibc-bulid/libc.a(fileops.o): In function `_IO_new_file_fopen':
  30. /mnt/download/eglibc-2.10.1/libio/fileops.c:410: undefined reference to `_Unwind_Resume'
  31. /mnt/lfs/download/eglibc-bulid/libc.a(fileops.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
  32. /mnt/lfs/download/eglibc-bulid/libc.a(syslog.o): In function `__libc_cleanup_routine':
  33. /mnt/download/eglibc-2.10.1/misc/../nptl/sysdeps/pthread/bits/libc-lock.h:432: undefined reference to `_Unwind_Res
  34. /mnt/download/eglibc-2.10.1/misc/../nptl/sysdeps/pthread/bits/libc-lock.h:432: undefined reference to `_Unwind_Res
  35. /mnt/download/eglibc-2.10.1/misc/../nptl/sysdeps/pthread/bits/libc-lock.h:432: undefined reference to `_Unwind_Res
  36. /mnt/download/eglibc-2.10.1/misc/../nptl/sysdeps/pthread/bits/libc-lock.h:432: undefined reference to `_Unwind_Res
  37. /mnt/lfs/download/eglibc-bulid/libc.a(syslog.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
  38. /mnt/lfs/download/eglibc-bulid/libc.a(vfprintf_chk.o): In function `_IO_acquire_lock_clear_flags2_fct':
  39. /mnt/download/eglibc-2.10.1/debug/../libio/libioP.h:995: undefined reference to `_Unwind_Resume'
  40. /mnt/download/eglibc-2.10.1/debug/../libio/libioP.h:995: undefined reference to `_Unwind_Resume'
  41. /mnt/lfs/download/eglibc-bulid/libc.a(vfprintf_chk.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_
  42. /mnt/lfs/download/eglibc-bulid/libc.a(iofputs.o): In function `_IO_acquire_lock_fct':
  43. /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
  44. /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
  45. /mnt/lfs/download/eglibc-bulid/libc.a(iofputs.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
  46. /mnt/lfs/download/eglibc-bulid/libc.a(ioftell.o): In function `_IO_acquire_lock_fct':
  47. /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
  48. /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
  49. /mnt/lfs/download/eglibc-bulid/libc.a(ioftell.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
  50. /mnt/lfs/download/eglibc-bulid/libc.a(iofwrite.o): In function `_IO_acquire_lock_fct':
  51. /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
  52. /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_
  53. /mnt/lfs/download/eglibc-bulid/libc.a(iofwrite.o):(.eh_frame+0x12): undefined re
  54. /mnt/lfs/download/eglibc-bulid/libc.a(ioseekoff.o): In function `_IO_acquire_loc
  55. /mnt/download/eglibc-2.10.1/libio/../libio/libioP.h:985: undefined reference to
  56. /mnt/download/eglibc-2.10.1/libio/../libio/libioP.h:985: undefined reference to
  57. /mnt/lfs/download/eglibc-bulid/libc.a(ioseekoff.o):(.eh_frame+0x12): undefined r
  58. /mnt/lfs/download/eglibc-bulid/libc.a(writev.o): In function `ifree':
  59. /mnt/download/eglibc-2.10.1/misc/../sysdeps/posix/writev.c:32: undefined referen
  60. /mnt/lfs/download/eglibc-bulid/libc.a(writev.o):(.eh_frame+0x12): undefined refe
  61. /mnt/lfs/download/eglibc-bulid/libc.a(fseek.o): In function `_IO_acquire_lock_fc
  62. /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_
  63. /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_
  64. /mnt/lfs/download/eglibc-bulid/libc.a(fseek.o):(.eh_frame+0x12): undefined refer
  65. /mnt/lfs/download/eglibc-bulid/libc.a(ftello.o): In function `_IO_acquire_lock_f
  66. /mnt/download/eglibc-2.10.1/libio/../libio/libioP.h:985: undefined reference to
  67. /mnt/download/eglibc-2.10.1/libio/../libio/libioP.h:985: undefined reference to
  68. /mnt/lfs/download/eglibc-bulid/libc.a(ftello.o):(.eh_frame+0x12): undefined refe
  69. collect2: ld returned 1 exit status
  70. make[2]: *** [/mnt/lfs/download/eglibc-bulid/elf/sln] Error 1
  71. make[2]: Leaving directory `/mnt/download/eglibc-2.10.1/elf'
  72. make[1]: *** [elf/others] Error 2
  73. make[1]: Leaving directory `/mnt/download/eglibc-2.10.1'
  74. make: *** [all] Error 2
复制代码
发表于 2010-7-9 11:23:51 | 显示全部楼层
可能是库没有弄对,好像找不到相应调用库
回复 支持 反对

使用道具 举报

发表于 2010-7-9 13:15:24 | 显示全部楼层
arm mips 一类东东,eglibc 需配合 eglibc-port 使用。

CLFS-1.x-svn 或者 youbest 龙机帖可能更适合您。

PS: 最近涌现大批 龙机 用户,反常。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-7-15 10:17:33 | 显示全部楼层
编译通过了,我之前使用了eglibc-port。
回复 支持 反对

使用道具 举报

发表于 2010-7-15 10:31:49 | 显示全部楼层
clfs的eglibc还在2.10.1...
期待更新

svn co下来的包要做什么处理吗,我直接把port目录mv到libc下面,编译时总出各种错误,一会说少头文件,一会说某变量未定义...
用clfs的tar包就很正常了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-7-15 10:59:50 | 显示全部楼层
我没有使用clfs的方法
回复 支持 反对

使用道具 举报

发表于 2010-7-15 11:06:54 | 显示全部楼层
Post by 聚焦深空;2102235
arm mips 一类东东,eglibc 需配合 eglibc-port 使用。

CLFS-1.x-svn 或者 youbest 龙机帖可能更适合您。

PS: 最近涌现大批 龙机 用户,反常。

最近龙芯在搞开源大赛。:flash:
回复 支持 反对

使用道具 举报

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

本版积分规则

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