depot_tools installation problems on win7 64bit

2,422 views
Skip to first unread message

w0imi0w

unread,
Apr 19, 2017, 5:56:59 AM4/19/17
to Chromium-dev
Hello

I want use SKIA library and for that I need install and use depot_tools to build it.

I have problems with installation. When I run gclient on cmd with admin privileges, it give me this error:
      1 [main] sh 2136 child_info::sync: wait failed, pid 1164, Win32 error 183
   
208 [main] sh 2136 fork: child 1164 - died waiting for dll loading, errno 11


/mingw64/libexec/git-core/git-sh-setup: fork: retry: Resource temporarily unavai
lable
301061698 [main] sh 2136 child_info::sync: wait failed, pid 320, Win32 error 183


301061960 [main] sh 2136 fork: child 320 - died waiting for dll loading, errno 11
/mingw64/libexec/git-core/git-sh-setup: fork: retry: Resource temporarily unavailable
603143514 [main] sh 2136 child_info::sync: wait failed, pid 5584, Win32 error 183
603144023 [main] sh 2136 fork: child 5584 - died waiting for dll loading, errno 11
/mingw64/libexec/git-core/git-sh-setup: fork: retry: Resource temporarily unavailable
907209569 [main] sh 2136 child_info::sync: wait failed, pid 5612, Win32 error 183
907211680 [main] sh 2136 fork: child 5612 - died waiting for dll loading, errno 11
/mingw64/libexec/git-core/git-sh-setup: fork: retry: Resource temporarily unavailable
1215508751 [main] sh 2136 child_info::sync: wait failed, pid 5168, Win32 error 183
1215513329 [main] sh 2136 fork: child 5168 - died waiting for dll loading, errno 11
/mingw64/libexec/git-core/git-sh-setup: fork: Resource temporarily unavailable
Failed to update depot_tools.

and I have no clue what to do now. I am beginer with depot_tools, never use them before. And I can't find on discuss similar problem.

If you are interest with my more problems with installation, there is original post in skia discusion:

Bruce

unread,
Apr 20, 2017, 4:31:24 PM4/20/17
to Chromium-dev, woi...@gmail.com
What instructions are you following? The canonical instructions should be these:


In particular, there is no reason to run gclient from a command window with admin privileges. Also, those error messages look unfamiliar. Are you running from some sort of bash shell instead of from the normal Windows command prompt?

Some of the tools used can get into a bad state where a reboot is necessary. If all else fails, delete your current copy of depot_tools, reboot, and follow the instructions again.

w0imi0w

unread,
Apr 23, 2017, 7:10:06 AM4/23/17
to Chromium-dev, woi...@gmail.com
I followen exactly those instructions.

I apologize for late answer. But clean depot_tools, reboot and clean install not helped, even with instructions.

I was run some git cmd with admin privileges. Then I try windows cmd with admin privileges, and when I do, I got this:
Fetching from https://storage.googleapis.com/chrome-infra/python276_bin.zip
The term 'git' is not recognized as the name of a cmdlet, function, script file
, or operable program. Check the spelling of the name, or if a path was include
d
, verify that the path is correct and try again.
At D:\Programi\Development\depot_tools\cipd.ps1:31 char:25
+ $depot_tools_version = & <<<< git -C $myPath rev-parse HEAD 2>&1
   
+ CategoryInfo          : ObjectNotFound: (git:String) [], CommandNotFound
   
Exception
   
+ FullyQualifiedErrorId : CommandNotFoundException


Bootstrapping cipd client for windows-386...
From https://chrome-infra-packages.appspot.com/client?platform=windows-386&version=git_revision:76eadcd75c5ad2638e1fc098f81748aad150c7c0
Exception calling "DownloadFile" with "2" argument(s): "Unable to connect to the remote server"
At D:\Programi\Development\depot_tools\cipd.ps1:47 char:21
+     $wc.DownloadFile <<<< ($url, $client)
   
+ CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
   
+ FullyQualifiedErrorId : DotNetMethodException


The term 'D:\Programi\Development\depot_tools\.cipd_client.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At D:\Programi\Development\depot_tools\cipd.ps1:50 char:7
+ $_ = & <<<<  $client selfupdate -version "$cipdClientVer"
   
+ CategoryInfo          : ObjectNotFound: (D:\Programi\Dev...cipd_client.e
   xe
:String) [], CommandNotFoundException
   
+ FullyQualifiedErrorId : CommandNotFoundException


selfupdate failed
: run `set CIPD_HTTP_USER_AGENT_PREFIX=depot_tools/???/manual && D:\Programi\Development\depot_tools\.cipd_client.exe selfupdate -version git_revision:76eadcd75c5ad2638e1fc098f81748aad150c7c0` to diagnose


The term 'D:\Programi\Development\depot_tools\.cipd_client.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At D:\Programi\Development\depot_tools\cipd.ps1:56 char:2
+ & <<<<  $client @args
   
+ CategoryInfo          : ObjectNotFound: (D:\Programi\Dev...cipd_client.e
   xe
:String) [], CommandNotFoundException
   
+ FullyQualifiedErrorId : CommandNotFoundException


Traceback (most recent call last):
 
File "D:\Programi\Development\depot_tools\bootstrap\win\git_bootstrap.py", line 195, in <module>
    sys
.exit(main(sys.argv[1:]))
 
File "D:\Programi\Development\depot_tools\bootstrap\win\git_bootstrap.py", line 184, in main
    install_git
(args, git_version, git_directory)
 
File "D:\Programi\Development\depot_tools\bootstrap\win\git_bootstrap.py", line 121, in install_git
   
'-Directory="%s"' % git_directory.replace('\\', '\\\\'),
 
File "D:\Programi\Development\depot_tools\bootstrap\win\git_bootstrap.py", line 27, in _check_call
    subprocess
.check_call(argv, **kwargs)
 
File "D:\Programi\Development\depot_tools\python276_bin\lib\subprocess.py", line 535, in check_call
    retcode
= call(*popenargs, **kwargs)
 
File "D:\Programi\Development\depot_tools\python276_bin\lib\subprocess.py", line 522, in call
   
return Popen(*popenargs, **kwargs).wait()
 
File "D:\Programi\Development\depot_tools\python276_bin\lib\subprocess.py", line 709, in __init__ errread, errwrite)
 
File "D:\Programi\Development\depot_tools\python276_bin\lib\subprocess.py", line 957, in _execute_ child startupinfo)
WindowsError: [Error 2] SystÚm nem˘×e nßjsŁ zadanř s˙bor
Usage: gclient.py <command> [options]



Dňa štvrtok, 20. apríla 2017 22:31:24 UTC+2 Bruce napísal(-a):

Bruce

unread,
Apr 24, 2017, 12:53:50 PM4/24/17
to Chromium-dev, woi...@gmail.com
The first error message is:

> The term 'git' is not recognized as the name of a cmdlet, function, script file
> , or operable program.

That means that you haven't added depot_tools to your path. You should do that and try again.

Also, it is not recommended that you do this from an administrator command prompt. If you run the initial steps while elevated then you may be forced to do all future Chrome development work while elevated. It would be better and safer to do the work from a normal command prompt, in a directory that is accessible for writing to a normal user. I don't think that being an administrator is causing your current problems, but it could cause future problems.

Bruce Dawson

unread,
Apr 24, 2017, 8:57:24 PM4/24/17
to Chromium-dev, woi...@gmail.com
I happened to be setting up a new machine today and I hit this issue when running gclient for the first time:

C:\src\depot_tools>gclient
Installing python 2.7.6...
& : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At C:\src\depot_tools\cipd.ps1:31 char:25
+ $depot_tools_version = &git -C $myPath rev-parse HEAD 2>&1
+                         ~~~
    + CategoryInfo          : ObjectNotFound: (git:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

This looks like a bug in cipd.ps1 or in its assumptions. However it does not seem to be a fatal bug. gclient ran to completion and when I ran it again it seemed to have nothing to do. I filed crbug.com/714920, but this does not explain your later failures. I'm not sure if those are from your choice of install directory, from your different system language (a poorly tested variant I'm afraid) or something else.


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to a topic in the Google Groups "Chromium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-dev/zF315BOazcM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/05f9c16f-7f0b-4d52-aecd-d5caaabf73e5%40chromium.org.

w0imi0w

unread,
Apr 25, 2017, 6:57:45 PM4/25/17
to Chromium-dev, woi...@gmail.com
I want to be sure that I have properly set up path.
This is how I have set up path:
Environment Variables -> System -> [Variable]Path: [Value]D:\Programi\Development\depot_tools;X:Other paths....
Environment Variables -> User ->  [Variable]Path:  [Value]D:\Programi\Development\depot_tools;%PATH%

It is ok?

I found that I had not properly installed git. After reinstall git, message with git dissapear and it started do something. Until I got this errors message:
[P4060 00:36:12.992 fs.go:329 W] fs: failed to rename("c:\\users\\name\\appdata\\local\\temp\\tmpt4ljmr\\.cipd\\pkgs\\0\\KRyfNeG1d7cj\\x", "c:\\users\\name\\appdata\\local\\temp\\tmpt4ljmr\\.cipd\\pkgs\\0\\bb697cfdd8032992546a85f35f4e57a1ece28e70") - Prístup je odmietnutý (Access is denied).
[P4060 00:36:12.997 fs.go:275 W] fs: failed to rename directory c:\users\name\appdata\local\temp\tmpt4ljmr\.cipd\pkgs\0\KRyfNeG1d7cj - Prístup je odmietnutý.
[P4060 00:36:13.004 client.go:1341 E] Failed to install infra/depot_tools/git_installer/windows-amd64:bb697cfdd8032992546a85f35f4e57a1ece28e70 - Prístup je odmietnutý.
Error: failed to update packages, see the log.

Traceback (most recent call last):
 
File "D:\Programi\Development\depot_tools\bootstrap\win\git_bootstrap.py", line 195, in <module>
    sys
.exit(main(sys.argv[1:]))
 
File "D:\Programi\Development\depot_tools\bootstrap\win\git_bootstrap.py", line 184, in main
    install_git
(args, git_version, git_directory)

 
File "D:\Programi\Development\depot_tools\bootstrap\win\git_bootstrap.py", line 109, in install_git
   
'v' + git_version.replace('.', '_'))
 
File "D:\Programi\Development\depot_tools\bootstrap\win\git_bootstrap.py", line 71, in cipd_install
    _check_call
(cipd_args)

 
File "D:\Programi\Development\depot_tools\bootstrap\win\git_bootstrap.py", line 27, in _check_call
    subprocess
.check_call(argv, **kwargs)

 
File "D:\Programi\Development\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_call
   
raise CalledProcessError(retcode, cmd)
subprocess
.CalledProcessError: Command '['D:\\Programi\\Development\\depot_tools\\cipd.bat', 'ensure', '-list', 'c:\\users\\name\\appdata\\local\\temp\\tmpkaxv3c'
, '
-root', 'c:\\users\\name\\appdata\\local\\temp\\tmpt4ljmr']' returned non-zero
exit status 1


Dňa pondelok, 24. apríla 2017 18:53:50 UTC+2 Bruce Dawson napísal(-a):

Bruce Dawson

unread,
Apr 25, 2017, 7:18:04 PM4/25/17
to w0imi0w, Chromium-dev
Your path appears to be set up properly. The best way to know for sure is to open a command prompt and type "where gclient" to see if it finds gclient and gclient.bat in the depot_tools directory.

> I found that I had not properly installed git. After reinstall git, message with git dissapear and it started do something

The message about git was actually a bug in cipd.ps1. That bug has now been fixed.

The current appear, coming as it does in git_bootstrap.py, appears to be happening when trying to install git.

> Error: failed to update packages, see the log.

Have you looked for an error log file? You could also try running sysinternals' procmon, or some similar tool, in order to figure out why things are failing. I'm afraid I'm out of ideas. The different language settings or the unusual location of depot_tools seems like the most likely problems, but I am just speculating.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to a topic in the Google Groups "Chromium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-dev/zF315BOazcM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chromium-dev+unsubscribe@chromium.org.

w0imi0w

unread,
Apr 26, 2017, 4:58:44 AM4/26/17
to Chromium-dev, woi...@gmail.com
If I type "where gclient", it give me right info about gclient:
D:\Programi\Development\depot_tools\gclient
D:\Programi\Development\depot_tools\ gclient.bat


Have you looked for an error log file?
No, where is the log file? I can't find it.
 


Dňa streda, 26. apríla 2017 1:18:04 UTC+2 Bruce Dawson napísal(-a):
To unsubscribe from this group and all its topics, send an email to chromium-dev...@chromium.org.

w0imi0w

unread,
Apr 26, 2017, 10:33:26 AM4/26/17
to Chromium-dev, woi...@gmail.com
I uninstall Git and try again run gclient. It looks like depot_tools is installed. I got this messages:
Installing python 2.7.6...
Fetching from https://storage.googleapis.com/chrome-infra/python276_bin.zip
The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

At D:\Programi\Development\depot_tools\cipd.ps1:31 char:25 + $depot_tools_version = & <<<< git -C $myPath rev-parse HEAD 2>&1 + CategoryInfo : ObjectNotFound: (git:String) [], CommandNotFound
   
Exception
   
+ FullyQualifiedErrorId : CommandNotFoundException


Bootstrapping cipd client for windows-386...
From https://chrome-infra-packages.appspot.com/client?platform=windows-386&version=git_revision:76eadcd75c5ad2638e1fc098f81748aad150c7c0
[P1340 15:56:25.982 client.go:879 I] cipd: updating client to infra/tools/cipd/windows-386:1074919e2e48944fdc4867651057b97a4b688605 (git_revision:76eadcd75c5ad2
638e1fc098f81748aad150c7c0)
[P5548 15:56:27.964 client.go:261 I] In root:
[P5548 15:56:27.965 client.go:267 I]   to install:
[P5548 15:56:27.965 client.go:269 I]     infra/depot_tools/git_installer/windows-amd64:bb697cfdd8032992546a85f35f4e57a1ece28e70
[P5548 15:56:27.967 client.go:1216 I] cipd: resolving fetch URL for infra/depot_tools/git_installer/windows-amd64:bb697cfdd8032992546a85f35f4e57a1ece28e70
[P5548 15:56:28.260 storage.go:248 I] cipd: initiating the fetch
[P5548 15:56:29.498 storage.go:215 I] cipd: about to fetch 29.4 Mb
[P5548 15:56:29.498 storage.go:206 I] cipd: fetching - 0%
[P5548 15:56:34.605 storage.go:206 I] cipd: fetching - 6%
[P5548 15:56:39.659 storage.go:206 I] cipd: fetching - 13%
[P5548 15:56:44.676 storage.go:206 I] cipd: fetching - 19%
[P5548 15:56:49.748 storage.go:206 I] cipd: fetching - 26%
[P5548 15:56:54.774 storage.go:206 I] cipd: fetching - 32%
[P5548 15:56:59.817 storage.go:206 I] cipd: fetching - 39%
[P5548 15:57:04.871 storage.go:206 I] cipd: fetching - 45%
[P5548 15:57:09.899 storage.go:206 I] cipd: fetching - 51%
[P5548 15:57:14.975 storage.go:206 I] cipd: fetching - 57%
[P5548 15:57:20.000 storage.go:206 I] cipd: fetching - 64%
[P5548 15:57:25.031 storage.go:206 I] cipd: fetching - 70%
[P5548 15:57:30.071 storage.go:206 I] cipd: fetching - 77%
[P5548 15:57:35.071 storage.go:206 I] cipd: fetching - 83%
[P5548 15:57:40.105 storage.go:206 I] cipd: fetching - 90%
[P5548 15:57:45.117 storage.go:206 I] cipd: fetching - 96%
[P5548 15:57:47.440 storage.go:206 I] cipd: fetching - 100%
[P5548 15:57:47.441 storage.go:206 I] cipd: fetching - 100%
[P5548 15:57:47.441 client.go:1212 I] cipd: successfully fetched infra/depot_too
ls
/git_installer/windows-amd64:bb697cfdd8032992546a85f35f4e57a1ece28e70
[P5548 15:57:47.441 deployer.go:156 I] Deploying infra/depot_tools/git_installer/windows-amd64:bb697cfdd8032992546a85f35f4e57a1ece28e70 into c:\users\name\appdata\local\temp\tmpr90pg4(/)
[P5548 15:57:47.457 reader.go:273 I] cipd: about to extract 29.4 Mb (2 files)
[P5548 15:57:48.248 reader.go:310 I] cipd: extracting - 99%
[P5548 15:57:48.250 reader.go:310 I] cipd: extracting - 100%
[P5548 15:57:48.293 deployer.go:260 I] Successfully deployed infra/
depot_tools/git_installer/windows-amd64:bb697cfdd8032992546a85f35f4e57a1ece28e70
[P5548 15:57:48.299 client.go:1356 I] All changes applied.
Usage: gclient.py <command> [options]

Except the message with git, it is everything ok?

Dňa streda, 26. apríla 2017 10:58:44 UTC+2 w0imi0w napísal(-a):

Bruce Dawson

unread,
Apr 26, 2017, 2:29:01 PM4/26/17
to w0imi0w, Chromium-dev
It looks like it worked! If you run gclient again, with no options, it should print something like this:

Usage: gclient.py <command> [options]

Meta checkout dependency manager for Git.

Commands are:
  config   creates a .gclient file in the current directory
...

If it does then probably all is working now. I'm not sure what was going wrong since the git warning at the beginning (now fixed) should have been a non-fatal problem.


To unsubscribe from this group and all its topics, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/0e9545e6-f716-4afd-97b5-331e663399e7%40chromium.org.

w0imi0w

unread,
Apr 26, 2017, 3:10:00 PM4/26/17
to Chromium-dev, woi...@gmail.com
Yes, I got this messages. Thanks.

Dňa streda, 26. apríla 2017 20:29:01 UTC+2 Bruce Dawson napísal(-a):

Mücahit YAĞMUR

unread,
May 23, 2017, 9:54:02 AM5/23/17
to Chromium-dev, woi...@gmail.com
- - - -
Maybe a FireWall or Proxy Problem,
I've chaged the connection and its Resolved.

23 Nisan 2017 Pazar 14:10:06 UTC+3 tarihinde w0imi0w yazdı:
Reply all
Reply to author
Forward
0 new messages