|
在龙芯上做LFS时,编译eglibc出错
- make[4]: Entering directory `/mnt/download/eglibc-2.10.1/time'
- make[4]: Nothing to be done for `rtld-all'.
- make[4]: Leaving directory `/mnt/download/eglibc-2.10.1/time'
- make[3]: Leaving directory `/mnt/download/eglibc-2.10.1/elf'
- 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
- 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
- sed: couldn't open file ../eglibc-2.10.1/ports/sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: No such file or directory
- make[2]: *** [/mnt/lfs/download/eglibc-bulid/elf/ldd] Error 4
- make[2]: Leaving directory `/mnt/download/eglibc-2.10.1/elf'
- make[1]: *** [elf/others] Error 2
- make[1]: Leaving directory `/mnt/download/eglibc-2.10.1'
- make: *** [all] Error 2
复制代码
一开始说是找不到ldd-rewrite.sed文件,但是我修正了路径并编译通过这里后出现了下面的错误。
- make[4]: Entering directory `/mnt/download/eglibc-2.10.1/time'
- make[4]: Nothing to be done for `rtld-all'.
- make[4]: Leaving directory `/mnt/download/eglibc-2.10.1/time'
- make[3]: Leaving directory `/mnt/download/eglibc-2.10.1/elf'
- 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
- 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
- chmod 555 /mnt/lfs/download/eglibc-bulid/elf/ldd.new
- mv -f /mnt/lfs/download/eglibc-bulid/elf/ldd.new /mnt/lfs/download/eglibc-bulid/elf/ldd
- 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`
- /mnt/lfs/download/eglibc-bulid/libc.a(iofclose.o): In function `_IO_acquire_lock_fct':
- /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
- /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
- /mnt/lfs/download/eglibc-bulid/libc.a(iofclose.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
- /mnt/lfs/download/eglibc-bulid/libc.a(iofflush.o): In function `_IO_acquire_lock_fct':
- /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
- /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
- /mnt/lfs/download/eglibc-bulid/libc.a(iofflush.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
- /mnt/lfs/download/eglibc-bulid/libc.a(iogetdelim.o): In function `_IO_acquire_lock_fct':
- /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
- /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
- /mnt/lfs/download/eglibc-bulid/libc.a(iogetdelim.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_v0
- /mnt/lfs/download/eglibc-bulid/libc.a(wfileops.o): In function `_IO_acquire_lock_fct':
- /mnt/download/eglibc-2.10.1/libio/../libio/libioP.h:985: undefined reference to `_Unwind_Resume'
- /mnt/download/eglibc-2.10.1/libio/../libio/libioP.h:985: undefined reference to `_Unwind_Resume'
- /mnt/lfs/download/eglibc-bulid/libc.a(wfileops.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
- /mnt/lfs/download/eglibc-bulid/libc.a(fileops.o): In function `_IO_acquire_lock_fct':
- /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
- /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
- /mnt/lfs/download/eglibc-bulid/libc.a(fileops.o): In function `_IO_new_file_fopen':
- /mnt/download/eglibc-2.10.1/libio/fileops.c:410: undefined reference to `_Unwind_Resume'
- /mnt/lfs/download/eglibc-bulid/libc.a(fileops.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
- /mnt/lfs/download/eglibc-bulid/libc.a(syslog.o): In function `__libc_cleanup_routine':
- /mnt/download/eglibc-2.10.1/misc/../nptl/sysdeps/pthread/bits/libc-lock.h:432: undefined reference to `_Unwind_Res
- /mnt/download/eglibc-2.10.1/misc/../nptl/sysdeps/pthread/bits/libc-lock.h:432: undefined reference to `_Unwind_Res
- /mnt/download/eglibc-2.10.1/misc/../nptl/sysdeps/pthread/bits/libc-lock.h:432: undefined reference to `_Unwind_Res
- /mnt/download/eglibc-2.10.1/misc/../nptl/sysdeps/pthread/bits/libc-lock.h:432: undefined reference to `_Unwind_Res
- /mnt/lfs/download/eglibc-bulid/libc.a(syslog.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
- /mnt/lfs/download/eglibc-bulid/libc.a(vfprintf_chk.o): In function `_IO_acquire_lock_clear_flags2_fct':
- /mnt/download/eglibc-2.10.1/debug/../libio/libioP.h:995: undefined reference to `_Unwind_Resume'
- /mnt/download/eglibc-2.10.1/debug/../libio/libioP.h:995: undefined reference to `_Unwind_Resume'
- /mnt/lfs/download/eglibc-bulid/libc.a(vfprintf_chk.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_
- /mnt/lfs/download/eglibc-bulid/libc.a(iofputs.o): In function `_IO_acquire_lock_fct':
- /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
- /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
- /mnt/lfs/download/eglibc-bulid/libc.a(iofputs.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
- /mnt/lfs/download/eglibc-bulid/libc.a(ioftell.o): In function `_IO_acquire_lock_fct':
- /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
- /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
- /mnt/lfs/download/eglibc-bulid/libc.a(ioftell.o):(.eh_frame+0x12): undefined reference to `__gcc_personality_v0'
- /mnt/lfs/download/eglibc-bulid/libc.a(iofwrite.o): In function `_IO_acquire_lock_fct':
- /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_Resume'
- /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_
- /mnt/lfs/download/eglibc-bulid/libc.a(iofwrite.o):(.eh_frame+0x12): undefined re
- /mnt/lfs/download/eglibc-bulid/libc.a(ioseekoff.o): In function `_IO_acquire_loc
- /mnt/download/eglibc-2.10.1/libio/../libio/libioP.h:985: undefined reference to
- /mnt/download/eglibc-2.10.1/libio/../libio/libioP.h:985: undefined reference to
- /mnt/lfs/download/eglibc-bulid/libc.a(ioseekoff.o):(.eh_frame+0x12): undefined r
- /mnt/lfs/download/eglibc-bulid/libc.a(writev.o): In function `ifree':
- /mnt/download/eglibc-2.10.1/misc/../sysdeps/posix/writev.c:32: undefined referen
- /mnt/lfs/download/eglibc-bulid/libc.a(writev.o):(.eh_frame+0x12): undefined refe
- /mnt/lfs/download/eglibc-bulid/libc.a(fseek.o): In function `_IO_acquire_lock_fc
- /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_
- /mnt/download/eglibc-2.10.1/libio/libioP.h:985: undefined reference to `_Unwind_
- /mnt/lfs/download/eglibc-bulid/libc.a(fseek.o):(.eh_frame+0x12): undefined refer
- /mnt/lfs/download/eglibc-bulid/libc.a(ftello.o): In function `_IO_acquire_lock_f
- /mnt/download/eglibc-2.10.1/libio/../libio/libioP.h:985: undefined reference to
- /mnt/download/eglibc-2.10.1/libio/../libio/libioP.h:985: undefined reference to
- /mnt/lfs/download/eglibc-bulid/libc.a(ftello.o):(.eh_frame+0x12): undefined refe
- collect2: ld returned 1 exit status
- make[2]: *** [/mnt/lfs/download/eglibc-bulid/elf/sln] Error 1
- make[2]: Leaving directory `/mnt/download/eglibc-2.10.1/elf'
- make[1]: *** [elf/others] Error 2
- make[1]: Leaving directory `/mnt/download/eglibc-2.10.1'
- make: *** [all] Error 2
复制代码 |
|