unsupported reloc 43

3,069 views
Skip to first unread message

John Floren

unread,
Feb 25, 2016, 7:12:00 PM2/25/16
to Android Building
I'm attempting to build aosp_arm64-eng on my x86_64 desktop box. I ran repo sync, then lunch aosp_arm64-eng, then make -j8. Make eventually fails with a lot of messages along these lines:

external/libcxx/src/strstream.cpp:318: error: unsupported reloc 43
external/libcxx/src/strstream.cpp:318: error: unsupported reloc 43
external/libcxx/src/strstream.cpp:318: error: unsupported reloc 43
external/libcxx/src/strstream.cpp:104: error: unsupported reloc 43
external/libcxx/include/streambuf:219: error: unsupported reloc 43
external/libcxx/include/streambuf:219: error: unsupported reloc 43
external/libcxx/src/strstream.cpp:322: error: unsupported reloc 43
external/libcxx/src/strstream.cpp:322: error: unsupported reloc 43
external/libcxx/src/strstream.cpp:322: error: unsupported reloc 43
external/libcxx/src/strstream.cpp:322: error: unsupported reloc 43
external/libcxx/src/strstream.cpp:104: error: unsupported reloc 43
external/libcxx/include/streambuf:219: error: unsupported reloc 43
external/libcxx/include/streambuf:219: error: unsupported reloc 43
external/libcxx/src/strstream.cpp:326: error: unsupported reloc 43
external/libcxx/src/strstream.cpp:326: error: unsupported reloc 43
external/libcxx/src/strstream.cpp:326: error: unsupported reloc 43
external/libcxx/src/strstream.cpp:326: error: unsupported reloc 43
external/libcxx/src/strstream.cpp:326: error: unsupported reloc 43
external/libcxx/src/strstream.cpp:326: error: unsupported reloc 43
external/libcxx/src/system_error.cpp:20: error: unsupported reloc 43
external/libcxx/src/system_error.cpp:166: error: unsupported reloc 43
external/libcxx/src/system_error.cpp:172: error: unsupported reloc 43
external/libcxx/src/system_error.cpp:178: error: unsupported reloc 43
external/libcxx/src/system_error.cpp:184: error: unsupported reloc 43
external/libcxx/src/system_error.cpp:190: error: unsupported reloc 43
external/libcxx/src/system_error.cpp:196: error: unsupported reloc 43
external/libcxx/src/system_error.cpp:207: error: unsupported reloc 43
external/libcxx/src/system_error.cpp:207: error: unsupported reloc 43
external/libcxx/src/thread.cpp:44: error: unsupported reloc 43
external/libcxx/src/thread.cpp:44: error: unsupported reloc 43
external/libcxx/src/thread.cpp:63: error: unsupported reloc 43
external/libcxx/src/thread.cpp:63: error: unsupported reloc 43
external/libcxx/src/thread.cpp:133: error: unsupported reloc 43
external/libcxx/src/thread.cpp:133: error: unsupported reloc 43
external/libcxx/include/thread:146: error: unsupported reloc 43
external/libcxx/include/thread:149: 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

Googling leads me to believe this may be a clang issue? Is it still possible to compile with gcc rather than clang?

Thanks!


John

Hypo Turtle

unread,
Feb 25, 2016, 8:40:12 PM2/25/16
to Android Building

Shyam Saini

unread,
May 26, 2016, 12:13:57 PM5/26/16
to Android Building
I'm facing same problem. Did you find any solution I'm running ubuntu 16.04. Since this post is bit older as far as my post is considered. So, I hope you may have find any solution for this. If yes, please post here. I'm facing this problem since last week. 

Dan Willemsen

unread,
May 26, 2016, 12:22:15 PM5/26/16
to Android Building
Which branch are you using? This was fixed in master with this change: https://android-review.googlesource.com/223100

- Dan

On Thu, May 26, 2016 at 9:13 AM Shyam Saini <mayhs1...@gmail.com> wrote:
I'm facing same problem. Did you find any solution I'm running ubuntu 16.04. Since this post is bit older as far as my post is considered. So, I hope you may have find any solution for this. If yes, please post here. I'm facing this problem since last week. 

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
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 android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mohammed Sharif

unread,
Jun 9, 2016, 8:48:25 AM6/9/16
to Android Building

Hi,

I am getting the below error while building Marshmellow on 16.04
out/host/linux-x86/obj32/SHARED_LIBRARIES/libart_intermediates/arch/x86/quick_entrypoints_x86.o:function art_quick_instrumentation_entry: error: unsupported reloc 43
out/host/linux-x86/obj32/SHARED_LIBRARIES/libart_intermediates/arch/x86/quick_entrypoints_x86.o:function art_quick_instrumentation_entry: error: unsupported reloc 43
out/host/linux-x86/obj32/SHARED_LIBRARIES/libart_intermediates/arch/x86/quick_entrypoints_x86.o:function art_quick_instrumentation_exit: error: unsupported reloc 43
out/host/linux-x86/obj32/SHARED_LIBRARIES/libart_intermediates/arch/x86/quick_entrypoints_x86.o:function art_quick_deoptimize: 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:51: recipe for target 'out/host/linux-x86/obj32/lib/libart.so' failed

I already have https://android-review.googlesource.com/223100 in my tree but it still fails.

But when I use http://review.cyanogenmod.org/#/c/120824/2/build/Android.common_build.mk it passes.

Any help is appreciated.

Thanks.

Gary Bisson

unread,
Jun 13, 2016, 5:25:57 PM6/13/16
to Android Building
Hi all,

I've had that problem and had to clear my ccache and start my build from scratch over again and it worked (without the Cyanogen build patch).

Regards,
Gary

Olexandr Tereshchuk

unread,
Jul 19, 2016, 11:22:36 AM7/19/16
to Android Building
It depends on the branch you build. I had described problem on Ubuntu. Had to apply https://android.googlesource.com/platform/build/+/5ff9c81b6c0f23dfbc08c95c1294b3b37110ecf0

вівторок, 14 червня 2016 р. 00:25:57 UTC+3 користувач Gary Bisson написав:

Z. javier

unread,
Oct 10, 2016, 10:11:06 AM10/10/16
to Android Building
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.
Reply all
Reply to author
Forward
0 new messages