Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chromium/2019/05/03/Chromium-build #5

Open
utterances-bot opened this issue May 7, 2020 · 13 comments
Open

chromium/2019/05/03/Chromium-build #5

utterances-bot opened this issue May 7, 2020 · 13 comments
Labels
comment blog post comment

Comments

@utterances-bot
Copy link

크로미움(Chromium) 빌드하기 - dydtjr1128's Blog

크로미움(Chromium) 빌드하기

Intro. 크로미움(Chromium)이란?

크로미움은 2008년 9월 구글이 시작한 오픈 소스 웹 브라우저 프로젝트이다. ...

https://dydtjr1128.github.io/chromium/2019/05/03/Chromium-build.html

Copy link

ghost commented May 7, 2020

오류가 나서 그런데 알려주실 수 있나요?

C:\Users\user\Desktop\Chromium_Programming\chromium\src>gn gen --ide=vs --filters=//ui/views/examples:views_examples_exe out\Default
Traceback (most recent call last):
File "C:/Users/user/Desktop/Chromium_Programming/chromium/src/build/vs_toolchain.py", line 569, in
sys.exit(main())
File "C:/Users/user/Desktop/Chromium_Programming/chromium/src/build/vs_toolchain.py", line 565, in main
return commandssys.argv[1]
File "C:/Users/user/Desktop/Chromium_Programming/chromium/src/build/vs_toolchain.py", line 543, in GetToolchainDir
win_sdk_dir = SetEnvironmentAndGetSDKDir()
File "C:/Users/user/Desktop/Chromium_Programming/chromium/src/build/vs_toolchain.py", line 536, in SetEnvironmentAndGetSDKDir
return NormalizePath(os.environ['WINDOWSSDKDIR'])
File "C:\Users\user\Desktop\Chromium_Programming\src\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\os.py", line 425, in getitem
return self.data[key.upper()]
KeyError: 'WINDOWSSDKDIR'
ERROR at //build/config/win/visual_studio_version.gni:27:7: Script returned non-zero exit code.
exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "scope")
^----------
Current dir: C:/Users/user/Desktop/Chromium_Programming/chromium/src/out/Default/
Command: C:/Users/user/Desktop/Chromium_Programming/src/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe C:/Users/user/Desktop/Chromium_Programming/chromium/src/build/vs_toolchain.py get_toolchain_dir
Returned 1.
See //third_party/angle/gni/angle.gni:25:5: whence it was imported.
import("//build/config/win/visual_studio_version.gni")
^----------------------------------------------------
See //chrome/browser/browser_switcher/bho/BUILD.gn:6:1: whence it was imported.
import("//build/toolchain/win/midl.gni")
^--------------------------------------
See //BUILD.gn:310:15: which caused the file to be included.
deps += [ "//chrome/browser/browser_switcher/bho:browser_switcher_dlls" ]
^------------------------------------------------------------

Copy link
Owner

안녕하세요 @kms0219kms 님.
올려주신 로그를 확인해 보았는데 오류 내용이 SetEnvironmentAndGetSDKDir에 들어가 있는 걸 보아 Windows SDK가 환경 변수에 추가되어 있지 않거나 정상적으로 설치되지 않은 것 같습니다.
현재 크로미움의 windows sdk 필요한 버전이 10.0.18362혹은 이상이 필요합니다.

Window 10 SDK가 이미 설치되어 없으시다면

Window 10 SDK가 이미 설치되어 있으시다면

  • 제어판 -> 프로그램 -> 프로그램 및 기능 -> Windows Software Development Kit - 버전 -> 우클릭 후 변경 -> "Change" -> Debugging Tools For Windows 선택 -> Change

를 설정하시고 환경 변수에 WINDOWSSDKDIR가 존재하는지 확인 후 다시 돌려보시겠어요?

Copy link

ghost commented May 8, 2020

@dydtjr1128님. 알려주신대로 진행했으나

C:\Users\user\Desktop\Chromium_Programming\chromium\src>gn gen --ide=vs --filters=//ui/views/examples:views_examples_exe out\Default
Traceback (most recent call last):
File "C:/Users/user/Desktop/Chromium_Programming/chromium/src/build/vs_toolchain.py", line 569, in
sys.exit(main())
File "C:/Users/user/Desktop/Chromium_Programming/chromium/src/build/vs_toolchain.py", line 565, in main
return commandssys.argv[1]
File "C:/Users/user/Desktop/Chromium_Programming/chromium/src/build/vs_toolchain.py", line 381, in CopyDlls
_CopyRuntime(target_dir, runtime_dir, target_cpu, debug=True)
File "C:/Users/user/Desktop/Chromium_Programming/chromium/src/build/vs_toolchain.py", line 354, in _CopyRuntime
suffix)
File "C:/Users/user/Desktop/Chromium_Programming/chromium/src/build/vs_toolchain.py", line 270, in _CopyUCRTRuntime
_CopyRuntimeImpl(target, source)
File "C:/Users/user/Desktop/Chromium_Programming/chromium/src/build/vs_toolchain.py", line 225, in _CopyRuntimeImpl
Traceback (most recent call last):
shutil.copy2(source, target)
File "C:/Users/user/Desktop/Chromium_Programming/chromium/src/build/toolchain/win/setup_toolchain.py", line 287, in
File "C:\Users\user\Desktop\Chromium_Programming\src\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\shutil.py", line 153, in copy2
main()
copyfile(src, dst)
File "C:/Users/user/Desktop/Chromium_Programming/chromium/src/build/toolchain/win/setup_toolchain.py", line 233, in main
File "C:\Users\user\Desktop\Chromium_Programming\src\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\shutil.py", line 96, in copyfile
env = _LoadToolchainEnv(cpu, win_sdk_path, target_store)
with open(src, 'rb') as fsrc:
File "C:/Users/user/Desktop/Chromium_Programming/chromium/src/build/toolchain/win/setup_toolchain.py", line 150, in _LoadToolchainEnv
IOError : script_path)
[ExceptionErrno 2] No such file or directory: 'C:\WINDOWS\System32\msvcp140d.dll':
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\vcvarsall.bat is missing - make sure VC++ tools are installed.
ERROR at //build/config/win/BUILD.gn:297:27: Script returned non-zero exit code.
vcvars_toolchain_data = exec_script("../../toolchain/win/setup_toolchain.py",
^----------
Current dir: C:/Users/user/Desktop/Chromium_Programming/chromium/src/out/Default/
Command: C:/Users/user/Desktop/Chromium_Programming/src/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe C:/Users/user/Desktop/Chromium_Programming/chromium/src/build/toolchain/win/setup_toolchain.py "C:\Program Files (x86)/Microsoft Visual Studio/2019/Community" "C:\Program Files (x86)\Windows Kits\10" "C:\WINDOWS\System32;C:\WINDOWS\SysWOW64;Arm64Unused" win x64 none
Returned 1.
See //build/config/BUILDCONFIG.gn:472:9: which caused the file to be included.
[ "//build/config/win:default_cygprofile_instrumentation" ]
^------------------------------------------------------

오류가 발생합니다.

Copy link

ghost commented May 12, 2020

안녕하세요. 위의 오류에 답변이 없어, 크로미움 개발 환경을 바꾸고, Windows SDK까지 설치하고, 실행해 보았으나, 여전히 오류가 발생합니다. 무슨 오류인지 알려 주실 수 있으실까요?

C:\Users\user\chromium\src> gn gen --ide=vs --filters=//ui/views/examples:views_examples_exe out\Default
Traceback (most recent call last):
File "C:/Users/user/chromium/src/build/vs_toolchain.py", line 569, in
sys.exit(main())
File "C:/Users/user/chromium/src/build/vs_toolchain.py", line 565, in main
return commandssys.argv[1]
File "C:/Users/user/chromium/src/build/vs_toolchain.py", line 381, in CopyDlls
_CopyRuntime(target_dir, runtime_dir, target_cpu, debug=True)
File "C:/Users/user/chromium/src/build/vs_toolchain.py", line 354, in _CopyRuntime
suffix)
File "C:/Users/user/chromium/src/build/vs_toolchain.py", line 270, in _CopyUCRTRuntime
_CopyRuntimeImpl(target, source)
File "C:/Users/user/chromium/src/build/vs_toolchain.py", line 225, in _CopyRuntimeImpl
shutil.copy2(source, target)
File "C:\src\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\shutil.py", line 153, in copy2
copyfile(src, dst)
File "C:\src\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\shutil.py", line 96, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 'C:\WINDOWS\System32\msvcp140d.dll'
ERROR at //build/toolchain/win/BUILD.gn:49:3: Script returned non-zero exit code.
exec_script("../../vs_toolchain.py",
^----------
Current dir: C:/Users/user/chromium/src/out/Default/
Command: C:/src/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe C:/Users/user/chromium/src/build/vs_toolchain.py copy_dlls C:/Users/user/chromium/src/out/Default Debug x64
Returned 1 and printed out:

Copying C:\WINDOWS\System32\msvcp140d.dll to C:/Users/user/chromium/src/out/Default\msvcp140d.dll...

See //BUILD.gn:65:1: which caused the file to be included.
group("gn_all") {
^----------------
Traceback (most recent call last):
File "C:/Users/user/chromium/src/build/toolchain/win/setup_toolchain.py", line 287, in
main()
File "C:/Users/user/chromium/src/build/toolchain/win/setup_toolchain.py", line 233, in main
env = _LoadToolchainEnv(cpu, win_sdk_path, target_store)
File "C:/Users/user/chromium/src/build/toolchain/win/setup_toolchain.py", line 150, in _LoadToolchainEnv
script_path)
Exception: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\vcvarsall.bat is missing - make sure VC++ tools are installed.

@dydtjr1128 dydtjr1128 added the comment blog post comment label Jul 30, 2020
Copy link

Running: 'C:\Users\사용자이름(개인정보).vpython-root\d24268\Scripts\python.exe' 'C:\src\depot_tools\gclient.py' root
C:\Users\사용자이름(개인정보).gclient_entries missing, .gclient file in parent directory C:\Users\사용자이름(개인정보) might not be the file you want to use.
Your current directory appears to already contain, or be part of,
a checkout. "fetch" is used only to get new checkouts. Use
"gclient sync" to update existing checkouts.

Fetch also does not yet deal with partial checkouts, so if fetch
failed, delete the checkout and start over (crbug.com/230691).

이런 오류가 뜨는데 혹시 무슨 오류일지 알려주실 수 있으실까요?ㅠㅜ

Copy link

소스코드 다운로드 오류 났어요

Downloading CIPD client for windows-amd64 from https://chrome-infra-packages.appspot.com/client?platform=windows-amd64&v
ersion=git_revision:0323cbe1ef467af36aa6784f2315c5ee36e89e34...
Running: 'C:\Users\user.vpython-root\de35fb\Scripts\python.exe' 'C:\Users\user\Downloads\Compressed\depot_tools\gclient
.py' root
WARNING: Your metrics.cfg file was invalid or nonexistent. A new one will be created.
Running: 'C:\Users\user.vpython-root\de35fb\Scripts\python.exe' 'C:\Users\user\Downloads\Compressed\depot_tools\gclient
.py' config --spec 'solutions = [
{
"name": "src",
"url": "https://chromium.googlesource.com/chromium/src.git",
"managed": False,
"custom_deps": {},
"custom_vars": {},
},
]
'
kernel32.SetConsoleMode to enable ANSI sequences failed
Running: 'C:\Users\user.vpython-root\de35fb\Scripts\python.exe' 'C:\Users\user\Downloads\Compressed\depot_tools\gclient
.py' sync
kernel32.SetConsoleMode to enable ANSI sequences failed

src (ERROR)

[0:00:00] Started.
[0:00:00]
Traceback (most recent call last):
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient_scm.py", line 1043, in _Clone
self._Run(clone_cmd, options, cwd=self._root_dir, retry=True,
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient_scm.py", line 1411, in _Run
gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient_utils.py", line 635, in CheckCallAndFilter
show_header_if_necessary(needs_header, attempt)
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient_utils.py", line 567, in show_header_if_necessary
stdout_write(header.encode())
File "C:\Users\user\Downloads\Compressed\depot_tools\third_party\colorama\ansitowin32.py", line 41, in write
self.__convertor.write(text)
File "C:\Users\user\Downloads\Compressed\depot_tools\third_party\colorama\ansitowin32.py", line 162, in write
self.write_and_convert(text)
File "C:\Users\user\Downloads\Compressed\depot_tools\third_party\colorama\ansitowin32.py", line 184, in write_and_conv
ert
text = self.convert_osc(text)
File "C:\Users\user\Downloads\Compressed\depot_tools\third_party\colorama\ansitowin32.py", line 246, in convert_osc
for match in self.ANSI_OSC_RE.finditer(text):
TypeError: cannot use a string pattern on a bytes-like object
[0:00:00] _____ removing non-empty tmp dir C:\Users\user\Downloads\Compressed\depot_tools_gclient_src_2j26va6h

Traceback (most recent call last):
File "C:\Users\user\Downloads\Compressed\depot_tools\metrics.py", line 267, in print_notice_and_exit
yield
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient.py", line 3195, in
sys.exit(main(sys.argv[1:]))
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient.py", line 3181, in main
return dispatcher.execute(OptionParser(), argv)
File "C:\Users\user\Downloads\Compressed\depot_tools\subcommand.py", line 252, in execute
return command(parser, args[1:])
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient.py", line 2737, in CMDsync
ret = client.RunOnDeps('update', args)
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient.py", line 1779, in RunOnDeps
work_queue.flush(revision_overrides, command, args, options=self._options,
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient_utils.py", line 968, in flush
reraise(e[0], e[1], e[2])
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient_utils.py", line 67, in reraise
raise value
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient_utils.py", line 1045, in run
self.item.run(*self.args, **self.kwargs)
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient.py", line 925, in run
self._got_revision = self._used_scm.RunCommand(command, options, args,
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient_scm.py", line 132, in RunCommand
return getattr(self, command)(options, args, file_list)
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient_scm.py", line 546, in update
self._Clone(revision, url, options)
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient_scm.py", line 1043, in _Clone
self._Run(clone_cmd, options, cwd=self._root_dir, retry=True,
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient_scm.py", line 1411, in _Run
gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient_utils.py", line 635, in CheckCallAndFilter
show_header_if_necessary(needs_header, attempt)
File "C:\Users\user\Downloads\Compressed\depot_tools\gclient_utils.py", line 567, in show_header_if_necessary
stdout_write(header.encode())
File "C:\Users\user\Downloads\Compressed\depot_tools\third_party\colorama\ansitowin32.py", line 41, in write
self.__convertor.write(text)
File "C:\Users\user\Downloads\Compressed\depot_tools\third_party\colorama\ansitowin32.py", line 162, in write
self.write_and_convert(text)
File "C:\Users\user\Downloads\Compressed\depot_tools\third_party\colorama\ansitowin32.py", line 184, in write_and_conv
ert
text = self.convert_osc(text)
File "C:\Users\user\Downloads\Compressed\depot_tools\third_party\colorama\ansitowin32.py", line 246, in convert_osc
for match in self.ANSI_OSC_RE.finditer(text):
TypeError: cannot use a string pattern on a bytes-like object
Subprocess failed with return code 1.

Copy link

D드라이브에 설치했는데 out src\out 폴더에 아무것도 없는데 뭐가 문제일까요?
에러는 WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "https://webrtc.googlesource.com/src.git" "D:\SHINE\src\third_party_gclient_webrtc_04jroyrs"' in D:\SHINE failed; will retry after a short nap... 이겁니다.. 부탁드립니다..

Copy link

아, 잘못봤네요ㅕ. 정정하겠습니다 D드라이브에 설치했는데 src\out\default 폴더에 all.sln 파일이 아니 args.gn 파일인데 문제가 있나요?

Copy link

"C:\src\depot_tools\ninja.exe" -C out\Default chrome -j 10
ninja: Entering directory `out\Default'
[71/50174] ACTION //chrome/browser/extensions/api:api_regi...enerator_registration(//build/toolchain/win:win_clang_x64)
FAILED: gen/chrome/browser/extensions/api/generated_api_registration.cc gen/chrome/browser/extensions/api/generated_api_registration.h
C:/Program Files/Python39/python.exe ../../tools/json_schema_compiler/compiler.py --root=../../ --destdir=gen --namespace=extensions::api::%(namespace)s --bundle-name=Chrome --generator=cpp-bundle-registration --impl-dir=chrome/browser/extensions/api --include-rules=extensions/common/api:extensions::api::%(namespace)s ../../chrome/common/extensions/api/accessibility_features.json ../../chrome/common/extensions/api/accessibility_private.json ../../chrome/common/extensions/api/activity_log_private.json ../../chrome/common/extensions/api/autofill_private.idl ../../chrome/common/extensions/api/autotest_private.idl ../../chrome/common/extensions/api/bookmark_manager_private.json ../../chrome/common/extensions/api/bookmarks.json ../../chrome/common/extensions/api/braille_display_private.idl ../../chrome/common/extensions/api/chrome_web_view_internal.json ../../chrome/common/extensions/api/command_line_private.json ../../chrome/common/extensions/api/content_settings.json ../../chrome/common/extensions/api/context_menus_internal.json ../../chrome/common/extensions/api/context_menus.json ../../chrome/common/extensions/api/cookies.json ../../chrome/common/extensions/api/cryptotoken_private.idl ../../chrome/common/extensions/api/dashboard_private.json ../../chrome/common/extensions/api/debugger.json ../../chrome/common/extensions/api/desktop_capture.json ../../chrome/common/extensions/api/developer_private.idl ../../chrome/common/extensions/api/crash_report_private.idl ../../chrome/common/extensions/api/downloads.idl ../../chrome/common/extensions/api/downloads_internal.idl ../../chrome/common/extensions/api/enterprise_hardware_platform.idl ../../chrome/common/extensions/api/font_settings.json ../../chrome/common/extensions/api/gcm.json ../../chrome/common/extensions/api/history.json ../../chrome/common/extensions/api/i18n.json ../../chrome/common/extensions/api/identity.idl ../../chrome/common/extensions/api/identity_private.idl ../../chrome/common/extensions/api/image_writer_private.idl ../../chrome/common/extensions/api/instance_id.json ../../chrome/common/extensions/api/language_settings_private.idl ../../chrome/common/extensions/api/notifications.idl ../../chrome/common/extensions/api/omnibox.json ../../chrome/common/extensions/api/page_capture.json ../../chrome/common/extensions/api/passwords_private.idl ../../chrome/common/extensions/api/permissions.json ../../chrome/common/extensions/api/resources_private.idl ../../chrome/common/extensions/api/safe_browsing_private.idl ../../chrome/common/extensions/api/scripting.idl ../../chrome/common/extensions/api/search.idl ../../chrome/common/extensions/api/sessions.json ../../chrome/common/extensions/api/settings_private.idl ../../chrome/common/extensions/api/signed_in_devices.idl ../../chrome/common/extensions/api/system_indicator.idl ../../chrome/common/extensions/api/system_private.json ../../chrome/common/extensions/api/tab_capture.idl ../../chrome/common/extensions/api/tab_groups.json ../../chrome/common/extensions/api/tabs.json ../../chrome/common/extensions/api/types.json ../../chrome/common/extensions/api/web_navigation.json ../../chrome/common/extensions/api/webrtc_audio_private.idl ../../chrome/common/extensions/api/webrtc_desktop_capture_private.idl ../../chrome/common/extensions/api/webrtc_logging_private.idl ../../chrome/common/extensions/api/webstore_private.json ../../chrome/common/extensions/api/windows.json ../../chrome/common/extensions/api/processes.idl ../../chrome/common/extensions/api/networking_cast_private.idl ../../chrome/common/extensions/api/input_ime.json ../../chrome/common/extensions/api/enterprise_reporting_private.idl ../../chrome/common/extensions/api/mdns.idl ../../chrome/common/extensions/api/action.json ../../chrome/common/extensions/api/browser_action.json ../../chrome/common/extensions/api/browsing_data.json ../../chrome/common/extensions/api/extension.json ../../chrome/common/extensions/api/idltest.idl ../../chrome/common/extensions/api/page_action.json ../../chrome/common/extensions/api/top_sites.json
Traceback (most recent call last):
File "C:\Users\LGPC\chromium\src\tools\json_schema_compiler\compiler.py", line 209, in
result = GenerateSchema(opts.generator, file_paths, opts.root, opts.destdir,
File "C:\Users\LGPC\chromium\src\tools\json_schema_compiler\compiler.py", line 55, in GenerateSchema
api_def = SchemaLoader(root).LoadSchema(schema)
File "C:\Users\LGPC\chromium\src\tools\json_schema_compiler\schema_loader.py", line 27, in LoadSchema
api_defs = idl_schema.Load(schema_path)
File "C:\Users\LGPC\chromium\src\tools\json_schema_compiler\idl_schema.py", line 576, in Load
contents = f.read()
UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 1762: illegal multibyte sequence
[80/50174] CC obj/native_client/src/trusted/desc/nrd_xfer/nacl_desc_imc_shm.obj
ninja: build stopped: subcommand failed.

C:\Users\LGPC\chromium\src>

해당 오류가 무슨 오류인지 아시나요? ㅠㅠ

Copy link

오류 좀 고쳐주세요ㅠㅠ
Traceback (most recent call last):
File "D:/src/chromium/src/build/vs_toolchain.py", line 573, in
sys.exit(main())
File "D:/src/chromium/src/build/vs_toolchain.py", line 569, in main
return commandssys.argv[1]
File "D:/src/chromium/src/build/vs_toolchain.py", line 397, in CopyDlls
_CopyRuntime(target_dir, runtime_dir, target_cpu, debug=False)
File "D:/src/chromium/src/build/vs_toolchain.py", line 372, in _CopyRuntime
_CopyUCRTRuntime(target_dir, source_dir, target_cpu, suffix)
File "D:/src/chromium/src/build/vs_toolchain.py", line 313, in _CopyUCRTRuntime
assert len(ucrt_files) > 0
AssertionError
ERROR at //build/toolchain/win/BUILD.gn:54:3: Script returned non-zero exit code.
exec_script("../../vs_toolchain.py",
^----------
Current dir: D:/src/chromium/src/out/Default/
Command: D:/src/depot_tools/bootstrap-2@3_8_10_chromium_17_bin/python3/bin/python3.exe D:/src/chromium/src/build/vs_toolchain.py copy_dlls D:/src/chromium/src/out/Default Debug x64
Returned 1.
See //BUILD.gn:72:1: which caused the file to be included.
group("gn_all") {
^----------------
Traceback (most recent call last):
File "D:/src/chromium/src/build/toolchain/win/setup_toolchain.py", line 311, in
main()
File "D:/src/chromium/src/build/toolchain/win/setup_toolchain.py", line 264, in main
env = _LoadToolchainEnv(cpu, toolchain_root, win_sdk_path, target_store)
File "D:/src/chromium/src/build/toolchain/win/setup_toolchain.py", line 161, in _LoadToolchainEnv
raise Exception('%s is missing - make sure VC++ tools are installed.' %
Exception: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\vcvarsall.bat is missing - make sure VC++ tools are installed.
이거 어떻게 해결하죠?

Copy link

@ghost 저도 같은 오류 였는데 고쳐졌습니다.
혹시 비쥬얼 스튜디오를 기본 경로에 설치하지 않으셨나요? 그러면 기본 경로에 다시 설치해 보십시오

Copy link

이 오류가 ... 해결이 안되네요.
Traceback (most recent call last):
File "D:/src/chromium/src/build/vs_toolchain.py", line 574, in
sys.exit(main())
File "D:/src/chromium/src/build/vs_toolchain.py", line 570, in main
return commandssys.argv[1]
File "D:/src/chromium/src/build/vs_toolchain.py", line 398, in CopyDlls
_CopyRuntime(target_dir, runtime_dir, target_cpu, debug=False)
File "D:/src/chromium/src/build/vs_toolchain.py", line 373, in _CopyRuntime
_CopyUCRTRuntime(target_dir, source_dir, target_cpu, suffix)
File "D:/src/chromium/src/build/vs_toolchain.py", line 314, in _CopyUCRTRuntime
assert len(ucrt_files) > 0
AssertionError
ERROR at //build/toolchain/win/BUILD.gn:54:3: Script returned non-zero exit code.
exec_script("../../vs_toolchain.py",
^----------
Current dir: D:/src/chromium/src/out/Default/
Command: D:/src/depot_tools/bootstrap-2@3_8_10_chromium_19_bin/python3/bin/python3.exe D:/src/chromium/src/build/vs_toolchain.py copy_dlls D:/src/chromium/src/out/Default Debug x64
Returned 1.
See //BUILD.gn:72:1: which caused the file to be included.
group("gn_all") {
^----------------
Traceback (most recent call last):
File "D:/src/chromium/src/build/toolchain/win/setup_toolchain.py", line 311, in
main()
File "D:/src/chromium/src/build/toolchain/win/setup_toolchain.py", line 271, in main
vc_lib_um_path = FindFileInEnvList(env, 'LIB', ';', 'user32.lib')
File "D:/src/chromium/src/build/toolchain/win/setup_toolchain.py", line 209, in FindFileInEnvList
assert optional, "%s is not found in %s:\n%s\nCheck if it is installed." % (
AssertionError: user32.lib is not found in LIB:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\ATLMFC\lib\x64
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\lib\x64
C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64
Check if it is installed.
D:\src\chromium\src>

Copy link

shmruin commented Jan 6, 2023

VS 2022 를 사용하면 현재 크롬 clang 업그레이드 버그로 인해서 설치가 불가능합니다. (23년 1월 현재)
https://bugs.chromium.org/p/chromium/issues/detail?id=1402885&q=%3Cstdatomic.h%3E%20is%20not%20yet%20supported%20when%20compiling%20as%20C&can=1

VS2022 를 삭제하고 VS2019 만 사용하는 방법이 유일하네요.
error: <stdatomic.h> is not yet supported when compiling as C, but this is planned for a future release.

이런 버그가 뜬다면 위 상황입니다.
참고하세요~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comment blog post comment
Projects
None yet
Development

No branches or pull requests

8 participants