2017-02-21 3 views
2

Ich habe begonnen, V8-Engine zu lernen und wurde auf sehr frühe Phase gestapelt, weil ich keine statischen Bibliotheken aus der Quelle (link) erstellen kann. I Schritt ging auf diesem Leitfaden für Schritt aber ich Fehler haben aufv8 Build-Fehler mit GN

python tools/dev/v8gen.py x64.release 

My v8 lokale Kopie auf D Ausführung gelegt wird: \ root \ deps eine andere \ \ v8 So ist der Fehler:

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 

Ich habe bereits gelesen, Bau von Chrom und einige ähnliche Probleme im Internet beschrieben, aber nichts half wirklich.

Antwort

0

Stellen Sie sicher, dass Sie DEPOT_TOOLS_WIN_TOOLCHAIN ​​= 0 festgelegt haben. Siehe auch Chromiums depot tools instructions und requirements.

+0

Alles ist in Ordnung, außer RAM. Ich habe 6GB. Also kann * das * wirklich ein Problem sein? – UserShadow

+0

Das Skript zum Einrichten der Umgebung kann den Debugger nicht finden: https://chromium.googlesource.com/chromium/src/+/99f41af9c02/build/vs_toolchain.py#335 Vielleicht sucht es unter dem falschen Pfad? Sie können auch manuell das SDK-Verzeichnis: https://chromium.googlesource.com/chromium/src/+/99f41af9c02/build/vs_toolchain.py#408 – Michael

+0

Ich werde versuchen, es zu beheben, und ich werde richtig antworten nach dem Ende – UserShadow