Jump to content

Compiling Cyanogenmod 10 Problem


Recommended Posts

Posted (edited)

Hello. I try compiling CM10 for Skate and I got the impression that something is going bad; it gets that error when compiling:


diee@q:~$ cd ~/building/cyanogenmod/jellybean

diee@q:~/building/cyanogenmod/jellybean$ ./vendor/cm/get-prebuilts

% Total % Received % Xferd Average Speed Time Time	 Time Current

								 Dload Upload Total Spent Left Speed

100 142 100 142 0	 0 138	 0 0:00:01 0:00:01 --:--:-- 183

100 320k 100 320k 0	 0 76912	 0 0:00:04 0:00:04 --:--:-- 69361

Archive: ./vendor/cm/proprietary/Term.apk

inflating: ./vendor/cm/proprietary/lib/armeabi/libjackpal-androidterm4.so

diee@q:~/building/cyanogenmod/jellybean$ source build/envsetup.sh

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

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

including device/ti/panda/vendorsetup.sh

including device/zte/blade2/vendorsetup.sh

including device/zte/skate/vendorsetup.sh

including vendor/cm/vendorsetup.sh

including sdk/bash_completion/adb.bash

diee@q:~/building/cyanogenmod/jellybean$ lunch cm_skate-userdebug

Looking for dependencies

Dependencies file not found, bailing out.

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.1.2

TARGET_PRODUCT=cm_skate

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv6-vfp

HOST_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-3.0.0-27-generic-x86_64-with-Ubuntu-11.10-oneiric

HOST_BUILD_TYPE=release

BUILD_ID=JZO54K

OUT_DIR=/home/diee/building/cyanogenmod/jellybean/out

============================================

diee@q:~/building/cyanogenmod/jellybean$ make -j4 bacon

make: *** No hay ninguna regla para construir el objetivo «bacon». Alto.

diee@q:~/building/cyanogenmod/jellybean$

make: *** There is no rule to build this target «bacon». Stop.

Can someone help me?

Thank you.

Edited by dieé
Posted

I'm using this repo:


https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

and this local_manifest:

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

  <!-- CM removals -->

  <remove-project name="CyanogenMod/android_build" />

  <remove-project name="CyanogenMod/android_external_libncurses" />

  <remove-project name="CyanogenMod/android_hardware_qcom_media" />

  <remove-project name="CyanogenMod/android_frameworks_av" />

  <remove-project name="CyanogenMod/android_frameworks_base" />

  <remove-project name="CyanogenMod/android_frameworks_native" />

  <remove-project name="CyanogenMod/android_vendor_cm" />

  <project name="ColdFusionX/android_build" path="build" remote="github" revision="jellybean" />

  <project name="ColdFusionX/android_external_libncurses" path="external/libncurses" remote="github" revision="jellybean" />

  <project name="ColdFusionX/android_hardware_qcom_media" path="hardware/qcom/media" remote="github" revision="jellybean" />

  <project name="ColdFusionX/android_frameworks_av" path="frameworks/av" remote="github" revision="jellybean" />

  <project name="ColdFusionX/android_frameworks_base" path="frameworks/base" remote="github" revision="jellybean" />

  <project name="ColdFusionX/android_frameworks_native" path="frameworks/native" remote="github" revision="jellybean" />

  <project name="ColdFusionX/android_vendor_cm" path="vendor/cm" remote="github" revision="jellybean" />

  <project name="ColdFusionX/android_device_zte_skate" path="device/zte/skate" remote="github" revision="jellybean" />

  <project name="ColdFusionX/android_device_zte_blade2" path="device/zte/blade2" remote="github" revision="jellybean" />

  <project name="ColdFusionX/android_device_zte_msm7x27-common" path="device/zte/msm7x27-common" remote="github" revision="jellybean" />

  <project name="ColdFusionX/android_kernel_zte_msm7x27" path="kernel/zte/msm7x27" remote="github" revision="jellybean" />

  <project name="ColdFusionX/proprietary_vendor_zte" path="vendor/zte" revision="jellybean" />

</manifest>

I think you mean to the first. Right?

Guest utternoob
Posted

Use the one in the CFX2 thread if you want to build CM10

Posted

I have used the local_manifest from tilal's github and the repo from a Cm10 tutorial.

Guest utternoob
Posted

Use the repo as well. Everything is ready for Skate there

Guest razzmataz1478
Posted (edited)

Do you have /device/zte/msm7x27-common?

Also vendor/zte/skate?

Edited by razzmataz1478
Guest razzmataz1478
Posted

Go in ColdFusionX repo and grab the cm.dependencies file that was deleted from the skate device repo a few days ago. Add it to your repo and try again.

Posted

Now i get this:


diee@q:~/building/cyanogenmod/jellybean$ lunch cm_skate-userdebug

Looking for dependencies

Traceback (most recent call last):

  File "build/tools/roomservice.py", line 183, in <module>

    fetch_dependencies(repo_path)

  File "build/tools/roomservice.py", line 160, in fetch_dependencies

    dependencies = json.loads(dependencies_file.read())

  File "/usr/lib/python2.7/json/__init__.py", line 326, in loads

    return _default_decoder.decode(s)

  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode

    obj, end = self.raw_decode(s, idx=_w(s, 0).end())

  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode

    obj, end = self.scan_once(s, idx)

ValueError: Expecting : delimiter: line 3 column 11 (char 18)

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

** Do you have the right repo manifest?

Guest razzmataz1478
Posted

With cm.dependencies file?

When it comes up with something like Traceback it means the syntax of a file is wrong.

Posted (edited)

Whit this cm.dependencies :


[

{

	 "repository": "zte-kernel-msm7x27",

	 "target_path": "kernel/zte/zte-kernel-msm7x27",

"branch": "jellybean"

},

{

	 "repository": "android_device_zte_msm7x27-common",

	 "target_path": "device/zte/msm7x27-common",

"branch": "jellybean"

},

]

ok, just a come... I will tell you. Thanks!

Edited by dieé
Posted

Just the same.

I get this.


diee@q:~/building/cyanogenmod/jellybean$ repo sync

... A new repo command ( 1.18) is available.

... You should upgrade soon:

    cp /home/diee/building/cyanogenmod/jellybean/.repo/repo/repo /home/diee/bin/repo

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

Fetching projects:  37% (119/321)  fatal: Couldn't find remote ref refs/heads/jellybean

Fetching projects:  89% (286/321)  error: Cannot fetch CyanogenMod/zte-kernel-msm7x27

Fetching projects:  90% (289/321) 

error: Exited sync due to fetch errors

diee@q:~/building/cyanogenmod/jellybean$  vendor/cm/get-prebuilts

  % Total    % Received % Xferd  Average Speed   Time    Time	 Time  Current

								 Dload  Upload   Total   Spent    Left  Speed

100   142  100   142    0	 0    197	  0 --:--:-- --:--:-- --:--:--   268

100  320k  100  320k    0	 0   199k	  0  0:00:01  0:00:01 --:--:--  549k

Archive:  vendor/cm/proprietary/Term.apk

  inflating: vendor/cm/proprietary/lib/armeabi/libjackpal-androidterm4.so 

diee@q:~/building/cyanogenmod/jellybean$ export USE_CCACHE=1 CM_EXPERIMENTAL=1 CM_EXTRAVERSION=[yourname]

diee@q:~/building/cyanogenmod/jellybean$

diee@q:~/building/cyanogenmod/jellybean$ . build/envsetup.sh

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

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

including device/ti/panda/vendorsetup.sh

including device/zte/blade2/vendorsetup.sh

including device/zte/skate/vendorsetup.sh

including vendor/cm/vendorsetup.sh

including sdk/bash_completion/adb.bash

diee@q:~/building/cyanogenmod/jellybean$ lunch cm_skate-userdebug

Looking for dependencies

Adding dependencies to manifest

CyanogenMod/android_device_zte_msm7x27-common already exists

Syncing dependencies

... A new repo command ( 1.18) is available.

... You should upgrade soon:

    cp /home/diee/building/cyanogenmod/jellybean/.repo/repo/repo /home/diee/bin/repo

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.1.2

TARGET_PRODUCT=cm_skate

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv6-vfp

HOST_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-3.0.0-27-generic-x86_64-with-Ubuntu-11.10-oneiric

HOST_BUILD_TYPE=release

BUILD_ID=JZO54K

OUT_DIR=/home/diee/building/cyanogenmod/jellybean/out

============================================

diee@q:~/building/cyanogenmod/jellybean$ make bacon -j4

make: *** No hay ninguna regla para construir el objetivo «bacon».  Alto.

diee@q:~/building/cyanogenmod/jellybean$

Guest razzmataz1478
Posted

Can you translate the make error to English for me? Can't be bothered with Spanish at this time :)

Posted

make: *** There is no rule to build this target «bacon». Stop.

Guest razzmataz1478
Posted


<remote name="github"

               fetch="https://github.com/" />

Add this to the top of your local manifest and sync again.

Posted

?xml version="1.0" encoding="UTF-8"?>

<manifest>

<remote name="github"

fetch="https://github.com/" />

<!-- CM removals -->

<remove-project name="CyanogenMod/android_build" />

<remove-project name="CyanogenMod/android_external_libncurses" />

<remove-project name="CyanogenMod/android_hardware_qcom_media" />

<remove-project name="CyanogenMod/android_frameworks_av" />

<remove-project name="CyanogenMod/android_frameworks_base" />

<remove-project name="CyanogenMod/android_frameworks_native" />

<remove-project name="CyanogenMod/android_vendor_cm" />

<project name="ColdFusionX/android_build" path="build" remote="github" revision="jellybean" />

<project name="ColdFusionX/android_external_libncurses" path="external/libncurses" remote="github" revision="jellybean" />

<project name="ColdFusionX/android_hardware_qcom_media" path="hardware/qcom/media" remote="github" revision="jellybean" />

<project name="ColdFusionX/android_frameworks_av" path="frameworks/av" remote="github" revision="jellybean" />

<project name="ColdFusionX/android_frameworks_base" path="frameworks/base" remote="github" revision="jellybean" />

<project name="ColdFusionX/android_frameworks_native" path="frameworks/native" remote="github" revision="jellybean" />

<project name="ColdFusionX/android_vendor_cm" path="vendor/cm" remote="github" revision="jellybean" />

<project name="ColdFusionX/android_device_zte_skate" path="device/zte/skate" remote="github" revision="jellybean" />

<project name="ColdFusionX/android_device_zte_blade2" path="device/zte/blade2" remote="github" revision="jellybean" />

<project name="ColdFusionX/android_device_zte_msm7x27-common" path="device/zte/msm7x27-common" remote="github" revision="jellybean" />

<project name="ColdFusionX/android_kernel_zte_msm7x27" path="kernel/zte/msm7x27" remote="github" revision="jellybean" />

<project name="ColdFusionX/proprietary_vendor_zte" path="vendor/zte" revision="jellybean" />

</manifest>

This give me errors...

Guest tilal6991
Posted

You were closest when you had your setup on the first post. Revert to that and then do

. build/*.sh

brunch skate

make -j4

And see if it works.

Guest razzmataz1478
Posted
You were closest when you had your setup on the first post. Revert to that and then do

. build/*.sh

brunch skate

make -j4

And see if it works.

What does brunch do? I guess I could Google it but....

Posted

The same.. this is frustrating


diee@q:~/building/cyanogenmod/jellybean$ . build/*.sh

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

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

including device/ti/panda/vendorsetup.sh

including device/zte/blade2/vendorsetup.sh

including device/zte/skate/vendorsetup.sh

including vendor/cm/vendorsetup.sh

including sdk/bash_completion/adb.bash

diee@q:~/building/cyanogenmod/jellybean$ brunch skate

including vendor/cm/vendorsetup.sh

Looking for dependencies

Dependencies file not found, bailing out.

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.1.2

TARGET_PRODUCT=cm_skate

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv6-vfp

HOST_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-3.0.0-27-generic-x86_64-with-Ubuntu-11.10-oneiric

HOST_BUILD_TYPE=release

BUILD_ID=JZO54K

OUT_DIR=/home/diee/building/cyanogenmod/jellybean/out

============================================

make: *** No hay ninguna regla para construir el objetivo «bacon».  Alto.  (make: *** There is no rule to build this target «bacon». Stop.)

diee@q:~/building/cyanogenmod/jellybean$ make -j4

make: *** No se especificó ningún objetivo y no se encontró ningún makefile.  Alto.  (make: *** It wasn't especified any target and didn't found any Makfile. Stop.

diee@q:~/building/cyanogenmod/jellybean$

Guest tilal6991
Posted

Why don't you have a makefile in the root directory? That's your issue.

Posted

I've only sync with the repository, without root access. I have to create a file or move it?

Sorry for my english xd

Guest razzmataz1478
Posted
Why don't you have a makefile in the root directory? That's your issue.

It's happening in the blade2 CM10 thread as well. No rule to make target...

  • 1 month later...
Guest priddyma
Posted

Instead of using brunch try this:

. build/envsetup.sh

lunch (then type the number of your device) and hit enter

make otapackage (bacon is the cm package for otapackage)

Other wise try a fresh repo sync as this fixed my problem when I got the "no rule to make target bacon" error.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.