这是一个创建于 3458 天前的主题,其中的信息可能已经有所发展或是发生改变。
打了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解决