Build failed (CEF 83 / 4103) for Windows

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Build failed (CEF 83 / 4103) for Windows

Postby coder678 » Mon Jul 06, 2020 6:50 pm

I want to build CEF 83 for Windows. The script is:
Code: Select all
set GN_ARGUMENTS=--ide=vs2017 --sln=cef --filters=//cef/*
python ..\automate\automate-git.py --branch=4103 --download-dir=d:\code\chromium_git --depot-tools-dir=d:\code\depot_tools --no-distrib --no-build


I have Visual Studio 2017 installed.

First I tried to run script in cmd under Administrator, there were errors:
Code: Select all
________ running 'vpython.bat src/tools/clang/scripts/update.py' in 'd:\code\chromium_git\chromium'
Downloading https://commondatastorage.googleapis.com/chromium-browser-clang/Win/clang-n346557-4e0d9925-2.tgz .......... Done.
Traceback (most recent call last):
  File "src/tools/clang/scripts/update.py", line 383, in <module>
    sys.exit(main())
  File "src/tools/clang/scripts/update.py", line 379, in main
    return UpdatePackage(args.package)
  File "src/tools/clang/scripts/update.py", line 313, in UpdatePackage
    CopyDiaDllTo(os.path.join(LLVM_BUILD_DIR, 'bin'))
  File "src/tools/clang/scripts/update.py", line 247, in CopyDiaDllTo
    GetWinSDKDir()
  File "src/tools/clang/scripts/update.py", line 221, in GetWinSDKDir
    win_sdk_dir = vs_toolchain.SetEnvironmentAndGetSDKDir()
  File "d:\code\chromium_git\chromium\src\build\vs_toolchain.py", line 530, in SetEnvironmentAndGetSDKDir
    SetEnvironmentAndGetRuntimeDllDirs()
  File "d:\code\chromium_git\chromium\src\build\vs_toolchain.py", line 95, in SetEnvironmentAndGetRuntimeDllDirs
    os.environ['GYP_MSVS_OVERRIDE_PATH'] = DetectVisualStudioPath()
  File "d:\code\chromium_git\chromium\src\build\vs_toolchain.py", line 209, in DetectVisualStudioPath
    raise Exception('Visual Studio Version %s not found.' % version_as_year)
Exception: Visual Studio Version 2015 not found.
Error: Command 'vpython.bat src/tools/clang/scripts/update.py' returned non-zero exit status 1 in d:\code\chromium_git\chromium
Traceback (most recent call last):
  File "..\automate\automate-git.py", line 1383, in <module>
    run("gclient runhooks --jobs 16", chromium_dir, depot_tools_dir)
  File "..\automate\automate-git.py", line 70, in run
    args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
  File "d:\code\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gclient', 'runhooks', '--jobs', '16']' returned non-zero exit status 2


Then I tried in Developer Command Prompt 2017 under administrator, there were errors:
Code: Select all
Error: Command 'git checkout --quiet refs/remotes/origin/master' returned non-zero exit status 128 in d:\code\chromium_git\chromium\src
fatal: this operation must be run in a work tree



Warnings:
Conflicting directory d:\code\chromium_git\chromium\src moved to d:\code\chromium_git\chromium\_bad_scm\srcnmjnjq.
Traceback (most recent call last):
  File "..\automate\automate-git.py", line 1289, in <module>
    chromium_dir, depot_tools_dir)
  File "..\automate\automate-git.py", line 70, in run
    args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
  File "d:\code\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gclient', 'sync', '--nohooks', '--with_branch_heads', '--jobs', '16']' returned non-zero exit status 1


Please help.
coder678
Techie
 
Posts: 29
Joined: Sun Jun 26, 2016 10:03 pm

Re: Build failed (CEF 83 / 4103) for Windows

Postby magreenblatt » Mon Jul 06, 2020 7:21 pm

Don’t run as administrator.
magreenblatt
Site Admin
 
Posts: 10180
Joined: Fri May 29, 2009 6:57 pm

Re: Build failed (CEF 83 / 4103) for Windows

Postby coder678 » Tue Jul 07, 2020 12:27 am

I run not under administrator, error is same.

Code: Select all
Error: Command 'git checkout --quiet refs/remotes/origin/master' returned non-zero exit status 128 in d:\code\chromium_git\chromium\src
fatal: this operation must be run in a work tree



Warnings:
Conflicting directory d:\code\chromium_git\chromium\src moved to d:\code\chromium_git\chromium\_bad_scm\srcrjeohb.
Traceback (most recent call last):
  File "..\automate\automate-git.py", line 1289, in <module>
    chromium_dir, depot_tools_dir)
  File "..\automate\automate-git.py", line 70, in run
    args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
  File "d:\code\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gclient', 'sync', '--nohooks', '--with_branch_heads', '--jobs', '16']' returned non-zero exit status 1
coder678
Techie
 
Posts: 29
Joined: Sun Jun 26, 2016 10:03 pm

Re: Build failed (CEF 83 / 4103) for Windows

Postby ndesktop » Tue Jul 07, 2020 3:51 am

Better start with a clean dir. You are not running as admin in the last attempts, but I think you are running over several failed attempts as admin.
ndesktop
Expert
 
Posts: 403
Joined: Thu Dec 03, 2015 10:10 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 40 guests