Repo and Cygwin

720 views
Skip to first unread message

Chris

unread,
Aug 1, 2010, 5:47:28 PM8/1/10
to Repo and Gerrit Discussion
So I'm trying to get access to android source code on Windows/Cygwin.
No no I'm not going to try to contribute or even compile the project,
just interested in the source code :)

Earlier in this discussion there have been some talk about Cygwin and
one success story too, but I'm having a bit of a problem. Thought I
might post my issue here and maybe someone can help me out...

$ repo init -u git://android.git.kernel.org/platform/manifest.git
0 [main] python 4396 D:\cygwin\bin\python.exe: *** fatal error -
unable to
remap \\?\D:\cygwin\lib\python2.6\lib-dynload\time.dll to same
address as parent: 0x380000 != 0x3F0000
0 [main] python 5076 fork: child 4396 - died waiting for dll
loading, errno 11
Traceback (most recent call last):
File "/usr/local/bin/repo", line 595, in <module>
main(sys.argv[1:])
File "/usr/local/bin/repo", line 562, in main
_Init(args)
File "/usr/local/bin/repo", line 181, in _Init
_CheckGitVersion()
File "/usr/local/bin/repo", line 210, in _CheckGitVersion
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1049, in
_execute_child
self.pid = os.fork()
OSError: [Errno 11] Resource temporarily unavailable

Cheers
/Chris

Shawn Pearce

unread,
Aug 2, 2010, 11:08:07 AM8/2/10
to Chris, Repo and Gerrit Discussion
On Sun, Aug 1, 2010 at 14:47, Chris <christoff...@gmail.com> wrote:
> So I'm trying to get access to android source code on Windows/Cygwin.
> No no I'm not going to try to contribute or even compile the project,
> just interested in the source code :)
>
> Earlier in this discussion there have been some talk about Cygwin and
> one success story too, but I'm having a bit of a problem. Thought I
> might post my issue here and maybe someone can help me out...
>
> $ repo init -u git://android.git.kernel.org/platform/manifest.git
>      0 [main] python 4396 D:\cygwin\bin\python.exe: *** fatal error -
> unable to
>  remap \\?\D:\cygwin\lib\python2.6\lib-dynload\time.dll to same
> address as parent: 0x380000 != 0x3F0000

No clue. That is Cygwin being unable to make Windows act like UNIX.
Its a common failure mode for Cygwin, and why a lot of people avoid
it. Since you don't care about trying to compile the source code, you
might have better luck with a native Windows Python and putting
msysgit in your path rather than Cygwin git. The more native windows
implementations of the two might work better. Though now that I say
that, I remember that repo uses symlinks, and native Python and native
msysgit probably can't do that. *sigh*

You're on your own here. The Android SDK for Windows *barely* (and I
do mean barely) gets compiled under Cygwin. On a good day, it
actually downloads the sources and produces an executable. On bad
days, well, it behaves like you are seeing. The major development
platform for Android is Linux or Mac, basically a proper POSIX
environment.

Marc-Antoine Ruel

unread,
Aug 5, 2010, 3:32:40 PM8/5/10
to Shawn Pearce, Chris, Repo and Gerrit Discussion
Le 2 août 2010 11:08, Shawn Pearce <s...@google.com> a écrit :
On Sun, Aug 1, 2010 at 14:47, Chris <christoff...@gmail.com> wrote:
> So I'm trying to get access to android source code on Windows/Cygwin.
> No no I'm not going to try to contribute or even compile the project,
> just interested in the source code :)
>
> Earlier in this discussion there have been some talk about Cygwin and
> one success story too, but I'm having a bit of a problem. Thought I
> might post my issue here and maybe someone can help me out...
>
> $ repo init -u git://android.git.kernel.org/platform/manifest.git
>      0 [main] python 4396 D:\cygwin\bin\python.exe: *** fatal error -
> unable to
>  remap \\?\D:\cygwin\lib\python2.6\lib-dynload\time.dll to same
> address as parent: 0x380000 != 0x3F0000

Reply all
Reply to author
Forward
0 new messages