2017-02-21 2 views
2

소스 코드 (link)에서 정적 라이브러리를 빌드 할 수 없기 때문에 v8 엔진을 배우기 시작했고 매우 초기 단계에 쌓여있었습니다. 나는이 가이드 에 단계적으로 갔다하지만 난 내 V8 로컬 복사본이 D에 배치됩니다v8 빌드 GN에서 오류가 발생했습니다

python tools/dev/v8gen.py x64.release 

을 실행에 오류가 :

D:\depot_tools\python276_bin\python.exe -u tools\mb\mb.py gen -f infra\mb\mb_config.pyl -m developer_default -b x64.release out.gn/x64.release 

    Writing """\ 
    is_debug = false 
    target_cpu = "x64" 
    """ to D:\root\another\deps\v8\out.gn\x64.release\args.gn. 

    D:\root\another\deps\v8\buildtools\win\gn.exe gen out.gn/x64.release --check 
    -> returned 1 
    ERROR at //build/toolchain/win/BUILD.gn:38:3: Script returned non-zero exit code. 
    exec_script("../../vs_toolchain.py", 
    ^---------- 
    Current dir: D:/root/another/deps/v8/out.gn/x64.release/ 
    Command: D:/depot_tools/python276_bin/python.exe -- D:/root/another/deps/v8/build/vs_toolchain.py copy_dlls D:/root/another/deps/v8/out.gn/x64.release Release x64 
    Returned 1 and printed out: 

    Copying C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe to D:/root/another/deps/v8/out.gn/x64.release\cdb.exe... 

    See //BUILD.gn:421:1: which caused the file to be included. 
    action("js2c") { 
    ^---------------- 
    Traceback (most recent call last): 

    File "D:/root/another/deps/v8/build/vs_toolchain.py", line 449, in <module> 

     sys.exit(main()) 

    File "D:/root/another/deps/v8/build/vs_toolchain.py", line 445, in main 

     return commands[sys.argv[1]](*sys.argv[2:]) 

    File "D:/root/another/deps/v8/build/vs_toolchain.py", line 317, in CopyDlls 

     _CopyDebugger(target_dir, target_cpu) 

    File "D:/root/another/deps/v8/build/vs_toolchain.py", line 337, in _CopyDebugger 

     _CopyRuntimeImpl(target_path, full_path) 

    File "D:/root/another/deps/v8/build/vs_toolchain.py", line 197, in _CopyRuntimeImpl 

     shutil.copy2(source, target) 

    File "D:\depot_tools\python276_bin\lib\shutil.py", line 130, in copy2 

     copyfile(src, dst) 

    File "D:\depot_tools\python276_bin\lib\shutil.py", line 82, in copyfile 

     with open(src, 'rb') as fsrc: 

    IOError: [Errno 2] No such file or directory: 'C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x64\\cdb.exe' 

    GN gen failed: 1 
Traceback (most recent call last): 
    File "tools/dev/v8gen.py", line 304, in <module> 
    sys.exit(gen.main()) 
    File "tools/dev/v8gen.py", line 298, in main 
    return self._options.func() 
    File "tools/dev/v8gen.py", line 166, in cmd_gen 
    gn_outdir, 
    File "tools/dev/v8gen.py", line 208, in _call_cmd 
    stderr=subprocess.STDOUT, 
    File "D:\depot_tools\python276_bin\lib\subprocess.py", line 573, in check_output 
    raise CalledProcessError(retcode, cmd, output=output) 
subprocess.CalledProcessError: Command '['D:\\depot_tools\\python276_bin\\python.exe', '-u', 'tools\\mb\\mb.py', 'gen', '-f', 'infra\\mb\\mb_config.pyl', '-m', 'developer_default', '-b', 'x64.release', 'out.gn/x64.release']' returned non-zero exit status 1 
: \ 루트 \ 다른 \는 \ V8 그래서 오류 deps

저는 크롬 제작 과정을 이미 읽고 인터넷에서 설명한 비슷한 문제를 확인했지만 실제로 도움이되는 것은 없습니다.

답변

0

DEPOT_TOOLS_WIN_TOOLCHAIN ​​= 0으로 설정했는지 확인하십시오. Chromium의 depot tools instructionsrequirements도 참조하십시오.

+0

RAM을 제외한 모든 항목이 정상입니다. 나는 6GB가있다. 그래서 *이 * 정말 문제가 될 수 있습니까? – UserShadow

+0

환경 설정을위한 스크립트가 디버거를 찾지 못했습니다. https://chromium.googlesource.com/chromium/src/+/99f41af9c02/build/vs_toolchain.py#335 잘못된 경로로 검색했을 수 있습니다. sdk 디렉토리를 수동으로 설정할 수도 있습니다. https://chromium.googlesource.com/chromium/src/+/99f41af9c02/build/vs_toolchain.py#408 – Michael

+0

수정을 시도하고 바로 응답하겠습니다. 마무리 후 – UserShadow

관련 문제