Build Issue with Shaka Packager

682 views
Skip to first unread message

K Rajendra Naidu

unread,
Sep 18, 2016, 5:57:33 AM9/18/16
to Shaka Packager Users
Dear All,

I am trying to build Shaka Packager on Centos 6.5 with Python 2.7.6 following the instructions @ https://github.com/google/shaka-packager

When I run  gclient sync
Syncing projects: 100% (20/20), done.                                             

________ running '/usr/bin/python src/packager/build/linux/sysroot_scripts/install-sysroot.py --running-as-hook' in '/home/rajendra/shaka/shaka-packager'
Debian Wheezy amd64 root image already up to date: /home/rajendra/shaka/shaka-packager/src/packager/build/linux/debian_wheezy_amd64-sysroot
Debian Wheezy i386 root image already up to date: /home/rajendra/shaka/shaka-packager/src/packager/build/linux/debian_wheezy_i386-sysroot

________ running '/usr/bin/python src/packager/build/mac_toolchain.py' in '/home/rajendra/shaka/shaka-packager'

________ running '/usr/bin/python src/packager/third_party/binutils/download.py' in '/home/rajendra/shaka/shaka-packager'
Traceback (most recent call last):
  File "src/packager/third_party/binutils/download.py", line 130, in <module>
    sys.exit(main(sys.argv[1:]))
  File "src/packager/third_party/binutils/download.py", line 112, in main
    arch = GetArch()
  File "src/packager/third_party/binutils/download.py", line 52, in GetArch
    return subprocess.check_output(['python', DETECT_HOST_ARCH]).strip()
AttributeError: 'module' object has no attribute 'check_output'
Traceback (most recent call last):
  File "/home/rajendra/shaka/depot_tools/gclient.py", line 2378, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/rajendra/shaka/depot_tools/gclient.py", line 2364, in main
    return dispatcher.execute(OptionParser(), argv)
  File "/home/rajendra/shaka/depot_tools/subcommand.py", line 252, in execute
    return command(parser, args[1:])
  File "/home/rajendra/shaka/depot_tools/gclient.py", line 2117, in CMDsync
    ret = client.RunOnDeps('update', args)
  File "/home/rajendra/shaka/depot_tools/gclient.py", line 1576, in RunOnDeps
    self.RunHooksRecursively(self._options)
  File "/home/rajendra/shaka/depot_tools/gclient.py", line 1018, in RunHooksRecursively
    hook, cwd=self.root.root_dir, always=True)
  File "/home/rajendra/shaka/depot_tools/gclient_utils.py", line 293, in CheckCallAndFilterAndHeader
    return CheckCallAndFilter(args, **kwargs)
  File "/home/rajendra/shaka/depot_tools/gclient_utils.py", line 613, in CheckCallAndFilter
    rv, args, kwargs.get('cwd', None), None, None)
  File "/home/rajendra/shaka/depot_tools/subprocess2.py", line 37, in __init__
    super(CalledProcessError, self).__init__(returncode, cmd, output=stdout)
TypeError: __init__() got an unexpected keyword argument 'output'

Please provide your inputs.

Thanks and Regards,
Rajendra

KongQun Yang

unread,
Sep 19, 2016, 2:02:03 PM9/19/16
to K Rajendra Naidu, Shaka Packager Users
Hi Rajendra,

It seems that you are using a version of python before 2.7. Can you upgrade the python to 2.7 or higher?

-- KongQun Yang (KQ)

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-packager-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shaka-packager-users/5dbb651f-fd11-489a-a042-e9afc618a25d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

rajendra naidu

unread,
Sep 22, 2016, 3:16:59 PM9/22/16
to KongQun Yang, Shaka Packager Users
Dear KongQun Yang

I am using Python 2.7.6 but I have same issue in Centos 6.5
Please find the error log as follows:

[rebaca@vmrebaca shaka_packager]$ python --version
Python 2.7.6
[rebaca@vmrebaca shaka_packager]$ gclient sync
Syncing projects: 100% (20/20), done.                                             

________ running '/usr/bin/python src/packager/build/linux/sysroot_scripts/install-sysroot.py --running-as-hook' in '/home/rebaca/ericsson/shaka/shaka_packager'
Debian Wheezy amd64 root image already up to date: /home/rebaca/ericsson/shaka/shaka_packager/src/packager/build/linux/debian_wheezy_amd64-sysroot
Debian Wheezy i386 root image already up to date: /home/rebaca/ericsson/shaka/shaka_packager/src/packager/build/linux/debian_wheezy_i386-sysroot

________ running '/usr/bin/python src/packager/build/mac_toolchain.py' in '/home/rebaca/ericsson/shaka/shaka_packager'

________ running '/usr/bin/python src/packager/third_party/binutils/download.py' in '/home/rebaca/ericsson/shaka/shaka_packager'
Traceback (most recent call last):
  File "src/packager/third_party/binutils/download.py", line 130, in <module>
    sys.exit(main(sys.argv[1:]))
  File "src/packager/third_party/binutils/download.py", line 112, in main
    arch = GetArch()
  File "src/packager/third_party/binutils/download.py", line 52, in GetArch
    return subprocess.check_output(['python', DETECT_HOST_ARCH]).strip()
AttributeError: 'module' object has no attribute 'check_output'
Traceback (most recent call last):
  File "/home/rebaca/ericsson/shaka/depot_tools/gclient.py", line 2378, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/rebaca/ericsson/shaka/depot_tools/gclient.py", line 2364, in main
    return dispatcher.execute(OptionParser(), argv)
  File "/home/rebaca/ericsson/shaka/depot_tools/subcommand.py", line 252, in execute
    return command(parser, args[1:])
  File "/home/rebaca/ericsson/shaka/depot_tools/gclient.py", line 2117, in CMDsync
    ret = client.RunOnDeps('update', args)
  File "/home/rebaca/ericsson/shaka/depot_tools/gclient.py", line 1576, in RunOnDeps
    self.RunHooksRecursively(self._options)
  File "/home/rebaca/ericsson/shaka/depot_tools/gclient.py", line 1018, in RunHooksRecursively
    hook, cwd=self.root.root_dir, always=True)
  File "/home/rebaca/ericsson/shaka/depot_tools/gclient_utils.py", line 293, in CheckCallAndFilterAndHeader
    return CheckCallAndFilter(args, **kwargs)
  File "/home/rebaca/ericsson/shaka/depot_tools/gclient_utils.py", line 613, in CheckCallAndFilter
    rv, args, kwargs.get('cwd', None), None, None)
  File "/home/rebaca/ericsson/shaka/depot_tools/subprocess2.py", line 37, in __init__
    super(CalledProcessError, self).__init__(returncode, cmd, output=stdout)
TypeError: __init__() got an unexpected keyword argument 'output'
[rebaca@vmrebaca shaka_packager]$ 

Please provide your inputs

Thanks and Regards,
Rajendra


-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

KongQun Yang

unread,
Sep 26, 2016, 1:51:27 PM9/26/16
to rajendra naidu, Shaka Packager Users
It still looks like python version problem to me. 

Do you have multiple versions of python installed on different locations? Can you check the version of python installed in /usr/bin/python?

Can you check running '/usr/bin/python src/packager/third_party/binutils/download.py' directly?


-- KongQun Yang (KQ)

a.dem...@contentus.info

unread,
Oct 10, 2016, 8:02:41 AM10/10/16
to Shaka Packager Users
Hi All,

Building on Centos 6 too. 
Rajendra, I got the same error, but fixed it with installing python2.7 in parallel to python2.6 required for system.
So, gclient sync was successfully finished.
But when I try to build with ninja I get the following errors:
../../packager/third_party/llvm-build/Release+Asserts/bin/clang++: /lib64/libc.so.6: version `GLIBC_2.15' not found (required by ../../packager/third_party/llvm-build/Release+Asserts/bin/clang++)
../../packager/third_party/llvm-build/Release+Asserts/bin/clang++: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ../../packager/third_party/llvm-build/Release+Asserts/bin/clang++)
../../packager/third_party/llvm-build/Release+Asserts/bin/clang++: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/shaka/shaka-packager/src/packager/third_party/llvm-build/Release+Asserts/bin/../lib/libstdc++.so.6)

Centos6 has glibc 2.12 on board.
Could anybody help?



понедельник, 26 сентября 2016 г., 20:51:27 UTC+3 пользователь KongQun Yang написал:

-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pack...@googlegroups.com.

KongQun Yang

unread,
Oct 10, 2016, 12:47:43 PM10/10/16
to a.dem...@contentus.info, Shaka Packager Users
Hi,

Can you try install "yum  install gcc-c++" and try again?


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

a.dem...@contentus.info

unread,
Oct 12, 2016, 10:12:27 AM10/12/16
to Shaka Packager Users, a.dem...@contentus.info
Hi,

Thank you for response!
gcc-c++ had been installed before I tried.
The problem is with third_party which are build for Ubuntu and are downloaded as binaries.
This command could be ran to build clang:
python src/packager/tools/clang/scripts/update.py --if-needed --force-local-build --without-android
But it downloads gcc binaries again :)  So I installed gcc 4.8.2 from packages from exta repo. Finally, I got clang built.
Now running "ninja -C src/out/Release" I get problem with prebuild ld. So binutils with your custom patches should be also builded, but it seems tricky.
Is it any easier way to build shaka-packager for Centos 6? 




понедельник, 10 октября 2016 г., 19:47:43 UTC+3 пользователь KongQun Yang написал:


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pack...@googlegroups.com.

KongQun Yang

unread,
Oct 12, 2016, 7:18:15 PM10/12/16
to a.dem...@contentus.info, Shaka Packager Users
Can you try if disabling clang works? Looks like CentOS-6 is too old to handle our bundled clang.

GYP_DEFINES='clang=0' gclient runhooks
ninja -C out/Debug


-- KongQun Yang (KQ)



-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

rajendra naidu

unread,
Oct 12, 2016, 10:52:01 PM10/12/16
to a.dem...@contentus.info, Shaka Packager Users
Hi,

I had issues in building in Centos 6.X with Python 2.7 installed over Python 2.6.
With Centos 7 which comes with Python 2.7 installation; Shaka packager build was pretty straight forward.

Thanks and Regards,
Rajendra



-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.

To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Shaka Packager Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shaka-packager-users/2GdUlrwPuUs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-packager-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shaka-packager-users/a8ed82eb-4117-477c-9e36-06a86ac9a04f%40googlegroups.com.

a.dem...@contentus.info

unread,
Oct 13, 2016, 3:28:59 AM10/13/16
to Shaka Packager Users, a.dem...@contentus.info
With this configuration I get:
cc1plus: error: unrecognized command line option "-std=gnu++11"/home/shaka/shaka_packager/src/packager/third_party/binutils/Linux_x64/Release/bin/as: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/shaka/shaka_packager/src/packager/third_party/binutils/Linux_x64/Release/bin/as)
/home/shaka/shaka_packager/src/packager/third_party/binutils/Linux_x64/Release/bin/as: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/shaka/shaka_packager/src/packager/third_party/binutils/Linux_x64/Release/bin/../lib/libtcmalloc_minimal.so.4)
/home/shaka/shaka_packager/src/packager/third_party/binutils/Linux_x64/Release/bin/as: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/shaka/shaka_packager/src/packager/third_party/binutils/Linux_x64/Release/bin/../../../../llvm-build/Release+Asserts/lib/libstdc++.so.6)

At least I found the way to run shaka-packager on Centos 6. You can install  libstdc++47-4.7.0-16.1.x86_64.rpm (I don't know if external links are allowed) on Centos 6 and build shaka-packager on Ubuntu. After you can run shaka-packager binaries on Centos 6.

четверг, 13 октября 2016 г., 5:52:01 UTC+3 пользователь K Rajendra Naidu написал:


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)


-- KongQun Yang (KQ)

To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.

To post to this group, send email to shaka-pack...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Shaka Packager Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shaka-packager-users/2GdUlrwPuUs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pack...@googlegroups.com.

Varadarajan Aravamudhan

unread,
Mar 4, 2017, 12:06:18 PM3/4/17
to Shaka Packager Users
Hi:

I just downloaded the Shaka packager and started compiling it. I am building it on Windows 7. I have downloaded depot_tools. When I go a gclien sync. I get the following error.

  File "D:\cpp\shaka_packager\src\packager\tools\gyp\pylib\
gyp\MSVSVersion.py", line 447, in SelectVisualStudioVersion
    raise ValueError('Could not locate Visual Studio installation.')
ValueError: Could not locate Visual Studio installation.
Error: Command 'D:\\cpp\\depot_tools\\python276_bin\\pyth
on.exe src/gyp_packager.py --depth=src/packager' returned non-zero exit status 1
 in D:\MyProjects\workspace\cpp\shaka_packager

Do I need to have a Visual C++ redist installed? Is that needed for Windows 7?

Thanks
Varada

KongQun Yang

unread,
Mar 6, 2017, 12:46:20 PM3/6/17
to Varadarajan Aravamudhan, Shaka Packager Users
Yes, you'll need to have Visual Studio and Windows SDK:

Visual Studio

As of December 8, 2016 Chromium requires Visual Studio 2015, with the 14393 Windows SDK to build.

Install Visual Studio 2015 Update 3 or later - Community Edition should work if its license is appropriate for you. Use the Custom Install option and select:

  • Visual C++, which will select three sub-categories including MFC
  • Universal Windows Apps Development Tools > Tools (1.4.1) and Windows 10 SDK (10.0.14393)

You must have the 14393 SDK installed or else you will hit compile errors such as undefined or redefined macros.

Install the Windows SDK 10, and choose Debugging Tools For Windows when you install this in order to get windbg.


Sorry for not making it clear. 


-- KongQun Yang (KQ)

--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages