uclibc TLS 错误

2015-05-18 13:58:46 +08:00
 debiansid
打了context补丁 ,ar71xx正常 ,x86编译失败,谁帮忙给看看?谢谢

/home/admin/openwrt/staging_dir/host/bin/sed -i -e 's,^CROSS=.*,CROSS=i486-openwrt-linux-uclibc-,g' /home/admin/openwrt/build_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/uClibc-0.9.33.2/Rules.mak
PATH='/home/admin/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/initial/bin:/home/admin/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/bin:/home/admin/openwrt/staging_dir/host/bin:/home/admin/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/bin:/home/admin/openwrt/staging_dir/host/bin:/home/admin/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/bin:/home/admin/openwrt/staging_dir/host/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/go/bin:/usr/local/go/pkg/tool/linux_amd64:/usr/local/go/bin:/home/admin/go/bin' make -C /home/admin/openwrt/build_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/uClibc-0.9.33.2 AR=i486-openwrt-linux-uclibc-ar AS="i486-openwrt-linux-uclibc-gcc -c -Os -pipe -march=i486 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable" LD=i486-openwrt-linux-uclibc-ld NM=i486-openwrt-linux-uclibc-nm CC="i486-openwrt-linux-uclibc-gcc" GCC="i486-openwrt-linux-uclibc-gcc" CXX="i486-openwrt-linux-uclibc-g++" RANLIB=i486-openwrt-linux-uclibc-ranlib STRIP=i486-openwrt-linux-uclibc-strip OBJCOPY=i486-openwrt-linux-uclibc-objcopy OBJDUMP=i486-openwrt-linux-uclibc-objdump SIZE=i486-openwrt-linux-uclibc-size DEVEL_PREFIX=/ RUNTIME_PREFIX=/ HOSTCC="gcc" CPU_CFLAGS="-funsigned-char -fno-builtin -fno-asm --std=gnu99 -ffunction-sections -fdata-sections -Wno-unused-but-set-variable -Os -pipe -march=i486 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -ggdb" ARCH=""i386"" LIBGCC="/home/admin/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/i486-openwrt-linux-uclibc/4.8.3/libgcc_initial.a" DOSTRIP="" PREFIX= all
make[4]: Entering directory `/home/admin/openwrt/build_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/uClibc-0.9.33.2'
make[4]: Circular libpthread/nptl/sysdeps/i386/gen_tcb-offsets.s <- libpthread/nptl/sysdeps/i386/tcb-offsets.h dependency dropped.
rm -f lib/libc.so lib/libc.so.0 lib/libuClibc-0.9.33.2.so
i486-openwrt-linux-uclibc-gcc -Wl,-EL -Wl,--sort-common -Wl,--sort-section=alignment -m32 -shared -Wl,--warn-common -Wl,--warn-once -Wl,-z,combreloc -Wl,-z,relro -Wl,-z,defs -Wl,-init,__uClibc_init -Wl,-soname=libc.so.0 -nostdlib -o lib/libuClibc-0.9.33.2.so -Wl,--whole-archive libc/libc_so.a -Wl,--no-whole-archive ./lib/interp.os ./lib/ld-uClibc.so.0 ./lib/uclibc_nonshared.a /home/admin/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/i486-openwrt-linux-uclibc/4.8.3/libgcc_initial.a
/home/admin/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/initial/bin/../lib/gcc/i486-openwrt-linux-uclibc/4.8.3/../../../../i486-openwrt-linux-uclibc/bin/ld: errno: TLS definition in libc/libc_so.a(errno.os) section .tbss.errno mismatches non-TLS reference in libc/libc_so.a(setcontext.os)
libc/libc_so.a(errno.os): could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[4]: *** [lib/libc.so] Error 1
make[4]: Leaving directory `/home/admin/openwrt/build_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/uClibc-0.9.33.2'
make[3]: *** [/home/admin/openwrt/build_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/uClibc-0.9.33.2/.built] Error 2
make[3]: Leaving directory `/home/admin/openwrt/toolchain/uClibc'
make[2]: *** [toolchain/uClibc/compile] Error 2
make[2]: Leaving directory `/home/admin/openwrt'
make[1]: *** [/home/admin/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_uClibc-0.9.33.2/stamp/.toolchain_install] Error 2
make[1]: Leaving directory `/home/admin/openwrt'
make: *** [world] Error 2
717 次点击
所在节点    OpenWrt
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/191911

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX