Last Comment Bug 956098 - config.sh nexus-s fail to run sync
: config.sh nexus-s fail to run sync
Status: NEW
:
Product: Firefox OS
Classification: Client Software
Component: General (show other bugs)
: unspecified
: All All
-- normal with 4 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-02 10:16 PST by fleblanc50
Modified: 2014-03-19 05:12 PDT (History)
8 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---


Attachments

Description User image fleblanc50 2014-01-02 10:16:05 PST
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 (Beta/Release)
Build ID: 20131206145143

Steps to reproduce:

After git clone git://github.com/mozilla-b2g/B2G.git
cd B2G
./config.sh nexus-s


Actual results:

Fetching (...)
(...)
Syncing work tree:  35% (28/79)  error: revision refs/tags/android-4.0.4_r1.2 in platform/external/icu4c not found
Repo sync failed



Expected results:

Expected repo sync
Comment 1 User image Axel Nennker 2014-01-08 12:04:13 PST
Same here:
Syncing work tree:  35% (28/79)  error: revision refs/tags/android-4.0.4_r1.2 in platform/external/icu4c not found
Repo sync failed
Comment 2 User image fleblanc50 2014-01-08 12:35:22 PST
I have a workaround, 
I change .repo/manifest.xml 
<default revision="refs/tags/android-4.0.4_r1.2" remote="caf" sync-j="4"/>
by
<default revision="refs/tags/android-4.0.4_r1.2" remote="aosp" sync-j="4"/>

I made repo sync, and after again ./config.sh nexus-s
Comment 3 User image fleblanc50 2014-01-08 12:43:45 PST
(In reply to Axel Nennker from comment #1)
> Same here:
> Syncing work tree:  35% (28/79)  error: revision
> refs/tags/android-4.0.4_r1.2 in platform/external/icu4c not found
> Repo sync failed

Ok thank you, this confirm the problem.
Comment 4 User image edward 2014-01-10 22:05:32 PST
(In reply to fleblanc50 from comment #2)
> I have a workaround, 
> I change .repo/manifest.xml 
> <default revision="refs/tags/android-4.0.4_r1.2" remote="caf" sync-j="4"/>
> by
> <default revision="refs/tags/android-4.0.4_r1.2" remote="aosp" sync-j="4"/>
> 
> I made repo sync, and after again ./config.sh nexus-s

hey thank you. it really works
Comment 5 User image aniellob 2014-03-03 02:07:27 PST
Fetching projects: 100% (79/79), done.  
Syncing work tree:  35% (28/79)  error: manifest required for this command -- please run init
Comment 6 User image aniellob 2014-03-03 02:14:42 PST
Syncing work tree:  33% (29/86)  error: manifest required for this command -- please run init if i remove the .repo/manifest.xml..
Comment 7 User image Mathieu Nogaret 2014-03-09 08:42:50 PDT
Hello,

I have a similar problem:

  Syncing work tree:  35% (28/79)  error: revision refs/tags/android-4.0.4_r1.2 in platform/external/icu4c not found
  Repo sync failed

Then, if I run a "./repo sync" I get the same error.

When I apply the workaround, I get the following error:

  Fetching projects: 100% (79/79), done.  
  Syncing work tree:  35% (28/79)  error: manifest required for this command -- please run init

I don't understand this error message: Which command? What manifest? Running "./repo init" doesn't help.

If I restore the old manifest.xml I still get the "manifest required" error message. In order to get to the previous state, I need to remove the following files from ./.repo/projects/external/icu4c.git/:

  objects/pack/pack-e81a5da28c7df29ef3d929cf84249d405e1d82b1.*
  refs/remotes/aosp/
  refs/tags/android-*

This issue is blocking for me, I have already downloaded the 6.5G of data five times, I installed gcc-4.6 and g++-4.6, I triple-checked the prerequisites (still, I could have triple-mistaken)...

Device:
  Nexus S (I9023XXKI1)
  Android 4.1.2

Linux
  uname -a
  Linux server 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 x86_64 GNU/Linux

  cat /proc/meminfo | grep MemTotal
  MemTotal:        7632344 kB

If you need more information I'm at your disposal.

Regards,

Mathieu.
Comment 8 User image Mathieu Nogaret 2014-03-09 11:28:51 PDT
I could bypass this issue like this:

1. clean everything (remove B2G and "git clone git://github.com/mozilla-b2g/B2G.git" again)
2. run "./config.sh nexus-s" and [ctrl-c] when it asks for "Your Name"
3. "cp .repo/repo/repo repo" as advised by the script, I don't know if it had any incidence
4. apply the workaround from fleblanc50@gmail.com, defaulting to "aosp" in .repo/manifest.xml
5. run "./repo sync" (it synchronized ok, what a relief!)
6. run "./config.sh nexus-s", and when it asks for "Your Name", apply the workaround again (I don't know if it has any incidence)
7. continue as normally

Note: I have CC and CXX defined as described in "https://developer.mozilla.org/en-US/Firefox_OS/Customization_with_the_.userconfig_file#Changing_the_default_host_compiler". I don't think it has anything to do with this issue, but since I could not understand the error message, I prefer to record as much details as possible.
Comment 9 User image Mathieu Nogaret 2014-03-09 14:31:54 PDT
It was definitely a bad idea to set CC and CXX on my environment, the build failed until I unset these variables.
Comment 10 User image Bob Clary [:bc:] 2014-03-18 19:49:53 PDT
I can reproduce this issue with the nexus-s.
Comment 11 User image robin.bugzilla 2014-03-19 05:12:55 PDT
I had the same error, then changed the manifest file to point at a different repository for icu4c:

    <project path="external/icu4c" name="platform/external/icu4c" remote="aosp" revision="master" />

This lead to the following error:

    error: manifest required for this command -- please run init

Which I fixed by cleaning-up the failed clone:

    $ rm -rf external/icu4c

Then `.repo sync` succeeded.

Note You need to log in before you can comment on or make changes to this bug.