Hi
I know this thread is quite old, but I have a similar problem.
I'm trying to build a lollipop 5.1 branch, and the file modified by the 
proposed patch it's a little different:
https://android.googlesource.com/platform/build/+/android-5.1.0_r3/core/clang/HOST_x86_common.mk

As you can see, in addition to the lack of -B flag to specify the prebuilts 
toolchain path, there's an explicit request to use the native system 
assembler

-no-integrated-as
>
I commented out that line and added the one inserted by the patch. I have 
no more the reloc problem, but now my build fails not finding a lot of 
functions.
This is a brief extract of the error:

art/runtime/arch/x86/entrypoints_init_x86.cc:185: error: undefined 
> reference to 'art_quick_f2l'
> art/runtime/arch/x86/entrypoints_init_x86.cc:186: error: undefined 
> reference to 'art_quick_ldiv'
> art/runtime/arch/x86/entrypoints_init_x86.cc:187: error: undefined 
> reference to 'art_quick_lmod'
> art/runtime/arch/x86/entrypoints_init_x86.cc:188: error: undefined 
> reference to 'art_quick_lmul'
> art/runtime/arch/x86/entrypoints_init_x86.cc:189: error: undefined 
> reference to 'art_quick_lshl'
> art/runtime/arch/x86/entrypoints_init_x86.cc:190: error: undefined 
> reference to 'art_quick_lshr'
> art/runtime/arch/x86/entrypoints_init_x86.cc:191: error: undefined 
> reference to 'art_quick_lushr'
> art/runtime/arch/x86/entrypoints_init_x86.cc:195: error: undefined 
> reference to 'art_quick_string_compareto'
> art/runtime/arch/x86/entrypoints_init_x86.cc:196: error: undefined 
> reference to 'art_quick_memcpy'
> art/runtime/arch/x86/entrypoints_init_x86.cc:199: error: undefined 
> reference to 'art_quick_imt_conflict_trampoline'
> art/runtime/arch/x86/entrypoints_init_x86.cc:200: error: undefined 
> reference to 'art_quick_resolution_trampoline'
> art/runtime/arch/x86/entrypoints_init_x86.cc:202: error: undefined 
> reference to 'art_quick_invoke_direct_trampoline_with_access_check'
> art/runtime/arch/x86/entrypoints_init_x86.cc:203: error: undefined 
> reference to 'art_quick_invoke_interface_trampoline_with_access_check'
> art/runtime/arch/x86/entrypoints_init_x86.cc:204: error: undefined 
> reference to 'art_quick_invoke_static_trampoline_with_access_check'
> art/runtime/arch/x86/entrypoints_init_x86.cc:205: error: undefined 
> reference to 'art_quick_invoke_super_trampoline_with_access_check'
> art/runtime/arch/x86/entrypoints_init_x86.cc:206: error: undefined 
> reference to 'art_quick_invoke_virtual_trampoline_with_access_check'
> art/runtime/arch/x86/entrypoints_init_x86.cc:209: error: undefined 
> reference to 'art_quick_test_suspend'
> art/runtime/arch/x86/entrypoints_init_x86.cc:212: error: undefined 
> reference to 'art_quick_deliver_exception'
> art/runtime/arch/x86/entrypoints_init_x86.cc:213: error: undefined 
> reference to 'art_quick_throw_array_bounds'
> art/runtime/arch/x86/entrypoints_init_x86.cc:214: error: undefined 
> reference to 'art_quick_throw_div_zero'
> art/runtime/arch/x86/entrypoints_init_x86.cc:215: error: undefined 
> reference to 'art_quick_throw_no_such_method'
> art/runtime/arch/x86/entrypoints_init_x86.cc:216: error: undefined 
> reference to 'art_quick_throw_null_pointer_exception'
> art/runtime/arch/x86/entrypoints_init_x86.cc:217: error: undefined 
> reference to 'art_quick_throw_stack_overflow'
> art/runtime/arch/x86/fault_handler_x86.cc:241: error: undefined reference 
> to 'art_nested_signal_return'
> art/runtime/arch/x86/fault_handler_x86.cc:304: error: undefined reference 
> to 'art_quick_throw_null_pointer_exception'
> art/runtime/arch/x86/fault_handler_x86.cc:378: error: undefined reference 
> to 'art_quick_test_suspend'
> art/runtime/arch/x86/fault_handler_x86.cc:424: error: undefined reference 
> to 'art_quick_throw_stack_overflow'
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> make: *** [out/host/linux-x86/obj32/lib/libart.so] Error 1
>
Here you can find the full error output 
http://pastebin.com/gcqA53YA
Any idea?

Another thing I don't understand is why the explicit declaration of the 
toolchain path is needed just for the assembler's flags and not for the 
compilers' ones.

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to