account arrowhead-down arrowhead-up mobile-menu search sm-bold-x x-skinny-rounded x-skinny arrowhead-right social-facebook social-googleplus social-instagram social-linkedin social-pinterest social-qzone social-renren social-tencent social-twitter social-vkontakt social-weibo social-youku social-youtube

Please help us improve our website

Take our customer survey to evaluate your visit.

It should only take a few minutes to answer five quick questions. Just click the Launch survey button at the end of your visit to begin.

cancel
Showing results for 
Search instead for 
Did you mean: 
Welcome to the Open Devices community!

This is where we discuss open source and development related questions on our Open Devices initiative.

Build Error AOSP marshmallow and lollipop and kitkat on Xperia Z3 SGP611

Highlighted
Rookie
Message 1 of 8
1,758 Views
Message 1 of 8

Build Error AOSP marshmallow and lollipop and kitkat on Xperia Z3 SGP611

Hi there,

I have been trying to build my own AOSP image for model SGP611 and have encoutered a build error each time stoping on scorpion_windy please see below error, any help would be so appreciated as i am very frustrated Slightly smiling Face

including ./vendor/sony/shinano-scorpion/proprietary/Android.mk ...
including ./vendor/sony/shinano-sirius/proprietary/Android.mk ...
No private recovery resources for TARGET_DEVICE scorpion_windy
make: *** No rule to make target 'external/openssl/flavor.mk'.  Stop.

#### make failed to build some targets (02:18 (mm:ss)) ####


Thanks very much

7 REPLIES 7
Highlighted
Rookie
Message 2 of 8
1,730 Views
Message 2 of 8

Re: Build Error AOSP marshmallow and lollipop and kitkat on Xperia Z3 SGP611

Ok so i cleaned my entire system and re synced my repos, and got much further in the process follwing the instructions exactly and now i get this error

libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
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 'out/host/linux-x86/obj32/lib/libnativehelper.so' failed
make: *** [out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1
make: *** Waiting for unfinished jobs....

#### make failed to build some targets (01:50:56 (hh:mm:ss)

Any help would be much appreciated!

Highlighted
Regular
Message 3 of 8
1,726 Views
Message 3 of 8

Re: Build Error AOSP marshmallow and lollipop and kitkat on Xperia Z3 SGP611

Use this patch to fix unsupported reloc 

http://review.cyanogenmod.org/#/c/120824/2

Highlighted
Rookie
Message 4 of 8
1,723 Views
Message 4 of 8

Re: Build Error AOSP marshmallow and lollipop and kitkat on Xperia Z3 SGP611

Hi There,

Thank you very much for your reply, i am sorry but am inexperienced haha how can i apply your fix? If you could point me in the right direction i would be most grateful!

Thanks again!

Highlighted
Rookie
Message 5 of 8
1,722 Views
Message 5 of 8

Re: Build Error AOSP marshmallow and lollipop and kitkat on Xperia Z3 SGP611

Sorry to waste your time, I navigated to the android/art/builds folder and made the changes to the android.common_build file to hopefully disable the host clang, im going to run a build and will post what the results are.

Highlighted
Rookie
Message 6 of 8
1,721 Views
Message 6 of 8

Re: Build Error AOSP marshmallow and lollipop and kitkat on Xperia Z3 SGP611

prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/include/c++/4.6/bits/basic_string.h:235: error: unsupported reloc 43
libnativehelper/JNIHelp.cpp:310: error: unsupported reloc 43
libnativehelper/JNIHelp.cpp:311: error: unsupported reloc 43
libnativehelper/JNIHelp.cpp:332: error: unsupported reloc 43
libnativehelper/JNIHelp.cpp:322: error: unsupported reloc 43
libnativehelper/JNIHelp.cpp:338: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:89: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:90: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:91: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:92: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:93: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:94: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:95: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:96: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:97: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:98: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:99: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:100: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:101: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:102: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:103: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:104: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:105: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:106: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:107: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:108: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:109: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:110: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:111: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:112: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:113: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:114: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:115: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:116: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:117: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:118: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:119: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:120: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:121: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:122: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:123: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:124: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:125: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:126: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:127: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:128: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:129: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:130: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:131: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:132: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:133: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:134: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:135: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:136: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:137: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:138: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:139: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:140: error: unsupported reloc 43
libnativehelper/toStringArray.cpp:21: error: unsupported reloc 43
libnativehelper/toStringArray.cpp:21: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:40: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:45: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
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 'out/host/linux-x86/obj32/lib/libnativehelper.so' failed
make: *** [out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1
make: *** Waiting for unfinished jobs....

#### make failed to build some targets (03:59 (mm:ss)) ####

Regular
Message 7 of 8
1,706 Views
Message 7 of 8

Re: Build Error AOSP marshmallow and lollipop and kitkat on Xperia Z3 SGP611

You need to clean your out folder before build it again 

Highlighted
Inhabitant
Message 8 of 8
1,693 Views
Message 8 of 8

Re: Build Error AOSP marshmallow and lollipop and kitkat on Xperia Z3 SGP611

commands such as 

make clean

and

make clobber

will help a great deal. If you have made significant changes to the code, ie ones that will affect the build process rather than just variables then you should run these between builds.

 

Something else that can be done is 

rm -rf /out

which will delete your entire out folder. Be sure to remove any completed zips you want to keep before doing this, and it is better to tab auto complete the out/ folder, as this command is recursive so if you could end up removing a lot more than you wanted to.

An alternative to this is to just use the file browser to delete the out folder.