Repo sync issues


#1

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

outofmemory******

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://codeaurora.org/platform/external/llvm
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/main.py”, line 531, in <module>
_Main(sys.argv[1:])
File “/home/sakhi/build_410c/.repo/repo/main.py”, line 507, in _Main
result = repo._Run(argv) or 0
File “/home/sakhi/build_410c/.repo/repo/main.py”, line 180, in _Run
result = cmd.Execute(copts, cargs)
File “/home/sakhi/build_410c/.repo/repo/subcmds/sync.py”, line 729, in Execute
fetched = self._Fetch(to_fetch, opt)
File “/home/sakhi/build_410c/.repo/repo/subcmds/sync.py”, line 381, in _Fetch
self._FetchProjectList(**kwargs)
File “/home/sakhi/build_410c/.repo/repo/subcmds/sync.py”, line 270, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File “/home/sakhi/build_410c/.repo/repo/subcmds/sync.py”, line 314, in _FetchHelper
prune=opt.prune)
File “/home/sakhi/build_410c/.repo/repo/project.py”, line 1185, in Sync_NetworkHalf
no_tags=no_tags, prune=prune)):
File “/home/sakhi/build_410c/.repo/repo/project.py”, line 1942, in _RemoteFetch
gitcmd = GitCommand(self, cmd, bare=True, ssh_proxy=ssh_proxy)
File “/home/sakhi/build_410c/.repo/repo/git_command.py”, line 238, in init
raise GitError(’%s: %s’ % (command[1], e))
error.GitError: fetch: [Errno 12] Cannot allocate memory

***********end

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

Thanks in advance.


#2

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.