Git error... - General Questions and Answers

This error happened after a repo sync, where I was downloading the entire AOSP source. There is no trace of the downloaded source...which is kind of lame as I just waited for a few hours...
But whatever...time to sleep I guess. Let me know if you have any ideas
Here's the error:
Code:
Fetching projects: 100% (158/158), done.
Traceback (most recent call last):
File "/Users/wdfowty/bin/mydroid/.repo/repo/main.py", line 235, in <module>
_Main(sys.argv[1:])
File "/Users/wdfowty/bin/mydroid/.repo/repo/main.py", line 217, in _Main
repo._Run(argv)
File "/Users/wdfowty/bin/mydroid/.repo/repo/main.py", line 123, in _Run
cmd.Execute(copts, cargs)
File "/Users/wdfowty/bin/mydroid/.repo/repo/subcmds/sync.py", line 338, in Execute
project.Sync_LocalHalf(syncbuf)
File "/Users/wdfowty/bin/mydroid/.repo/repo/project.py", line 712, in Sync_LocalHalf
lost = self._revlist(not_rev(revid), HEAD)
File "/Users/wdfowty/bin/mydroid/.repo/repo/project.py", line 1211, in _revlist
return self.work_git.rev_list(*a, **kw)
File "/Users/wdfowty/bin/mydroid/.repo/repo/project.py", line 1356, in rev_list
p.stderr))
error.GitError: platform/external/opencore rev-list ('^61bf9af643abf0011dcf82ae8a436aeb7e8aae97', 'HEAD', '--'): fatal: bad object HEAD

Related

Issues with setting up build environment

I'm looking at getting into rom cooking with this latest cyanogen fiasco, but i'm having errors getting repo set up, and i'm wondering if it's my configuration.
I'm running OS X 10.5.8, everything is updated, and i've followed the whole guide from source.android.com, up to a certain point.
when i run "repo init -u git://android.git.kernel.org/platform/manifest.git", i get this error:
Code:
Traceback (most recent call last):
File "/Users/aaron/bin/repo", line 595, in <module>
main(sys.argv[1:])
File "/Users/aaron/bin/repo", line 562, in main
_Init(args)
File "/Users/aaron/bin/repo", line 181, in _Init
_CheckGitVersion()
File "/Users/aaron/bin/repo", line 210, in _CheckGitVersion
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 593, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 1079, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
anyone else have this error or know how to correct it?
side note, I made a partition on an external hard drive for nabbing the source, i'm CDing to the /Volumes/Android/mydroid before i run the command. ( the partition is HFS journaled/case sensitive) and have all the port stuff installed onto my Mac hard drive
Nevermind, my path settings aren't sticking for some reason. resetting the path solved my problems

[Q] CM9 souce code download error

Hi friends,
I am a noob to XDA, and have a question to ask for help.
I try to download CM9 souce code as steps:
1. repo init -u XXXXXXX -b ics
2. repo sync
But when run "repo sync", the download can't complete.
The error info is,
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 504, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/nick/android_project/cyanogen_ics/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
clone_bundle=not opt.no_clone_bundle)
File "/home/nick/android_project/cyanogen_ics/.repo/repo/project.py", line 978, in Sync_NetworkHalf
and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
File "/home/nick/android_project/cyanogen_ics/.repo/repo/project.py", line 1519, in _ApplyCloneBundle
exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
File "/home/nick/android_project/cyanogen_ics/.repo/repo/project.py", line 1583, in _FetchBundle
raise DownloadError('%s: %s ' % (req.get_host(), str(e)))
DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>
How can I resovle this problem?
Thanks a lot!
Could anyone help me to resolve this problem?
Try again, this happens sometimes.
Sent from my LT26i using XDA
K900 said:
Try again, this happens sometimes.
Sent from my LT26i using XDA
Click to expand...
Click to collapse
Just try again, still doesn't work
Exception in thread Thread-1:9/60988), 4.41 MiB | 203 KiB/s /60988), 1.81 MiB | 169 KiB/s
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 504, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/nick/android_project/cyanogen_ics/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
clone_bundle=not opt.no_clone_bundle)
File "/home/nick/android_project/cyanogen_ics/.repo/repo/project.py", line 978, in Sync_NetworkHalf
and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
File "/home/nick/android_project/cyanogen_ics/.repo/repo/project.py", line 1519, in _ApplyCloneBundle
exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
File "/home/nick/android_project/cyanogen_ics/.repo/repo/project.py", line 1583, in _FetchBundle
raise DownloadError('%s: %s ' % (req.get_host(), str(e)))
DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>

repo Sync Failure "not a valid SHA1"

when trying to sync the source for a rom by existx, i get the following error:
Code:
$ repo sync -f
Fetching projects: 6% (17/274) Exception in thread Thread-19:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/patrick/src/aospX/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
clone_bundle=not opt.no_clone_bundle)
File "/home/patrick/src/aospX/.repo/repo/project.py", line 985, in Sync_NetworkHalf
self._InitMRef()
File "/home/patrick/src/aospX/.repo/repo/project.py", line 1786, in _InitMRef
self._InitAnyMRef(R_M + self.manifest.branch)
File "/home/patrick/src/aospX/.repo/repo/project.py", line 1798, in _InitAnyMRef
self.bare_git.UpdateRef(ref, dst, message = msg, detach = True)
File "/home/patrick/src/aospX/.repo/repo/project.py", line 1972, in UpdateRef
self.update_ref(*cmdv)
File "/home/patrick/src/aospX/.repo/repo/project.py", line 2033, in runner
p.stderr))
GitError: platform/external/aac update-ref: fatal: 2bda038c163298531d47394bc2c09e1409c5d0db^0: not a valid SHA1
Fetching projects: 7% (20/274)
error: Exited sync due to fetch errors
I took at look at Google's git site and saw the the the SHA1 matches the one in the manifest file (se attachment).
Line from the manifest file:
Code:
<project name="platform/external/aac" path="external/aac" revision="2bda038c163298531d47394bc2c09e1409c5d0db"/>
I have tried resyncing, and the force option (-f), but nothing has worked thus far.
I'm running Ubuntu 10.04 x86_64, and I have all the required packages for building roms installed. Can anyone help?
after waiting for the next commit it is working now. not sure what was wrong.

[Q] Building ROM

Hello, i am trying to build a rom for the Nexus 5.
Followed the steps to create a environment. Synced the repo (android-4.4_r1.2).
Ubuntu, JDK6 etc etc.
Java is working well?
Code:
which java
/usr/bin/java
which javac
/usr/bin/javac
which jar
/usr/bin/jar
http://source.android.com/source/index.html
I am getting this error:
Code:
Traceback (most recent call last):
File "../../base/android/jni_generator/jni_generator.py", line 1065, in <module>
sys.exit(main(sys.argv))
File "../../base/android/jni_generator/jni_generator.py", line 1061, in main
options.optimize_generation)
File "../../base/android/jni_generator/jni_generator.py", line 996, in GenerateJNIHeader
jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, namespace)
File "../../base/android/jni_generator/jni_generator.py", line 507, in CreateFromClass
stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Gyp action: third_party_WebKit_Source_core_core_derived_sources_gyp_generate_test_support_idls_target_Settings (out/target/product/hammerhead/obj/GYP/shared_intermediates/blink/SettingsMacros.h)
make: *** [out/target/product/hammerhead/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h] Error 1
Is the error because of hammerhead won't work with the android-4.4_r1.2 branche?
Code:
KRT16S android-4.4_r1.2 Latest KitKat version, Nexus 7 (flo/deb/grouper/tilapia), Nexus 4, Nexus 10
Can somebody help me?
Probably it's that...try with 4.4_r1.1 branch
I got the same error for android 4.4 r1.2
have you solve this problem?
jianggau said:
I got the same error for android 4.4 r1.2
have you solve this problem?
Click to expand...
Click to collapse
Did you try adding javah to the path?

Build fails with userdata.img generation - what is going wrong?

Hello all! I'm building bullhead on BlissRoms. Currently I'm running into this issue where userdata.img generation fails:
Code:
++++ userdata ++++
creating userdata.img...
Running: mkf2fsuserimg.sh /home/users/ideaman924/bliss/p9.0/out/target/product/bullhead/obj/PACKAGING/target_files_intermediates/bliss_bullhead-target_files-2ab3584229/IMAGES/userdata.img 11649679360 -f /tmp/tmpBxgXxI -s /home/users/ideaman924/bliss/p9.0/out/target/product/bullhead/obj/PACKAGING/target_files_intermediates/bliss_bullhead-target_files-2ab3584229/META/file_contexts.bin -t data -T 1230786000 -L data
Traceback (most recent call last):
File "build/make/tools/releasetools/add_img_to_target_files", line 825, in <module>
main(sys.argv[1:])
File "build/make/tools/releasetools/add_img_to_target_files", line 819, in main
AddImagesToTargetFiles(args[0])
File "build/make/tools/releasetools/add_img_to_target_files", line 744, in AddImagesToTargetFiles
AddUserdata(output_zip)
File "build/make/tools/releasetools/add_img_to_target_files", line 336, in AddUserdata
succ = build_image.BuildImage(user_dir, image_props, img.name)
File "/home/users/ideaman924/bliss/p9.0/build/make/tools/releasetools/build_image.py", line 750, in BuildImage
(mkfs_output, exit_code) = RunCommand(build_command)
File "/home/users/ideaman924/bliss/p9.0/build/make/tools/releasetools/build_image.py", line 67, in RunCommand
env=env_copy)
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
ninja: build stopped: subcommand failed.
07:57:36 ninja failed with: exit status 1
#### failed to build some targets (42:25 (mm:ss)) ####
real 42m25.455s
user 550m32.002s
sys 31m15.947s
[email protected]:~/bliss/p9.0$
These two commands fix it:
Code:
m -j brillo_update_payload
m -j otatools
But I'm not sure what is breaking. Is there a way to fix this behavior without issuing those commands periodically?
Thread closed at OP request

Categories

Resources