account arrowhead-down arrowhead-up cart 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: 

Build problems on Android KK

Developer World
Message 1 of 12
Message 1 of 12

Build problems on Android KK

Hi all

 

Here you can post your build issues encountered on KK and 3.4 kernel

 

Regards

Alin

11 REPLIES
Apprentice
Message 2 of 12
Message 2 of 12

Re: Build problems on Android KK

Hello,

 

I'm trying to build AOSP KK from source and using your tutorial but I'm having issues in the step "Add necessary patches from the AOSP upstream branch". This is the issue I have:

 

xxxxx@gmail:~/android/build$ git cherry-pick 612e2cd0e8c79bc6ab46d13cd96c01d1be382139
error: Your local changes would be overwritten by cherry-pick.
hint: Commit your changes or stash them to proceed.
fatal: cherry-pick failed

 

Thank you very much.

 

Adviser
Message 3 of 12
Message 3 of 12

Re: Build problems on Android KK

While I'm unable to see your Picture, you might want to try cherry-picking only these commits:

 

[CODE]

cd build
git cherry-pick 612e2cd0e8c79bc6ab46d13cd96c01d1be382139
cd ..
cd hardware/qcom/bt
git cherry-pick 5a6037f1c8b5ff0cf263c9e63777444ba239a056
cd ../../../

 cd hardware/qcom/audio
git cherry-pick 20bcfa8b451941843e8eabb5308f1f04f07d347a

cd ../../../
cd hardware/qcom/display
git cherry-pick d5ae1812a9509d8849f4494fcf17f68bf33f533c
git cherry-pick 5898f2e789800fb196ce94532eef033e7d7e60b3
cd ../../../

[/CODE]

 

See that I left out 

[CODE]git cherry-pick 00f6869a0981b570f90dbf39981734f36eafdfa9[/CODE] for the simple reason that it is merged into kk_4.4.4 already, so cherry-picking it again causes issues.

 

Apprentice
Message 4 of 12
Message 4 of 12

Re: Build problems on Android KK

Thank you very much for your answer.

 

I've updated my post considering no photo was being shown. I'm sorry.

 

Many thanks

Adviser
Message 5 of 12
Message 5 of 12

Re: Build problems on Android KK

from the error in the updated post you actually should do a rm -rf build and then a repo sync again. The errors says you manually modified files on the build dir which conflict with the cherry-pick. If you still come across errors just rm -rf * (this does only remove the checked out sources, you don't need to redownload them as they still exist in the .repo dir, which is not getting deleted by a rm -rf *) and then repo sync again (this will checkout the sources again.) Then cherry-pick the commits from my previous post and you should be good to go. If not, just let me know together with an error message (like you did previously wink) and I'll do my best to help you.

Forum Legend
Message 6 of 12
Message 6 of 12

Re: Build problems on Android KK

@gbueno6  I've looked into the image issue and see that your email was in the image - If you are able to edit out part of the email and re-upload I will authorise it

For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled.   Richard P. Feynman



Apprentice
Message 7 of 12
Message 7 of 12

Re: Build problems on Android KK

Many thanks for your reponse @Myself5 I've managed to fix the issue I had with your first method (rm -rf build) and syncing the repo again. But I got this two more errors:

 

xxxxx@gmail:~/android/hardware/qcom/bt$ git cherry-pick 5a6037f1c8b5ff0cf263c9e63777444ba239a056

error: Your local changes would be overwritten by cherry-pick.
hint: Commit your changes or stash them to proceed.
fatal: cherry-pick failed

 

xxxxxx@gmail:~/android/hardware/qcom/audio$ git cherry-pick 20bcfa8b451941843e8eabb5308f1f04f07d347a
error: Your local changes would be overwritten by cherry-pick.
hint: Commit your changes or stash them to proceed.
fatal: cherry-pick failed

 

I guess I'll have to use rm -rf* and see if it finally works (I guess I'll have to type this here: xxxxx@gmail:~/android$

 

My last question: when I apply the git cherry-pick, this appears in the screen:

 

xxxxxx@gmail:~/android/hardware/qcom/display$ git cherry-pick 5898f2e789800fb196ce94532eef033e7d7e60b3
[detached HEAD d8b455d] qcom:msm8x26: make dependency to sync headers explicit
Author: Rom Lemarchand <romlem@google.com>
Date: Fri Jan 3 15:54:16 2014 -0800
Committer: MY NAME <xxxxxxxxxxx@gmail.com>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

git config --global user.name "Your Name"
git config --global user.email you@example.com

After doing this, you may fix the identity used for this commit with:

git commit --amend --reset-author

2 files changed, 2 insertions(+)

 

I don't want to have problems with anybody. I don't know if I did domething wrong...

Apprentice
Message 8 of 12
Message 8 of 12

Re: Build problems on Android KK

Thank you very much @Thommo but I've deleted the image and wrote the issue I had.

 

I'm very sorry!!

 

Best regards

Forum Legend
Message 9 of 12
Message 9 of 12

Re: Build problems on Android KK

Just to let you know that if you upload an image it is checked before been visible to all members - We've had some unsavoury images so had to implement this

For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled.   Richard P. Feynman



Developer World
Message 10 of 12
Message 10 of 12

Re: Build problems on Android KK

looks like now you were able to sync

 

for the future

the best way to do this is to remove local files

cd /android

rm -r *

repo sync -cd

then use the guide to setup vendor and cherry-pick

 

br

Alin