V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
OpenWrt 官方网站
debiansid
V2EX  ›  OpenWrt

uclibc TLS 错误

  •  
  •   debiansid · 2015-05-18 13:58:46 +08:00 · 720 次点击
    这是一个创建于 3483 天前的主题,其中的信息可能已经有所发展或是发生改变。
    打了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
    第 1 条附言  ·  2015-05-20 12:33:03 +08:00
    改trunk +glibc解决
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1353 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 17:37 · PVG 01:37 · LAX 09:37 · JFK 12:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.