Hello all,
i recently started to build AOSP from source, I have overcome a couple of errors, but this seems to be one that i cant find on XDA or Google. Hopefully someone will be able to help me out.
I am running Ubuntu 12.04 in a VM
i use make -j2 otapackage to build
it goes through for about 5 minutes then it comes to this error
Yacc: checkpolicy <= external/checkpolicy/policy_parse.y
prebuilts/misc/linux-x86/bison/bison -d -v -o out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp external/checkpolicy/policy_parse.y
/bin/bash: m4: command not found
make: *** [out/target/product/hammerhead/obj/ETC/sepolicy_intermediates/policy.conf] Error 127
make: *** Deleting file `out/target/product/hammerhead/obj/ETC/sepolicy_intermediates/policy.conf'
make: *** Waiting for unfinished jobs....
make: *** [out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp] Broken pipe
Anyone have any insight as to what to do to fix this?
Appreciate all help
apt-get install m4
Lethargy said:
apt-get install m4
Click to expand...
Click to collapse
do that in my working directory correct?
skeliton lord said:
do that in my working directory correct?
Click to expand...
Click to collapse
Shouldn't matter but just open a new terminal anyways
Lethargy said:
Shouldn't matter but just open a new terminal anyways
Click to expand...
Click to collapse
thank you
Lethargy said:
Shouldn't matter but just open a new terminal anyways
Click to expand...
Click to collapse
maybe you can help me with another error....
/bin/bash: flex: command not found
make: *** [out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp] Error 127
make: *** Waiting for unfinished jobs....
do i have to apt-get install flex?
skeliton lord said:
maybe you can help me with another error....
/bin/bash: flex: command not found
make: *** [out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp] Error 127
make: *** Waiting for unfinished jobs....
do i have to apt-get install flex?
Click to expand...
Click to collapse
yeah
Lethargy said:
yeah
Click to expand...
Click to collapse
is there anything else i might have to install? dont want to keep runiing into errors all night :/
skeliton lord said:
is there anything else i might have to install? dont want to keep runiing into errors all night :/
Click to expand...
Click to collapse
No one would know what you have or haven't installed lol. Just keep resolving errors until it builds
Lethargy said:
No one would know what you have or haven't installed lol. Just keep resolving errors until it builds
Click to expand...
Click to collapse
Okay lol, i appreciate all the help
Lethargy said:
No one would know what you have or haven't installed lol. Just keep resolving errors until it builds
Click to expand...
Click to collapse
i hate to keep asking questions abut errors, but these are errors i cant find anything to on google :/
i got another error regarding this:
out/target/product/hammerhead/obj/GYP/shared_intermediates/blink/CSSGrammar.cpp
and
[out/target/product/hammerhead/obj/GYP/shared_intermediates/blink/XPathGrammar.cpp]
it doesnt exist in the directory, any idea? i cant find any solution :/
Related
is anyone having trouble getting this to work? i cant get it to lunch, keep getting this error
Code:
build/core/product_config.mk:199: *** No matches for product "full_heroc". Stop.
** Don't have a product spec for: 'full_heroc'
** Do you have the right repo manifest?
anonomouse said:
is anyone having trouble getting this to work? i cant get it to lunch, keep getting this error
Code:
build/core/product_config.mk:199: *** No matches for product "full_heroc". Stop.
** Don't have a product spec for: 'full_heroc'
** Do you have the right repo manifest?
Click to expand...
Click to collapse
try "lunch froyo_heroc-eng"
jaybob413 said:
try "lunch froyo_heroc-eng"
Click to expand...
Click to collapse
you my friend....rock
now to start editing it for the eris... :/
Maybe this should be placed in Q&A... Might get more responses there...
hes already answered my question.
i just couldnt figure out the lunch command.
**noob status**
Hey everyone. I am considering making a custom ROM, in particular, one that has a custom theme to it. I was thinking of maybe making a Star Wars themed AOSP one, maybe just 4.1.2 for stability for now. I was just wondering some things. The first problem is I have no clue about developing, so I'm sorry if my assumptions are stupid.
I was wondering if developing a ROM would be like either:
A. Taking an AOSP ROM (with permission from Devs), and tweaking system files, and then making it into a ZIP again
or
B. Would I need to compile something myself and tweak system files and things from there?
Thanks in advance for your answers
You would have to do the ROM from scratch. Try using android kitchen it would help you a lot.
Sent from my SCH-I535 using xda premium
Thanks for the quick answer . So my desktop is running Windows 7 HP, 6 AMD core processor clocked at 2.6 GHz with about 200 GB of free space. Would that work alright?
BlazingGlory53 said:
Thanks for the quick answer . So my desktop is running Windows 7 HP, 6 AMD core processor clocked at 2.6 GHz with about 200 GB of free space. Would that work alright?
Click to expand...
Click to collapse
that should be perfect.
Yes it would be more than enough by the way I would recommend using ubuntu because it feels easier but give me a few minutes and I will provide you links om using it on Windows
Sent from my SCH-I535 using xda premium
I'm currently downloading Cygwin to see how tough it is to bake something up on Windows, and worst case scenario, I'll try Ubuntu
If you come across any problems while creating it I'll be happy to assist you.
By the way I would recommend extracting a tar file of the 4.1 jelly bean ota.
Sent from my SCH-I535 using xda premium
Logicsupraboy1 said:
If you come across any problems while creating it I'll be happy to assist you.
By the way I would recommend extracting a tar file of the 4.1 jelly bean ota.
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
There a way to make an AOSP rom with kitchen?
I don't think so but you will need ubuntu for aosp.
I'll send you a link right now.
Sent from my SCH-I535 using xda premium
Need some help now. Currently the kitchen is saying that there are no ROMs in the original_update folder, but i have the original OTA TAR file in, and I also extracted the boot, system, and cache files to put them in the folder too. it's not working D:
BlazingGlory53 said:
Need some help now. Currently the kitchen is saying that there are no ROMs in the original_update folder, but i have the original OTA TAR file in, and I also extracted the boot, system, and cache files to put them in the folder too. it's not working D:
Click to expand...
Click to collapse
Best suggestion trying Ubuntu as you can dual boot it with Windows.& the instructions are easier to follow.
Boy, I'm having a field day trying to get this working xD. I install linux, open terminal to install Java (ia32 libs), and I get this:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
[email protected]:~
EDIT: Maybe because I'm downloading system updates is why the "other process is using it", but the problem came up before I started the update...
BlazingGlory53 said:
Boy, I'm having a field day trying to get this working xD. I install linux, open terminal to install Java (ia32 libs), and I get this:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
[email protected]:~
Click to expand...
Click to collapse
Installing adb would and try googling how to install ia32 libs
If you are running a 64bit
---------- Post added at 06:36 AM ---------- Previous post was at 06:30 AM ----------
Also let the updates finish lol sorry I didn't see the edit.
Sent from my SCH-I535 using xda premium
making progress, but now Ubuntu won't grant me root. Here's the entire process I did:
[email protected]:~$ sudo apt-get install ia32-libs
[sudo] password for william:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
ia32-libs : Depends: ia32-libs-multiarch but it is not installable
openjdk-6-jre-lib : Depends: openjdk-6-jre-headless (>= 6b17) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
[email protected]:~$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
[email protected]:~$ su
Password:
su: Authentication failure
[email protected]:~$
EDIT: Never mind, I was confusing it with Linux Mint I think. It's sudo -s
EDIT 2: NVM, Java was there in the package thing
Wait are you using the guide I sent you? Because when I used it I had no problems what so ever.
Sent from my SCH-I535 using Xparent ICS Tapatalk 2
I had Ubuntu 12.10 loaded, I went to 12.04 and things are a heck of a lot smoother now
I'm making good progress now. I'm working on compiling AOSP, going to try CM10.1. I'm having a problem though. It won't let me download the repo. This is what happened:
[email protected]:~/Source$ repo init -u git://github.com/BeerGang/android.git -b cm-10.1
fatal: 'git' is not available
fatal: [Errno 2] No such file or directory
Please make sure git is installed and in your path.
Whoopsies! Missed a step, installing some packages I missed, will update and see if it works ;D
That is great I hope I was of some help.
Keep me up to date with your progress please as I would like to know how it is going.
Sent from my SCH-I535 using xda premium
Well right now I'm compiling "again". The first time I didn't set enough space in linux for the partition, so I ran out of space in the repo sync. I should be good now, but I think sometime I'm going to have to reinstall my old hard drive, or get a new one. Who knew a 1 TB drive could fill up so fast? xD
Good evening friends.
As the title says, I'm having an issue with using: repo init
My problem started here:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
Click to expand...
Click to collapse
I always get: Product Not Found / Access Denied in the repo file instead of the actual script. Later I was able to obtain the file manually, then got stuck here:
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
Click to expand...
Click to collapse
Output:
Get https://gerrit.googlesource.gom/git-repo/clone.bundle
Click to expand...
Click to collapse
if I'm not mistaken my problem relies in the file: Repo, in line 6 it says: repo_url='https://gerrit.googlesouce.com/git-repo"
Google blocks access for my region, if any one would kindly suggest a way to go around it
So far I've tried the following steps but always failed:
http://stackoverflow.com/questions/7398982/fed-up-trying-to-install-android-source-behind-http-proxy
http://stackoverflow.com/questions/...nit-failed-when-trying-to-download-souce-code
I've also tried setting a proxy for terminal yet no success.
and of course I'm following this guid: http://wiki.cyanogenmod.org/w/Build_for_i9300
Please note I'm asking for a VPN / proxy / way to download the source code and bypass Google restrictions to my region and not to teach me how to build from source (because I sometimes write in a way that make other understand the exact opposite of what I wanted )
Any help appreciated
Have a nice day
DeepUnknown said:
Good evening friends.
As the title says, I'm having an issue with using: repo init
My problem started here:
I always get: Product Not Found / Access Denied in the repo file instead of the actual script. Later I was able to obtain the file manually, then got stuck here:
Output:
if I'm not mistaken my problem relies in the file: Repo, in line 6 it says: repo_url='https://gerrit.googlesouce.com/git-repo"
Google blocks access for my region, if any one would kindly suggest a way to go around it
So far I've tried the following steps but always failed:
http://stackoverflow.com/questions/7398982/fed-up-trying-to-install-android-source-behind-http-proxy
http://stackoverflow.com/questions/...nit-failed-when-trying-to-download-souce-code
I've also tried setting a proxy for terminal yet no success.
and of course I'm following this guid: http://wiki.cyanogenmod.org/w/Build_for_i9300
Please note I'm asking for a VPN / proxy / way to download the source code and bypass Google restrictions to my region and not to teach me how to build from source (because I sometimes write in a way that make other understand the exact opposite of what I wanted )
Any help appreciated
Have a nice day
Click to expand...
Click to collapse
put this in bin
mithun46 said:
put this in bin
Click to expand...
Click to collapse
Thanks I will try it out once I'm back home
Sent from my GT-I9300 using xda app-developers app
mithun46 said:
put this in bin
Click to expand...
Click to collapse
It doesn't work, I still get the same error: Gets https://gerrit.googlesource.com/git-repo/create.bundle
I cannot access because my region is blocked, any other way around it !?
DeepUnknown said:
It doesn't work, I still get the same error: Gets https://gerrit.googlesource.com/git-repo/create.bundle
I cannot access because my region is blocked, any other way around it !?
Click to expand...
Click to collapse
extract this and put it in the folder you want to sync the source then later rename the repo folder to .repo then
in terminal cd to that folder then do the repo init blablabla thing
mithun46 said:
extract this and put it in the folder you want to sync the source then later rename the repo folder to .repo then
in terminal cd to that folder then do the repo init blablabla thing
Click to expand...
Click to collapse
Thanks a lot for your help, repo is being synced right now :highfive:
Repo syncing is still failing, I cannot fetch some items from the android.googlesource.com are failing because I cannot gain access :-/
Now my issue is in" <remot name="aosp" fetch="https://android.googlesource.com" /> in the cm manifest files :-/
Tried to use this to get over the issue but still no success, when I execute: Repo sync
nothing happens, it's like it's failing to connect to the proxy :-/
u r a rd right ?
use xda's build server man
mithun46 said:
u r a rd right ?
use xda's build server man
Click to expand...
Click to collapse
Thanks, but I thought I'd try it my self and see if I'm really going to continue in ROM development, but I have signed up now let's see what I can do. Thanks for your help
DeepUnknown said:
Thanks, but I thought I'd try it my self and see if I'm really going to continue in ROM development, but I have signed up now let's see what I can do. Thanks for your help
Click to expand...
Click to collapse
Bro use this http://216.185.105.35/vpnoneclick/howitworks/howtousemain/howtouselinux/index.html
Sent from my GT-P7300 using xda premium
mithun46 said:
Bro use this http://216.185.105.35/vpnoneclick/howitworks/howtousemain/howtouselinux/index.html
Sent from my GT-P7300 using xda premium
Click to expand...
Click to collapse
Thanks a lot my friend, I will try it tonight for sure, so far I'm waiting to be accepted for Xda-buildserver. Thanks for helping I really appreciate it
mithun46 said:
Bro use this http://216.185.105.35/vpnoneclick/howitworks/howtousemain/howtouselinux/index.html
Sent from my GT-P7300 using xda premium
Click to expand...
Click to collapse
didn't work it turned out it's blocked in Syria :-/
Anyways I have tried several other methods and yet I fail, I suppose I will wait until I'm accepted for an account on Xda build server, I think it's the best solution since no matter what you and I try it always return in failure ...
I suggest you try using SpotFlux to make you appear in the USA ..... I can do whatever I want with it ..... It is compatible with both windows and Mac ..... Let me know what you think
Could any linux experts or guru help me with this? I was using "make clean" in the ubuntu terminal and after that I had this error measage: "bin/sh: command not found". I use the "make clean" cmd many times before without any problem. This error message happened right after using the make clean cmd... I am totally new to linux and android and trying to learning them. Could someonepoint me to the right direction please? Thanks.
LetMeKnow said:
Could any linux experts or guru help me with this? I was using "make clean" in the ubuntu terminal and after that I had this error measage: "bin/sh: command not found". I use the "make clean" cmd many times before without any problem. This error message happened right after using the make clean cmd... I am totally new to linux and android and trying to learning them. Could someonepoint me to the right direction please? Thanks.
Click to expand...
Click to collapse
Your building a kernel??
Try this in the root of your kernel directory
Code:
make mrproper
lj50036 said:
Your building a kernel??
Try this in the root of your kernel directory
Code:
make mrproper
Click to expand...
Click to collapse
Yes, I am trying to learn.... I will try your cmd, thanks.. Do you know what cause that error message?
LetMeKnow said:
Yes, I am trying to learn.... I will try your cmd, thanks.. Do you know what cause that error message?
Click to expand...
Click to collapse
_that would know better then I :silly:
lj50036 said:
_that would know better then I :silly:
Click to expand...
Click to collapse
Thanks lj... A double troubles...:crying: I am trying to learn two environments at the same time,, haha...
LetMeKnow said:
Could any linux experts or guru help me with this? I was using "make clean" in the ubuntu terminal and after that I had this error measage: "bin/sh: command not found". I use the "make clean" cmd many times before without any problem. This error message happened right after using the make clean cmd....
Click to expand...
Click to collapse
Never seen this error when running "make clean". Were you in the correct directory?
(btw, I asked a moderator to move this question out of my kernel thread, as it is unrelated)
lj50036 said:
Your building a kernel??
Try this in the root of your kernel directory
Code:
make mrproper
Click to expand...
Click to collapse
Thanks lj. make mrproper did not solve my issue... I am ended up with a hard way to resolve my issue, hehe...
_that said:
Never seen this error when running "make clean". Were you in the correct directory?
Click to expand...
Click to collapse
Yes, I was in the right directory when I executed the cmd...
_that said:
(btw, I asked a moderator to move this question out of my kernel thread, as it is unrelated)
Click to expand...
Click to collapse
I should not ask the question on your thread from the beginning with any way, sorry. I thought that I could keep all the kernel related information in one place so if someone would like to learn how to build the kernel can access to all the information even with the issues. I am sorry. It is my bad but it is a good intended purpose...
Hi so im a new developer and when i put
fastboot -w flashall a
ll it says is
error: neither -p product specified nor ANDROID_PRODUCT_OUT set
can anyone help
im im trying to make a rom for android 5.0
sorry i didn't post in the developers section but i havnt posted 10 times yet
poptarticus456 said:
Hi so im a new developer and when i put
fastboot -w flashall a
ll it says is
error: neither -p product specified nor ANDROID_PRODUCT_OUT set
can anyone help
im im trying to make a rom for android 5.0
sorry i didn't post in the developers section but i havnt posted 10 times yet
Click to expand...
Click to collapse
Well, I don't use the flash-all script so I can't say for certain, but it seems you need to tell it what to flash (the name of the file) and where it is (path to your out directory).
I would just fasboot flash the boot and system images.
Also, questions never go in the dev section. Q&A is the proper place.
poptarticus456 said:
Hi so im a new developer and when i put
fastboot -w flashall a
ll it says is
error: neither -p product specified nor ANDROID_PRODUCT_OUT set
can anyone help
im im trying to make a rom for android 5.0
sorry i didn't post in the developers section but i havnt posted 10 times yet
Click to expand...
Click to collapse
Just type in cmd: flash-all
gee2012 said:
Just type in cmd: flash-all
Click to expand...
Click to collapse
Ty for the help i ran out of space on my hard drive so i got a fresh Linux so i was wondering is a aosp ROM better or cyanogenmod better both would be lollipop
poptarticus456 said:
Ty for the help i ran out of space on my hard drive so i got a fresh Linux so i was wondering is a aosp ROM better or cyanogenmod better both would be lollipop
Click to expand...
Click to collapse
depends what you want. Its your choice really.
rootSU said:
depends what you want. Its your choice really.
Click to expand...
Click to collapse
I like alot of features
poptarticus456 said:
I like alot of features
Click to expand...
Click to collapse
Then you've answered your own question