Closed vyrus001 closed 8 years ago
apperantlyso after reducing the number of make threads to one, I have identified the err that seems to be the origin of the build failure. Its a linker error with libart (which is apparently a problem child in some other android builds). The full error context is below.
*** snip ***
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_x86_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_x86_64.o:function art_quick_throw_null_pointer_exception: error: unsupported reloc 42
*** snip ***
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
I have solved my own problem, applying the fix documented here => http://review.cyanogenmod.org/#/c/120824/2/build/Android.common_build.mk allows the project to compile. The file in question resides within the oneplus source repo at art/build/Android.common_build.mk
phone successfully rooted. script to pull all requirements from the phone through ADB did not work due to being unable to run cmds as root on adb (my rooted oneplus-3 is still running the stock image and the stock image does not support ADB as root) so i modified it to copy all the required files to an area accessible by the default user and chmodded it to be accessible (which totally worked).
am now trying to compile the operating system and running into the following error.