[Q] Gecko Build error - Firefox OS Q&A

I getting strange build error: in output no errors in sources but build failed
Log in attached file
Please, help

Geol_ said:
I getting strange build error: in output no errors in sources but build failed
Log in attached file
Please, help
Click to expand...
Click to collapse
Were you able to fix the issues?

feherneoh said:
Most of the times re-sync helps, as Mozilla's sources are sometimes broken
Click to expand...
Click to collapse
Yeah, right. I had some build errors yesterday and a sync fixed it

rm -rf objdir-gecko
Helps most of the times
Also, if you are building for the device - running ./config.sh again often helps.

Related

CM10 error [HELP]

I have thought of every possible way. The last way is to delete the lines but i need ur help to fix it
the error is
Code:
target arm C: libz <= external/zlib/adler32.c
In file included from external/zlib/zlib.h:34:0,
from external/zlib/zutil.h:24,
from external/zlib/adler32.c:9:
external/zlib/zconf.h:395:22: fatal error: limits.h: No such file or directory
compilation terminated.
make: *** [/home/yajnavalkya/cm10/out/target/product/beni/obj/SHARED_LIBRARIES/libz_intermediates/adler32.o] Error 1
you are missin limits.h try repo sync and update your source !
keyur2maru said:
you are missin limits.h try repo sync and update your source !
Click to expand...
Click to collapse
I searched a lot but found nothing
yajnab said:
I searched a lot but found nothing
Click to expand...
Click to collapse
He said to repo sync and then retry...not search, you may have to do a make clean after the repo sync if it still doesn't work
Sent from my SGH-I997 using Tapatalk 2

Compiling error ../repo/android.git is HTML?

I just got everything working for the first time finally and I'm not sure how to get around this. Every compiling/building guide says to execute the following with appropriate URL and branch, but it gives me the (second) below.
Code:
repo init –u git://github.com/user/android.git –b cm-10.2
Code:
[email protected]:~/android/omni$ repo init -u git://github.com/mike64221/android.git -b android-4.4
/home/mike/bin/repo: line 1: syntax error near unexpected token `newline'
/home/mike/bin/repo: line 1: `<!DOCTYPE html>'
I just can't figure it out. Could anyone help?
Yes, I am (attempting) to build Omni.
Hopefully there'll be some possible solutions by morning so I can go ahead and let it work during school.
Sent from my MB886 using Tapatalk
You downloaded the repo utility wrongly. I'm guessing from a dead link (the HTML file is your repo file, not android.git). Look for the correct location and download it again.
GermainZ said:
You downloaded the repo utility wrongly. I'm guessing from a dead link (the HTML file is your repo file, not android.git). Look for the correct location and download it again.
Click to expand...
Click to collapse
What repo utility? The repo Linux package? If so, where should I download it from? I got the current version from the default Crunchbang/Debian repositories.
Sent from my MB886 using Tapatalk
penser said:
What repo utility? The repo Linux package? If so, where should I download it from? I got the current version from the default Crunchbang/Debian repositories.
Sent from my MB886 using Tapatalk
Click to expand...
Click to collapse
I doubt a system package installed itself to your home directory.
Code:
/home/mike/bin/repo
GermainZ said:
I doubt a system package installed itself to your home directory.
Code:
/home/mike/bin/repo
Click to expand...
Click to collapse
Must have copied the link wrong. (Using this guide http://www.techlila.com/compile-android-rom-from-source-code/) Now I'm getting
Code:
bash: /home/mike/bin/repo: Permission denied
EDIT: Nevermind, got it. Just had to do some digging at http://source.android.com/source/downloading.html.
EDIT: Now getting
Code:
fatal: manifest 'default.xml' not available
fatal: remote caf not defined in /home/mike/android/omni/.repo/manifests/default.xml
will be checking responses periodically, can't try for around 6-7 hours.
EDIT: Reading it now, I need to add a remote for "caf". Yay, more digging.
Looked through the default.xml in class and found the caf remote with no fetch, so I'll have to fix that sometime, then hopefully it'll be all good.
Got home, fixed it up, got it working and now there are issues with the omni repos (another person got the same error as me). Hopefully either overnight build or during-school build works. Thanks for your help!

[Q] Error 1 when building CM11 for Xperia U

Hi,
I'm trying to build a CM11 ROM for Xperia U just for learning. My PC is a SAMSUNG N150 which has Lubuntu 13.10 Saucy Salamander running on it, I have set it up to compile Android ROMs following this guide , next I've followed munjeni's guide to build a CM11 ROM for Xperia Go but using this repo of CM11 for Xperia U instead of munjeni's one for Xperia Go. When I reach the last step (make otapackage, or in other words, build the ROM) it seems everything is going OK during the process, but after 8 hours working it stops and says:
Code:
make: *** [/home/alberto/cm11/out/target/product/kumquat/obj/EXECUTABLES/recovery_intermediates/extendedcommands.o] Error 1
And when I check $OUT directory there's no .zip package.
I think that "Error 1" can be related to these errors:
Code:
bootable/recovery/extendedcommands.c:567:96: error: 'BOARD_VOLD_SDCARD_VOLUME_INT' undeclared (first use in this function)
bootable/recovery/extendedcommands.c:567:96: note: each undeclared identifier is reported only once for each function it appears in
bootable/recovery/extendedcommands.c:567:126: error: 'BOARD_UMS_LUNFILE' undeclared (first use in this function)
bootable/recovery/extendedcommands.c:569:96: error: 'BOARD_VOLD_SDCARD_VOLUME_EXT' undeclared (first use in this function)
But I don't know how to fix the errors and get a complete build, so I need the help of any developer.
Thank You
Garcia98 said:
Hi,
I'm trying to build a CM11 ROM for Xperia U just for learning. My PC is a SAMSUNG N150 which has Lubuntu 13.10 Saucy Salamander running on it, I have set it up to compile Android ROMs following this guide , next I've followed munjeni's guide to build a CM11 ROM for Xperia Go but using this repo of CM11 for Xperia U instead of munjeni's one for Xperia Go. When I reach the last step (make otapackage, or in other words, build the ROM) it seems everything is going OK during the process, but after 8 hours working it stops and says:
Code:
make: *** [/home/alberto/cm11/out/target/product/kumquat/obj/EXECUTABLES/recovery_intermediates/extendedcommands.o] Error 1
And when I check $OUT directory there's no .zip package.
I think that "Error 1" can be related to these errors:
Code:
bootable/recovery/extendedcommands.c:567:96: error: 'BOARD_VOLD_SDCARD_VOLUME_INT' undeclared (first use in this function)
bootable/recovery/extendedcommands.c:567:96: note: each undeclared identifier is reported only once for each function it appears in
bootable/recovery/extendedcommands.c:567:126: error: 'BOARD_UMS_LUNFILE' undeclared (first use in this function)
bootable/recovery/extendedcommands.c:569:96: error: 'BOARD_VOLD_SDCARD_VOLUME_EXT' undeclared (first use in this function)
But I don't know how to fix the errors and get a complete build, so I need the help of any developer.
Thank You
Click to expand...
Click to collapse
Have you apply the patches ?
95A31 said:
Have you apply the patches ?
Click to expand...
Click to collapse
Yes, but I haven't applied the optional step because I'm not going to sync CM11 source code daily
Garcia98 said:
Yes, but I haven't applied the optional step because I'm not going to sync CM11 source code daily
Click to expand...
Click to collapse
It look like bootable_recovery.patch is not applyed properly. Check for errors about that
95A31 said:
It look like bootable_recovery.patch is not applyed properly. Check for errors about that
Click to expand...
Click to collapse
Thank you, I will try it tomorrow
__________________________________________________________
When I apply bootable_recovery.patch I got this:
Code:
patching file bootable/recovery/Android.mk
patching file bootable/recovery/default_recovery_ui.c
patching file bootable/recovery/extendedcommands.c
[B]Hunk #1 FAILED at 32.[/B]
Hunk #2 succeeded at 169 (offset 6 lines).
Hunk #3 succeeded at 559 (offset 13 lines).
Hunk #4 succeeded at 1518 (offset 42 lines).
Hunk #5 succeeded at 1591 (offset 42 lines).
Hunk #6 succeeded at 1694 with fuzz 2 (offset 54 lines).
[B]1 out of 6 hunks FAILED -- saving rejects to file bootable/recovery/extendedcommands.c.rej[/B]
patching file bootable/recovery/recovery.c
patching file bootable/recovery/recovery_ui.h
patching file bootable/recovery/ui.c
patching file bootable/recovery/adefines.h
patching file bootable/recovery/minui/lucidaconsole_10x18.h
It seems there's one error with hunk #1, any idea about how to fix it?
A bump on this. Getting similar errors while building CM 11. Any help would be appreciated
Thanks,
AJ
Nothing...
Nothing, I cannot fix the errors, I've searched everywhere about how to fix patch errors but without success, when I try with git apply hardware/semc/patches/bootable_recovery.patch it says the following:
Code:
error: patch failed: bootable/recovery/extendedcommands.c:32
error: bootable/recovery/extendedcommands.c: patch doesn't apply
If I knew C, I would try to have a look to extendedcommands.c (I think that file cause the error). I attach here the file.
Garcia98 said:
Nothing, I cannot fix the errors, I've searched everywhere about how to fix patch errors but without success, when I try with git apply hardware/semc/patches/bootable_recovery.patch it says the following:
Code:
error: patch failed: bootable/recovery/extendedcommands.c:32
error: bootable/recovery/extendedcommands.c: patch doesn't apply
If I knew C, I would try to have a look to extendedcommands.c (I think that file cause the error). I attach here the file.
Click to expand...
Click to collapse
Guys try to use this patch https://github.com/95A31/android_hardware_semc/blob/cm-11.0/patches/bootable_recovery.patch. It is a refreshed version of @munjeni one.
95A31 said:
Guys try to use this patch https://github.com/95A31/android_hardware_semc/blob/cm-11.0/patches/bootable_recovery.patch. It is a refreshed version of @munjeni one.
Click to expand...
Click to collapse
Thanks a lot. The patch worked with no errors. Now starting the build
Cheers,
AJ
@95A31 Can you please take a look at this error? http://pastebin.com/AGm8QAdR
EDIT: I guess the error might be due to wrong path specified to toolchain. I am trying again with another path. I'll let youknow how that goes
Thanks
AJ
95A31 said:
Guys try to use this patch https://github.com/95A31/android_hardware_semc/blob/cm-11.0/patches/bootable_recovery.patch. It is a refreshed version of @munjeni one.
Click to expand...
Click to collapse
Thank you very much, patch works fine and I've compiled kernel correctly
But now I get another error, it has stopped building and say this:
Code:
make: *** [/home/alberto/cm11/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-with-local.dex] Ended (killed)
I cannot find any error in terminal
I've checked $OUT directory and there's no zip, kernel is OK, but in system there are a lot of missing files.
Also I've searched for classes-with-local.dex but I don't find it anywhere, in /JAVA_LIBRARIES/framework_intermediates doesn't appear.
I've checked if all patches were applied correctly and I haven't found anything wrong.
Please I need help (other time )
Garcia98 said:
Thank you very much, patch works fine and I've compiled kernel correctly
But now I get another error, it has stopped building and say this:
Code:
make: *** [/home/alberto/cm11/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-with-local.dex] Ended (killed)
I cannot find any error in terminal
I've checked $OUT directory and there's no zip, kernel is OK, but in system there are a lot of missing files.
Also I've searched for classes-with-local.dex but I don't find it anywhere, in /JAVA_LIBRARIES/framework_intermediates doesn't appear.
I've checked if all patches were applied correctly and I haven't found anything wrong.
Please I need help (other time )
Click to expand...
Click to collapse
Mh... I can not understand this error. I suggest 1) build CM from scratch 2) Check if you are properly include the
proprietary files
Thanks a lot to your patch. I did encountered some small error but I compiled now successfully. Thanks
Cheers,
AJ
95A31 said:
Mh... I can not understand this error. I suggest 1) build CM from scratch 2) Check proprietary files
Click to expand...
Click to collapse
I will try option 1) whenever I can, it's more simple than option 2)
Anyway thanks
Abhinav2 said:
Thanks a lot to your patch. I did encountered some small error but I compiled now successfully. Thanks
Cheers,
AJ
Click to expand...
Click to collapse
You are welcome

Syntax error when building from android source

First of all, I didn't modified any file so it seems that it was already downloaded with syntax error. I followed the instructions from here and here when preparing the building environment. When I run make -j8 I got the error:
FAILED: out/target/common/obj/all-event-log-tags.txt
/bin/bash -c "build/tools/merge-event-log-tags.py -o out/target/common/obj/all-event-log-tags.txt frameworks/base/core/java/android/app/admin/SecurityLogTags.logtags frameworks/base/core/java/android/content/EventLogTags.logtags frameworks/base/core/java/android/net/EventLogTags.logtags frameworks/base/core/java/android/speech/tts/EventLogTags.logtags frameworks/base/core/java/android/webkit/EventLogTags.logtags frameworks/base/core/java/com/android/internal/logging/EventLogTags.logtags frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/EventLogTags.logtags frameworks/base/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags frameworks/base/services/core/java/com/android/server/EventLogTags.logtags frameworks/base/services/core/java/com/android/server/am/EventLogTags.logtags frameworks/ex/common/java/com/android/common/GoogleLogTags.logtags frameworks/native/services/surfaceflinger/EventLog/EventLogTags.logtags frameworks/opt/telephony/src/java/com/android/internal/telephony/EventLogTags.logtags packages/apps/QuickSearchBox/src/com/android/quicksearchbox/EventLogTags.logtags packages/apps/Settings/src/com/android/settings/EventLogTags.logtags packages/providers/CalendarProvider/src/com/android/providers/calendar/EventLogTags.logtags packages/providers/ContactsProvider/src/com/android/providers/contacts/EventLogTags.logtags packages/services/Telephony/src/com/android/phone/EventLogTags.logtags system/bt/main/../EventLogTags.logtags system/core/liblog/event.logtags system/core/libsysutils/EventLogTags.logtags system/core/logcat/event.logtags system/core/logd/event.logtags"
File "build/tools/merge-event-log-tags.py", line 51
except getopt.GetoptError, err:
^
SyntaxError: invalid syntax
[ 0% 92/35341] host C++: aapt <= frameworks/base/tools/aapt/Main.cpp
ninja: build stopped: subcommand failed.
16:27:01 ninja failed with: exit status 1
make: *** [build/core/main.mk:21: run_soong_ui] Error 1
#### make failed to build some targets (53 seconds) ####
Click to expand...
Click to collapse
In this merge-event-log-tags.py file, at line 51, it has:
try:
opts, args = getopt.getopt(sys.argv[1:], "ho:m:")
except getopt.GetoptError, err:
print str(err)
print __doc__
sys.exit(2)
Click to expand...
Click to collapse
Also, this is my first time posting here and also first time trying to build android so if you guys need more information to help troubleshoot this, please let me know
fabiotk said:
First of all, I didn't modified any file so it seems that it was already downloaded with syntax error. I followed the instructions from here and here when preparing the building environment. When I run make -j8 I got the error:
In this merge-event-log-tags.py file, at line 51, it has:
Also, this is my first time posting here and also first time trying to build android so if you guys need more information to help troubleshoot this, please let me know
Click to expand...
Click to collapse
I've got this same problem trying to build 8.1.0. Did you (or anyone else) ever figure this out?
http://dpaste.com/0C1QWKE
UnderSampled said:
I've got this same problem trying to build 8.1.0. Did you (or anyone else) ever figure this out?
http://dpaste.com/0C1QWKE
Click to expand...
Click to collapse
Hello, yes, I solved it by making Python2 the default version instead of python3
Code:
sudo ln -sf /usr/bin/python2 /usr/bin/python

Ninja error while building custom rom from source

Hello,
As I am trying to build a rom for the xperia x, I can,t find a solution to a ninja error:
Code:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/.txt' missing and no known rule to make it
Does anyone know what is causing this?
Any help is appreciated.
https://github.com/arrayfire/arrayfire/issues/1497
kalel29 said:
https://github.com/arrayfire/arrayfire/issues/1497
Click to expand...
Click to collapse
Thanks for the reply, saw that post too but it didn't solve the error.
I solved it using "make update-api && make -j4"
But this gave me also other errors later, the weird thing is that this only happened with the ResurrectionRemix source, since I started working on LOS there are no such errors.
But thanks anyway:good:

Categories

Resources