yashsingh1/xdaforums huggingface dataset:
[Android] CrazyArjun:
Hi all,

Could you any helpme on the below error?

As the repo sync will take (14 GB+) more time to sync(for 1st time), i left it overnight and next day morning when i check the status i got the error as fatal error for the syncing. I noticed that its due to the internet login session timeout. So i relogged in to internet and did a repo sync and got the below error and not able to proceed further.

http://pastebin.com/JxSbfsea

Please note that it downloaded 15.5GB of data till now.
[Android] :
How can i create my patch ?!

should i learn C ?!
[Android] smartAgent47:
please help me with http://pastebin.com/LcnNeH1n this error ???
[Android] Bass_Face:
building from source issues

im trying to build two roms together (one at a time) i have all the required files in place but get the following errors

while building pac 5.1

ok, so im building pac rom 5.1 for lenovo a6000, as its not officially supported i had to make all the dependency files and stuff

theyre as follows -

[
{
"remote": "github",
"account": "bassface13",
"repository": "a6000",
"target_path": "device/lenovo/a6000",
"revision": "android_device_lenovo_a6000"
},
{
"remote": "github",
"account": "CyanogenMod",
"repository": "android_device_qcom_common",
"target_path": "device/qcom/common",
"revision": "cm-11.0"
},
{
"remote": "github",
"account": "bassface13",
"repository": "a6000",
"target_path": "kernel/lenovo/a6000",
"revision": "android_device_lenovo_a6000_kernel"
},
{
"remote": "github",
"account": "bassface13",
"repository": "a6000",
"target_path": "vendor/lenovo",
"revision": "android_device_lenovo_a6000_vendors"
}
]

i get the following error while building

bassface@bassface:~/pac-rom$ breakfast a6000
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:239: *** ASSERTION FAILED: _include_stack should be empty here: build/core/config.mk device/lenovo/a6000/cm.mk . Stop.
Device a6000 not found. Attempting to retrieve device repository from Split-Screen Github (http://github.com/Split-Screen).
Repository for a6000 not found in the Split-Screen Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:239: *** ASSERTION FAILED: _include_stack should be empty here: build/core/config.mk device/lenovo/a6000/cm.mk . Stop.

** Don't have a product spec for: 'cm_a6000'
** Do you have the right repo manifest?

while building cm 12.1

my device, lenovo a6000 isnt supported by cm, ive got all the vendor,device, kernel files in place...when i try to run brunch or breakfast i end up with the same error as for pac

bassface@bassface:~/cm 12.1$ brunch a6000
including vendor/cm/vendorsetup.sh
make: build/core/config.mk: No such file or directory
make: *** No rule to make target 'build/core/config.mk'. Stop.
bash: build/tools/roomservice.py: No such file or directory
make: build/core/config.mk: No such file or directory
make: *** No rule to make target 'build/core/config.mk'. Stop.

** Don't have a product spec for: 'cm_a6000'
** Do you have the right repo manifest?

No such item in brunch menu. Try 'breakfast'
bassface@bassface:~/cm 12.1$ breakfast a6000
including vendor/cm/vendorsetup.sh
make: build/core/config.mk: No such file or directory
make: *** No rule to make target 'build/core/config.mk'. Stop.
bash: build/tools/roomservice.py: No such file or directory
make: build/core/config.mk: No such file or directory
make: *** No rule to make target 'build/core/config.mk'. Stop.

** Don't have a product spec for: 'cm_a6000'
** Do you have the right repo manifest?

bassface@bassface:~/cm 12.1$

can someone help.? ive tried deleting everything except .repo and re-repo syncing but that didnt help and i assure you the config.mk does exist

help please :c

thanks in advance :)
[Android] OfficerJimLahey:
I don't think it is finding your vendor tree. Try:

{
"remote": "github",
"account": "bassface13",
"repository": "a6000",
"target_path": "vendor/lenovo/a6000",
"revision": "android_device_lenovo_a6000_vendors"
}

...instead of...

{
"remote": "github",
"account": "bassface13",
"repository": "a6000",
"target_path": "vendor/lenovo",
"revision": "android_device_lenovo_a6000_vendors"
}
[Android] sunsettrack4:
Could you help me, please?

target Java: libchips (/home/sunsettrack4/cm12/out/target/common/obj/JAVA_LIBRARIES/libchips_intermediates/classes)
packages/apps/ThemeChooser/src/org/cyanogenmod/theme/util/ThemedTypefaceHelper.java:73: error: no suitable method found for parse(InputStream,File)
FontListParser.Config fontConfig = FontListParser.parse(is, new File(FONTS_DIR));
^
method FontListParser.parse(InputStream,String) is not applicable
(actual argument File cannot be converted to String by method invocation conversion)
method FontListParser.parse(File,String) is not applicable
(actual argument InputStream cannot be converted to File by method invocation conversion)
packages/apps/ThemeChooser/src/org/cyanogenmod/theme/util/ThemedTypefaceHelper.java:89: error: no suitable method found for parse(InputStream,File)
FontListParser.Config fontConfig = FontListParser.parse(is, new File(SYSTEM_FONTS_DIR));
^
method FontListParser.parse(InputStream,String) is not applicable
(actual argument File cannot be converted to String by method invocation conversion)
method FontListParser.parse(File,String) is not applicable
(actual argument InputStream cannot be converted to File by method invocation conversion)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
target Java: android-opt-datetimepicker (/home/sunsettrack4/cm12/out/target/common/obj/JAVA_LIBRARIES/android-opt-datetimepicker_intermediates/classes)
build/core/java.mk:346: recipe for target '/home/sunsettrack4/cm12/out/target/common/obj/APPS/ThemeChooser_intermediates/classes-full-debug.jar' failed
make: *** [/home/sunsettrack4/cm12/out/target/common/obj/APPS/ThemeChooser_intermediates/classes-full-debug.jar] Error 41
make: *** Warte auf noch nicht beendete Prozesse...
[Android] tecno789:
Can I fork aokp to download cyanogen source? With command git reference? Or I have to re-download all?
[Android] akhilnarang:
Are you trying to say you have aokp, you want cm-12.1, but don't wanna download the full thing again

You can use repo init --reference command as explained
[Android] tecno789:
Yes i was trying to say it :)

Thanks
[Android] OfficerJimLahey:
I will have to look further into the other problems, but this one can be checked by:

java -version

...please send back the output of this command.

---------- Post added at 02:06 PM ---------- Previous post was at 01:57 PM ----------

Probably not the problem, but PRODUCT_NAME will probably need to be renamed, or it may try to find stuff under the identity of pac_cm_a6000. That was a problem when I was building Carbon for my Doubleshot with a CM device tree, it would error out with something similar because it couldn't find the carbon_cm_doubleshot-userdebug kernel options file.

Clone cm.mk into pac.mk and make the edits, that would be my bet for future issues.
[Android] Bass_Face:
thanks for the quick reply...

bassface@bassface:~$ java -version
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu1)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
bassface@bassface:~$

---------- Post added at 02:18 PM ---------- Previous post was at 02:17 PM ----------

ill also change the name and report soon...wait a min

---------- Post added at 02:19 PM ---------- Previous post was at 02:18 PM ----------

where do i place the pac.mk.?
[Android] OfficerJimLahey:
In your device tree, same folder as cm.mk. Integrate the cm.mk options (renaming PRODUCT_NAME option in the new file) as well as pac_a6000.mk options. In this situation you will no longer need to call cm.mk for the remaining options.

With respect to java, I'm away from a linux console but try:

javac -version

...and see if the version number is any different
[Android] OfficerJimLahey:
Was skimming through earlier, this is (probably) your trouble:

bassface@bassface:~$ java -version
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu1)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
bassface@bassface:~$

OP wants you to use Oracle JDK, not OpenJDK. Remove the java packages and install Oracle's java instead (instructions can be found in post 2 I believe).
[Android] Bass_Face:
Please standby

edit:the official guide says openjdk is needed
[Android] akhilnarang:
Do

sudo apt-get purge jayatana

Then reboot.

I got the same error while building on vivid

While compiling a rom (FlexOS) for the sony xperia sp(huashan), I get the following error

make: *** No rule to make target '/home/akhil/flex/out/target/product/huashan/obj/lib/libtime_genoff.so', needed by '/home/akhil/flex/out/target/product/huashan/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so'. Stop.

Anyone knows why
[Android] Bass_Face:
i fixed the java error by doing this

Solution: Edit ~/.bashrc:

$ pico ~/.bashrc

Add the following line at the end of the file:

unset JAVA_TOOL_OPTIONS

Close pico (ctrl+x) and save the changes. Restart bash:

$ source ~/.bashrc

but now i get this error

build/core/Makefile:47: warning: overriding recipe for target '/home/bassface/pac-rom/out/target/product/a6000/system/lib/libxml2.so'
build/core/base_rules.mk:550: warning: ignoring old recipe for target '/home/bassface/pac-rom/out/target/product/a6000/system/lib/libxml2.so'
PRODUCT_COPY_FILES vendor/cm/prebuilt/common/bootanimation/720.zip:system/media/bootanimation.zip ignored.
find: `bootable/recovery-cwm/res-xhdpi': No such file or directory
No private recovery resources for TARGET_DEVICE a6000
build/core/tasks/kernel.mk:130: **********************************************************
build/core/tasks/kernel.mk:131: * Kernel source found, but no configuration was defined *
build/core/tasks/kernel.mk:132: * Please add the TARGET_KERNEL_CONFIG variable to your *
build/core/tasks/kernel.mk:133: * BoardConfig.mk file *
build/core/tasks/kernel.mk:134: **********************************************************
target Prebuilt: (/home/bassface/pac-rom/out/target/product/a6000/kernel)
acp: missing destination file
build/core/tasks/kernel.mk:282: recipe for target '/home/bassface/pac-rom/out/target/product/a6000/kernel' failed
make: *** [/home/bassface/pac-rom/out/target/product/a6000/kernel] Error 2

#### make failed to build some targets (06:00 (mm:ss)) ####
[Android] Bass_Face:
help anyone.?
[Android] genesixxbf3:
Did you breakfast?
[Android] banerjeeayan1996:
Is it neccessary to download sources cant we just port cm from some another device by adding manifests
[Android] Bass_Face:
yep :c

yep but as im building pac it stops on its own

example:: command not found
bassface@bassface:~/pac-rom$ . build/envsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/lenovo/a6000/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including vendor/pac/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/bash_completion/git.bash
including vendor/cm/bash_completion/repo.bash
bassface@bassface:~/pac-rom$ breakfast a6000
including vendor/cm/vendorsetup.sh
Looking for dependencies
Dependencies file not found, bailing out.

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
PAC_VERSION=
TARGET_PRODUCT=cm_a6000
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.19.0-15-generic-x86_64-with-Ubuntu-15.04-vivid
HOST_BUILD_TYPE=release
BUILD_ID=LMY47V
OUT_DIR=/home/bassface/pac-rom/out
============================================

bassface@bassface:~/pac-rom$

but i get a new kernel related error now when i use "sudo ./build-pac.sh a6000"

as follows-

make -C kernel/lenovo/a6000 O=/home/bassface/pac-rom/out/target/product/a6000/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/bassface/pac-rom/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= device/lenovo/a6000/kernel/lenovo/a6000
make[1]: Entering directory '/home/bassface/pac-rom/kernel/lenovo/a6000'
GEN /home/bassface/pac-rom/out/target/product/a6000/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
init/Kconfig:289: can't open file "kernel/irq/Kconfig"
/home/bassface/pac-rom/kernel/lenovo/a6000/scripts/kconfig/Makefile:36: recipe for target 'silentoldconfig' failed
make[4]: *** [silentoldconfig] Error 1
/home/bassface/pac-rom/kernel/lenovo/a6000/Makefile:507: recipe for target 'silentoldconfig' failed
make[3]: *** [silentoldconfig] Error 2
make[2]: *** No rule to make target 'device/lenovo/a6000/kernel/lenovo/a6000'. Stop.
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/bassface/pac-rom/kernel/lenovo/a6000'
build/core/tasks/kernel.mk:222: recipe for target '/home/bassface/pac-rom/out/target/product/a6000/obj/KERNEL_OBJ/.config' failed
make: *** [/home/bassface/pac-rom/out/target/product/a6000/obj/KERNEL_OBJ/.config] Error 2

#### make failed to build some targets (03:46 (mm:ss)) ####

bassface@bassface:~/pac-rom$

what now.?

edit:i feel like an idiot...im so sorry for the trouble, i had the wrong name in cm.mk file it was pac_a6000..changed it to cm_a6000 and everything's fine
[Android] genesixxbf3:
Maybe they don't have the device and you'll need to use other source
[Android] Bass_Face:
im sorry for all the fuss, but can u please check the previous post again, i edited it
[Android] genesixxbf3:
hum the kernel seems to not working well can you remove the kernel folder and repo sync and retest please
[Android] Bass_Face:
actually i have two kernel sources, u see, the phone im building on has a chinese twin too :p

this is the twins kernel-

https://github.com/Silentlys/android_kernel_lenovo_k30t

and this is my phones kernel i found on the official website

https://github.com/bassface13/a6000/tree/android_device_lenovo_a6000_kernel

is there a way to skip making the kernel or make it seperately and use it later.? or use a pre existing one.?
[Android] genesixxbf3:
you can build the kernel as standalone and then use it for the rom

and add this line to the board config of your device

TARGET_PREBUILT_KERNEL ?= kernel/arch/arm/boot/Image
[Android] Bass_Face:
with the question mark.? and when i build the kernel do i have to place it in kernel/arch/arn/boot/image.?
[Android] pug1:
If I have a prebuild kernal (cm12.1, built by a rom dev) already can't I just extract the zimage and use that? If so do I use the same location or use kernal/Samsung/kccat6xx?

Thanks
[Android] genesixxbf3:
when you'll build the kernel (in workspace/kernel) it'll be auto here
[Android] Bass_Face:
Can I use a prebuilt kit kat kernel.? If i can am I supposed to only paste the boot.IMG somewhere and direct the prebuilt command to the boot.IMG location right.?
[Android] banerjeeayan1996:
What is the size of cm 12 sources. Already downlaoded 9.5 gb then my computer shut down and when i agin turn on how to be sure if the sources are complete or not
[Android] OfficerJimLahey:
Don't know about CM12, but CM11 was about 13-14GB. If by luck CM12 uses less space (doubt it), repo sync just to be sure you have everything in proper order.
[Android] mohamed786:
Any One Will U Help ???

After Compile CWM recovery And i have flash it on my device But It will showing Only Black Screen

Odin Flash Also Goes Fails
[Android] Bass_Face:
that worked thanks :D

can u say something about this :p .?

make: *** No rule to make target '/home/bassface/pac-rom/out/target/product/a6000/obj/KERNEL_OBJ/usr', needed by '/home/bassface/pac-rom/out/target/product/a6000/obj/EXECUTABLES/adbd_intermediates/adb.o'. Stop.

u can see here for the full log

http://pastebin.com/Qcm83xrv

and also i couldnt complete compiling a kernel maybe u were right, the sources arent good i guess, the error said "kernel/irq/kconfig" couldnt be found. i just split a cm11 kernel and used the zimage.
[Android] side:
i just downloaded the source code and i typed

$ croot

$ brunch jfltexx

its being installing for 6 hours and its not finished...did i do anything wrong?

computer specs:

ubuntu lts x64 14.04 full install (not virtual)

ram 2gb 667mhz

core2duo e8500

thanks :?
[Android] mohamed786:
Wait untill finishing

Bcz building will depends on us computer config... According to u r computer

You need to be patient..
[Android] ivankolev:
Quite normal!

The building takes the soul especially on cpus :D

There few decisions which could help like prebuilt chromium, mount /tmp and ccache...

But you are in the beginning of a lot of information which will suite your building preferences and style, so good luck!

Sometimes I have to wait longer using better computer specs!
[Android] akhilnarang:
You need minimum 4gb ram for building

Anyway, on an old PC of mine mine, with a dual core pentium D, and 4gb ddr2 ram, the first build took 12-14 hours
[Android] side:
well..my fault..i got 2gb 1333MHz ram...

so guys u say that it is just the first build ?

will it be quicker?

i cant make ROMs if the build time is 12 hours :/ how do you all survive :P
[Android] ivankolev:
I read statement from katinatez about 12 minutes dirty build process :)

Next week I intend to challenge the build with Intel Core i7-5960X - 8 cored up to 3.5 Ghz :)
[Android] side:
its ok if it is 2-3-4 hours...but not 12 ...damned

what do u mean ''dirty''
[Android] ivankolev:
First wait with patience your first build

Then or during :) read about the build speed help methods which I mentioned

"dirty" means to skip "make clobber" before next build
[Android] TheLocke:
Repo Folder manually download

Hey guys,

i am not able to download the source files i will need, cause in my company it is not allowed to download them (proxy does not allow that) :rolleyes:

so maybe anyone did upload the repo folder with the updated source files for cm11 or cm12 in it so that i can download them manually? and replace the repo folder?

other necessary files i will download via tethering but the source files are too big :eek:
[Android] smartAgent47:
u cant do that ... its not possible ...
[Android] Mr.R™:
Takes me an hour to build in a vm with 2 cores enabled and 8gb ram :)

And to the upload source, why not just use a vpn, would be the best idea :)
[Android] sunsettrack4:
I need 6 hours for building on Ubuntu 14.10, CPU 2 x 2,1 GHz, 4 GB RAM.

BTW, after the compiling process had been finished, I got the folder "out", containing the ROM file. Do I have to delete the "out" folder to compile a new build?
[Android] Mr.R™:
Make clean/clobber wipes the out directory anyway so no need to manually delete it :)
[Android] TheLocke:
can not install packages

hey guys,

i can not install the required packages:

sudo apt-get install git-core gnupg ccache lzop flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5 lib32z1 lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.8-dev python

Reading package lists... Done

Building dependency tree

Reading state information... Done

Note, selecting 'lib32z1-dev' instead of 'lib32z-dev'

E: Unable to locate package lib32bz2-1.0

E: Couldn't find any package by regex 'lib32bz2-1.0'

E: Unable to locate package mingw32

E: Unable to locate package lib32bz2-dev

when i delete the packages which can not be found it works but i think i will need the other ones?
[Android] side:
just copy and paste one by one..i had same error...on linux sometimes the 'l' looks like '1'

i mean:

sudo apt-get install packageName1

sudo apt-get install packageName2

sudo apt-get install packageName3

sudo apt-get install packageName4
[Android] TheLocke:
this does also not work :o
[Android] Mr.R™:
Google each package with the name of your distro, it should give you the right/alternate package names
[Android] banerjeeayan1996:
Just completed downlloading the source but cant able to build it says somethi g about lunch error try breakfast pls help
[Android] akhilnarang:
Which rom,device

Please elaborate a bit more

Simplest build command is brunch <device>
[Android] TheLocke:
i tried that allready but also not able to install in the end... :(

okay i found out that this two packages (mingw32 and lib32bz2-dev are removed from the distro, so i think they have now alternatives which are allready installed)

here you can see:

https://launchpad.net/ubuntu/vivid/i386/mingw32

so maybe it should get updateed in the install guide....
[Android] banerjeeayan1996:
I have downloaded the sources snd now my virtual drive has become full any to increase the size of .vmdk or to copy all the files from it to another virtual disk. Please help
[Android] TheLocke:
when i start downloading the source files the donwload speed is reaching a max of 200 KB's i allready tried to set the repo sync-j# ( from 2 up to 8 ) and it doesn't help...
[Android] banerjeeayan1996:
bionic/libc/arch-arm/arm.mk:81: *** "TARGET_CPU_VARIANT not set or set to an unknown value. Possible values are cortex-a7, cortex-a8, cortex-a9, cortex-a15, krait, scorpion, denver. Use generic for devices that do not have a CPU similar to any of the supported cpu variants.". Stop.

i am getting this error please help........

how to fix it.
[Android] pug1:
It is telling you that your board you specified in a device.mk file is either wrong or not set.

Check in you device/VENDOR/codename folder I think it is
[Android] banerjeeayan1996:
Please please elaborate the last line or explain me by sendinga pm ... Please please please.....
[Android] commencal661:
I don't know if it's a good idea to try and build a ROM, if you don't know what he's telling you.
[Android] side:
worked for me..why dont u just write them with hands?

also

i use ubuntu x64 lts 14.02
[Android] hawkstwelve:
Im trying to boot a ROM I successfully compiled but it won't get past the google boot screen. I pulled a logcat and I see "E/sdcard missing packages.list ; retrying" as the main error.

Anyone know what that's referencing in the source code?
[Android] pug1:
Read all the info you can on ROM building then read it all again lol

I have been learning for a long time and havnt even scratched the surface

Unless you are building for a device that already exists, you will be reading for the next month about you device before you can even think bout trying a build command
[Android] mohamed786:
Help needed
[Android] berryman13:
Please wrap ALL of your code in

blocks so we can actually read it.
[Android] banerjeeayan1996:
What is the problem please reply tried to fix everything i can do.........
[Android] mojo_89:
regular build with a custom kernel

Hey Mtsprite, Did you manage to pull off an intergrated rom/kernel build? Could you help me out pls?
[Android] banerjeeayan1996:
Please help me...
[Android] A.Fouad:
Is there anyway to download slimrom 5.1.1 source from direct link not from terminator of ubuntu ?!
[Android] Mtsprite:
I was never able to get it to work.
[Android] TheLocke:
i tried but didn't work, here in post #1290 you will see why it is not working.

i use 15.04 x64