[Q] CM Build problems - Moto G Q&A, Help & Troubleshooting

Can someone help me? I can't initiate the repo on my PC. I installed Ubuntu 14.04 LTS and I can't do the repo init.
I got:
Get https://gerrit.googlesource.com/git-repo
fatal: unable to access 'https://gerrit.googlesource.com/git-repo/': Could not resolve host: gerrit.googlesource.com
Or:
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno -2] Name or service not known

Related

Problem downloading ICS sources using repo sync

Platform is kubuntu 10.04 in virtualbox VM
Anybody has any idea what this means or how to resolve it? Thanks in advance.
Encountered Error:
remote: Counting objects: 18, done
remote: Finding sources: 100% (10/10)
remote: Getting sizes: 100% (16/16)
remote: Compressing objects: 100% (8/8)
remote: Total 10 (delta 0), reused 4 (delta 0)
Unpacking objects: 100% (10/10), done.acking objects: 90% (9/10)
From <https>://android.googlesource.com/platform/ndk
4f085ae..e4cedbc master -> aosp/master
error: Failed to connect to 2404:6800:4008:c01::52: Network is unreachable while accessing <https://>android.googlesource.com/platform/packages/apps/CellBroadcastReceiver/info/refs
fatal: HTTP request failed
error: gnutls_handshake() failed: A TLS packet with unexpected length was received. while accessing <https>://android.googlesource.com/platform/packages/apps/CertInstaller/info/refs
fatal: HTTP request failed
error: gnutls_handshake() failed: A TLS packet with unexpected length was received. while accessing <https>://android.googlesource.com/platform/packages/apps/Camera/info/refs
fatal: HTTP request failed
error: gnutls_handshake() failed: A TLS packet with unexpected length was received. while accessing <https>://android.googlesource.com/platform/packages/apps/Contacts/info/refs
fatal: HTTP request failed
error: The requested URL returned error: 403 while accessing <https>://android.googlesource.com/platform/packages/apps/CellBroadcastReceiver/info/refs
fatal: HTTP request failed
Click to expand...
Click to collapse
any help?
Bump bump
It looks like repo tries to download files over IPv6 but your ISP is not prepared for it. How exactly you try to compile?
Look at this thread: http://forum.xda-developers.com/showthread.php?t=1386615
anonymous_coward said:
Platform is kubuntu 10.04 in virtualbox VM
Anybody has any idea what this means or how to resolve it? Thanks in advance.
Click to expand...
Click to collapse
github has been having problems over the last couple of days

[Q] Issues with syncing

So I am trying to sync from VanirAOSP git hub I run this command:
repo init -u git://github.com/VanirAOSP/platform_manifest.git -b jb42
Then : repo sync
it seems to run for a while then I get this:
* [new branch] master -> aosp/master
error: Exited sync due to fetch errors
I try repo sync again and get this:
Fetching projects: 2% (7/334) fatal: Couldn't find remote ref refs/tags/android-4.2.1_r1
Unexpected end of command stream
fatal: Couldn't find remote ref refs/tags/android-4.2.1_r1
Unexpected end of command stream
fatal: Couldn't find remote ref refs/tags/android-4.2.1_r1
Unexpected end of command stream
Fetching projects: 99% (331/334) fatal: Couldn't find remote ref refs/tags/android-4.2.1_r1
Unexpected end of command stream
fatal: Couldn't find remote ref refs/tags/android-4.2.1_r1
Unexpected end of command stream
fatal: Couldn't find remote ref refs/tags/android-4.2.1_r1
Unexpected end of command stream
error: Cannot fetch platform/external/bluetooth/bluedroid
error: Cannot fetch platform/packages/apps/Nfc
error: Cannot fetch platform/external/libnfc-nci
error: Exited sync due to fetch errors
oh and I'm running Linux Mint 14 64bit and this is for the VZW Galaxy Nexus

Need help compiling cm

I was trying to learn how to compile cm from source and was following galaxyfreak's guide....
I reached till repo initialisation but when i typed repo sync the following error came up please help...
[email protected]:~/CM10.1/android/system$ repo sync
Initializing project CyanogenMod/android_abi_cpp ...
fatal: '../CyanogenMod/android_abi_cpp.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
error: Cannot fetch CyanogenMod/android_abi_cpp
oops got it i was using an old repo tool...

[Q] Error in building CM12.0 for Xperia-L

I tried to builld CM12 for Xperia-L. After issuing 'breakfast taoshan', the process apparently got stuck at 66%. I aborted by pressing Ctrl+C. When I am reissuing the command, it's throwing error. Can anybody please help me out?
Code:
[email protected]:~/CM12/build$ breakfast taoshan
ls: cannot access device/*/taoshan/cm.mk: No such file or directory
build/core/product_config.mk:234: *** Can not locate config makefile for product "cm_taoshan". Stop.
Device taoshan not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_sony_taoshan
Default revision: cm-12.0
Checking branch info
Adding dependency: CyanogenMod/android_device_sony_taoshan -> device/sony/taoshan
Using default branch for android_device_sony_taoshan
Syncing repository to retrieve project.
Fetching project CyanogenMod/android_device_sony_taoshan
Fetching projects: 100% (1/1), done.
Repository synced!
Looking for dependencies
Adding dependencies to manifest
Adding dependency: CyanogenMod/android_device_sony_msm8960-common -> device/sony/msm8960-common
Using default branch for android_device_sony_msm8960-common
Adding dependency: CyanogenMod/android_kernel_sony_msm8930 -> kernel/sony/msm8930
Using default branch for android_kernel_sony_msm8930
Adding dependency: CyanogenMod/android_hardware_qcom_fm -> hardware/qcom/fm
Using default branch for android_hardware_qcom_fm
Syncing dependencies
Fetching project CyanogenMod/android_kernel_sony_msm8930
Fetching project CyanogenMod/android_hardware_qcom_fm
Fetching project CyanogenMod/android_device_sony_msm8960-common
Fetching projects: 66% (2/3) ^C
^C^C^C^C^C^C^C^C
error: Cannot fetch CyanogenMod/android_kernel_sony_msm8930
aborted by user
Looking for dependencies
Dependencies file not found, bailing out.
Looking for dependencies
Dependencies file not found, bailing out.
Looking for dependencies
Dependencies file not found, bailing out.
Done
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/sony/taoshan/cm.mk]]: "device/sony/common/resources.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_taoshan'
** Do you have the right repo manifest?
=======================================================
[email protected]:~/CM12/build$
[email protected]:~/CM12/build$ breakfast taoshan
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/sony/taoshan/cm.mk]]: "device/sony/common/resources.mk" does not exist. Stop.
Device taoshan not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_sony_taoshan
Default revision: cm-12.0
Checking branch info
CyanogenMod/android_device_sony_taoshan already exists
Syncing repository to retrieve project.
Fetching project CyanogenMod/android_device_sony_taoshan
Fetching projects: 100% (1/1), done.
Repository synced!
Looking for dependencies
Done
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/sony/taoshan/cm.mk]]: "device/sony/common/resources.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_taoshan'
** Do you have the right repo manifest?
clone this paste RAW Paste Data
Pastebin.com Tools & Applications
iPhone/iPad Windows Firefox Chrome WebOS Android Mac Opera Click.to UNIX WinPhone
create new paste | api | trends | syntax languages | faq | tools | privacy | cookies | contact | dmca | advertise on pastebin | go pro
Follow us: pastebin on facebook | pastebin on twitter | pastebin in the news
Dedicated Server Hosting by Steadfast
Pastebin v3.11 rendered in: 0.008 seconds
Holmes.Sherlock said:
I tried to builld CM12 for Xperia-L. After issuing 'breakfast taoshan', the process apparently got stuck at 66%. I aborted by pressing Ctrl+C. When I am reissuing the command, it's throwing error. Can anybody please help me out?
Click to expand...
Click to collapse
I'm getting the same error, seems like repo couldn't find the device kernel from cyanogenmod's github so I added a local_manifest extracted from android_device_sony_taoshan/blob/cm-12.0/cm.dependencies/ but to no avail. Still getting the error as below.
Code:
[email protected]:~/android/system$ breakfast taoshan
including vendor/cm/vendorsetup.sh
build/core/combo/select.mk:65: build/core/combo/HOST_linux-.mk: No such file or directory
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
build/core/clang/config.mk:76: build/core/clang/HOST_.mk: No such file or directory
make: *** No rule to make target `build/core/clang/HOST_.mk'. Stop.
Device taoshan not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_sony_taoshan
Default revision: cm-12.0
Checking branch info
CyanogenMod/android_device_sony_taoshan already exists
Syncing repository to retrieve project.
fatal: error parsing manifest /home/manu/android/system/.repo/local_manifests/myoldphone.xml: XML or text declaration not at start of entity: line 3, column 0
Repository synced!
Looking for dependencies
Done
build/core/combo/select.mk:65: build/core/combo/HOST_linux-.mk: No such file or directory
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
build/core/clang/config.mk:76: build/core/clang/HOST_.mk: No such file or directory
make: *** No rule to make target `build/core/clang/HOST_.mk'. Stop.
** Don't have a product spec for: 'cm_taoshan'
** Do you have the right repo manifest?
[email protected]:~/android/system$
Any idea how to get past this issue?
manubhargav said:
I'm getting the same error, seems like repo couldn't find the device kernel from cyanogenmod's github so I added a local_manifest extracted from android_device_sony_taoshan/blob/cm-12.0/cm.dependencies/ but to no avail. Still getting the error as below.
Code:
[email protected]:~/android/system$ breakfast taoshan
including vendor/cm/vendorsetup.sh
build/core/combo/select.mk:65: build/core/combo/HOST_linux-.mk: No such file or directory
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
build/core/clang/config.mk:76: build/core/clang/HOST_.mk: No such file or directory
make: *** No rule to make target `build/core/clang/HOST_.mk'. Stop.
Device taoshan not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_sony_taoshan
Default revision: cm-12.0
Checking branch info
CyanogenMod/android_device_sony_taoshan already exists
Syncing repository to retrieve project.
fatal: error parsing manifest /home/manu/android/system/.repo/local_manifests/myoldphone.xml: XML or text declaration not at start of entity: line 3, column 0
Repository synced!
Looking for dependencies
Done
build/core/combo/select.mk:65: build/core/combo/HOST_linux-.mk: No such file or directory
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
build/core/clang/config.mk:76: build/core/clang/HOST_.mk: No such file or directory
make: *** No rule to make target `build/core/clang/HOST_.mk'. Stop.
** Don't have a product spec for: 'cm_taoshan'
** Do you have the right repo manifest?
[email protected]:~/android/system$
Any idea how to get past this issue?
Click to expand...
Click to collapse
your manifest seems broken.... please make a clean sync (delete complete workingfolder and resync)
SdtBarbarossa said:
your manifest seems broken.... please make a clean sync (delete complete workingfolder and resync)
Click to expand...
Click to collapse
Thank you for your reply, I overlooked some requirements for building from source and I had a 32-bit Ubuntu system which gave me the error
Code:
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error
Now switching to 64-bit Ubuntu.

Need help with Building Android

Hello guys. I am building CarbonROM 5.1.1 for jfltexx (i9505) and while syncing I get this:
Command: repo sync
Error: Exiting sync due to fetch errors
Command: repo sync -f
Error: Exiting sync due to gc errors
Also I get tinyxml.git error:
Fatal: not a git repository: $WORKDIR/.repo/projectd/external/tinyxml.git
And also:
! [new tag] android-5.1.1_r4 -> android-5.1.1_r4 (unable to uodate local ref) -- I get this for all branches..
Any way to solve these?
Thanks.
Sent from my GT-I9505
Edit: Not needed anymore
Sent from my GT-I9505

Categories

Resources