yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] HTCDreamOn:
Hey :) thanks, that was the command I was using anyway so I don't know why it chose to build the chromium stuff. I found a flag I needed to disable it though. The reason I'm only building recovery right now is because the CM porting guide suggests getting a recovery up and running first before trying to get the whole ROM running. Unfortunately although the recovery.img I built installs with no errors, it won't run and I don't know how to find out why. Do you know of any debugging tools which can help with such an early stage in the boot sequence?
[Android Q&A, Help & Troubleshooting] demkantor:
Huh, so you get a recovery.img out of the build and you can flash it with fastboot just fine but you get a blank screen? If fast boot let's you flash the image then its within the size parameter of recovery partition so that's not it. Is adb working? You can try and debug the logcat or see if your able to run it in eclipse maybe for debugging purpose. Otherwise try asking in a twrp/cwm build thread, they may have more experience with it

Hope all works out!
[Android Q&A, Help & Troubleshooting] HTCDreamOn:
I flashed it with the flash_image command in adb shell actually because the Dream needs engineering SPL to flash in fastboot which I don't have, but same still applies that it flashed it fine like you said but then it just sits on the G1 logo.Unfortunately neither adb nor fast boot works, in my experience adb never works until after the splash screen i.e. in recovery, booting, or in Android. There must be some JTAG tools which let me debug before recovery is booted? I'll ask around like you suggested, I reckon the CM dev IRC channel should help too.
[Android Q&A, Help & Troubleshooting] ##W4TCH0UT##:
thanks. i also found the arm-eabi-4.7 toolchain and it worked too!!!! btw, whenever i use make in the kernel source it starts building,but then suddenly it shows 'restart config' and i have to write the .config file again. how can i prevent this?
[Android Q&A, Help & Troubleshooting] HTCDreamOn:
Is there not a defconfig for your device? What do you mean you have to rewrite it? If you mean settings aren't saved in menuconfug then you can select save as an alternative file at the bottom of menuconfig, name it the same name, then replace the original one with it and run make device_defconfig again.
[Android Q&A, Help & Troubleshooting] ##W4TCH0UT##:
there is a defconfig for my device. What i mean is , i copied mydevice_defconfig from arch/arm/configs to the kernel source and i renamed it to .config. now whenever i run make, it starts building,but after some time it says restart config and i have to write the .config file myself. is this normal?
[Android Q&A, Help & Troubleshooting] HTCDreamOn:
I'm not sure, I've never done that, I just leave it as device_defconfig and whenever I want to make changes I'll edit that file and run make device_defconfig every time. I suggest you do the same, just use the defconfig. It's probably getting confused because there might be changes in the .config but not in the defconfig or something.
[Android Q&A, Help & Troubleshooting] Nekator:
run

make oldconfig

and watch if it happens again.

oldconfig uses the last .config that was used

sent from my paranoid N4
[Android Q&A, Help & Troubleshooting] ##W4TCH0UT##:
yes it happens again.
[Android Q&A, Help & Troubleshooting] Nekator:
Weird.

sent from my paranoid N4
[Android Q&A, Help & Troubleshooting] ##W4TCH0UT##:
i solved that error. how can i clean all compiled files of previous build?
[Android Q&A, Help & Troubleshooting] HTCDreamOn:
make clean && make mrproper
[Android Q&A, Help & Troubleshooting] ##W4TCH0UT##:
after running that, i get this error when i try to compile, seems like an error in the ndk toolchain:

/home/w4tch0ut/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-ld: internal error in relocate_special_relocatable, at /s/ndk-toolchain/src/build/../binutils/binutils-2.22/gold/arm.cc:9899
make[1]: *** [arch/arm/kernel/traps.o] Error 1
make: *** [arch/arm/kernel] Error 2

help.
[Android Q&A, Help & Troubleshooting] aweosomeabhijeet:
Any solution yet?

I've found that the problem is due to adreno libs. I downloaded CM11 of a similar device, replaced adreno libs. The log changed, surface flinger didn't die, bootanimation service doesn't start. Any solutions for it?
[Android Q&A, Help & Troubleshooting] a2441918:
What rom aare u building mate?
[Android Q&A, Help & Troubleshooting] juliusssss:
Hi,

I want to compile TWRP for redmi 1s, but i take this error:

Target boot image: /home/julius/omni/out/target/product/armani/boot.img
error: could not load device tree image '/dt.img'
make: *** [/home/julius/omni/out/target/product/armani/boot.img] Error 1
make: *** Se espera a que terminen otras tareas....
external/busybox/debianutils/mktemp.c:96: warning: warning: mktemp() possibly used unsafely; consider using mkstemp()

I need help. Thanks.
[Android Q&A, Help & Troubleshooting] a2441918:
Did u create a init file in the config folder of ur device tree? If not, check out omni rom tree and create a similar one like tat. It is to twrp the device.

Sent from my SOKP powered Galaxy S 4 i9500.
[Android Q&A, Help & Troubleshooting] pandasa123:
I'm building OmniROM for the evita, and for some reason, everything works but the storage mounting. For example, screenshots say "could not save screenshot. Internal storage may be in use"

Any ideas? I'm using the cm fstab.qcom and init.qcom
[Android Q&A, Help & Troubleshooting] ##W4TCH0UT##:
can anyone a post a guide on how to setup build environment on 32 bit systems.
[Android Q&A, Help & Troubleshooting] Nekator:
from cm wiki:

sent from my paranoid N4
[Android Q&A, Help & Troubleshooting] ##W4TCH0UT##:
Noooooo......
[Android Q&A, Help & Troubleshooting] phanitej:
Finally after multiple attempts and few error fixing for days, i was able to compile a ROM from the AOSP sources for Nexus 5. But when installing the ROM the phone just bootloops. I am unable to understand what is the problem with it. Please help me, below is the last_kmsg i found when i booted into my primary ROM.

ERROR LOGS
[Android Q&A, Help & Troubleshooting] demkantor:
Looks like a kernel issue, try flashing your ROM and then a known working compatible kernel on top of it for a quick test. Best guess is some driver issue but I'm no expert in this, never seen wdog_bark as a reason for a kernel panic but my guess is a quick Google search will give you some more specifics, unfortunately too busy to search now myself so post back if you find a solution for others

Best of luck!
[Android Q&A, Help & Troubleshooting] phanitej:
I already tried two working kernels, no go. Trying to get the log now. Thanks for the response. Will try to check and see if i can find something in google.
[Android Q&A, Help & Troubleshooting] phanitej:
Found that i had some kernel files missing. Not sure how to do it. Trying to compile from the sources of Purity ROM. Just noticed that when doing a repo sync for few things it says

Fetching project platform/prebuilts/gcc/darwin-x86/x86/x86_64-linux-android-4.7[HIDE] % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 Re 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0[/HIDE]curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.

There are few other similar prebuilts that throw the error. Is it fine?
[Android Q&A, Help & Troubleshooting] a2441918:
Yes until the sync doesnt stop nd not throw you any fatal errors its fine.
[Android Q&A, Help & Troubleshooting] rodman01:
From now to then my build is pausing without errors on initial build info "screen".

I am building with xubuntu 14. I have several and separate source trees on my pc but all of them stuck on this same level. I made some minor ubuntu sw updates (only 4 or 5 files) yesterday and now I think that this causes the problem. But I am also quite sure that build was still running on time after that update...? Anyone else who had this problem before and how did you solve it? And/or how can I deinstall these sw updates? Many thanks in advance!

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=_v5.1.4-20140621-galaxysmtd
TARGET_PRODUCT=cm_galaxysmtd
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a8
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-29-generic-x86_64-with-ubuntu-14.4-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KTU84P
OUT_DIR=/Volumes/SSD/P1000/android/system/out
============================================
[Android Q&A, Help & Troubleshooting] a2441918:
Its not pausing. Its caching for a faster build to start. Please be patient. Depends on your pc specs also.
[Android Q&A, Help & Troubleshooting] rodman01:
Many thanks for the info or tip!....ok will try a new repo sync again and then restart a new build....only wondering because the caching usually lasts longest one or 2 minutes and this time I led it run for 5 minutes or more and it doesnt go further to this prompt...and I already built a lot of roms in the past...but anyways I will give it a new try and be patient :).
[Android Q&A, Help & Troubleshooting] pandasa123:
i'm trying to build SlimROM for the evita and keep getting this error:

device/htc/msm8960-common/sepolicy/mediaserver.te":13:ERROR 'unknown type audio_firmware_file' at token ';' on line 7434:
# Grant access to audio firmware files to mediaserver
allow mediaserver audio_firmware_file:dir { { open getattr read search ioctl } add_name write };
checkpolicy: error(s) encountered while parsing configuration
[Android Q&A, Help & Troubleshooting] rodman01:
ok its running again now....strange...don't know what has caused this problem...only synced the complete worktree again (no new download of sources necessary)...restarted also the notebook a second or even 3rd time in the meanwhile and the build started again with the normal delay of caching:good:. Puh I am glad, because I already thought, I have to do a complete new linux installation.
[Android Q&A, Help & Troubleshooting] a2441918:
It is because of duplicate entries. Go to device/htc/msm8960-common/sepolicy/mediaserver.te and remove the lines # Grant access to audio firmware files to mediaserver ans below it. I think there will be three lines including the one with # tag.
[Android Q&A, Help & Troubleshooting] pandasa123:
Thanks man. I finally got it to build and it flashed perfectly. Everything works but one thing: hardware buttons. The buttons are lit up, but do not respond to touch. Any idea how I could fix that?
[Android Q&A, Help & Troubleshooting] a2441918:
Did you make any changes to the device tree?
[Android Q&A, Help & Troubleshooting] pandasa123:
it literally is the cm tree with slim.mk

https://github.com/pandasa123/slim
[Android Q&A, Help & Troubleshooting] a2441918:
Try a clean install and report back. Does your device tree already has these issues?
[Android Q&A, Help & Troubleshooting] phanitej:
I was in the process of repo sync and my laptop's power died ( dint realise it was disconnected from the adapter). Now if i have to sync again, shud i start from the beginning or is there anyway i can continue from where it stopped?
[Android Q&A, Help & Troubleshooting] pandasa123:
I fixed it :) Slim is working great. thanks man
[Android Q&A, Help & Troubleshooting] a2441918:
It will resume from the point where sync stopped. Dont worry.
[Android Q&A, Help & Troubleshooting] phanitej:
So just use the command again?

repo sync
[Android Q&A, Help & Troubleshooting] a2441918:
Yes, use repo sync -f -j4
[Android Q&A, Help & Troubleshooting] ##W4TCH0UT##:
im getting this error while compiling a kernel,please help:

fs/fs-writeback.c: In function 'bdi_writeback_thread':
fs/fs-writeback.c:1094:1: internal compiler error: in push_minipool_fix, at config/arm/arm.c:13206
[Android Q&A, Help & Troubleshooting] :
Having this problem

I do have this annoying problem, what should I do? It's still aborting the build process :crying::crying::crying:
[Android Q&A, Help & Troubleshooting] a2441918:
Whats ur ram and cache? Dumping is caused due to low ram
[Android Q&A, Help & Troubleshooting] :
Ohh really? It's 1.5gb :(

Edit: and 1.5gb SWAP

Can i fix this without buying RAM? If not I could make it 2gb instead of 1.5 (it's ddr400)
[Android Q&A, Help & Troubleshooting] letmedanz:
Hi all!

great thread..sad that i didn't stumble across this earlier!

anyhow, i've been able to successfully build from source with no issues so far.

so i thought of taking the next step forward to compile a rom with a different kernel.

the 2 roms i tried this out was Carbon & Slim...

and i used [MENTION=5105835]Cl3Kener[/MENTION] amazing guide..

in the repo - local manifest folder, i am changing the reference of slim kernel (it's slim on both roms) to elemental (flar2's git)

at the end of the repo sync, i get a message saying-

/lge/hammerhead/kernel/bla bla - 231 commits discarded

so am i right in assuming this is due to the presence of roomservice.py in the build folders of both roms?

if so, what do i need to comment out in this file, to allow for the rom to build with elemental?

or am i way off in what i am doing here?
[Android Q&A, Help & Troubleshooting] awidawad:
You're fine, every kernel is different. Discarded commits are just commits that aren't used in the source. For example when I compiled CM with stock kernel and I wanted to switch to Franco's kernel (when he supported CM) it discarded upwards 500 commits, but worked just fine after it compiled :). To build with elemental, just make sure you rename the kernel directory to whatever it was before.
[Android Q&A, Help & Troubleshooting] a2441918:
Minimum 4gb+ is needed.
[Android Q&A, Help & Troubleshooting] Nekator:
I had only 3 GB on my old building box. It took years to build and sometimes it looked like the whole system freezes but at the end it worked.
[Android Q&A, Help & Troubleshooting] :
Can i make my swap bigger? Will that work?
[Android Q&A, Help & Troubleshooting] letmedanz:
Actually it built with the stock kernel, cos i had not made a change to the 'revision'...

Would you know the reason for roomservice.py in the build folders?

if what i've read is correct, it basically stops any changes being made to the local manifest.

seems like it's defeating the point of 'building custom roms' or have i misunderstood.?

i read that certain or most lines need to be commented out in this roomservice.py file if we need to build with a different kernel.

thanks to my limited knowledge, i am unable to figure out what each line does & what can be safe to comment out

help
[Android Q&A, Help & Troubleshooting] HTCDreamOn:
You don't even need 3GB, I can build any version of android with only 2GB DDR2 and 2GB swap on a HDD, but for KitKat I only need to use a prebuilt libwebcore, other than that everything builds fine, and finishes in 1 night if there are no errors.
[Android Q&A, Help & Troubleshooting] :
Oh okay :) well it's an old pc 2.4ghz and ddr400. But I'll use more swap!
[Android Q&A, Help & Troubleshooting] ##W4TCH0UT##:
No.. Sources are synced.. But I think it's a problem of wrong util.c file?
[Android Q&A, Help & Troubleshooting] sooorajjj:
yap wrong util.c file i fixed it anyways thanks :)

new error .....................

make -C kernel/lge/e0 O=/home/traeko/Desktop/slimkat/out/target/product/e0/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/traeko/Desktop/slimkat/prebuilts/misc/linux-x86/ccache/ccache /home/traeko/Desktop/slimkat/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" headers_install
make[1]: Entering directory `/home/traeko/Desktop/slimkat/kernel/lge/e0'
/home/traeko/Desktop/slimkat/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/traeko/Desktop/slimkat/out/target/product/e0/obj/ETC/sepolicy_intermediates/policy.conf
device/lge/e0/sepolicy/platform_app.te":4:ERROR 'syntax error' at token 'userdebug_or_eng' on line 7516:
userdebug_or_eng(

checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/traeko/Desktop/slimkat/out/target/product/e0/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
make[1]: Leaving directory `/home/traeko/Desktop/slimkat/kernel/lge/e0'
traeko@Sooraj:~/Desktop/slimkat$
[Android Q&A, Help & Troubleshooting] ##W4TCH0UT##:
It is saying some configuration error for sepolicy. Syntax error... Hmmm.....strange... Check line no. 7516 in platform_app.te.... Path is specified in the error.. Syntax error is caused for many reasons.
[Android Q&A, Help & Troubleshooting] sooorajjj:
here platform_app.te from device/lge/e0/sepolicy/platform_app.te

allow platform_app time:unix_stream_socket connectto;

#userdebug_or_eng(`
# qxdmlogger access to /data/diag_logs.
allow platform_app diag_logs:dir rw_dir_perms;
allow platform_app diag_logs:file create_file_perms;
')

the second line userdebug_or_eng(` its giving

:4:ERROR 'syntax error' at token 'userdebug_or_eng' on line 7516:
userdebug_or_eng(

i comment it out to get the build going

but idont wanna lose sepolicy for those things .............................

is there any ways to fix that syntax error without loosing sepolicy definition
[Android Q&A, Help & Troubleshooting] a2441918:
No issues man. Nothing much will get affected.. its a general procedure for many device trees clubbed with many rom sources. Happens sometimes. Dont wry.
[Android Q&A, Help & Troubleshooting] Gamersab:
Error !

I recently synced ics sources(because I am learning stuff). Whenever I try to compile terminal gives following error

build/core/java.mk:20: *** dalvik/dexgen: Invalid LOCAL_SDK_VERSION '4' Choices are: current . Stop.

I think there might be problem with my prebuilts folder.

Any help ?
[Android Q&A, Help & Troubleshooting] sooorajjj:
new error pls help guys

Host Jar: conscrypt-hostdex (/home/traeko/Desktop/slimkat/out/host/common/obj/JAVA_LIBRARIES/conscrypt-hostdex_intermediates/javalib.jar)
make -C kernel/lge/e0 O=/home/traeko/Desktop/slimkat/out/target/product/e0/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/traeko/Desktop/slimkat/prebuilts/misc/linux-x86/ccache/ccache /home/traeko/Desktop/slimkat/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" headers_install
make[1]: Entering directory `/home/traeko/Desktop/slimkat/kernel/lge/e0'
target Strip: libdl (/home/traeko/Desktop/slimkat/out/target/product/e0/obj/lib/libdl.so)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-strip:/home/traeko/Desktop/slimkat/out/target/product/e0/symbols/system/lib/libdl.so: File format not recognized
make: *** [/home/traeko/Desktop/slimkat/out/target/product/e0/obj/lib/libdl.so] Error 1
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
make[1]: Leaving directory `/home/traeko/Desktop/slimkat/kernel/lge/e0'
traeko@Sooraj:~/Desktop/slimkat$

libdl.so: File format not recognized :confused:

how to solve this
[Android Q&A, Help & Troubleshooting] dvm84:
You are probably missing a dependency (as in the setup). :)
[Android Q&A, Help & Troubleshooting] :
And guys I have the Motorola Moto G, can i modify the Cyanogenmod device tree to build it with AOSP? Do I have to make much changes?
[Android Q&A, Help & Troubleshooting] a2441918:
Yes quite a few.

1. Remove cm.mk and cm.dependancies

2. Edit vendorsetup.sh to change the word cm to full

3. Add AndroidProducts.mk file.

Best is to use AOSP-S4-KK source to build it as its modified to use cm tree with changes. And linaro optimization is needed for the rom if u use the tree I gave u.
[Android Q&A, Help & Troubleshooting] Rycon33:
I encountered a building error:

No rule to make target, RPM.bin missing. I think this is for the boot.img.

Now, what I did is looked for the RPM.bin for my device Xperia SP and found latest one from the internet. My question is, does the RPM.bin the same for stock and custom kernel? Coz I think I've read somewhere also that it's a proprietary thing but not really sure.

This is my first time to compile CM from source and just glad it went fine(I think).:D Next would be PA.

Tapatalked from my Xperia
[Android Q&A, Help & Troubleshooting] dvm84:
AOSP needs the standard CM tree but the whole source I mean about 50+ repositories need patches from cm to get aosp booting on non-nexus devices. Instead you could adapt your device tree for CAF AOSP KitKat which is already optimized to be built for MSM devices. the thing is I don't know how to obtain manifests for it otherwise I would've have told how to and where to find them. If you find them do tell me. Thanks. :)

---------- Post added at 04:39 AM ---------- Previous post was at 04:37 AM ----------

I guess you are missing out on the proprietary blobs. Just clone www.github.com/TheMuppets/proprietary_vendor_sony to vendor/sony. if you've already done and still the error persists then a full log uploaded on hastebin or pastebin would help us help you
[Android Q&A, Help & Troubleshooting] letmedanz:
Having a funny issue here...

Was building a clean copy of Carbon last evening..

repo sync completed succesfully so went ahead with the build..

the build was almost completed, when there was nothing happening on the terminal..

waited for a 3 hours & then cancelled it..

thought of doing a repo sync again, but from this morning the sync reaches 99% and stops..

nothing happening again on the terminal... just stays that way..

have tried syncing 6-7 times & same result

any idea what the problem could be?

EDIT to add - no error messages or fatal or warnings..

even tried with repo sync -f still no go
[Android Q&A, Help & Troubleshooting] a2441918:
Try removing ur local manifest and syncing again. If it works something is wrong with ur local manifest.

---------- Post added at 07:51 PM ---------- Previous post was at 07:49 PM ----------

Its easy mate. I almost did a build but the rom doesnt zip. Thats the issue I have. Have mailed dev team reg this and hope they r fixing it. Will try a aosp build tonight for my s4.
[Android Q&A, Help & Troubleshooting] dvm84:
[MENTION=4354408]broodplank1337[/MENTION] has done great work on the Qualcomm SGS4

His sources: www.github.com/AOSP-S4-KK

I think it should be buildable for you with a few more patches?

Also make otapackage in aosp zips the .img files :D

Oops sorry bro didn't see you already mentioned his sources. :)
[Android Q&A, Help & Troubleshooting] TheUltimateNoobist:
Error while using breakfast!

carbogen-chemist@carbogen-chemist:~/source/cm/branch/jellybean$ breakfast huashan

including vendor/cm/vendorsetup.sh

build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/huashan/cm.mk]]: "device/*/huashan/cm.mk" does not exist. Stop.

Device huashan not found. Attempting to retrieve device repository from CyanogenMod Github (http::///github.com//CyanogenMod). (Ive changed the url due to restrictions)

Found repository: android_device_sony_huashan

Adding dependency: CyanogenMod/android_device_sony_huashan -> device/sony/huashan

Syncing repository to retrieve project.

Fetching project CyanogenMod/android_device_sony_huashan

fatal: Couldn't find remote ref refs/heads/jellybean

fatal: Couldn't find remote ref refs/heads/jellybean

error: Cannot fetch CyanogenMod/android_device_sony_huashan

error: Exited sync due to fetch errors

Repository synced!

Looking for dependencies

Dependencies file not found, bailing out.

Done

build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/huashan/cm.mk]]: "device/*/huashan/cm.mk" does not exist. Stop.

** Don't have a product spec for: 'cm_huashan'

** Do you have the right repo manifest?

//How big is the jellybean cm source?
[Android Q&A, Help & Troubleshooting] a2441918:
Jv source comes to around 15 gb and does huashan still have the jb tree and kernel and vendor blobs. If its there u can build or its just a waste of tym and resource syncing it.
[Android Q&A, Help & Troubleshooting] Rycon33:
[MENTION=5885294]TheUltimateNoobist[/MENTION], it's there for cm-11, i'm self-compiling CM also for my xperia SP

why would you still want JB btw?:p