ICU4C 67.1 build fails on Windows 10 with VS 2019 Community


Build of ICU4C 67.1 fails on Windows 10 x64 with Visual Studio 2019 Community.

Data build fails with following error:
chcp 65001 >NUL && NMAKE /f makedata.mak ICUMAKE="C:\SOURCE\BOOST\icu4c-67_1\icu\source\data
" CFG=x64\Debug

Microsoft (R) Program Maintenance Utility Version 14.26.28806.0
Copyright (C) Microsoft Corporation. All rights reserved.

ICU data make path is C:\SOURCE\BOOST\icu4c-67_1\icu\source\data\
ICU root path is C:\SOURCE\BOOST\icu4c-67_1\icu
ICU data DLL_OUTPUT path is C:\SOURCE\BOOST\icu4c-67_1\icu\bin64
ICU tools path is C:\SOURCE\BOOST\icu4c-67_1\icu\source\tools
ICU tools CFG subpath is x64\Debug
ICU data source archive is C:\SOURCE\BOOST\icu4c-67_1\icu\source\data\in\icudt67l.dat
set PYTHONPATH=C:\SOURCE\BOOST\icu4c-67_1\icu\source\python;%PYTHONPATH
py -3 -B -m icutools.databuilder --mode windows-exec --src_dir "C:\SOURCE\BOOST\icu4c-67_1\icu\source\data" --tool_dir "C:\SOURCE\BOOST\icu4c-67_1\icu\source\tools" --tool_cfg "x64\Debug" --out_dir "C:\SOURCE\BOOST
\icu4c-67_1\icu\source\data\out\build\icudt67l" --tmp_dir "C:\SOURCE\BOOST\icu4c-67_1\icu\source\data\out\tmp" --filter_file ""
Traceback (most recent call last):
File "C:\Python38\lib\", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Python38\lib\", line 87, in _run_code
exec(code, run_globals)
File "C:\SOURCE\BOOST\icu4c-67_1\icu\source\python\icutools\", line 360, in <module>
File "C:\SOURCE\BOOST\icu4c-67_1\icu\source\python\icutools\", line 304, in main
requests = BUILDRULES.generate(config, io, common)
File "C:\SOURCE\BOOST\icu4c-67_1\icu\source\data\", line 41, in generate
requests += generate_tree(config, io, common_vars,
File "C:\SOURCE\BOOST\icu4c-67_1\icu\source\data\", line 549, in generate_tree
dependency_data = io.read_locale_deps(sub_dir)
File "C:\SOURCE\BOOST\icu4c-67_1\icu\source\python\icutools\", line 257, in read_locale_deps
return self._read_json("%s/LOCALE_DEPS.json" % tree)
File "C:\SOURCE\BOOST\icu4c-67_1\icu\source\python\icutools\", line 260, in _read_json
with, filename), "r", encoding="utf-8-sig") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\SOURCE\\BOOST\\icu4c-67_1\\icu\\source\\data
62>NMAKE : fatal error U1077: 'C:\Windows\py.EXE' : return code '0x1' [C:\SOURCE\BOOST\icu4c-67_1\icu\source\data\makedata.vcxproj]
62>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(46,5): error MSB3073: The command "chcp 65001 >NUL && NMAKE /f makedata.mak ICUMAKE="C:\SOURCE\BOOST\icu4c-67_1\ic
" CFG=x64\Debug" exited with code 2. [C:\SOURCE\BOOST\icu4c-67_1\icu\source\data\makedata.vcxproj]
62>Done Building Project "C:\SOURCE\BOOST\icu4c-67_1\icu\source\data\makedata.vcxproj" (default targets) – FAILED.
1>Done Building Project "C:\SOURCE\BOOST\icu4c-67_1\icu\source\allinone\allinone.sln" (default targets) – FAILED.


Jeff Genovy
June 10, 2020, 5:21 PM

Based on ICU-TC meeting: I’m going to re-open this ticket, and use this ticket for cherry-picking this into the maint/maint-67 branch.

Samuli-Petrus Korhonen
June 9, 2020, 6:36 AM

When I patch your fix in ICU builds successfully and all tests pass. So this is fixed with your PR.

Thanks for the assistance!

Jeff Genovy
June 9, 2020, 1:10 AM

Thanks for filing an issue/ticket for this.

This looks like it is a duplicate of the following issue:

I made a PR here which fixes the issue:

However, this change/commit isn’t in the maint/maint-67 branch (yet).



Jeff Genovy


Samuli-Petrus Korhonen




Time Needed


Fix versions