[HELP/Q&A][SourceBuilding,AllDevices] The Source Building Q&A Help Thread

Is This Thread helpfull?


  • Total voters
    187
Search This thread

speed_bot

Senior Member
Jan 18, 2012
1,604
1,275
Bangalore
I have been wandering around the question and answers forum for some time now...i noticed a thing that most of them who had errors building from source have been left un answered..

i assume the following reasons for this

1)no dev would really care to search through and help out
2)users are scared to pm dev's
3)their posts are getting lost due to no actiivity within seconds of posting

as a outcome of all the above

the user isn't getting help

so i thought of making a thread for just source build errors..

so this this thread will focus on providing answers for all the problems that you are facing while building from source......


now i would like the users to follow a format similar to this for reporting

1)A full error encountered (pastie or any similar site's
2)your device name
3)your device tree that you have used for compiling(github link)
4)which rom are you building(cm aokp etc)
5)The guide which you are using to build(link)


another kind request please spread the link for this thread as many may benefit from it....

and find developers who are interested in helping....

feel free to give suggestions....

Before you move ahead make sure you copy paste this into the terminal

32bit users(ics & below)
HTML:
sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind squashfs-tools zip curl pngcrush schedtool ia32-libs x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libwxgtk2.6-dev

64bit ( you need this in addition with 32bit packages)

HTML:
sudo apt-get install git-core gnupg flex bison gperf build-essential \
  zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
  x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
  libxml2-utils gcc-4.3-multilib g++-4.3-multilib g++-multilib

common build errors


HTML:
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/YG/m805_892x/device_m805_892x.mk]]: "device/YG/m805_892x/m805_892x-vendor-blobs.mk" does not exist. Stop.

cause for problem
device_m805_892x.mk
Here in your device folder it is calling a make file which is required for compiling as in this case (device_m805_892x.mk) has a reference to
(device/YG/m805_892x/m805_892x-vendor-blobs.mk)

check if

(m805_892x-vendor-blobs.mk)

is there in vendors folder... as in this case this is not found ..


solution

1)remove the reference to that makefile..
2)check the path for makefile(these are case sensitive)
3)correct the makefile in vendor folder to match that in the makefile that has called it


2)

HTML:
make: *** No rule to make target `vendor/cm/proprietary/RomManager.apk', needed by `out/target/product/m805_892x/system/app/RomManager.apk'. Stop.
make: *** Waiting for unfinished jobs....


cause for the problem

Here the script is written to copy rommanager.apk to system app during the build process...
But the apk is missing which is stoping the make process

solution


cd into vendors/cm

then type this

HTML:
./get-prebuilts


IF some dev helps you out show your appreciation by using the thanks button
 
Last edited:

cbucz24

Senior Member
Jan 31, 2011
2,757
2,897
Central Florida
dude, you rock..

anyways, im still building the same pac...since my initial build wouldn't boot, i decided to switch up some of the internals...

PHP:
build/core/base_rules.mk:171: *** frameworks/native/cmds/sensorservice: MODULE.TARGET.EXECUTABLES.sensorservice already defined by frameworks/base/cmds/sensorservice.  Stop.

Ive asked this question so many times, im ready to go nuts...ive looked thru every file and i cant find where these are referenced...where do i redirect this? and any other that may error back the already defined?
 

wilfredcool007

Senior Member
Aug 20, 2011
440
1,311
Chennai
Contribute :

So..... A great thread to help all the beginners and the developers ( as everybody are prone to make mistakes ) I'd like to help too

But at first.... With reference to the problems I've encountered so far from different users.. all tat i see is most of them forget to install the necessary packages that are required for the build....

I've made a general command tat would hold most of the packages that are required for the build

For 32 Bit :

Code:
 sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind squashfs-tools zip curl pngcrush schedtool ia32-libs x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libwxgtk2.6-dev

For 64 Bit :

Code:
 sudo apt-get install git-core gnupg flex bison gperf build-essential \
  zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
  x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
  libxml2-utils gcc-4.3-multilib g++-4.3-multilib g++-multilib

Ps : I'd add more as and when needed as we encounter new problems :D

---------- Post added at 10:49 AM ---------- Previous post was at 10:49 AM ----------

Reserved just in case :D

---------- Post added at 10:53 AM ---------- Previous post was at 10:49 AM ----------

dude, you rock..

anyways, im still building the same pac...since my initial build wouldn't boot, i decided to switch up some of the internals...

PHP:
build/core/base_rules.mk:171: *** frameworks/native/cmds/sensorservice: MODULE.TARGET.EXECUTABLES.sensorservice already defined by frameworks/base/cmds/sensorservice.  Stop.

Ive asked this question so many times, im ready to go nuts...ive looked thru every file and i cant find where these are referenced...where do i redirect this? and any other that may error back the already defined?

It would help us more to understand the problem if u could provide the device tree that u r using ( Github Link )
 

speed_bot

Senior Member
Jan 18, 2012
1,604
1,275
Bangalore
dude, you rock..

anyways, im still building the same pac...since my initial build wouldn't boot, i decided to switch up some of the internals...

PHP:
build/core/base_rules.mk:171: *** frameworks/native/cmds/sensorservice: MODULE.TARGET.EXECUTABLES.sensorservice already defined by frameworks/base/cmds/sensorservice.  Stop.

Ive asked this question so many times, im ready to go nuts...ive looked thru every file and i cant find where these are referenced...where do i redirect this? and any other that may error back the already defined?

it seems that a single service (sensorservice) is defined in two places your tree would help... and spread the word about this thread as it ma help many people out :D just a request...

your error is like your destination is x

and there are two paths leading to it and you are confused which one to take..

so it has stopped ok try deleting

frameworks/base/cmds/sensorservice

or

frameworks/native/cmds/sensorservice

(one of two not both
)
 
Last edited:

[email protected]

Senior Member
Nov 7, 2011
244
89
I would like to share some solution to some basic build problems. I did copy this from my own thread here:
http://forum.xda-developers.com/showthread.php?t=1935162


Fix problems... This the learning part.. Fun but can be really anoying to.

First i got my self:
make otatools did not work.
-Try make -j4 out/host/linux-x86/bin/unpackbootimg
-put "unpackbootimg" in ~/android/system/out/host/linux-x86/bin then i copy it to ~/usr/bin and set chmod.
Im did see a download if it some place. Google.
-copy unpackbootimg to into /usr/bin If it is there, make it executable.
make executable: sudo chmod a+x /usr/bin/unpackbootimg
-Run make clubber from The ICS folder. Than restart pc might help to.

Nother problem that i did run into trying to make ext4 images:
make_ext4fs -s -l 0x40000000 -a data out/target/product/m805_892x/userdata.img out/target/product/m805_892x/data
Need size of filesystem
make: *** [out/target/product/m805_892x/userdata.img] Error 4
make: *** Waiting for unfinished jobs..

The sizes need to be in bytes it seems.
make_ext4fs does not support hex in the -l argument
DD dump you´re partitions and you see the amount of bytes.

I put this in my BoardConfig.mk like this:
BOARD_USERDATAIMAGE_PARTITION_SIZE := 1073741824

Use this to finisch waiting jobs..:
make_ext4fs -s -l 1073741824 -a data out/target/product/m805_892x/userdata.img out/target/product/m805_892x/data

problem:
-frank@frank-Aspire-5755G:~/ICS$ make -j4 recoveryimage
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/YG/m805_892x/device_m805_892x.mk]]: "device/YG/m805_892x/m805_892x-vendor-blobs.mk" does not exist. Stop.

The error is somewhare found in this file:
device_m805_892x.mk I used the original file and start adding things again.

Problem:
make: *** No rule to make target `vendor/cm/proprietary/RomManager.apk', needed by `out/target/product/m805_892x/system/app/RomManager.apk'. Stop.
make: *** Waiting for unfinished jobs....
Copy: out/target/product/m805_892x/system/bin/compcache
Copy: out/target/product/m805_892x/system/bin/handle_compcache
frank@frank-Aspire-5755G:~/ICS$

For that use the terminal and cd to:
cd /vendor/cm
run:
./get-prebuilts

This will download the RomManager.apk and bit of other stuff.
 

speed_bot

Senior Member
Jan 18, 2012
1,604
1,275
Bangalore
I would like to share some solution to some basic build problems. I did copy this from my own thread here:
http://forum.xda-developers.com/showthread.php?t=1935162


Fix problems... This the learning part.. Fun but can be really anoying to.

First i got my self:
make otatools did not work.
-Try make -j4 out/host/linux-x86/bin/unpackbootimg
-put "unpackbootimg" in ~/android/system/out/host/linux-x86/bin then i copy it to ~/usr/bin and set chmod.
Im did see a download if it some place. Google.
-copy unpackbootimg to into /usr/bin If it is there, make it executable.
make executable: sudo chmod a+x /usr/bin/unpackbootimg
-Run make clubber from The ICS folder. Than restart pc might help to.

Nother problem that i did run into trying to make ext4 images:
make_ext4fs -s -l 0x40000000 -a data out/target/product/m805_892x/userdata.img out/target/product/m805_892x/data
Need size of filesystem
make: *** [out/target/product/m805_892x/userdata.img] Error 4
make: *** Waiting for unfinished jobs..

The sizes need to be in bytes it seems.
make_ext4fs does not support hex in the -l argument
DD dump you´re partitions and you see the amount of bytes.

I put this in my BoardConfig.mk like this:
BOARD_USERDATAIMAGE_PARTITION_SIZE := 1073741824

Use this to finisch waiting jobs..:
make_ext4fs -s -l 1073741824 -a data out/target/product/m805_892x/userdata.img out/target/product/m805_892x/data

problem:
-frank@frank-Aspire-5755G:~/ICS$ make -j4 recoveryimage
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/YG/m805_892x/device_m805_892x.mk]]: "device/YG/m805_892x/m805_892x-vendor-blobs.mk" does not exist. Stop.

The error is somewhare found in this file:
device_m805_892x.mk I used the original file and start adding things again.

Problem:
make: *** No rule to make target `vendor/cm/proprietary/RomManager.apk', needed by `out/target/product/m805_892x/system/app/RomManager.apk'. Stop.
make: *** Waiting for unfinished jobs....
Copy: out/target/product/m805_892x/system/bin/compcache
Copy: out/target/product/m805_892x/system/bin/handle_compcache
frank@frank-Aspire-5755G:~/ICS$

For that use the terminal and cd to:
cd /vendor/cm
run:
./get-prebuilts

This will download the RomManager.apk and bit of other stuff.

i will add this to op... i will expalin the problem the cause for it and the fix for it..i will explain stuff and type it in general for all devices..btw thanks for the reply ... will update the op soon..
 

ktempleton

Senior Member
Oct 3, 2012
4,531
5,941
Lebanon
So I've subscribed to this thread and I'll help when I can I've built about seven different ROMs and have had to solve allot of issues lol

Sent from my SAMSUNG-SGH-I577 using xda premium
 
  • Like
Reactions: speed_bot

speed_bot

Senior Member
Jan 18, 2012
1,604
1,275
Bangalore
So I've subscribed to this thread and I'll help when I can I've built about seven different ROMs and have had to solve allot of issues lol

Sent from my SAMSUNG-SGH-I577 using xda premium

thank you for helping..i too have done a lot of source builds and faced hell lot of problems so i made this as a general thread to get help and help other's too...
 

wilfredcool007

Senior Member
Aug 20, 2011
440
1,311
Chennai
Getting this error while compiling for Samsung Galaxy Fit. I have used CM 10's device config & did changes as mentioned. Please any there help me
http://pastebin.com/QW2ViEDk

Code:
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasService.java:394: cannot find symbol
symbol  : variable REQUEST_TYPE_MESSAGE_ACCESS
location: class android.bluetooth.BluetoothDevice
                       BluetoothDevice.REQUEST_TYPE_MESSAGE_ACCESS);
                                      ^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasService.java:458: cannot find symbol
symbol  : variable REQUEST_TYPE_MESSAGE_ACCESS
location: class android.bluetooth.BluetoothDevice
                BluetoothDevice.REQUEST_TYPE_MESSAGE_ACCESS);

The part thats causing u the errors... !!!!

check the files BluetoothMasService.java and BluetoothMasService.java with the one in CM10 repo nd see wat is missing
 
  • Like
Reactions: speed_bot

ktempleton

Senior Member
Oct 3, 2012
4,531
5,941
Lebanon
Getting this error while compiling for Samsung Galaxy Fit. I have used CM 10's device config & did changes as mentioned. Please any there help me
http://pastebin.com/QW2ViEDk

What repo are you using I'll post a thread in aa min you need to get the repo for utackas repo because pa repo is broke


http://forum.xda-developers.com/showthread.php?p=35507138


Don't know if your using this repo but I was getting errors like that until I switched
Sent from my SAMSUNG-SGH-I577 using xda premium
 
  • Like
Reactions: speed_bot

hashroot

Senior Member
Feb 2, 2012
614
1,597
Mumbai
thetechndroid.com
o_O

Code:
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasService.java:394: cannot find symbol
symbol  : variable REQUEST_TYPE_MESSAGE_ACCESS
location: class android.bluetooth.BluetoothDevice
                       BluetoothDevice.REQUEST_TYPE_MESSAGE_ACCESS);
                                      ^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasService.java:458: cannot find symbol
symbol  : variable REQUEST_TYPE_MESSAGE_ACCESS
location: class android.bluetooth.BluetoothDevice
                BluetoothDevice.REQUEST_TYPE_MESSAGE_ACCESS);

The part thats causing u the errors... !!!!

check the files BluetoothMasService.java and BluetoothMasService.java with the one in CM10 repo nd see wat is missing

I tried :( i think this is d error of source.


What repo are you using I'll post a thread in aa min you need to get the repo for utackas repo because pa repo is broke


http://forum.xda-developers.com/showthread.php?p=35507138


Don't know if your using this repo but I was getting errors like that until I switched
Sent from my SAMSUNG-SGH-I577 using xda premium

u compiled by using utacka's repo? n what is d size of source?
 

cbucz24

Senior Member
Jan 31, 2011
2,757
2,897
Central Florida
What repo are you using I'll post a thread in aa min you need to get the repo for utackas repo because pa repo is broke


http://forum.xda-developers.com/showthread.php?p=35507138


Don't know if your using this repo but I was getting errors like that until I switched
Sent from my SAMSUNG-SGH-I577 using xda premium

Ummm, how long has the pa repo been broken? I did see that someone said something about it. Reason I'm asking, In building PAC and part of the manifest pulls from PA doesn't it? Could that be causing my problems?

Sent from my PC36100 using Tapatalk 2
 

ktempleton

Senior Member
Oct 3, 2012
4,531
5,941
Lebanon
Have you erased one of those files the error pointed to
My PAC runs fine but when I ran it for the first time I had maybe four duplicates I had to take care of
Sent from my SAMSUNG-SGH-I577 using xda premium
 

cbucz24

Senior Member
Jan 31, 2011
2,757
2,897
Central Florida
Have you erased one of those files the error pointed to
My PAC runs fine but when I ran it for the first time I had maybe four duplicates I had to take care of
Sent from my SAMSUNG-SGH-I577 using xda premium

well, i think i have to switch one or two more items in my local_manifest...i saw that git links i was using are not going to be updated any longer due to another dev going forward with the project.

but before i can switch them all out, i have to make sure i have the links right..but github is down so im kinda stuck for a bit :rolleyes:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 78
    I have been wandering around the question and answers forum for some time now...i noticed a thing that most of them who had errors building from source have been left un answered..

    i assume the following reasons for this

    1)no dev would really care to search through and help out
    2)users are scared to pm dev's
    3)their posts are getting lost due to no actiivity within seconds of posting

    as a outcome of all the above

    the user isn't getting help

    so i thought of making a thread for just source build errors..

    so this this thread will focus on providing answers for all the problems that you are facing while building from source......


    now i would like the users to follow a format similar to this for reporting

    1)A full error encountered (pastie or any similar site's
    2)your device name
    3)your device tree that you have used for compiling(github link)
    4)which rom are you building(cm aokp etc)
    5)The guide which you are using to build(link)


    another kind request please spread the link for this thread as many may benefit from it....

    and find developers who are interested in helping....

    feel free to give suggestions....

    Before you move ahead make sure you copy paste this into the terminal

    32bit users(ics & below)
    HTML:
    sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind squashfs-tools zip curl pngcrush schedtool ia32-libs x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libwxgtk2.6-dev

    64bit ( you need this in addition with 32bit packages)

    HTML:
    sudo apt-get install git-core gnupg flex bison gperf build-essential \
      zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
      x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
      libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
      libxml2-utils gcc-4.3-multilib g++-4.3-multilib g++-multilib

    common build errors


    HTML:
    build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/YG/m805_892x/device_m805_892x.mk]]: "device/YG/m805_892x/m805_892x-vendor-blobs.mk" does not exist. Stop.

    cause for problem
    device_m805_892x.mk
    Here in your device folder it is calling a make file which is required for compiling as in this case (device_m805_892x.mk) has a reference to
    (device/YG/m805_892x/m805_892x-vendor-blobs.mk)

    check if

    (m805_892x-vendor-blobs.mk)

    is there in vendors folder... as in this case this is not found ..


    solution

    1)remove the reference to that makefile..
    2)check the path for makefile(these are case sensitive)
    3)correct the makefile in vendor folder to match that in the makefile that has called it


    2)

    HTML:
    make: *** No rule to make target `vendor/cm/proprietary/RomManager.apk', needed by `out/target/product/m805_892x/system/app/RomManager.apk'. Stop.
    make: *** Waiting for unfinished jobs....


    cause for the problem

    Here the script is written to copy rommanager.apk to system app during the build process...
    But the apk is missing which is stoping the make process

    solution


    cd into vendors/cm

    then type this

    HTML:
    ./get-prebuilts


    IF some dev helps you out show your appreciation by using the thanks button
    8
    the last one reserved
    5
    Im experiencing the same issue, Must of been some changes pushed over to the cyanogen repo..



    Can you please elaborate on this..

    goto packages/apps/dsp

    rename Android.mk to
    Android.mk.Disabled
    4
    So I've subscribed to this thread and I'll help when I can I've built about seven different ROMs and have had to solve allot of issues lol

    Sent from my SAMSUNG-SGH-I577 using xda premium

    thank you for helping..i too have done a lot of source builds and faced hell lot of problems so i made this as a general thread to get help and help other's too...