myrao / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

gclient sync/runhooks fails on Centos 6.5 #329

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
when i do -

./gclient sync

i am unable to complete the process and get the following error .

Checked out revision 261103.
Syncing projects:  94% (17/18), done.                         

________ running '/usr/bin/python trunk/build/cp.py trunk/../chromium_gn/.gn 
trunk' in '/home/abhay/libyuv'

________ running 'download_from_google_storage --no_resume --platform=win32 
--no_auth --bucket chromium-gn -s trunk/tools/gn/bin/win/gn.exe.sha1' in 
'/home/abhay/libyuv'
Traceback (most recent call last):
  File "./gclient.py", line 1974, in <module>
    sys.exit(Main(sys.argv[1:]))
  File "./gclient.py", line 1962, in Main
    return dispatcher.execute(OptionParser(), argv)
  File "/home/abhay/libyuv/subcommand.py", line 245, in execute
    return command(parser, args[1:])
  File "./gclient.py", line 1741, in CMDsync
    ret = client.RunOnDeps('update', args)
  File "./gclient.py", line 1285, in RunOnDeps
    self.RunHooksRecursively(self._options)
  File "./gclient.py", line 828, in RunHooksRecursively
    hook, cwd=self.root.root_dir, always=True)
  File "/home/abhay/libyuv/gclient_utils.py", line 281, in CheckCallAndFilterAndHeader
    return CheckCallAndFilter(args, **kwargs)
  File "/home/abhay/libyuv/gclient_utils.py", line 476, in CheckCallAndFilter
    **kwargs)
  File "/home/abhay/libyuv/subprocess2.py", line 253, in __init__
    % (str(e), kwargs.get('cwd'), args[0]))
OSError: Execution failed with error: [Errno 2] No such file or directory.
Check that /home/abhay/libyuv or download_from_google_storage exist and have 
execution permission.

I am working on centos6.5 64 bit , since i need jpeg as well i cannot run with 
nohooks . depot_tools are also downloaded from svn and is of revision 267480

Original issue reported on code.google.com by ab...@avissol.com on 1 May 2014 at 8:29

GoogleCodeExporter commented 8 years ago
Seems to be confused.. downloading gn.exe for win32?
I'll look into getting centos to reproduce it.  I gather its similar to redhat 
and fedora.

Original comment by fbarch...@chromium.org on 1 May 2014 at 9:15

GoogleCodeExporter commented 8 years ago
I've installed centos 6.5 on a laptop, but haven't found time to get further.

Its seeming most likely that the build scripts used (from chrome) don't support 
centos.
The fix would need to be done upstream in chrome.

As a work around you could try the make file.

Original comment by fbarch...@chromium.org on 12 May 2014 at 11:45

GoogleCodeExporter commented 8 years ago
I found the issue and it turned out to be that the path till libyuv instal 
directory has to be set . Was able to build libyuv using ninja since makefile 
does not get generated .

So the bug can be closed .

Original comment by ab...@avissol.com on 13 May 2014 at 3:37

GoogleCodeExporter commented 8 years ago
can you please state the process to fix the error.

Appreciated,

Original comment by habibsha...@gmail.com on 16 May 2014 at 9:35

GoogleCodeExporter commented 8 years ago
Do you mean the path needs to include depot_tools?

Original comment by fbarch...@chromium.org on 23 May 2014 at 12:24

GoogleCodeExporter commented 8 years ago
sorry for the delayed response but i could not understand the comment "I found 
the issue and it turned out to be that the path till libyuv instal directory 
has to be set . Was able to build libyuv using ninja since makefile does not 
get generated ."

would appreciate if you can elaborate on it.

thanks

Original comment by habibsha...@gmail.com on 9 Jun 2014 at 10:36

GoogleCodeExporter commented 8 years ago
Had fixed the issue described earlier but have ran into another one, following 
is the error log.

________ running 'download_from_google_storage --no_resume --platform=linux* 
--no_auth --bucket chromium-gn -s trunk/tools/gn/bin/linux/gn32.sha1' in 
'/home/habib/libyuv'
0> Downloading trunk/tools/gn/bin/linux/gn32...

________ running '/usr/bin/python trunk/tools/clang/scripts/update.py 
--if-needed' in '/home/habib/libyuv'

________ running '/usr/bin/python trunk/download_vs_toolchain.py update' in 
'/home/habib/libyuv'

________ running '/usr/bin/python trunk/third_party/binutils/download.py' in 
'/home/habib/libyuv'
Traceback (most recent call last):
  File "trunk/third_party/binutils/download.py", line 118, in <module>
    sys.exit(main(sys.argv))
  File "trunk/third_party/binutils/download.py", line 104, in main
    arch = GetArch()
  File "trunk/third_party/binutils/download.py", line 51, in GetArch
    return subprocess.check_output(['python', DETECT_HOST_ARCH]).strip()
AttributeError: 'module' object has no attribute 'check_output'
Error: Command /usr/bin/python trunk/third_party/binutils/download.py returned 
non-zero exit status 1 in /home/habib/libyuv

Original comment by habibsha...@gmail.com on 11 Jun 2014 at 6:35

GoogleCodeExporter commented 8 years ago
comment #3 indicates gclient sync works if configured correctly.
a new bug has been reported no Centros, so we'll keep that one open.

Original comment by fbarch...@chromium.org on 15 Jul 2014 at 12:11