art crash build with WITHOUT_HOST_CLANG=true

2,495 views
Skip to first unread message

Carlos Estrague

unread,
Feb 27, 2016, 3:01:13 AM2/27/16
to Android-x86

[quote]out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/arch/x86_64/quick_entrypoints_x86_64.o:function art_quick_proxy_invoke_handler: error: unsupported reloc 42
out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/arch/x86_64/quick_entrypoints_x86_64.o:function art_quick_resolution_trampoline: error: unsupported reloc 42
out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/arch/x86_64/quick_entrypoints_x86_64.o:function art_quick_resolution_trampoline: error: unsupported reloc 42
out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/arch/x86_64/quick_entrypoints_x86_64.o:function art_quick_generic_jni_trampoline: error: unsupported reloc 42
out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/arch/x86_64/quick_entrypoints_x86_64.o:function art_quick_to_interpreter_bridge: error: unsupported reloc 42
out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/arch/x86_64/quick_entrypoints_x86_64.o:function art_quick_to_interpreter_bridge: error: unsupported reloc 42
out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/arch/x86_64/quick_entrypoints_x86_64.o:function art_quick_instrumentation_entry: error: unsupported reloc 42
out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/arch/x86_64/quick_entrypoints_x86_64.o:function art_quick_instrumentation_exit: error: unsupported reloc 42
out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/arch/x86_64/quick_entrypoints_x86_64.o:function art_quick_deoptimize: error: unsupported reloc 42
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:51: recipe for target 'out/host/linux-x86/obj/lib/libartd.so' failed
make: *** [out/host/linux-x86/obj/lib/libartd.so] Error 1
make: *** Waiting for unfinished jobs....
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:51: recipe for target 'out/host/linux-x86/obj/lib/libart.so' failed
make: *** [out/host/linux-x86/obj/lib/libart.so] Error 1[/quote]

If you have this error  Needs disable variable WITHOUT_HOST_CLANG in art/build/Android.common_build.mk WITHOUT_HOST_CLANG) to false and this problem no exist

See for more information apply this patch http://review.cyanogenmod.org/#/c/120824/


Carlos Estrague

unread,
Mar 1, 2016, 4:25:33 PM3/1/16
to Android-x86

I Research and  it's caused update GCC with newers libc 2.23 and binutils 2.26 now can't compile android 6.0 in some rolling distro i.e Archlinux or Debian + sid repo also happen
 
Temporaly better solution is Downgrade to GCC with lowers versions libc and binutils < 2.26  because apply this patch you no crash build but will always crash libart.so in the fist boot loop 

Regards
Mrc.

 

Xuehui Chen

unread,
Nov 16, 2016, 10:30:06 PM11/16/16
to Android-x86
在 2016年2月27日星期六 UTC+8下午4:01:13,Carlos Estrague写道:
The patch http://review.cyanogenmod.org/#/c/120824/ help me fix the problem.
My OS is Ubuntu 16.04
Reply all
Reply to author
Forward
0 new messages