yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] DNRDustin:
'out/target/common/obj/APPS/QuickSearchBox_intermediates/classes.dex' as 'classes.dex'...

target Dex: android.core.tests.libcore.package.libcore.no-core-tests-res

target Dex: android.core.tests.libcore.package.org.no-core-tests-res

Hangin there for a really long time. Computer is barely responsive, ram and hard disk are all full bore. 19+ hours into build process. Will it just keep trucking along, & finnish! ?
[Android Q&A, Help & Troubleshooting] Uzumaki99:
In fact, the link is https://storage.googleapis.com/git-repo-downloads/repo

so follow these steps

$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
[Android Q&A, Help & Troubleshooting] Slimegod:
How do I fix this error https://pastebin.com/PQdqKm4T
[Android Q&A, Help & Troubleshooting] winxuser:
For aosp you will need to build kernel separately
[Android Q&A, Help & Troubleshooting] Slimegod:
I did that already. Like do I have to plug it in the AOSP directory or actually build it within the directory then build the ROM?
[Android Q&A, Help & Troubleshooting] winxuser:
Compile the kernel. And copy the kernel file to the build diresctory
[Android Q&A, Help & Troubleshooting] Slimegod:
Yeah that's exactly what I did. Unless I have it in the wrong directory. It's in the kernel directory of the AOSP folder.
[Android Q&A, Help & Troubleshooting] winxuser:
Copy the kernel file from kernel/arch/arm/boot(I think) to

/home/slimegod/AOSP/out/target/product/d2lte ..that should stop that error
[Android Q&A, Help & Troubleshooting] Slimegod:
Gonna try it and see later. Do I have to bring over the zImage also?
[Android Q&A, Help & Troubleshooting] winxuser:
No just the file names kernel
[Android Q&A, Help & Troubleshooting] Slimegod:
Cool, thanks bro. AOSP is different from building cm and it sucks.
[Android Q&A, Help & Troubleshooting] Slimegod:
K that worked, I found the kernel file in the out/target/product/d2lte file of the kernel build I did. This is my new error https://pastebin.com/8jwxkuTF. That make error it's giving is in the directory that it's giving the error from. I'm confused.

Ok so I got past that error. Apparently switching to build AOSP 4.4.2 instead of 4.4.4 did the trick. I have a new error though, https://pastebin.com/ezPpsKa9. Was thinking of just switching the file out with a build that I did that already has it.
[Android Q&A, Help & Troubleshooting] MZO:
Problems while building

Hey guys. I am having issues with building PAC 5.1.1 or any ROM (Carbon is my first priority)

The issue is maybe that I don't have AndroidProducts.mk file in my device tree.

Amd Enhanced NFC (.mk) is also missing

And lunch CMD gives me error saying do you have the right manifest or whatever :/
[Android Q&A, Help & Troubleshooting] MisterMeJ:
Hello,

also a problem with building.

Can build from source (AICP) for my device (HTC One M8).

Trying to build with a 5.1 toolchain instead of 4.9. (kernel and ROM)

Can build stock AICP and can build AICP with uber 4.9, but cant build with 5.1 from uber, hyper, linaromod, saberlinaro etc....

Got the following error:

cc1: all warnings being treated as errors

build/core/binary.mk:699: recipe for target '/home/mistermej/aicp/out/target/product/m8/obj/STATIC_LIBRARIES/libbt-brcm_stack_intermediates/./gatt/gatt_sr.o' failed

make: *** [/home/mistermej/aicp/out/target/product/m8/obj/STATIC_LIBRARIES/libbt-brcm_stack_intermediates/./gatt/gatt_sr.o] Error 1

make: *** Waiting for unfinished jobs....

build/core/binary.mk line699 is --> -include $(c_objects:%.o=%.P)

This is part of

###########################################################

## C: Compile .c files to .o.

###########################################################

c_arm_sources := $(patsubst %.c.arm,%.c,$(filter %.c.arm,$(my_src_files)))

c_arm_objects := $(addprefix $(intermediates)/,$(c_arm_sources:.c=.o))

c_normal_sources := $(filter %.c,$(my_src_files))

c_normal_objects := $(addprefix $(intermediates)/,$(c_normal_sources:.c=.o))

$(c_arm_objects): PRIVATE_ARM_MODE := $(arm_objects_mode)

$(c_arm_objects): PRIVATE_ARM_CFLAGS := $(arm_objects_cflags)

$(c_normal_objects): PRIVATE_ARM_MODE := $(normal_objects_mode)

$(c_normal_objects): PRIVATE_ARM_CFLAGS := $(normal_objects_cflags)

c_objects := $(c_arm_objects) $(c_normal_objects)

ifneq ($(strip $(c_objects)),)

$(c_objects): $(intermediates)/%.o: $(TOPDIR)$(LOCAL_PATH)/%.c $(yacc_cpps) $(proto_generated_headers) \

$(LOCAL_ADDITIONAL_DEPENDENCIES) \

| $(my_compiler_dependencies)

$(transform-$(PRIVATE_HOST)c-to-o)

-include $(c_objects:%.o=%.P)

endif

Sources:

https://github.com/AICP

https://bitbucket.org/hyper-toolchains/hyper-linaro-arm-eabi-5.1

https://bitbucket.org/UBERTC/arm-eabi-5.1

https://bitbucket.org/UBERTC/arm-linux-androideabi-5.1
[Android Q&A, Help & Troubleshooting] obsolete1:
Had the same problem with SOKP, Vanir has a fix

https://github.com/VanirAOSP/extern...mmit/0f576b56a4196c8adab10ea3cbbd66c65c73bd5a

Hope this helps
[Android Q&A, Help & Troubleshooting] Slimegod:
Anyone can help me with this error https://pastebin.com/zc7KJLub. How do I fix this. I know where the error is but the makefile to look for it to fix it I'm not sure of.
[Android Q&A, Help & Troubleshooting] obsolete1:
Look to see if minui.h is there. It should be

YOUR_SOURCE/bootable/recovery/minui/minui.h
[Android Q&A, Help & Troubleshooting] Slimegod:
And if it's not can I bring it over from another d2lte build? Also if it is why is it throwing that error.

Edit: found a omni comment on the fix https://gerrit.omnirom.org/#/c/5745/. My question is where is android_bootable_recovery/minui/minui.h in the file you just mentioned? If it's a noob question my bad I've build ROMs from source before by not AOSP and never ran into this problem.

Edit 2: why is it when I build cm it builds the obj files but AOSP they don't get built https://pastebin.com/97ZsuTuv. I mean I'm trying to think of a option besides bringing over file from another build to fix this error, can't think of any except in the makefile but where I'm not sure.
[Android Q&A, Help & Troubleshooting] Pankaj_94:
I have sandisk 8GB memory card since from yesterday all of a sudden my phone started turning on & off (Rebooting) after ever two minutes it reeboots automatically then i removed my memory card it worked fine no reboots its still working without memory card so i formatted my memory card and put it back again in my phone but the same problem still persist my phone started rebooting again please help! What should i do? Is my memory card corrupted? But when i put that memory card in my another phone it worked properly whats wrong with my phone? Please help?

Sent from my GT-S5282

Sent from my GT-S5282
[Android Q&A, Help & Troubleshooting] :
Import includes file: /home/yeshwanthvshenoy/jdc/out/target/product/falcon/obj/EXECUTABLES/ssh-keygen_intermedia
tes/import_includes
Export includes file: external/openssh/Android.mk -- /home/yeshwanthvshenoy/jdc/out/target/product/falcon/obj/EX
ECUTABLES/ssh-keygen_intermediates/export_includes
Import includes file: /home/yeshwanthvshenoy/jdc/out/target/product/falcon/obj/EXECUTABLES/sshd_intermediates/im
port_includes
Export includes file: external/openssh/Android.mk -- /home/yeshwanthvshenoy/jdc/out/target/product/falcon/obj/EX
ECUTABLES/sshd_intermediates/export_includes
make: *** No rule to make target '/home/yeshwanthvshenoy/jdc/out/target/product/falcon/obj/SHARED_LIBRARIES/libq
dutils_intermediates/export_includes', needed by '/home/yeshwanthvshenoy/jdc/out/target/product/falcon/obj/SHARE
D_LIBRARIES/libsurfaceflinger_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Symlink: /home/yeshwanthvshenoy/jdc/out/target/product/falcon/system/bin/su -> /system/xbin/su
Export includes file: frameworks/native/services/surfaceflinger/Android.mk -- /home/yeshwanthvshenoy/jdc/out/tar
get/product/falcon/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/export_includes
#### make failed to build some targets (22:42 (mm:ss)) ####
yeshwanthvshenoy@srisurya95:~/jdc$

Getting this error on building CM12.1. Can anyone help?

[MENTION=5216756]jackeagle[/MENTION] [MENTION=5321417]MasterAwesome[/MENTION] [MENTION=4139665]martinusbe[/MENTION]
[Android Q&A, Help & Troubleshooting] obsolete1:
Answer to edit #1: From your android source folder (I'm assuming you named it AOSP or something similar)

AOSP/bootable/recovery/minui/

then your minui.h file should be here.

You shouldn't have to copy it from another source it should be there. What does you manifest.xml look like? There may not be a "recovery" source in your manifest which would explain why its not finding the file. Look at line 30 of CMs manifest for an example.

Answer to edit #2: More of a question are you using the same kernel sources for CM and for you AOSP build?
[Android Q&A, Help & Troubleshooting] Slimegod:
To answer the 1st half of your question the minui.h file is there. I can't look at my manifest atm cause I'm not in front of my computer. I'm using a prebuilt cm-11 kernel I built separately. So the AOSP kernel sources I'm assuming are in the default manifest. Here's the AOSP source I'm using https://github.com/SuperNexus/android_manifest?files=1
[Android Q&A, Help & Troubleshooting] MZO:
Built CarbonROM 5.1.1 for jfltexx. Making went fine but after flash it doesn't boot. It stays on init logo (boot logo)... Any guesses?

Sent from my GT-I9505
[Android Q&A, Help & Troubleshooting] :
Hi, I was trying to build benzo for falcon and ended up with the following error:

Checking build tools versions...************************************************************You are attempting to build with an unsupported JDK. You use OpenJDK but only Sun/Oracle JDK is supported.Please follow the machine setup instructions at https://source.android.com/source/download.html************************************************************build/core/main.mk:199: *** stop. Stop.#### make failed to build some targets (02:13 (mm:ss)) ####real 2m12.594suser 0m3.225ssys

But my java -version shows :

yeshwanthvshenoy@srisurya95:~$ java -versionjava version "1.7.0_79"OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.10.2)OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)yeshwanthvshenoy@srisurya95:~$
[Android Q&A, Help & Troubleshooting] obsolete1:
So it looks like you can cherry-pick that commit and it should build, or you can manually go in there and edit the minui.h file. It is just comments out a small section.
[Android Q&A, Help & Troubleshooting] Slimegod:
Ok so like when I built cm all the obj files were built, but why with AOSP they aren't http://pastebin.com/97ZsuTuv
[Android Q&A, Help & Troubleshooting] MZO:
After flashing carbon rom I made for i9505 it won't show anything other than statusbar. Once it boots the display goes black and only statusbar can be seen.

Sent from my GT-I9505
[Android Q&A, Help & Troubleshooting] Slimegod:
What is this error from and how do I fix it :what: http://pastebin.com/9xhV8z7G
[Android Q&A, Help & Troubleshooting] draekko:
I was wondering how you fixed this error? currently getting the same and google is rather mute on the subject.
[Android Q&A, Help & Troubleshooting] :
!!

Well I bought a fast laptop with i5 ivy-bridge and the problem was solved!
[Android Q&A, Help & Troubleshooting] draekko:
I fixed it (i think, since it got past the crash dump point) by adding -march=i686 to the cflags and remove mention of sse build/core/combo/HOST_linux-x86.mk

Found the idea from the suggestions from this link : https://code.google.com/p/android/issues/detail?id=58663

Now to wait for it to finish compiling.
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
You didnt get kernel sources. Get those first then rebuild.
[Android Q&A, Help & Troubleshooting] Slimegod:
Yeah I got that fixed, just stuck on this http://pastebin.com/97ZsuTuv how do I fix this. I know where the error is but the makefile to look for it and fix it I'm not sure.
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
In your log, there's also an error about kernel modules, you can try fixing it by enabling them:

make defconfig

Inside the .config file, find something like "# CONFIG_MODULES is not set" and edit it as-

CONFIG_MODULES=y

then try rebuilding kernel? You can also make the build use prebuilt kernel.

As for the final error, go to bootable/recovery-cm/Android.mk and remove/comment out first and last lines saying "ifeq ($(call my-dir),$(call project-path-for,recovery))" and "endif" respectively. Then try rebuilding.
[Android Q&A, Help & Troubleshooting] Slimegod:
I thought I set it to use my prebuilt kernel in the kernel.mk file (build/core/task). Also where is the #CONFIGS_MODULE located? Also I can't find recovery-cm/Android.mk in the bootable file.
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
If you are building from kernel sources then cd into kernel source and run "make defconfig" and it will give you the .config file (its hidden, so enable showing of hidden folders).

But if you are building from prebuilt kernel image (as you said), then you can just ignore this error ;)
[Android Q&A, Help & Troubleshooting] Slimegod:
Cool, and the second edit you mentioned I'm trying to find. Can't seem to find.
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
There should be a folder called "bootable" In the root of your source tree.

Go into it and open the folder that says "recovery" (doesnt necessarily have to say "recovery-cm". I was building some other source and just copy-pasted paths so there can be slight alteration in names). And there you should find the file "Android.mk". Comment out the conditionals as I said in my previous post.

Although, honestly, this error isnt really supposed to occur. You should probably try running repo sync again to sync up with code. But otherwise you can try out my fix and hopefully it should get you past this.
[Android Q&A, Help & Troubleshooting] Slimegod:
Yeah I'm building 4.4.2 for my s3 using supernexus source. I get different errors though when in use S4 4.4.4 AOSP source. Kinda weird.

Edit: your fix seemed to work. Its getting further into the build :thumbup:

Edit 2: what is this error derived from, https://pastebin.com/b7W5n14W
[Android Q&A, Help & Troubleshooting] MZO:
Does anyone get framework warnings like thousands of them and the build is all black? Everything is black instead of status bar and navbar

Sent from my GT-I9505
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
Look inside external/busybox/android/selinux/stubs.c and external/busybox/include/libbb.h.

Both of these have "security_compute_relabel" defined.

I am guessing that some patch must have included the String. You will have to find and reverse that patch. This keeps getting worse.
[Android Q&A, Help & Troubleshooting] Slimegod:
Seems you know your stuff, I just wanted to know something. I hot this error a while ago building 4.4.4 can you tell me what it is? http://pastebin.com/9xhV8z7G
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
It means that the script is trying to build kernel but it couldnt find the kernel sources.

Create a folder called "kernel" inside your root directory and download the kernel sources into it and try building again.
[Android Q&A, Help & Troubleshooting] Slimegod:
I'm gonna do a new build using 4.4.4 source and see what I run into. I've never built AOSP from source and it's totally different then building for cm.

Edit: of it's a prebuilt kernel, which mine is, it already has a kernel folder named d2. Would I have to rename that?
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
Try renaming it to d2-kernel

Device folder structure name and kernel folder name should not be same
[Android Q&A, Help & Troubleshooting] Slimegod:
Ok I'm getting this error https://pastebin.com/rjcMCJBw. Has to with toolchain cause I see the error.
[Android Q&A, Help & Troubleshooting] Slimegod:
Ok anyone facing this error here is the explanation and the fix on page 15 http://xdaforums.com/showthread.php?t=2792872 here is the comment https://github.com/MeltedButter/external_busybox/commit/e121a8a5e1bb8af57282edc720d1ede21809ebe6
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
Yes, its toolchain related error. First, go in prebuilts/gcc/linux-x86/arm and check out what toolchains are avilable. There are two approaches you can use:

1) Go to "build" folder and copy out "buildspec.mk.default" to root directory and rename it to "buildspec.mk". Open it and add your toolchain prefix in front of "TARGET_TOOLS_PREFIX" (remember to uncomment this line first). Specify other properties such as product name etc etc and build again.

2) Go to build folder and open envsetup.sh. Search for line that looks like "arm) toolchaindir=arm/arm-linux-androideabi-$targetgccversion/bin". Replace the path to be directed to your toolchain directory.

Remember, there are two toolchains that we use: arm-linux-androideabi for compiling ROM and arm-linux-eabi for compiling kernel.

For more information, you can refer to this tutorial: http://xdaforums.com/chef-central/android/guide-switching-to-custom-toolchain-t2927662
[Android Q&A, Help & Troubleshooting] Slimegod:
Any explanation as to why my 4.4.2 build has no issue finding the the toolchain path but my 4.4.4 build does? I'm just curious.
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
This normally happens when source uses toolchains other than the default NDK by google, in which case the name has to be manually changed. For ex: If a build has linaro as toolchain then you would have to manually change the toolchain's suffix.

Again, its difficult to really say the correct reason unless I have a look at the source code myself. But the above is usually the case (especially when you are porting to a device which the ROM hasnt yet been made for).
[Android Q&A, Help & Troubleshooting] Slimegod:
Yeah I checked out the default.xml and prebuilt/gcc of both source codes and they both use Linaro so I'm stumped.
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
Well you also have to declare the suffix of new toolchain (as told in tutorial I linked in one of replies above). There could be possibility that it was done in case of 4.4.2 ROM and not in case of 4.4.4 (as I said, its really difficult to say the exact reason unless I see the source code for myself. So you are left with experimentation as an option to get to reason).

If you are having troubles using custom toolchains, you can also just get google's NDK toolchains and use those (since it appears that your ROM isnt configured to be directed to Linaro, as far as I can guess (could be greatly wrong everywhere). So in this case, it should atleast have path defined to default toolchain and so if you get default toolchain, no changes in build scripts should be required (again, all guesses and flukes. its all your own experimentation).
[Android Q&A, Help & Troubleshooting] Slimegod:
Thanks for the explanation :thumbup:
[Android Q&A, Help & Troubleshooting] Slimegod:
I'm getting this framework-res error https://pastebin.com/F7bTrbFd. I see the xml errors and the "add resources". Just don't know where to get it from.
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
Go to each line it is telling and manually delete it.
[Android Q&A, Help & Troubleshooting] MZO:
Ubuntu gets stuck on lock screen after 2-3hrs pass on building 5.1, is this because of low RAM? Someone suggested me to lower jflag. I used -j7 with 3.2GB RAM

Sent from my GT-I9505
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
What processor do you have?

Try increasing swap size? 4GB RAM is what is recommended.
[Android Q&A, Help & Troubleshooting] MZO:
I got i7 3770 with HDD ... 3.2GB RAM allocated to virtualbox and 7 cores allocated. I built pac fine without amy j flag tho'

Sent from my GT-I9505
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
Hmmm... I am having an almost same processor (4770k, not much difference).

Disable the lockscreen (and auto screen turn-off and anything as such). During build process, the cpu is practically eaten out raw (even the cursor starts lagging in my case, since I put in all the cores to use). So see without lockscreen what is actually happening ;)
[Android Q&A, Help & Troubleshooting] MZO:
Yeah. Great idea! :)

Edit: since I didn't use J flag. I'm using CrDroid now ;) bug less and neat!!

Sent from my GT-I9505
[Android Q&A, Help & Troubleshooting] Slimegod:
Ok I'm lost with this error. Google isn't providing any answers about it. https://pastebin.com/RG8GZUbc
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
Open d2lteRIL.java and find "private boolean isGSM" (or "private static boolean isGSM") and change it to "public static boolean isGSM"
[Android Q&A, Help & Troubleshooting] Slimegod:
Yeah I fixed it, found a commit on it. Heres a new error https://pastebin.com/DWnn7aED
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
This is an error inside frameworks/av in library libstagefright. You will have to get the commit thats causing this error and revert it (or try resyncning code. The author probably should have fixed this). Otherwise there isn't a particular fix for this (unfortunately).
[Android Q&A, Help & Troubleshooting] Slimegod:
Got you, ok :thumbup:
[Android Q&A, Help & Troubleshooting] Slimegod:
Been looking online to see if I can get the actual patch before to changes were made to the OMXCodec.cpp file (the file that's throwing the error) and I can't seem to find it. Just a bunch of comments and not the "original" revert. So I have no clue on what needs to be changed.
[Android Q&A, Help & Troubleshooting] Slimegod:
I noticed there isn't BoardConfigCommon.mk file in me d2lte, and reason why?
[Android Q&A, Help & Troubleshooting] Slimegod:
I've added it the toolchain in my path in both place but still getting this error https://pastebin.com/6t0mk4Jd
[Android Q&A, Help & Troubleshooting] Slimegod:
Sorry for the double post. This is my directory where the toolchains are located.
[Android Q&A, Help & Troubleshooting] RMarkwald:
Remember Linux is case-sensitive, I'm not seeing that the L is capitalized, since you have named those directories Linaro-4.x, in the screenshot it looks like the L is lower case.
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
Have a look at this post:

http://xdaforums.com/showpost.php?p=53049689&postcount=266 ;)

EDIT:

By RMarkwald's reply, I think that is what is causing the problems (didnt notice it earlier :rolleyes: ). Anyway, try changing to "arm/Linaro-4.7/bin".
[Android Q&A, Help & Troubleshooting] Slimegod:
I'm still getting the same error guys even after the edit.
[Android Q&A, Help & Troubleshooting] Ciuffy:
How about exporting

PATH=$PATH:/prebuilts/gcc/linux-x86/arm/Linaro-4.7/bin/

Or

CROSS_COMPILE=/prebuilts/gcc/linux-x86/arm/Linaro-4.7/bin/

when running the make utilities. The path shown in the error looks very strange, like a conflict. I remember I solved a similar issue this way.
[Android Q&A, Help & Troubleshooting] Slimegod:
Gonna give it a try. Your referring to envset.sh correct? Should I leave the changes I've made?
[Android Q&A, Help & Troubleshooting] Ciuffy:
Ah, not exactly. To make the entire project I usually run "make ARCH=arm CROSS_COMPILE=/toolspath/prefix-", however when I run " brunch" for the Cyanogenmod I have no problems.

I haven't been following your case, what are you building? Is there a specific command you are running with scripts provided by the team who built the source code (e.g. envsetup.sh and others for CM)
[Android Q&A, Help & Troubleshooting] Slimegod:
I'm building AOSP 4.4.4 using S4 source for my Sprint s3. The command I run is ". build/envsetup.sh" then "make otapackage -j1". Pretty basic. I mentioned a page or 2 back that when I build using supernexus 4.4.2 AOSP source I don't have a issue at all with toolchain.
[Android Q&A, Help & Troubleshooting] Slimegod:
Was wondering if this comment would be helpful in fixing the error OMXCdoc.cpp I was receiving a few days ago http://review.cyanogenmod.org/#/c/53376/
[Android Q&A, Help & Troubleshooting] Jaskaranbir Singh:
Yeah you can try syncing with it ;)

make a temp backup of frameworks/av somewhere just in case.....