schawxiang 写道:
$ make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
TARGET_PRODUCT=rk312x
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-21-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_BUILD_TYPE=release
BUILD_ID=LMY47V
OUT_DIR=out
============================================
including ./abi/cpp/Android.mk ...
......
including ./prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.8/Android.mk ...
including ./prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/Android.mk ...
including ./prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.8/Android.mk ...
including ./prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.8/Android.mk ...
including ./prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.8/Android.mk ...
including ./prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/Android.mk ...
including ./prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/Android.mk ...
including ./prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.8/Android.mk ...
......
including ./vendor/widevine/Android.mk ...
PRODUCT_COPY_FILES device/rockchip/common/init.rk30board.bootmode.emmc.rc:root/init.rk30board.bootmode.emmc.rc ignored.
PRODUCT_COPY_FILES device/rockchip/common/init.rk30board.bootmode.unknown.rc:root/init.rk30board.bootmode.unknown.rc ignored.
PRODUCT_COPY_FILES device/rockchip/common/fstab.rk30board.bootmode.unknown:root/fstab.rk30board.bootmode.unknown ignored.
PRODUCT_COPY_FILES device/rockchip/common/fstab.rk30board.bootmode.emmc:root/fstab.rk30board.bootmode.emmc ignored.
build/core/Makefile:34: warning: overriding recipe for target 'out/target/product/rk312x/obj/lib/libGLES_mali.so'
build/core/prebuilt_internal.mk:282: warning: ignoring old recipe for target 'out/target/product/rk312x/obj/lib/libGLES_mali.so'
Saved manifest to manifest.xml
host SharedLib: libc++_32 (out/host/linux-x86/obj32/lib/libc++.so)
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(abort_message.o): unsupported reloc 43 against global symbol stderr
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(cxa_aux_runtime.o): unsupported reloc 43 against global symbol std::bad_cast::~bad_cast()
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(cxa_aux_runtime.o): unsupported reloc 43 against global symbol typeinfo for std::bad_cast
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(cxa_aux_runtime.o): unsupported reloc 43 against global symbol std::bad_typeid::~bad_typeid()
......
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(ios.o): unsupported reloc 43 against global symbol std::__1::num_put<wchar_t, std::__1::ostreambuf_iterator<wchar_t, std::__1::char_traits<wchar_t> > >::id
......
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: sigreturn is not implemented and will always fail
external/libunwind/src/x86/Gos-linux.c:301:警告: 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/libcxx/include/thread:149: error: unsupported reloc 43
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:44: recipe for target 'out/host/linux-x86/obj32/lib/libc++.so' failed
make: *** [out/host/linux-x86/obj32/lib/libc++.so] Error 1
#### make failed to build some targets (52 seconds) ####
很是奇怪 gcc g++ 装过4.6 4.7 4.8 4.9都没有用
有没有开始大神帮帮忙的
新系统在兼容方面不完善,还是使用旧版本比较好。