Demetrios Tsillas
2018-11-18 23:42:43 UTC
Hi Folks,
I am trying to setup a new dev machine for Windows using Windows 7 and
VS2017. I'm following instructions given here:
https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md
Everything is going well until I need to generate the gn files.
I run into an error (pasted below). The error appears to be due to the use
of a forward slash in generating a SysWOW64 path.
Replacing the forward slash '/' with '\\' fixes in build/vs_toolchain.py
within SetEnvironmentAndGetRuntimeDllDir fixes the problem.
thanks!!!
-Jim.
E:\Work\workspace0\src>gn gen out\Release
Traceback (most recent call last):
File "E:/Work/workspace0/src/build/vs_toolchain.py", line 476, in <module>
sys.exit(main())
File "E:/Work/workspace0/src/build/vs_toolchain.py", line 472, in main
return commands[sys.argv[1]](*sys.argv[2:])
File "E:/Work/workspace0/src/build/vs_toolchain.py", line 295, in CopyDlls
_CopyRuntime(target_dir, runtime_dir, target_cpu, debug=True)
File "E:/Work/workspace0/src/build/vs_toolchain.py", line 275, in
_CopyRuntime
suffix)
File "E:/Work/workspace0/src/build/vs_toolchain.py", line 211, in
_CopyUCRTRun
time
os.path.join(source_dir, 'ucrtbase' + suffix))
File "E:/Work/workspace0/src/build/vs_toolchain.py", line 179, in
_CopyRuntime
Impl
shutil.copy2(source, target)
File
"C:\Users\jtsillas\Git\depot_tools\win_tools-2_7_6_bin\python\bin\lib\shu
til.py", line 130, in copy2
copyfile(src, dst)
File
"C:\Users\jtsillas\Git\depot_tools\win_tools-2_7_6_bin\python\bin\lib\shu
til.py", line 82, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory:
'C:\\WINDOWS/SysWOW64\\ucrtbased.d
ll'
ERROR at //build/toolchain/win/BUILD.gn:43:3: Script returned non-zero exit
code
.
exec_script("../../vs_toolchain.py",
^----------
Current dir: E:/Work/workspace0/src/out/Release/
Command:
C:/Users/jtsillas/Git/depot_tools/win_tools-2_7_6_bin/python/bin/python
.exe E:/Work/workspace0/src/build/vs_toolchain.py copy_dlls
E:/Work/workspace0/s
rc/out/Release Debug x86
Returned 1 and printed out:
Copying C:\WINDOWS/SysWOW64\ucrtbased.dll to
E:/Work/workspace0/src/out/Release\
ucrtbased.dll...
See //BUILD.gn:61:1: which caused the file to be included.
group("gn_all") {
^----------------
Traceback (most recent call last):
File "E:/Work/workspace0/src/build/toolchain/win/setup_toolchain.py",
line 292
, in <module>
main()
File "E:/Work/workspace0/src/build/toolchain/win/setup_toolchain.py",
line 284
, in main
assert vc_lib_um_path
AssertionError
I am trying to setup a new dev machine for Windows using Windows 7 and
VS2017. I'm following instructions given here:
https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md
Everything is going well until I need to generate the gn files.
I run into an error (pasted below). The error appears to be due to the use
of a forward slash in generating a SysWOW64 path.
Replacing the forward slash '/' with '\\' fixes in build/vs_toolchain.py
within SetEnvironmentAndGetRuntimeDllDir fixes the problem.
thanks!!!
-Jim.
E:\Work\workspace0\src>gn gen out\Release
Traceback (most recent call last):
File "E:/Work/workspace0/src/build/vs_toolchain.py", line 476, in <module>
sys.exit(main())
File "E:/Work/workspace0/src/build/vs_toolchain.py", line 472, in main
return commands[sys.argv[1]](*sys.argv[2:])
File "E:/Work/workspace0/src/build/vs_toolchain.py", line 295, in CopyDlls
_CopyRuntime(target_dir, runtime_dir, target_cpu, debug=True)
File "E:/Work/workspace0/src/build/vs_toolchain.py", line 275, in
_CopyRuntime
suffix)
File "E:/Work/workspace0/src/build/vs_toolchain.py", line 211, in
_CopyUCRTRun
time
os.path.join(source_dir, 'ucrtbase' + suffix))
File "E:/Work/workspace0/src/build/vs_toolchain.py", line 179, in
_CopyRuntime
Impl
shutil.copy2(source, target)
File
"C:\Users\jtsillas\Git\depot_tools\win_tools-2_7_6_bin\python\bin\lib\shu
til.py", line 130, in copy2
copyfile(src, dst)
File
"C:\Users\jtsillas\Git\depot_tools\win_tools-2_7_6_bin\python\bin\lib\shu
til.py", line 82, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory:
'C:\\WINDOWS/SysWOW64\\ucrtbased.d
ll'
ERROR at //build/toolchain/win/BUILD.gn:43:3: Script returned non-zero exit
code
.
exec_script("../../vs_toolchain.py",
^----------
Current dir: E:/Work/workspace0/src/out/Release/
Command:
C:/Users/jtsillas/Git/depot_tools/win_tools-2_7_6_bin/python/bin/python
.exe E:/Work/workspace0/src/build/vs_toolchain.py copy_dlls
E:/Work/workspace0/s
rc/out/Release Debug x86
Returned 1 and printed out:
Copying C:\WINDOWS/SysWOW64\ucrtbased.dll to
E:/Work/workspace0/src/out/Release\
ucrtbased.dll...
See //BUILD.gn:61:1: which caused the file to be included.
group("gn_all") {
^----------------
Traceback (most recent call last):
File "E:/Work/workspace0/src/build/toolchain/win/setup_toolchain.py",
line 292
, in <module>
main()
File "E:/Work/workspace0/src/build/toolchain/win/setup_toolchain.py",
line 284
, in main
assert vc_lib_um_path
AssertionError
--
--
Chromium Developers mailing list: chromium-***@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/4cc04e06-6696-4bf4-bb42-ec508240cfee%40chromium.org.
--
Chromium Developers mailing list: chromium-***@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/4cc04e06-6696-4bf4-bb42-ec508240cfee%40chromium.org.