'Dan Willemsen' via Android Building <android-building <at>
googlegroups.com>
writes:
>
>
> I haven't been able to reproduce this with AOSP master, are you attempting
to build a recent master, or some other branch?
>
> On Fri, Apr 22, 2016 at 1:24 PM Michele Bono <bono.michele94 <at>
gmail.com> wrote:
>
>
> Hey Guys,
> I cannot build anymore after upgrading to ubuntu 16.04
>
> Getting this error
>
> prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8//x86_64-
linux/bin/ld: error: out/host/linux-
x86/obj/SHARED_LIBRARIES/libart_intermediates/arch/x86_64/quick_entrypoints_x
86_64.o: unsupported reloc 42 against global symbol art::Runtime::instance_
> ...
> out/host/linux-
x86/obj/SHARED_LIBRARIES/libart_intermediates/arch/x86_64/quick_entrypoints_x
86_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_x
86_64.o:function art_quick_deoptimize: error: unsupported reloc 42
> clang++: error: linker command failed with exit code 1 (use -v to see
invocation)Someone has a solution?
>
>
>
>
I have the same problem after I upgraded to ubuntu 16.04. It looks as if it
is related to clang. Maybe somewhere in the build scripts some link flags are
pointing to some dependency that are no longer present in 16.04?
I've tried with "our own" build and with a cyanogenmod 12.1 userdebug build.
My colleagues (who did not upgrade their ubuntu machines) do not have the
same problem. So I suspect some dependency missing in ubuntu 16.04.
Here's from cyanogenmod 12.1:
libnativehelper/JniInvocation.cpp:165: 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
'/home/lars/source/cm/cm-12.1/out/host/linux-
x86/obj32/lib/libnativehelper.so' failed
make: *** [/home/lars/source/cm/cm-12.1/out/host/linux-
x86/obj32/lib/libnativehelper.so] Error 1
make: *** Waiting for unfinished jobs....
host StaticLib: libsigchain_32 (/home/lars/source/cm/cm-12.1/out/host/linux-
x86/obj32/STATIC_LIBRARIES/libsigchain_intermediates/libsigchain.a)
make: Leaving directory '/home/lars/source/cm/cm-12.1'
#### make failed to build some targets (23:54 (mm:ss)) ####
In our own build it failed somewhere else but the clang linker command fail,
is the same.