can't repo sync

1,560 views
Skip to first unread message

Sirus20x6

unread,
Jul 15, 2009, 9:30:30 PM7/15/09
to android-platform
first time trying to get this all up and running,
on kubuntu 32 bit all patches applied running inside of virtualbox
sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf
libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl
libncurses5-dev zlib1g-dev
cd ~
mkdir bin
echo $PATH
curl http://android.git.kernel.org/repo >~/bin/repo
chmod a+x ~/bin/repo
mkdir mydroid
cd mydroid
repo init -u git://android.git.kernel.org/platform/manifest.git -b
cupcake
repo sync


Fetching projects: 100% (114/114), done.
Traceback (most recent call last):
File "/home/aaron/mydroid/.repo/repo/main.py", line 235, in <module>
_Main(sys.argv[1:])
File "/home/aaron/mydroid/.repo/repo/main.py", line 217, in _Main
repo._Run(argv)
File "/home/aaron/mydroid/.repo/repo/main.py", line 123, in _Run
cmd.Execute(copts, cargs)
File "/home/aaron/mydroid/.repo/repo/subcmds/sync.py", line 229, in
Execute
if self.UpdateProjectList():
File "/home/aaron/mydroid/.repo/repo/subcmds/sync.py", line 152, in
UpdateProjectList
if project.IsDirty():
File "/home/aaron/mydroid/.repo/repo/project.py", line 289, in
IsDirty
'--refresh')
File "/home/aaron/mydroid/.repo/repo/project.py", line 1308, in
runner
p.stderr))
error.GitError: external/astl update-index: fatal: Not a git
repository

can't find this error on the googles anywhere.

Jean-Baptiste Queru

unread,
Jul 16, 2009, 8:23:22 AM7/16/09
to android-...@googlegroups.com
Looks like you've got some leftovers from a previous sync in your
directory. A cupcake sync should have no reference to astl, which at
the moment only exists in donut.

JBQ
--
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Sirus20x6

unread,
Jul 16, 2009, 7:42:59 PM7/16/09
to android-platform
i just deleted everything and started over. same thing

aaron@kuntbuntu:~/mydroid$ repo init -u git://android.git.kernel.org/platform/manifest.git
-b cupcake
error: .repo/manifests/: contains uncommitted
changes

Your Name [Aaron]:
Your Email [siru...@gmail.com]:

Your identity is: Aaron <siru...@gmail.com>
is this correct [yes/no]? yes

repo initialized in /home/aaron/mydroid
aaron@kuntbuntu:~/mydroid$ repo sync
Fetching projects: 100% (114/114), done.
Traceback (most recent call last):
File "/home/aaron/mydroid/.repo/repo/main.py", line 235, in <module>
_Main(sys.argv[1:])
File "/home/aaron/mydroid/.repo/repo/main.py", line 217, in _Main
repo._Run(argv)
File "/home/aaron/mydroid/.repo/repo/main.py", line 123, in _Run
cmd.Execute(copts, cargs)
File "/home/aaron/mydroid/.repo/repo/subcmds/sync.py", line 229, in
Execute
if self.UpdateProjectList():
File "/home/aaron/mydroid/.repo/repo/subcmds/sync.py", line 152, in
UpdateProjectList
if project.IsDirty():
File "/home/aaron/mydroid/.repo/repo/project.py", line 289, in
IsDirty
'--refresh')
File "/home/aaron/mydroid/.repo/repo/project.py", line 1303, in
runner
capture_stderr = True)
File "/home/aaron/mydroid/.repo/repo/git_command.py", line 189, in
__init__
raise GitError('%s: %s' % (command[1], e))
error.GitError: update-index: [Errno 2] No such file or directory: '/
home/aaron/mydroid/external/astl'
aaron@kuntbuntu:~/mydroid$ mkdir /home/aaron/mydroid/external/astl
mkdir: cannot create directory `/home/aaron/mydroid/external/astl': No
such file or directory
aaron@kuntbuntu:~/mydroid$ mkdir /home/aaron/mydroid/external/
aaron@kuntbuntu:~/mydroid$ mkdir /home/aaron/mydroid/external/astl
aaron@kuntbuntu:~/mydroid$ repo sync
Fetching projects: 100% (114/114), done.
Traceback (most recent call last):
File "/home/aaron/mydroid/.repo/repo/main.py", line 235, in <module>
_Main(sys.argv[1:])
File "/home/aaron/mydroid/.repo/repo/main.py", line 217, in _Main
repo._Run(argv)
File "/home/aaron/mydroid/.repo/repo/main.py", line 123, in _Run
cmd.Execute(copts, cargs)
File "/home/aaron/mydroid/.repo/repo/subcmds/sync.py", line 229, in
Execute
if self.UpdateProjectList():
File "/home/aaron/mydroid/.repo/repo/subcmds/sync.py", line 152, in
UpdateProjectList
if project.IsDirty():
File "/home/aaron/mydroid/.repo/repo/project.py", line 289, in
IsDirty
'--refresh')
File "/home/aaron/mydroid/.repo/repo/project.py", line 1308, in
runner
p.stderr))
error.GitError: external/astl update-index: fatal: Not a git
repository


On Jul 16, 7:23 am, Jean-Baptiste Queru <j...@android.com> wrote:
> Looks like you've got some leftovers from a previous sync in your
> directory. A cupcake sync should have no reference to astl, which at
> the moment only exists in donut.
>
> JBQ
>
>
>
> On Wed, Jul 15, 2009 at 6:30 PM, Sirus20x6<sirus2...@gmail.com> wrote:
>
> > first time trying to get this all up and running,
> > on kubuntu 32 bit all patches applied running inside of virtualbox
> > sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf
> > libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl
> > libncurses5-dev zlib1g-dev
> > cd ~
> > mkdir bin
> > echo $PATH
> > curlhttp://android.git.kernel.org/repo>~/bin/repo

Sirus20x6

unread,
Jul 16, 2009, 7:51:45 PM7/16/09
to android-platform
tried again without "-b cupcake"

aaron@kuntbuntu:~/mydroid$ rm -r ./*
aaron@kuntbuntu:~/mydroid$ repo init -u git://android.git.kernel.org/platform/manifest.git

On Jul 16, 6:42 pm, Sirus20x6 <sirus2...@gmail.com> wrote:
> i just deleted everything and started over. same thing
>
> aaron@kuntbuntu:~/mydroid$ repo init -u git://android.git.kernel.org/platform/manifest.git
> -b cupcake
> error: .repo/manifests/: contains uncommitted
> changes
>
> Your Name  [Aaron]:
> Your Email [sirus2...@gmail.com]:
>
> Your identity is: Aaron <sirus2...@gmail.com>

Sirus20x6

unread,
Jul 17, 2009, 9:53:03 PM7/17/09
to android-platform
anyone?

On Jul 16, 6:51 pm, Sirus20x6 <sirus2...@gmail.com> wrote:
> tried again without "-b cupcake"
>
> aaron@kuntbuntu:~/mydroid$ rm -r ./*
> aaron@kuntbuntu:~/mydroid$ repo init -u git://android.git.kernel.org/platform/manifest.git
>
> Your Name  [Aaron]:

Sirus20x6

unread,
Jul 21, 2009, 11:14:39 PM7/21/09
to android-platform
ok not on a virtual machine anymore.

I installed arch linux I686



[sirus@SonofX51 cupcake]$ sudo make
build/core/product_config.mk:261: WARNING: adding test OTA key
============================================
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=
============================================
frameworks/policies/base/PolicyConfig.mk:22: *** No module defined for
the given PRODUCT_POLICY (android.policy_phone). Stop.
[sirus@SonofX51 cupcake]$

this is cupcake btw

Jean-Baptiste Queru

unread,
Jul 21, 2009, 11:58:19 PM7/21/09
to android-...@googlegroups.com
I have no idea what the problem is.

I've done a clean sync and build from cupcake today, on my ubuntu
8.04.3 machine, and everything went perfectly fine (and we have
automated builds at Google that confirm that), so I'm fairly confident
that the issue you're facing is related to your personal setup and not
to the Android source code itself.

Sorry,
JBQ
Software Engineer, Android Open-Source Project, Google.

Warwick...@tieto.com

unread,
Jul 22, 2009, 6:59:11 AM7/22/09
to android-...@googlegroups.com
Hi Aaron,

Note that "rm -r ./*" in your mydroid directory does not delete the mydroid/.repo directory ("*" does not match names starting with ".").

If you've not done so already, I suggest trying again with "rm -r ~/mydroid" to make sure that really everything is removed, and see whether or not that helps.

Best regards,

Warwick Harvey, Software Specialist

Tieto
email warwick...@tieto.com
Varenská 51/2723, 70200 Ostrava, Czech Republic, www.tieto.com

Meet the new Tieto: www.tieto.com/newtieto

Please note: The information contained in this message may be legally privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorised use, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank You.

Ian

unread,
Jul 22, 2009, 11:56:28 AM7/22/09
to android-platform
Hi,

I believe that this is actually a problem in the cupcake branch, not
with his setup or stale files.

Proof: I have a script called GetDream, which takes a branch name as
an argument. It creates a directory named for the branch, does a cd
to that directory, then issues the repo commands to get the source.
So this is all happening in a brand new directory every time; there is
no possibility of a stale .repo or any such.

Today, 22 July, this command works:

GetDream android-1.5r2

This command fails:

GetDream android-sdk-1.5_r3

The problem seems to be when getting the local_manifest stuff for the
Dream. The error messages and my script follow.

Ian

--------------------------------------------------------------------------
GetDream script

#!/bin/csh -f

setenv LD_PRELOAD $HOME/.tconn/tconn.so

set branch = $1
mkdir "$branch"
cd "$branch"
$branch
repo sync

cat > .repo/local_manifest.xml <<!
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remove-project name="kernel/common"/>
<project path="kernel" name="kernel/msm" revision="refs/heads/android-
msm-htc-2.6.25"/>
<project path="vendor/htc/dream" name="platform/vendor/htc/dream"/>
<project path="hardware/msm7k" name="platform/hardware/msm7k"/>
</manifest>
!

repo sync

--------------------------------------------------------------------------
Errors when checking out android-sdk-1.5_r3

$ GetDream android-sdk-1.5_r3
Traceback (most recent call last):
File "/home/smithi/Desktop/Projects/AndroidOS/Test/android-
sdk-1.5_r3/.repo/repo/main.py", line 235, in <module
>
_Main(sys.argv[1:])
File "/home/smithi/Desktop/Projects/AndroidOS/Test/android-
sdk-1.5_r3/.repo/repo/main.py", line 217, in _Main
repo._Run(argv)
File "/home/smithi/Desktop/Projects/AndroidOS/Test/android-
sdk-1.5_r3/.repo/repo/main.py", line 123, in _Run
cmd.Execute(copts, cargs)
File "/home/smithi/Desktop/Projects/AndroidOS/Test/android-
sdk-1.5_r3/.repo/repo/subcmds/sync.py", line 195, in
Execute
all = self.GetProjects(args, missing_ok=True)
File "/home/smithi/Desktop/Projects/AndroidOS/Test/android-
sdk-1.5_r3/.repo/repo/command.py", line 63, in GetPr
ojects
all = self.manifest.projects
File "/home/smithi/Desktop/Projects/AndroidOS/Test/android-
sdk-1.5_r3/.repo/repo/manifest_xml.py", line 158, in
projects
self._Load()
File "/home/smithi/Desktop/Projects/AndroidOS/Test/android-
sdk-1.5_r3/.repo/repo/manifest_xml.py", line 197, in
_Load
self._ParseManifest(False)
File "/home/smithi/Desktop/Projects/AndroidOS/Test/android-
sdk-1.5_r3/.repo/repo/manifest_xml.py", line 228, in
_ParseManifest
(name)
error.ManifestParseError: project kernel/common not found

Jean-Baptiste Queru

unread,
Jul 22, 2009, 12:22:26 PM7/22/09
to android-...@googlegroups.com
That's a different issue, which is specific to the "building for
dream" instructions and is unrelated to the state of cupcake itself.
One of the manifests you referred to has the kernel project included,
the other one doesn't, so your local_manifest applies to the former
but not to the latter. Just remove the kernel-related lines from your
local_manifest and you'll be fine.

FWIW, the reason why that is broken is precisely that I'm trying to
clean up the process to build for dream, I'm just waiting for
http://r.android.com/10674 to be approved.

JBQ
--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Sirus20x6

unread,
Jul 22, 2009, 3:43:37 PM7/22/09
to android-platform
Thanks for the replies everyone I appreciate it.

~
Note that "rm -r ./*" in your mydroid directory does not delete the
mydroid/.repo directory ("*" does not match names starting with ".").
~

I've actually formatted and installed arch linux since my first few
posts. the error i'm getting now about
"frameworks/policies/base/PolicyConfig.mk:22: *** No module defined
for
the given PRODUCT_POLICY (android.policy_phone). Stop. " is on that
new environment.

I'm going to keep trying things and tomorrow I actually get broadband
internet!!!! i've been too far out in "corn country" to get it before.
only EDGE cell service and dialup that maxes out at 19.2k was
available here previously. As soon as that happens I'll be moving my
main computer back to my house from my friend's. that will give me a
lot more time to figure out what's wrong.

On Jul 22, 5:59 am, <Warwick.Har...@tieto.com> wrote:
> Hi Aaron,
>
> Note that "rm -r ./*" in your mydroid directory does not delete the mydroid/.repo directory ("*" does not match names starting with ".").
>
> If you've not done so already, I suggest trying again with "rm -r ~/mydroid" to make sure that really everything is removed, and see whether or not that helps.
>
> Best regards,
>
> Warwick Harvey, Software Specialist
>
> Tieto
> email warwick.har...@tieto.com
> Varenská 51/2723, 70200 Ostrava, Czech Republic,www.tieto.com
>
> Meet the new Tieto:www.tieto.com/newtieto
>
> Please note: The information contained in this message may be legally privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorised use, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank You.
>
> >-----Original Message-----
> >From: android-...@googlegroups.com
> >[mailto:android-...@googlegroups.com] On Behalf Of Sirus20x6
> >Sent: Friday, July 17, 2009 1:52 AM
> >To: android-platform
> >Subject: Re: can't repo sync
>
> >tried again without "-b cupcake"
>
> >aaron@kuntbuntu:~/mydroid$ rm -r ./*
> >aaron@kuntbuntu:~/mydroid$ repo init -u
> >git://android.git.kernel.org/platform/manifest.git
>
> >Your Name  [Aaron]:
Reply all
Reply to author
Forward
0 new messages