简体   繁体   English

错误:gyp_chromium返回非零退出状态1

[英]ERROR: gyp_chromium returned non-zero exit status 1

I'm trying to checkout the android version of chromium on CentOS 2.6.18 我想签的Android版本的CentOS 2.6.18
I'm following the official instructions provided in this link 我正在遵循此链接中提供的官方说明

unfortunately, when i run 不幸的是,当我跑步时

gclient runhooks

I get the following error: 我收到以下错误:

Error: Command /usr/local/bin/python src/build/gyp_chromium returned non-zero exit status 1 in /root 错误:命令/ usr / local / bin / python src / build / gyp_chromium在/ root中返回非零退出状态1

Here is the full output: 这是完整的输出:

[root@centos build]# gclient runhooks
    Running depot tools as root is sad.

    ________ running '/usr/local/bin/python src/build/download_nacl_toolchains.py --no-arm-trusted --keep' in '/root'
    /root/src/native_client/toolchain/.tars/toolchain_linux_x86.tar.bz2 is already up to date.
    linux_x86: already up to date.
    /root/src/native_client/toolchain/.tars/naclsdk_linux_x86.tgz is already up to date.
    linux_x86_newlib: already up to date.
    /root/src/native_client/toolchain/.tars/naclsdk_pnacl_linux_x86.tgz is already up to date.
    pnacl_linux_x86: already up to date.
    /root/src/native_client/toolchain/.tars/naclsdk_pnacl_translator.tgz is already up to date.
    pnacl_translator: already up to date.

    ________ running '/usr/local/bin/python src/build/linux/install-arm-sysroot.py --linux-only' in '/root'

    ________ running '/usr/local/bin/python src/chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py --linux-only --arch=amd64' in '/root'

    ________ running '/usr/local/bin/python src/chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py --linux-only --arch=i386' in '/root'

    ________ running '/usr/local/bin/python src/tools/clang/scripts/update.py --mac-only' in '/root'

    ________ running '/usr/local/bin/python src/build/win/setup_cygwin_mount.py --win-only' in '/root'

    ________ running '/usr/local/bin/python src/build/util/lastchange.py -o src/build/util/LASTCHANGE' in '/root'

    ________ running '/usr/local/bin/python src/build/util/lastchange.py -s src/third_party/WebKit -o src/build/util/LASTCHANGE.blink' in '/root'

    ________ running '/usr/local/bin/python src/build/gyp_chromium' in '/root'
    Updating projects from gyp files...
    gyp: Call to '../build/linux/python_arch.sh /usr/lib/libpython2.6.so.1.0' returned exit status 1. while trying to load /root/src/build/all.gyp

    Error: Command /usr/local/bin/python src/build/gyp_chromium returned non-zero exit status 1 in /root


How to solve this to continue building steps ? 如何解决此问题以继续构建步骤?

I had to edit the file common.gypi in trunk/build to change system_libdr% to be lib64, not lib. 我必须在trunk / build中编辑文件common.gypi,以将system_libdr%更改为lib64,而不是lib。 There's probably some way to pass that into gclient, but I couldn't figure out how. 可能有一些方法可以将其传递给gclient,但是我不知道该怎么做。 On Centos 64bit, the libs live in /usr/lib64. 在Centos 64位上,这些库位于/ usr / lib64中。

You can override system_libdir with: 您可以使用以下命令覆盖system_libdir:

$ export GYP_DEFINES=system_libdir=lib64

I filed a Chromium bug to address this. 我提出了一个Chromium错误以解决此问题。

What is the python version installed on your system ? 您的系统上安装了什么python版本?

I had the same issue and it was simply because my system provides python 2.7 instead of 2.6. 我遇到了同样的问题,这仅仅是因为我的系统提供的是python 2.7而不是2.6。

If that is also your case, you can try running it again with: 如果这也是您的情况,可以尝试使用以下命令再次运行它:

GYP_DEFINES=python_ver=2.7

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM