九鼎创展论坛

标题: x3288编译错误 [打印本页]

作者: lemonolive    时间: 2017-6-17 14:06
标题: x3288编译错误
jdk 1.7
#./mk -s编译时出现如下问题

prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/STATIC_LIBRARIES/libc++_intermediates/libc++.a(thread.o): unsupported reloc 43 against global symbol std::__1::__thread_specific_ptr<std::__1::__thread_struct>::~__thread_specific_ptr()
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/STATIC_LIBRARIES/libc++_intermediates/libc++.a(thread.o): unsupported reloc 43 against global symbol std::__1::__thread_specific_ptr<std::__1::__thread_struct>::__at_thread_exit(void*)
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/STATIC_LIBRARIES/libc++_intermediates/libc++.a(thread.o): unsupported reloc 43 against global symbol std::__1::system_error::~system_error()
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/STATIC_LIBRARIES/libc++_intermediates/libc++.a(thread.o): unsupported reloc 43 against global symbol typeinfo for std::__1::system_error
external/libunwind/src/x86/Gos-linux.c:301: warning: warning: sigreturn is not implemented and will always fail
external/libunwind/src/x86/Gos-linux.c:301: warning: warning: sigreturn is not implemented and will always fail
external/libcxxabi/src/abort_message.cpp:38: error: unsupported reloc 43
external/libcxxabi/src/cxa_aux_runtime.cpp:24: error: unsupported reloc 43
external/libcxxabi/src/cxa_aux_runtime.cpp:24: error: unsupported reloc 43
external/libcxxabi/src/cxa_aux_runtime.cpp:29: error: unsupported reloc 43
external/libcxxabi/src/cxa_aux_runtime.cpp:29: error: unsupported reloc 43
external/libcxxabi/src/cxa_default_handlers.cpp:59: error: unsupported reloc 43
这个该如何解决 ?


作者: lxz    时间: 2017-6-17 18:25
你应该是用的16.04的ubuntu编译的把,14.04不会出现这个错误。
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld
这样修改就可以了编译通过了




欢迎光临 九鼎创展论坛 (http://bbs.9tripod.com/) Powered by Discuz! X3.2