yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Mini General] csendre:
CM 11 build issue

Hi guys, another question, this time I am having trouble with CM 11 for a change ....

The build process almost goes all the way to the end when it exits with the following error:

In file included from /home/user/cm11/out/target/product/serranodsdd/obj/STATIC_LIBRARIES/third_party_WebKit_Source_core_webcore_derived_gyp_intermediates/V8DerivedSources12.cpp:60:0:
/home/user/cm11/out/target/product/serranodsdd/obj/GYP/shared_intermediates/blink/bindings/V8SVGFontFaceNameElement.cpp: In function 'v8::Handle<v8::eek:bject> WebCore::wrap(WebCore::SVGElementInstance*, v8::Handle<v8::eek:bject>, v8::Isolate*)':
/home/user/cm11/out/target/product/serranodsdd/obj/GYP/shared_intermediates/blink/bindings/V8SVGFontFaceNameElement.cpp:155:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://source.android.com/source/report-bugs.html> for instructions.
build/core/binary.mk:453: recipe for target '/home/endre/cm11/out/target/product/serranodsdd/obj/STATIC_LIBRARIES/third_party_WebKit_Source_core_webcore_derived_gyp_intermediates/V8DerivedSources12.o' failed
make: *** [/home/user/cm11/out/target/product/serranodsdd/obj/STATIC_LIBRARIES/third_party_WebKit_Source_core_webcore_derived_gyp_intermediates/V8DerivedSources12.o] Error 1
make: *** Waiting for unfinished jobs....

At first I thought the problem is OpenJDK 7 so I purged it and installed Oracle Java 6 which is what was installed when I got the above. It was the same message with OpenJDK 7 How can I troubleshoot this?
[Galaxy S 4 Mini General] SilviuMik:
U ran out of memory. U need at least 12 GB ram and good i7 CPU. When i give only 10 Gb to my VirtualMachine it is a 50/50 chance to fail at build close to end :)

With 12 Gb it always builds :P
[Galaxy S 4 Mini General] csendre:
This can not be it. Before I used 8GB and successfully built in VMWare with only 6GB allocated. I just upgraded my RAM 2 days ago, and now I have 16GB of RAM and this was running on an Ubuntu installed directly, no VM
[Galaxy S 4 Mini General] SilviuMik:
Odd. 16 GB i have too, and 12 allocated to vm . Then no clue why u got that error, i had a similar one when i used 10 GB as i said earlier
[Galaxy S 4 Mini General] k2wl:
build with -j4

i.e build with 4 jobs at a time...although you had ram with you...build environment ran out of configurations to run on cpu threads.
[Galaxy S 4 Mini General] csendre:
Build completed successfully, launched with:

. build/envsetup.sh -j4 && brunch serranodsdd

On 4 core CPU should I use -j8?

I have run this on a VM with Oracle Java 6. I think I will leave this as is for the occasional CM11 builds and keep my actual Ubuntu with OpenJDK 7 for everything else. What do you think?
[Galaxy S 4 Mini General] k2wl:
why to use VM ???

cm11 should build fine with openJDK7.

i used openJDK7 for compiling cm11,cm12.1,cm13.

no issues till now.
[Galaxy S 4 Mini General] csendre:
For some reason no CM11 build worked for me with OpenJDK. I had a few failed builds and the one that succeeded had issues when flashed to my phone (could not activate SIM card believe it or not) The one I build today with Oracle Java works perfectly, has absolutely no issues. Maybe I'll give it another shot with -J4 or -j8 setting, perhaps this was the issue. OpenJDK 7 works perfectly form me as well on other CM and AICP builds.
[Galaxy S 4 Mini General] csendre:
n8013 build issue

[MENTION=943196]k2wl[/MENTION] [MENTION=4344511]SilviuMik[/MENTION], guys, I need your help; this is driving me nuts. It is not a build for our device but it is build related issue so it may be appropriate for the thread.

When I try to build the ROM using CM and lirokoa's sources, I get the following error message.

build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/samsung/n8013/cm.mk]]: "device/samsung/smdk4412-common/common.mk" does not exist. Stop.
Device n8013 not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_samsung_n8013
Default revision: cm-13.0
Checking branch info
Default revision cm-13.0 not found in android_device_samsung_n8013. Bailing.
Branches found:
cm-10.1
cm-10.2
jellybean
mr1-staging
Use the ROOMSERVICE_BRANCHES environment variable to specify a list of fallback branches.
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/samsung/n8013/cm.mk]]: "device/samsung/smdk4412-common/common.mk" does not exist. Stop.

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

But the files that are reported missing are actually there, all synced from lirokoa's sources on github and I can see them on my PC. What can be the issue?

I believe I have all the dependencies synced, I also attached my local manifest

Update: I tried CM12.1 as well, same result. For some reason the build process is looking for android_device_samsung_n8013 in the CM repo while it is already there, downloaded from lirokoa's repo. Why???
[Galaxy S 4 Mini General] k2wl:
you need to add smdk4412-common repo from cm repos i think.

and you have miss typed your local manifests xml as

make it
[Galaxy S 4 Mini General] csendre:
Thanks a million! You know how many times I checked it, how in the world could I miss it? I guess age is catching up with me :)
[Galaxy S 4 Mini General] k2wl:
these type of errors means there is always a path error...:)

age is just a number :D
[Galaxy S 4 Mini General] csendre:
CM13 build error

I am almost ready to give on building ... In the hope of getting rid of errors I installed a fresh Ubuntu 14.04, configured everything as before and this is what I get very early in the build:

HOSTCC scripts/basic/fixdep
/bin/sh: 1: gcc: not found
make[3]: *** [scripts/basic/fixdep] Error 127
make[2]: *** [scripts_basic] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/endre/cm13/kernel/samsung/msm8930-common'
make: *** [/home/endre/cm13/out/target/product/serranodsdd/obj/KERNEL_OBJ/.config] Error 2
make: *** Waiting for unfinished jobs....

Update: I figured I am missing a library or something so I reinstalled the build tools (same way as first time) and now the build is running .... fingers crossed ...

So not even half way into the build it failed again with this message:

host C++: libart <= art/runtime/arch/context.cc
art/runtime/verifier/register_line.cc: In member function 'std::__1::basic_string<_CharT, _Traits, _Allocator>& std::__1::basic_string<_CharT, _Traits, _Allocator>::append(const value_type*, std::__1::basic_string<_CharT, _Traits, _Allocator>::size_type) [with _CharT = char; _Traits = std::__1::char_traits<char>; _Allocator = std::__1::allocator<char>; std::__1::basic_string<_CharT, _Traits, _Allocator>::value_type = char; std::__1::basic_string<_CharT, _Traits, _Allocator>::size_type = long unsigned int]':
art/runtime/verifier/register_line.cc:432:1: internal compiler error: in get_expr_operands, at tree-ssa-operands.c:881
} // namespace art
^
Please submit a full bug report,

Problem solved, [MENTION=4344511]SilviuMik[/MENTION] was right, something is wrong with my RAM chips. When my build crashed another two times, I took out the new modules I had in my PC, has put back my old 4x2GB OCZ modules and here is the result:

Package Complete: /home/endre/cm13/out/target/product/serranodsdd/cm-13.0-20160311-UNOFFICIAL-serranodsdd.zip
make: Leaving directory `/home/endre/cm13'

#### make completed successfully (01:20:25 (hh:mm:ss)) ####

I don't understand what was the issue with the new, RAM it passed two consecutive testing with memtest with no errors and otherwise works great with Linux and Windows .... well, tomorrow I am taking them back to the store ... I will leave this post up here in case anyone else is running into this issue
[Galaxy S 4 Mini General] csendre:
I would like to ask for further help with this if you don't mind. Soon after started building, I got another error:

No private recovery resources for TARGET_DEVICE n8013
host StaticLib: liblog (/home/endre/cm13/out/host/linux-x86/obj/STATIC_LIBRARIES/liblog_intermediates/liblog.a)
/home/endre/cm13/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/endre/cm13/out/target/product/n8013/obj/ETC/sepolicy_intermediates/policy.conf
Import includes file: /home/endre/cm13/out/target/product/n8013/obj/EXECUTABLES/init_intermediates/import_includes
device/samsung/n80xx-common/selinux/init.te:6:ERROR 'duplicate declaration of type/attribute' at token ';' on line 14000:
allow init sysfs_display:file { setattr getattr read };type macloader, domain;
allow init sysfs_sensor:lnk_file { setattr read };
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/endre/cm13/out/target/product/n8013/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/endre/cm13'

Do you have any suggestions? It is strange, i should be able to replicate his build, he made one in January using these sources.
[Galaxy S 4 Mini General] k2wl:
open

device/samsung/n80xx-common/selinux/init.te

then

delete following line

allow init sysfs_display:file { setattr getattr read };type macloader, domain;

rebuild again
[Galaxy S 4 Mini General] csendre:
Thank you, new problems, please help:

So I disabled a few more Selinux policies and got it going again, but I ran into new trouble that I don't know how to solve. It is RIL related which is strange because this tablet is not even GSM enabled, just WIFi. Pleases see below, let me know if you have any suggestions

make: *** [/home/endre/cm13/out/target/product/n8013/obj/SHARED_LIBRARIES/libril_intermediates/ril.o] Error 1
make: *** Waiting for unfinished jobs....
host Executable: backtrace_test_32 (/home/endre/cm13/out/host/linux-x86/obj32/EXECUTABLES/backtrace_test_intermediates/backtrace_test32)
make: Leaving directory `/home/endre/cm13'

#### make failed to build some targets (01:11:36 (hh:mm:ss)) ####
[Galaxy S 4 Mini General] k2wl:
post full log...i cant figure out what is a build error causing failed compilation
[Galaxy S 4 Mini General] csendre:
where can I find it, is it save in the out folder somewhere or do I have to create it somehow?
[Galaxy S 4 Mini General] k2wl:
i mean just copy the log you are seeing in the command prompt/terminal while building...change the setting in terminal to allow unlimited scrolling...run the building process...copy paste all you see in txt file and attach here
[Galaxy S 4 Mini General] csendre:
OK, thanks! I thought there is an auto generated log somewhere, it would be useful.

I'll do it this evening, I also want to separate the s4mini and n8013 builds to eliminate possible interferences.
[Galaxy S 4 Mini General] csendre:
I attached a zipfile with two logs:

1. log 1 was taken on a VM with no s4mini specific files. To get it to this point I had to:

- Delete two lines in device/samsung/n80xx-common/selinux/init.te.

allow init sysfs_sensor:lnk_file { setattr read };

allow init sysfs_display:file { setattr getattr read };

- Delete 3 lines in device/samsung/n80xx-common/selinux/macloader.te

type macloader, domain;

type macloader_exec, exec_type, file_type;

init_daemon_domain(macloader)

There is a warning at the end of log 1 "you may need to install module-init-tools" but I have that installed

2. log 2 was taken on my regular Ubuntu with all the repos and after all the selinux errors, I deleted the entire device/samsung/n80xx-common/selinux folder and the result is what you see.

What is the proper way to disable selinux? I think this is creating all my problems, in lirokoas builds selinux is set to enforcing.

Thank you!

Update: [MENTION=943196]k2wl[/MENTION] don't waste your time on this, I managed to finalize a CM 12.1 with some modifications. That will be good enough and I will also try to use it as a guide to build CM 13. Thanks for you help!
[Galaxy S 4 Mini General] csendre:
vendor/samsung sources

[MENTION=943196]k2wl[/MENTION] Just wondering what is the reason that in CM13 we are using the sileshn/proprietary_vendor_samsung sorces instead of TheMuppets/proprietary_vendor_samsung as used in CM12.1
[Galaxy S 4 Mini General] SilviuMik:
Because Silesh forked the repo from TheMuppets and kept only 2 branches serrano-common / melius-common . That means less files to download / on your HDD

U can use same repo for cm-12.1 too
[Galaxy S 4 Mini General] csendre:
Does anyone have/know a guide on how to convert device tree from one CM version to another? I have a device tree for CM11 (not for S4 Mini) and I would like to change it in order to compile CM12.1 and CM13.0. How would one know what needs to be changed to make it work?
[Galaxy S 4 Mini General] csendre:
PAC-ROM build issues

After many attempts and repairs I managed to take the build of a PAC 6 rom almost to the end using very slightly modified CM 13 device tree.

At the end the build fails at the recovery image generation and I have no idea why or what can be done. Here is the error message:

----- Making recovery image ------
+/home/endre/pac6/out/target/product/serranodsdd/recovery.img maxsize=10543104 blocksize=135168 total=12038144 reserve=270336
error: +/home/endre/pac6/out/target/product/serranodsdd/recovery.img too large (12038144 > [10813440 - 270336])
make: *** [/home/endre/pac6/out/target/product/serranodsdd/recovery.img] Error 1
make: *** Deleting file `/home/endre/pac6/out/target/product/serranodsdd/recovery.img'
make: *** Waiting for unfinished jobs....

Any idea what could be wrong or how to fix it?

Update: I managed to complete build by editing boardconfig and increasing recovery partition size, but I know this is not the right way ...
[Galaxy S 4 Mini General] msl09:
Hi csendre I tried a few times to build serranodsdd but I can't get it to work. The sync worked fine though.

I was going to link linking to the build log but since it's so big and I don't have enough reputation to post external links I'm going to include the beginning and closing messages of the log.

including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
CM_VERSION=13.0-20160415-UNOFFICIAL-serranodsdd
TARGET_PRODUCT=cm_serranodsdd
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-4-amd64-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=MHC19Q
OUT_DIR=/home/cmbuild/android/out
============================================

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
CM_VERSION=13.0-20160415-UNOFFICIAL-serranodsdd
TARGET_PRODUCT=cm_serranodsdd
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-4-amd64-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=MHC19Q
OUT_DIR=/home/cmbuild/android/out

=======================ENDING===================================

make: *** No rule to make target `prebuilts/cmsdk/api/.txt', needed by `/home/cmbuild/android/out/target/common/obj/PACKAGING/checkpublicapi-cm-last-timestamp'. Stop.
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/cmbuild/android'

#### make failed to build some targets (54:38 (mm:ss)) ####

Do you have any idea what could be causing that?

I'm building it like this

cd ~/android
. build/envsetup.sh
export CCACHE_DISABLE=1
brunch serranodsdd
[Galaxy S 4 Mini General] csendre:
I am very far from being experienced enough to troubleshoot, others around here may be much more qualified to answer.

This being said, I saw this type of error when a configuration file of some sort is missing. This shouldn't be the case with CM13 if sync finished OK and you have the right local manifest. Make sure your local manifest is exactly like in post #29 by k2wl (I don't use the remove project lines though), re-sync and it should work.
[Galaxy S 4 Mini General] o0chtm0o:
Hi people...

I wonder, if I'm syncing the repo and for some X reason my PC reboots or the light went out, does it starts again from the beginning or it start since it got interrumpted?

Sorry for my bad english. Thanks in advance!
[Galaxy S 4 Mini General] csendre:
It should not download from the beginning.
[Galaxy S 4 Mini General] umuturunc:
sudo apt-get install git gnupg ccache lzop flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z1-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc libreadline6-dev lib32readline-gplv2-dev libncurses5-dev bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev squashfs-tools pngcrush schedtool dpkg-dev

After I run this command, this error lines appears

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package lib32readline-gplv2-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package lib32bz2-1.0
E: Couldn't find any package by glob 'lib32bz2-1.0'
E: Couldn't find any package by regex 'lib32bz2-1.0'
E: Unable to locate package mingw32
E: Package 'lib32readline-gplv2-dev' has no installation candidate
E: Unable to locate package lib32bz2-dev

I searched solutions

Installed lib32bz2-1.0 by typing

sudo apt-get install libz1:i386 libncurses5:i386 libbz2-1.0:i386 libstdc++6:i386

Run the first command without lib32bz2-1.0

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

But now I got this error lines

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package lib32readline-gplv2-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package mingw32
E: Package 'lib32readline-gplv2-dev' has no installation candidate
E: Unable to locate package lib32bz2-dev

Couldn't find how to install mingw32

I'm using Ubuntu 16.04 LTS 64 bit. Tried to run commands on Ubuntu 14.04 but errors appeared again

Can you help me? How can I solve this issues? [MENTION=943196]k2wl[/MENTION] [MENTION=4344511]SilviuMik[/MENTION] [MENTION=5416372]csendre[/MENTION]

Sorry for silly question

Edit: I was using oracle virtualbox. I solved these issues after changed to vmware
[HTC Sensation] Andrey_Goncharov:
Hello!

Can somebody ask me a question?!

Why in "cm-11-20140701-Sultan-pyramid" i can't disable application "Google Play services"? Button "Disable" shadowed. Version of gapps "pa_gapps-modular-micro-4.4.2-20140517a-signed".

In "cm-11-20140511-Sultan-pyramid" with same gapps it's posible.

Thank you!
[Android Q&A, Help & Troubleshooting] pmkscorpio:
Hi, i recently bought sony xperia z. but i like the music player app in samsung. now i like to install the samsung stock music player app in my sony xperia z. i have already rooted my phone.

but there are no any apps or apk matching this.

so please anyone tell me how to do this, i badly need the samsung stock music player in my xperia z.
[Galaxy S III Q&A, Help & Troubleshooting] popof31:
Dear all,

I get regularly some problem of connection with the android web browser.

When I am connectd to wifi, some applications connect (what app, skype) but some others no (shazam, tuneIn).

In addition when I start the web browser, the load bar remains stuck at 10% and the screen displays "webpage not available".

Do you have any idea to solve this issue?

For information I am using a VPN but the issue happen also when I disconnect it !

Thanks for your help and advice.

my phone :

Samsung S3 GT- I9300

android version 4.1.2
[Samsung Galaxy Mini] MA-90@:
Where to find gapps cyanogenmod11 for our galaxy mini?
[Samsung Galaxy Mini] crullick:
there are a few suggestions/links here

one of them is the smallest working gapps i ever had ----> ~7mb

i'm using it for the last couple of moths, unfortunately, i can't remember which link was it, but it's somewhere around may :D
[Galaxy Y GT-S5360 and Duos 6102 Q&A, Help & Troubl] dastan4eva:
:confused:
[Nexus 7 (2013) Q&A] teebol:
Hi, I want to run the OTA update but can't find a quick stock recovery solution. Does anyone have a stock recovery that I can flash through CWM?
[ONE Q&A, Help & Troubleshooting] gallici96:
Hello. A few days ago my one arrived (with two hits in the frame). I used it without any problems until the battery was at 2%, then I put him in charge and when it came to 100% it started to reboot constantly. The few times it doesn't stop on the 1+ screem it works without recognizing the sim only for a maximum of 2 minutes (but usually a few seconds). Then it "restarts to restart". When I had the time to do that I noticed that in the settings the IMEI is unknown. Is this a problem that someone has already had? Is it fixable? I tried everything, all types of wipe and also to flash the stock from fastboot in two different versions but nothing. I unlock the bootloader and I install the CWM recovery to try installing the CM11 or ColorOS but there is no way to transfer them on the phone. Nothing also with twrp. I try adb sideload but it blocks at 17 %. When the pc recognizes the opo the copy of the rom stops in the middle. Adb push doesn't work. Can be an idea try to remove the battery? I don't want to do it if it is not necessary. I opened a request for a replacement but given the long development times I would like to solve by myself. Thank you for the attention and sorry for my bad english.
[ONE Q&A, Help & Troubleshooting] eudemonics:
you can access your phone through adb yeah? have you checked logcat? at what point is it restarting?
[ONE Q&A, Help & Troubleshooting] gallici96:
Yes I can access through adb. I can use the phone for 3 second such 2 minutes, so there is not a fixed point. It restarts when it wants. Five minutes ago I flashed cm11 through otg with cmw, but I didn't solve the problem. A moment ago I flashed coloros through otg but nothing. I completed the configuration, i did two swipes, than it restart the bootloop. I'm going crazy. Francly I don't know logcat
[ONE Q&A, Help & Troubleshooting] gallici96:
please someone help me
[ONE Q&A, Help & Troubleshooting] bagadj:
Have u tried to flash via fastboot the full image from cyanogen web site?
[ONE Q&A, Help & Troubleshooting] tdamocles:
Hey bud, I'm having similar problems as you,no imei,reboots,bootlooping...all of it.
[ONE Q&A, Help & Troubleshooting] gallici96:
of course, I tried it with the 25r version of the cyanogenmod and also with the 22q many times
[ONE Q&A, Help & Troubleshooting] gallici96:
It's incredible. I opened a RMA but I am still waiting for a response.
[ONE Q&A, Help & Troubleshooting] eudemonics:
it's an ADB command used for debugging. you might be able to see just what's causing the phone to bootloop.

https://developer.android.com/tools/help/logcat.html