glibc編譯失敗

3a3000, loongnix 20190331, binutils-2.24和gcc-4.9.3編譯成功,但是glibc-2.20編譯失敗,請大家幫忙看看
echo "CFLAGS +=  -march=loongson3a -mabi=64" > configparms
../glibc-2.20/configure --prefix=/tools --disable-profile --enable-add-ons --enable-kernel=3.10.0 --with-binutils=/tools/bin --without-gd --with-headers=/tools/include --without-selinux
make
部分錯誤信息
/tools/bin/ld: /mnt/lfs/tools/bin/../lib/gcc/mips64el-unknown-linux-gnu/4.9.3/libgcc.a(subtf3.o): ABI is incompatible with that of the selected emulation
/tools/bin/ld: failed to merge target specific data of file /mnt/lfs/tools/bin/../lib/gcc/mips64el-unknown-linux-gnu/4.9.3/libgcc.a(subtf3.o)
/tools/bin/ld: /mnt/lfs/tools/bin/../lib/gcc/mips64el-unknown-linux-gnu/4.9.3/libgcc.a(floatsitf.o): ABI is incompatible with that of the selected emulation
/tools/bin/ld: failed to merge target specific data of file /mnt/lfs/tools/bin/../lib/gcc/mips64el-unknown-linux-gnu/4.9.3/libgcc.a(floatsitf.o)
/tools/bin/ld: /mnt/lfs/tools/bin/../lib/gcc/mips64el-unknown-linux-gnu/4.9.3/libgcc.a(_clzsi2.o): ABI is incompatible with that of the selected emulation
/tools/bin/ld: failed to merge target specific data of file /mnt/lfs/tools/bin/../lib/gcc/mips64el-unknown-linux-gnu/4.9.3/libgcc.a(_clzsi2.o)
/mnt/lfs/tools/bin/../lib/gcc/mips64el-unknown-linux-gnu/4.9.3/libgcc.a(addtf3.o): In function `__addtf3':
/mnt/lfs/sources/gcc-build/mips64el-unknown-linux-gnu/libgcc/../../../gcc-4.9.3/libgcc/soft-fp/addtf3.c:46:(.text+0x16c): relocation truncated to fit: R_MIPS_CALL16 against `__clzdi2'
/mnt/lfs/tools/bin/../lib/gcc/mips64el-unknown-linux-gnu/4.9.3/libgcc.a(divtf3.o): In function `__divtf3':
/mnt/lfs/sources/gcc-build/mips64el-unknown-linux-gnu/libgcc/../../../gcc-4.9.3/libgcc/soft-fp/divtf3.c:46:(.text+0x108): relocation truncated to fit: R_MIPS_GOT_PAGE against `.rodata'
/mnt/lfs/sources/gcc-build/mips64el-unknown-linux-gnu/libgcc/../../../gcc-4.9.3/libgcc/soft-fp/divtf3.c:46:(.text+0x114): relocation truncated to fit: R_MIPS_GOT_OFST against `.rodata'
/mnt/lfs/sources/gcc-build/mips64el-unknown-linux-gnu/libgcc/../../../gcc-4.9.3/libgcc/soft-fp/divtf3.c:44:(.text+0x268): relocation truncated to fit: R_MIPS_CALL16 against `__clzdi2'
/mnt/lfs/sources/gcc-build/mips64el-unknown-linux-gnu/libgcc/../../../gcc-4.9.3/libgcc/soft-fp/divtf3.c:45:(.text+0x300): relocation truncated to fit: R_MIPS_CALL16 against `__clzdi2'
/mnt/lfs/tools/bin/../lib/gcc/mips64el-unknown-linux-gnu/4.9.3/libgcc.a(multf3.o): In function `__multf3':
/mnt/lfs/sources/gcc-build/mips64el-unknown-linux-gnu/libgcc/../../../gcc-4.9.3/libgcc/soft-fp/multf3.c:46:(.text+0x10c): relocation truncated to fit: R_MIPS_GOT_PAGE against `.rodata'
/mnt/lfs/sources/gcc-build/mips64el-unknown-linux-gnu/libgcc/../../../gcc-4.9.3/libgcc/soft-fp/multf3.c:46:(.text+0x118): relocation truncated to fit: R_MIPS_GOT_OFST against `.rodata'
/mnt/lfs/sources/gcc-build/mips64el-unknown-linux-gnu/libgcc/../../../gcc-4.9.3/libgcc/soft-fp/multf3.c:44:(.text+0x240): relocation truncated to fit: R_MIPS_CALL16 against `__clzdi2'
/mnt/lfs/sources/gcc-build/mips64el-unknown-linux-gnu/libgcc/../../../gcc-4.9.3/libgcc/soft-fp/multf3.c:45:(.text+0x2d8): relocation truncated to fit: R_MIPS_CALL16 against `__clzdi2'
/mnt/lfs/tools/bin/../lib/gcc/mips64el-unknown-linux-gnu/4.9.3/libgcc.a(subtf3.o): In function `__subtf3':
/mnt/lfs/sources/gcc-build/mips64el-unknown-linux-gnu/libgcc/../../../gcc-4.9.3/libgcc/soft-fp/subtf3.c:46:(.text+0x23c): relocation truncated to fit: R_MIPS_CALL16 against `__clzdi2'
/mnt/lfs/tools/bin/../lib/gcc/mips64el-unknown-linux-gnu/4.9.3/libgcc.a(floatsitf.o): In function `__floatsitf':
/mnt/lfs/sources/gcc-build/mips64el-unknown-linux-gnu/libgcc/../../../gcc-4.9.3/libgcc/soft-fp/floatsitf.c:41:(.text+0x30): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
../Makerules:601: recipe for target '/mnt/lfs/sources/glibc-build/libc.so' failed
make[2]: *** [/mnt/lfs/sources/glibc-build/libc.so] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/glibc-2.20/elf'
Makefile:213: recipe for target 'elf/subdir_lib' failed
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/glibc-2.20'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2




 
已邀请:

flygoatfree

赞同来自:

建议disable multilib。
需要我记得multilib需要启用的话要patch代码把默认ABI从N32改成N64.但是鉴于龙芯上基本没有32位程序,建议直接禁用。

要回复问题请先登录注册