2017-05-27 6 views
0

ubuntuでv8をビルドしようとしました(私の開発環境にroot権限がないのでドッカーを使用しています)。ubuntu上でv8をビルドする(ドッカー)

私はdepot_toolsを得ることができ、ここでhttps://github.com/v8mips/v8mips/wiki/Get-the-code

を命令に従うことを試みるが、私はfetch v8を実行したときに、私は次のエラーを取得する:

Error: Command '/usr/bin/python v8/third_party/binutils/download.py' 
    returned non-zero exit status 1 in /home 
Traceback (most recent call last): 
    File "/home/depot_tools/fetch.py", line 300, in <module> 
    sys.exit(main()) 
    File "/home/depot_tools/fetch.py", line 295, in main 
    return run(options, spec, root) 
    File "/home/depot_tools/fetch.py", line 289, in run 
    return checkout.init() 
    File "/home/depot_tools/fetch.py", line 132, in init 
    self.run_gclient(*sync_cmd) 
    File "/home/depot_tools/fetch.py", line 76, in run_gclient 
    return self.run(cmd_prefix + cmd, **kwargs) 
    File "/home/depot_tools/fetch.py", line 66, in run 
    return subprocess.check_output(cmd, **kwargs) 
    File "/usr/lib/python2.7/subprocess.py", line 574, in check_output 
    raise CalledProcessError(retcode, cmd, output=output) 
subprocess.CalledProcessError: Command '('gclient', 'sync', '--with_branch_heads')' 
    returned non-zero exit status 2 

が問題に何ができるか、誰を知っていますか?ここに私のDockerfileです:

FROM ubuntu:latest 
RUN apt-get update 
RUN apt-get install -y git 
RUN apt-get install -y python 
WORKDIR /home 
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git 
ENV PATH /home/depot_tools:"$PATH" 

私はその後、docker run -it v8build(ドッカイメージの名前)とドッキングウィンドウを実行し、fetch v8

編集(バージョン情報を追加すること)を実行します。

  • のUbuntu:16.04
  • git:2.7.4
  • python:2.7.12

答えて

0

私は問題が何かを理解しました。ここに答えがあります。うまくいけば、誰かがそれから恩恵を受けることができるだろう。

fetch -n v8を実行すると、実行されるすべてのコマンドが表示されます。そして、コマンドは以下の通りです:エラー出力で説明したよう

fetch -n v8 
Running: gclient root 
Running: gclient config --spec 'solutions = [ 
    { 
    "url": "https://chromium.googlesource.com/v8/v8.git", 
    "managed": False, 
    "name": "v8", 
    "deps_file": "DEPS", 
    "custom_deps": {}, 
    }, 
] 
' 
Running: gclient sync --with_branch_heads 
cd /home/x/v8 
Running: git submodule foreach 'git config -f $toplevel/.git/config submodule.$name.ignore all' 
Running: git config --add remote.origin.fetch '+refs/tags/*:refs/tags/*' 
Running: git config diff.ignoreSubmodules all 

エラーがgclient sync --with_branch_headsで起こります。

コマンドを1つずつ実行して、プロセスを手動で複製し、fetch v8で非表示になっているメッセージを印刷できるようにしました。 このエラーは、ubuntu:latestドッカーの画像にlbzip2が含まれていないことが判明しました。

これをインストールすると問題が解決します。

更新Dockerfile

FROM ubuntu:latest 
RUN apt-get update 
RUN apt-get install -y git python lbzip2 && apt-get clean 
WORKDIR /home 
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git 
ENV PATH /home/depot_tools:"$PATH" 
RUN cd /home && fetch v8 

旅は続く...

関連する問題