Repo sync issues


Hi ,

I am trying to build lolipop for dragonboard 410c, but when i am trying to sync source code i am facing out of memory issue.

Steps which i did :-

sakhi@sakhi-Lenovo-Z580:~/build_410c$ repo sync -j10

error: error: Exited sync due to fetch errors

Then i have given force option ( repo sync -j1 -f --force-sync) in the command

sakhi@sakhi-Lenovo-Z580:~/build_410c$ repo sync -j1 -f --force-sync


remote: Compressing objects: 100% (76/76), done.
remote: Total 192 (delta 116), reused 192 (delta 116)
Receiving objects: 100% (192/192), 52.01 KiB | 0 bytes/s, done.
Resolving deltas: 100% (116/116), completed with 44 local objects.
From git://
3a248b7…6d55848 aosp-new/lldb-master-dev -> caf/aosp-new/lldb-master-dev
dd0687a…df2ac9a aosp-new/upstream-master -> caf/aosp-new/upstream-master
Fetching projects: 57% (297/521) Fetching project platform/prebuilts/eclipse-build-deps-sources
error: Cannot fetch platform/prebuilts/eclipse-build-deps-sources (GitError: fetch: [Errno 12] Cannot allocate memory)
Traceback (most recent call last):
File “/home/sakhi/build_410c/.repo/repo/”, line 531, in <module>
File “/home/sakhi/build_410c/.repo/repo/”, line 507, in _Main
result = repo._Run(argv) or 0
File “/home/sakhi/build_410c/.repo/repo/”, line 180, in _Run
result = cmd.Execute(copts, cargs)
File “/home/sakhi/build_410c/.repo/repo/subcmds/”, line 729, in Execute
fetched = self._Fetch(to_fetch, opt)
File “/home/sakhi/build_410c/.repo/repo/subcmds/”, line 381, in _Fetch
File “/home/sakhi/build_410c/.repo/repo/subcmds/”, line 270, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File “/home/sakhi/build_410c/.repo/repo/subcmds/”, line 314, in _FetchHelper
File “/home/sakhi/build_410c/.repo/repo/”, line 1185, in Sync_NetworkHalf
no_tags=no_tags, prune=prune)):
File “/home/sakhi/build_410c/.repo/repo/”, line 1942, in _RemoteFetch
gitcmd = GitCommand(self, cmd, bare=True, ssh_proxy=ssh_proxy)
File “/home/sakhi/build_410c/.repo/repo/”, line 238, in init
raise GitError(’%s: %s’ % (command[1], e))
error.GitError: fetch: [Errno 12] Cannot allocate memory


Past one week i am struggling while syncing the code, any help would be appreciated

Thanks in advance.


How much RAM and swap does your laptop have?

To be honest I’m a little worried that if you are running out of RAM simply doing version control then you may experience more severe problems when you try to build the code (see Android build requirements for more details).

It is possible that the memory error you observe is a mis-report (other types of resource exhaustion may share the same error code) but lets rule that out first.