Error with chrome dll version .rc and .res

160 views
Skip to first unread message

max pro

unread,
May 18, 2019, 5:32:46 PM5/18/19
to Chromium-dev
I keep getting this error message when i try to build chromium by following the guide: 



ninja: Entering directory `out/Default'
[6/38744] RC obj/chrome/chrome_exe_version/chrome_exe_version.res
FAILED: obj/chrome/chrome_exe_version/chrome_exe_version.res
D:/chr/win_tools-2_7_13_chromium7_bin/python/bin/python.exe ../../build/toolchain/win/tool_wrapper.py rc-wrapper environment.x64 rc.exe /nologo -DUSE_AURA=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD "-DCR_CLANG_REVISION=\"360094-5\"" -D_HAS_NODISCARD -DCOMPONENT_BUILD -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_ENABLE_NODISCARD -D_LIBCPP_NO_AUTO_LINK -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -D_USING_V110_SDK71_ -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_RS2 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_HAS_ITERATOR_DEBUGGING=0 -I../.. -Igen /foobj/chrome/chrome_exe_version/chrome_exe_version.res gen/chrome/chrome_exe_version.rc
Traceback (most recent call last):
  File "D:\chromiumts\chromium\src\build\toolchain\win\rc\rc.py", line 192, in <module>
    sys.exit(main())
  File "D:\chromiumts\chromium\src\build\toolchain\win\rc\rc.py", line 188, in main
    return RunRc(preprocessed_output, is_utf8, flags)
  File "D:\chromiumts\chromium\src\build\toolchain\win\rc\rc.py", line 173, in RunRc
    p = subprocess.Popen(rc_cmd, stdin=subprocess.PIPE)
  File "D:\chr\win_tools-2_7_13_chromium7_bin\python\bin\lib\subprocess.py", line 390, in __init__
    errread, errwrite)
  File "D:\chr\win_tools-2_7_13_chromium7_bin\python\bin\lib\subprocess.py", line 640, in _execute_child
    startupinfo)
WindowsError: [Error 2] Le fichier spÚcifiÚ est introuvable
[7/38744] RC obj/chrome/chrome_dll_version/chrome_dll_version.res
FAILED: obj/chrome/chrome_dll_version/chrome_dll_version.res
D:/chr/win_tools-2_7_13_chromium7_bin/python/bin/python.exe ../../build/toolchain/win/tool_wrapper.py rc-wrapper environment.x64 rc.exe /nologo -DUSE_AURA=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD "-DCR_CLANG_REVISION=\"360094-5\"" -D_HAS_NODISCARD -DCOMPONENT_BUILD -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_ENABLE_NODISCARD -D_LIBCPP_NO_AUTO_LINK -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -D_USING_V110_SDK71_ -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_RS2 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_HAS_ITERATOR_DEBUGGING=0 -I../.. -Igen /foobj/chrome/chrome_dll_version/chrome_dll_version.res gen/chrome/chrome_dll_version.rc
Traceback (most recent call last):
  File "D:\chromiumts\chromium\src\build\toolchain\win\rc\rc.py", line 192, in <module>
    sys.exit(main())
  File "D:\chromiumts\chromium\src\build\toolchain\win\rc\rc.py", line 188, in main
    return RunRc(preprocessed_output, is_utf8, flags)
  File "D:\chromiumts\chromium\src\build\toolchain\win\rc\rc.py", line 173, in RunRc
    p = subprocess.Popen(rc_cmd, stdin=subprocess.PIPE)
  File "D:\chr\win_tools-2_7_13_chromium7_bin\python\bin\lib\subprocess.py", line 390, in __init__
    errread, errwrite)
  File "D:\chr\win_tools-2_7_13_chromium7_bin\python\bin\lib\subprocess.py", line 640, in _execute_child
    startupinfo)
WindowsError: [Error 2] Le fichier spÚcifiÚ est introuvable
[15/38744] ACTION //chrome/common/media_router/mojo:media_router__parser(//build/toolchain/win:win_clang_x64)
ninja: build stopped: subcommand failed.

If any solution possible :) ?

Nico Weber

unread,
May 18, 2019, 6:30:42 PM5/18/19
to waxel...@gmail.com, Chromium-dev
Did you run `gclient sync` after checking out the code? What's the output of `dir build\toolchain\win\rc\win`?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/6e1c9f24-0156-458b-9c82-112218eded76%40chromium.org.

Bruce Dawson

unread,
May 20, 2019, 4:19:28 PM5/20/19
to Chromium-dev, waxel...@gmail.com
That error looks like rc.py could not find rc.exe. https://cs.chromium.org/chromium/src/build/toolchain/win/rc/rc.py?q=rc.py&sq=package:chromium&dr=C&l=173

Do you have rc.exe installed? My guess is that you didn't install Visual Studio with all of the correct options.

What do you see if you run these commands:

> "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat" amd64
> where rc

If you are using VS 2019 then replace the first command with this:

> "c:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" amd64
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
Reply all
Reply to author
Forward
0 new messages