yashsingh1/xdaforums huggingface dataset:
[Android] H4RTI3:
S3 i9300 Compiling Error

build/tools/generate-notice-files.py /home/hadi/android/system/out/target/product/i9300/obj/NOTICE.txt /home/hadi/android/system/out/target/product/i9300/obj/NOTICE.html "Notices for files contained in the filesystem images in this directory:" /home/hadi/android/system/out/target/product/i9300/obj/NOTICE_FILES/src
Combining NOTICE files into HTML
Combining NOTICE files into text
Installing recovery patch to system partition
Warning: could not find SYSTEM/build.prop in <built-in function zip>
using prebuilt recovery.img from BOOTABLE_IMAGES...
using prebuilt boot.img from BOOTABLE_IMAGES...
Traceback (most recent call last):
File "./build/tools/releasetools/make_recovery_patch", line 55, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/make_recovery_patch", line 51, in main
common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
File "/home/hadi/android/system/build/tools/releasetools/common.py", line 1460, in MakeRecoveryPatch
_, _, patch = d.ComputePatch()
File "/home/hadi/android/system/build/tools/releasetools/common.py", line 1146, in ComputePatch
p = Run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/home/hadi/android/system/build/tools/releasetools/common.py", line 100, in Run
return subprocess.Popen(args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [/home/hadi/android/system/out/target/product/i9300/system/bin/install-recovery.sh] Error 1
make: Leaving directory `/home/hadi/android/system'

#### make failed to build some targets (07:31 (mm:ss)) ####

hadi@hadi-VirtualBox:~/android/system$

It says the SYSTEM/build.prop is missing.

Do I have to put it anywhere?
[Android] SlimShady's:
Anyone knows how to fix this error?

In my BoardConfig.mk there is only "TARGET_CPU_VARIANT := krait" ..
[Android] Arvind7352:
Share your BoardConfig.mk (The GitHub link to it if you didn't change anything)
[Android] SlimShady's:
http://hastebin.com/adabocaqop.md

EDIT: Fixed myself, thank you :)
[Android] Arvind7352:
Its Okay...

Try make -j1 to get the proper sequence of output... Its a bit slow, yet good for debugging
[Android] SlimShady's:
Well, this time -j1 is not needed :P

Import includes file: /home/slimshadys/Twisted/out/target/product/w7/obj/SHARED_LIBRARIES/libstagefright_soft_aacdec_intermediates/import_includes

target thumb C++: libFraunhoferAAC <= external/aac/libAACdec/src/aacdec_drc.cpp

frameworks/base/rs/jni/android_renderscript_RenderScript.cpp:412:27: error: no matching function for call to 'rsClosureCreate'

ret = (jlong)(uintptr_t)rsClosureCreate(

^~~~~~~~~~~~~~~

out/target/product/w7/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiFuncDecl.h:58:22: note: candidate function not viable: no known conversion from 'uintptr_t *' (aka 'unsigned int *') to 'const int64_t *' (aka 'const long long *') for 6th argument

extern "C" RsClosure rsClosureCreate (RsContext rsc, RsScriptKernelID kernelID, RsAllocation returnValue, RsScriptFieldID * fieldIDs, size_t fieldIDs_length, const int64_t * values, size_t values_length, const int * sizes, size_t sizes_length, RsClosure * depClosures, size_t depClosures_length, RsScriptFieldID * depFieldIDs, size_t depFieldIDs_length);

^

frameworks/base/rs/jni/android_renderscript_RenderScript.cpp:479:27: error: no matching function for call to 'rsInvokeClosureCreate'

ret = (jlong)(uintptr_t)rsInvokeClosureCreate(

^~~~~~~~~~~~~~~~~~~~~

out/target/product/w7/obj/SHARED_LIBRARIES/libRS_intermediates/rsgApiFuncDecl.h:59:22: note: candidate function not viable: no known conversion from 'uintptr_t *' (aka 'unsigned int *') to 'const int64_t *' (aka 'const long long *') for 7th argument

extern "C" RsClosure rsInvokeClosureCreate (RsContext rsc, RsScriptInvokeID invokeID, const void * params, size_t params_length, const RsScriptFieldID * fieldIDs, size_t fieldIDs_length, const int64_t * values, size_t values_length, const int * sizes, size_t sizes_length);

^

2 errors generated.
[Android] hahagu:
Really? I am trying so hard, and no one helps out!
[Android] Jeik:
Hey guys.

I am still trying to build AOSP 5.1,but I have hit a wall yet again. .-_____-.

http://hastebin.com/roxifugeho.pl

It is obviously a qcom/common issue. I originally had a CM12.1 qcom/common folder,which was obviously bad. Then I followed common sense and tried taking a pure AOSP 5.1 qcom/common folder,but it also made no difference. :S
[Android] KeTuRr74:
This is the final error but you should find another line with the real error before.
[Android] Jeik:
Here is a full log:

http://hastebin.com/iyiseqobal.hs

I seriously dont know what to consider an error and what not to anymore...
[Android] Frostyagent:
Building AOSP for I9300, but it gives some kind of RIL errors

hardware/samsung/ril/libril/ril.cpp:4448:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

s_ril_param_socket = {

^

hardware/samsung/ril/libril/ril.cpp:4448:24: warning: missing initializer for member 'SocketListenParam::type' [-Wmissing-field-initializers]

hardware/samsung/ril/libril/ril.cpp: In function 'void android::RIL_register_socket(RIL_RadioFunctions* (*)(const RIL_Env*, int, char**), RIL_SOCKET_TYPE, int, char**)':

hardware/samsung/ril/libril/ril.cpp:4591:15: warning: enumeration value 'RIL_TELEPHONY_SOCKET' not handled in switch [-Wswitch]

switch(socketType) {

^

hardware/samsung/ril/libril/ril.cpp: At global scope:

hardware/samsung/ril/libril/ril.cpp:4845:63: warning: unused parameter 'socket_id' [-Wunused-parameter]

processRadioState(RIL_RadioState newRadioState, RIL_SOCKET_ID socket_id) {

^

hardware/samsung/ril/libril/ril.cpp: In function 'const char* android::requestToString(int)':

hardware/samsung/ril/libril/ril.cpp:5148:14: error: 'RIL_REQUEST_DIAL_EMERGENCY' was not declared in this scope

case RIL_REQUEST_DIAL_EMERGENCY: return "DIAL";

^

build/core/binary.mk:706: recipe for target 'out/target/product/i9300/obj/SHARED_LIBRARIES/libril_intermediates/ril.o' failed

make: *** [out/target/product/i9300/obj/SHARED_LIBRARIES/libril_intermediates/ril.o] Error 1

#### make failed to build some targets (05:06 (mm:ss)) ####
[Android] KeTuRr74:
Start a clean build.

make clean

brunch idol5
[Android] Uchiha_Dev:
how do I increase repo sync speed ? I have a 25-35 Mbits/s Download and 27 Mbits upload, and the download is really slow ! If I use 2 htreads -j2 I get only 10-30 KiB/s so I am forced to use -j1 for about 50-120 KiB/s and I am download about 30 GB, this is going to take me years to sync, what do I do ? I have synced only about 13 GB in past 3 days, can I change the server I download from ? For example; In Steam if I change the server location to Delhi or the nearest server to my country then I can download 10-20 GB games in about 1 hour at a speed of 3-5 Mbytes/s, can I select the nearest server for git ?
[Android] Jeik:
Wait,brunch is a good command for pure aosp?

Isn't "lunch aosp_idol3-eng" and "make" better?

I am making an eng build because it is a first time an AOSP build will be made for the Idol 3 5.5.

Repo sync -jx

X stands for parallel jobs

You can try -j16 or even higher
[Android] Uchiha_Dev:
Yeah I know that, I did specify it in my question, I think you did not interpret it correctly haha, I am stuk with -j1 any value higher than 1 will result in super slow speeds, only -j1 is able to give me a speed of about 50-100 KiB/s, I don't think there is any other option other than waiting.

2nd Question : I know that there will be regular updates to the sources I am downloading and there will be new commits, Do I have to sync the entire 30 gb again to update the sources ?
[Android] neonkat:
nope,just make a "repo sync" and new stuffs will be downloaded,not full source.

btw 25Mb/s?lol,i am here with 60Kb/s :/.
[Android] Uchiha_Dev:
so the new changes in exisiting files will also be updated ? thanks man, yes I did a a test in speedtest.net but it's no use lack of servers here, the maximum I have been able to get is 3-5 MB/s when downloading games from Steam as we can choose the nearest server
[Android] neonkat:
yeah.
[Android] Uchiha_Dev:
is there no way I can find and specify the nearest server from which I can sync the repo ?
[Android] neonkat:
maybe try this.
[Android] Uchiha_Dev:
sure, I will try the -c once I finish dwnload a super huge file, I have been cancelling if from I don't know how many hours to find the correct -j value, will cancel and use -c again after it finishes and thanks a lot of helping
[Android] Droidcore:
i have this error help me 15.10

Reading package lists... Done

Building dependency tree

Reading state information... Done

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

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 regex 'lib32bz2-1.0'

E: Unable to locate package mingw32

E: Package 'lib32readline-gplv2-dev' has no installation candidate

E: Unable to locate package lib32readline5

E: Unable to locate package lib32bz2-dev
[Android] Scutariu:
Had anyone tried to sync the repo from Blisspop recently ? since yesterday, it cannot sync, hangs on different stages..:-s

There may be some problems with their repo ?

edit: some bitbucket syncs too :-s
[Android] Jeik:
It may look like its hanging,but it isn't.

Try repo sync --force-sync,and leave it be for some time
[Android] Uchiha_Dev:
Everybody if you are having slow speed, I highly suggest that you use -j2 and use a ehternet cable for data, WiFi will slow it down a lot, or if you don't have ether net use -j1, also use *-c* without **, It will speed up the entire process, the *-c* tell the repo to only sync the required branch that was set in the mainfest, If you do not use *-c* it will pull unwanted sources too, I am syncing CM 12.1 and it is pulling sources of CM 7, android 2, 3, android wear and what not. Only if I could have found this thread much sooner, I could have saved plenty of time

I am also a newbie, I just started this like 3 days ago. So correct me if I am wrong.
[Android] sh A ne:


---------- Post added at 12:49 PM ---------- Previous post was at 12:47 PM ----------

Yeah its been hanging lately ,try force sync or try a few days later
[Android] Hashbang173:
So should I stop my build, clone this, then re-add the line I deleted?
[Android] RVR:
yes .. u can try this .. but i suggest .. that first let the ongoing build complete ... so wen u replace this ..and get an error .. wel noe from where its coming ;) :angel::angel:
[Android] Hashbang173:
Now I get this:

build/core/base_rules.mk:134: *** hardware/ti/omap4xxx/domx/domx: MODULE.TARGET.SHARED_LIBRARIES.libdomx already defined by device/amazon/omap4-common/domx/domx. Stop.
[Android] RVR:
Okay... Do one thing clone all the hardware/ti repos from cm... There are 2 or 3 I think..... Then try building
[Android] martinusbe:
Anyone know why i get this error? (see screenshot)

Getting error on Kernel, but it seems ok to me.

and then "no rule to make target ...."
[Android] RVR:
Add this to BoardConfig.mk

TARGET_KERNEL_SOURCE := kernel/motorola/devicename

Replace device name with the device name .I'm guessing it should be msm8226-common

EDIT: ITS DER ALREADY ... JUST CHECK THE NAME ..AND REPLACE IT WITH THE ONE IN THE BOARDCONFIG.MK
[Android] martinusbe:
i'm lost here :)

where should i replace it ?
[Android] RVR:
Open kernel/motorola and send a screenshot
[Android] martinusbe:
Thanks for the help man :good:
[Android] RVR:
This seems right ... I don't think u should be getting this error
[Android] Kishan14:
Can u post your local_manifests.xml here... Ders always prob in Motorola device compiling .. :p even i got this error b4 (evrythng was perfect.. Still)
[Android] martinusbe:
Hi, i got this error even without local_manifest(deleted it to test)

I got tired of searching for it, and deleted all filles exept .repo(deleted manifests from it) and did repo init again.

Have it build now :good: :D
[Android] Kishan14:
So now no errors... Ryt.. ? Great then.. Njoyy dev'in
[Android] Misscodi:
Guy I'm trying to build PAC Rom for Cooperve. I'm using androidarmv6 device tree but I have a problem while building rom.

Import includes file: /home/nberk/android/pac/out/target/product/cooperve/obj/EXECUTABLES/wpa_cli_intermediates/import_includes
make: *** No rule to make target `/home/nberk/android/pac/out/target/product/cooperve/obj/STATIC_LIBRARIES/lib_driver_cmd_bcmdhd_intermediates/export_includes', needed by `/home/nberk/android/pac/out/target/product/cooperve/obj/EXECUTABLES/wpa_supplicant_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: external/wpa_supplicant_8/wpa_supplicant/Android.mk -- /home/nberk/android/pac/out/target/product/cooperve/obj/EXECUTABLES/wpa_cli_intermediates/export_includes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
SPLIT include/autoconf.h -> include/config/*
HOSTCC applets/usage
HOSTCC applets/applet_tables
/home/nberk/android/pac/external/busybox/applets/usage.c: In function ‘main’:
/home/nberk/android/pac/external/busybox/applets/usage.c:52:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(STDOUT_FILENO, usage_array[i].usage, strlen(usage_array[i].usage) + 1);
^
GEN include/bbconfigopts.h
/home/nberk/android/pac/external/busybox/applets/applet_tables.c: In function ‘main’:
/home/nberk/android/pac/external/busybox/applets/applet_tables.c:144:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line_old, sizeof(line_old), fp);
^
GEN include/usage_compressed.h
GEN include/applet_tables.h
HOSTCC applets/usage_pod
CC applets/applets.o
LD applets/built-in.o
make[1]: Leaving directory `/home/nberk/android/pac/external/busybox'
[Android] kundan.lohar:
Great work thanks

Kudnan.Lohar@Android
[Android] akshay-shah:
followed all the steps...bt...

I am building cyanogenmod for an unsupported device..i.e it doesnt have its device tree ,kernel,vendor thing in github..i have downloaded all the cyanogenmod thing.. i ran the command ". build/envsetup.sh " which ran successfully so now my questionaire starts from here...

1> as i dont have device tree for my device in github how m i suppose to add that..

2>neither do i hav a vendor or kernel directory in github how m i suppose to add tht too..

3>as my device is unsupported how to add my device name for brunch lunch commands..

4>how do i extract proprietry blobs for my device..???(i read it in wiki for porting cyanogenmod).. :confused::confused::confused::confused::confused::confused:

please help..while adding local_manifest i skipped tht step n went directly to repo sync.. n the below is the thing i have reached so far..

Syncing work tree: 100% (465/465), done.

akshay@akshay-Lenovo-G570:~/cm11$ . build/envsetup.sh

including device/generic/armv7-a-neon/vendorsetup.sh

including device/generic/goldfish/vendorsetup.sh

including device/generic/mips/vendorsetup.sh

including device/generic/x86/vendorsetup.sh

including vendor/cm/vendorsetup.sh

including sdk/bash_completion/adb.bash

including vendor/cm/bash_completion/git.bash

including vendor/cm/bash_completion/repo.bash

akshay@akshay-Lenovo-G570:~/cm11$
[Android] RVR:
A suggestion... Don't start with making a device tree.... Learn to compile roms first...
[Android] jackeagle:
Hi,

A suggestion has stated by [MENTION=4924398]rutvikrvr[/MENTION] do not start with Device Tree Building has its complicated task and require a bit knowledge to solve bugs/patches...first try to compile the basic Rom which has cm support :)
[Android] Nat_05:
Cool!! This is great. Thanks!!!
[Android] javi1609:
thanks for the very useful guide !!
[Android] hahagu:
Yay! Nowhere near help!
[Android] Uchiha_Dev:
don't you have source code and vendor trees for your device ?

If you want a ROM, I can help you but if you want to build a ROM, sorry I cant help

Also if you want a ROM, and what I tell you works then you can build a ROM (hopefully, the method I give you works)
[Android] SlimShady's:
Does anyone know how to fix this error?

http://hastebin.com/miyokoliva.hs
[Android] hahagu:
Well, I have the kernel src, but not the vendor trees, and I have no idea on how to obtain them :P
[Android] SlimShady's:
You need to sync this: https://github.com/TheMuppets/proprietary_vendor_samsung/

And you will use i9500 folder as your vendor tree.
[Android] KeTuRr74:
Change your toolchain ?
[Android] SlimShady's:
I'm using Uber-4.9 for building Kernel/ROM. With other ROMs is all fine..Why with this no? D:

And which one should I use?
[Android] Uchiha_Dev:
Are the chipsets the same ? And if it is so close to i9500 you can actually port the ROM, and if you want to build you can build for i9500 and port for your device.

If it is as closely related to i9500 as you say it is, follow this :

1. Make sure you have a i9500 ROM using stock kernel and not a custom kernel (I think you can boot with custom kernel too, if the device is very closely related to i9500)

2. Decompile the boot.img using android kitchen and replace kernel from stock to port boot

3. Replace /etc/firmware,belutooth,security,wifi

4. Replace libMali.so

5. Replace libaudio.primary.default.so

This should allow you to port the ROM, infact I port CM 12.1 and CM 13 to my device, this will be my first time building for my device.

Please make a backup and do at your own risk, there should be no risks as long as you have a backup

Once the ROM boots if you have any issues just tell me I will try to help you to fix

OR You can do what [MENTION=5618023]SlimShady's[/MENTION] just told you too, much better option
[Android] Uchiha_Dev:
finally synced ! I can't find build instructions in mainfest.xml

Figured it out the "-j4" was causing issues, removed it and now comiling
[Android] Droidcore:
have problem with this command

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

but it's okay if this command work for me?

sudo apt-get install git ccache automake lzop bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 g++-multilib python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng
[Android] hahagu:
Wait, then by ur method, I need to run a i9500 stock firmware on my e300k?

I mean they ARE after all both S4, and have the same chipset, but I don't think the stock firmware for i9500 will flash?

Or, r u saying that I should get a copy of the i9500 ROM and decompile the boot.img?

And by [MENTION=5618023]SlimShady's[/MENTION] method, I don't need to change anything??

Also, u r porting the ROM not building it?

---------- Post added at 04:11 PM ---------- Previous post was at 04:08 PM ----------

Do I need to change any files in it?

And my device is jaltektt or e300k not jflte or i9500
[Android] Uchiha_Dev:
Basically yes you should be able to boot it, I port CM 12.1, CM 13 and any custom ROM from different mobile phones if if they are not related to my device as long as it runs same android version (kernel version) and same chipset. But if you device is very similar and uses same codegens and sources as i9500 you should be able to boot new android versions. Use the base ROM should be same android version (kernel version) as you are porting. I cannot explain any better than this.

And thanks to this thread I have finally "compiled" CM 13.0 !!
[Android] hahagu:
Well, so theoretically I should be able to boot from I9500 ROM on my E300K?

And I should be able to port the i9500 CM to E300K by changing some libraries and dependencies?

I mean they are the same S4 with 'almost' the same specs, but has different kernel source.

Should I compare them?

Here's the link to the SHV-E300K_LL source code

This is straight from Samsung opensource center so yeah...

and is the source usually this small? I thought it would be like 2gb or more?

P.S. oh, and there is a 1.4gb ver of the src, should I download that although its for KitKat? and ovrewrite files with Lollipop?
[Android] Uchiha_Dev:
I don't really know much about sources, this is my first time doing so and I was successful, yes you should be able to port, just follow the guide which I gave you above, Check the kernel version of the CM you are trying to port. You must use same android version stock ROM + your device must be running the same bootloader.

Eg; You download CM 12.1 with Kernel 3.4.67 for i9500

Your device must be running 3.4.67 kernel + You must use stock/base ROM running 3.4.67

Then port using the guide I gave you above
[Android] Uchiha_Dev:
can I delete the out/target/product/"<codename>" folder if I am done building ?
[Android] YannikM:
Type into the terminal "make clean"

Gesendet von meinem GT-I9300 mit Tapatalk
[Android] Uchiha_Dev:
that won't delete the sources will it ?
[Android] SlimShady's:
It will only delete the /out folder.

Inviato dal mio LG-D405n utilizzando Tapatalk
[Android] Uchiha_Dev:
Thanks, can I get a little help with a question.

I want to first build BlissPOP for a device, then I want to use that build and merge my sources with the new built ROM, how do I do it ?
[Android] Tanuj97:
trying to compile rr for ferrari ...getting this error

hardware/qcom/audio-caf/msm8916/hal/audio_extn/compress_capture.c: In function 'audio_extn_compr_cap_get_buffer_size':
hardware/qcom/audio-caf/msm8916/hal/audio_extn/compress_capture.c:110:16: error: 'AMR_WB_FRAMESIZE' undeclared (first use in this function)
return AMR_WB_FRAMESIZE;
^
hardware/qcom/audio-caf/msm8916/hal/audio_extn/compress_capture.c:110:16: note: each undeclared identifier is reported only once for each function it appears in
hardware/qcom/audio-caf/msm8916/hal/audio_extn/compress_capture.c:113:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: some warnings being treated as errors
make: *** [/home/tanuj/RR/out/target/product/ferrari/obj_arm/SHARED_LIBRARIES/audio.primary.msm8916_intermediates/audio_extn/compress_capture.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/tanuj/RR'

#### make failed to build some targets (01:05:48 (hh:mm:ss)) ####
[Android] akhilnarang:
Didn't understand your question

Please can you explain more
[Android] Uchiha_Dev:
I figured it out, can't be done. haha

---------- Post added at 06:21 PM ---------- Previous post was at 06:13 PM ----------

how do I know how big a source is ? Total size of the source
[Android] DarkFrenzy:
How much disk space is needed to build twrp ?

My disk has 40gb free space