Skip to content

Cannot build on Windows in a Japanese-language environment #124474

@kzrnm

Description

@kzrnm

Description

I cannot build the project on Windows in a Japanese-language environment.

Reproduction Steps

Run build.cmd on Windows in a Japanese-language environment.

Expected behavior

build success

Actual behavior

The build fails with an error like the one shown below.

  [1003/2510] Building C object _deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\compress\zstd_compress_superblock.c.obj
  [1004/2510] Building C object _deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\compress\zstd_fast.c.obj
  [1005/2510] Building C object _deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\compress\zstd_preSplit.c.obj
  [1006/2510] Building C object _deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\decompress\zstd_ddict.c.obj
  [1007/2510] Building C object _deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\decompress\huf_decompress.c.obj
  [1008/2510] Building C object _deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\compress\zstd_compress.c.obj
  FAILED: _deps/zstd-build/lib/CMakeFiles/libzstd_static.dir/Z_/source/repos/dotnet/runtime/src/native/external/zstd/lib/compress/zstd_compress.c.obj
  C:\PROGRA~1\MICROS~3\18\COMMUN~1\VC\Tools\MSVC\1450~1.357\bin\Hostx64\x64\cl.exe  /nologo -DBUILDENV_DEBUG=1 -DDEBUG -DHOST_64BIT -DHOST_AMD64 -DHOST_WINDOWS -DPALEXPORT=EXTERN_C -DTARGET_64BIT -DTARGET_AMD64 -DTARGET_WINDOWS -DURTBLDENV_FRIENDLY=Debug -DXXH_NAMESPACE=ZSTD_ -DZSTD_HEAPMODE=0 -DZSTD_LEGACY_SUPPORT=0 -D_CRT_SECURE_NO_WARNINGS -D_DBG -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -IC:\repo\runtime\artifacts\obj\coreclr\windows.x64.Debug\_deps\zstd-build\lib -IC:\repo\runtime\src\native\external\zstd\build\cmake\lib -IC:\repo\runtime\src\native -IC:\repo\runtime\src\native\inc /DWIN32 /D_WINDOWS /D_UNICODE /DUNICODE /DDEBUGLEVEL=1 /Ob0 /Od /RTC1 -std:c11 -MTd -Zi /Od /nologo /W4 /WX /sdl /Oi /Oy- /Gm- /Zp8 /Gy /fp:precise /FC /MP /Zm200 /Zc:strictStrings /Zc:wchar_t /Zc:inline /Zc:forScope /wd4065 /wd4100 /wd4127 /wd4131 /wd4189 /wd4200 /wd4201 /wd4206 /wd4239 /wd4245 /wd4291 /wd4310 /wd4324 /wd4366 /wd4456 /wd4457 /wd4458 /wd4459 /wd4463 /wd4505 /wd4702 /wd4706 /wd4733 /wd4815 /wd4838 /wd4918 /wd4960 /wd4961 /wd5105 /wd5205 /we4007 /we4013 /we4102 /we4551 /we4640 /we4806 /we4018 /we4055 /we4242 /we4244 /we4267 /we4302 /we4509 /we4510 /we4610 /we4611 /we4701 /w34092 /w34121 /w34125 /w34130 /w34132 /w34212 /w34530 /w35038 /w44177 /ZH:SHA_256 /homeparams /guard:cf /guard:ehcont -DZSTD_DISABLE_ASM /showIncludes /Fo_deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\compress\zstd_compress.c.obj /Fd_deps\zstd-build\lib\libzstd_static.pdb /FS -c C:\repo\runtime\src\native\external\zstd\lib\compress\zstd_compress.c
  C:\repo\runtime\src\native\external\zstd\lib\compress\zstd_compress.c(7094): error C2220: 次の警告はエラーとして処理されます
  C:\repo\runtime\src\native\external\zstd\lib\compress\zstd_compress.c(7094): warning C4819: ファイルは、現在のコード ページ (932) で表示できない文字を含んでいます。データの損失を防ぐために、ファイルを Unicode 形式で保存してください。
  [1009/2510] Building C object _deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\compress\zstd_lazy.c.obj
  [1010/2510] Building C object _deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\decompress\zstd_decompress.c.obj
  [1011/2510] Building C object _deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\compress\zstd_ldm.c.obj
  [1012/2510] Building C object _deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\compress\zstdmt_compress.c.obj
  [1013/2510] Building C object _deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\compress\zstd_opt.c.obj
  [1014/2510] Preprocessing C:/repo/runtime/src/coreclr/jit/ClrJit.exports. Outputting to C:/repo/runtime/artifacts/obj/coreclr/windows.x64.Debug/jit/ClrJit.exports.def
  ClrJit.exports

  [1015/2510] Building C object _deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\dictBuilder\divsufsort.c.obj
  [1016/2510] Building C object _deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\decompress\zstd_decompress_block.c.obj
  [1017/2510] Building C object _deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\dictBuilder\fastcover.c.obj
  [1018/2510] Building C object _deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\dictBuilder\cover.c.obj
  [1019/2510] Building C object _deps\zstd-build\lib\CMakeFiles\libzstd_static.dir\C_\repo\runtime\src\native\external\zstd\lib\dictBuilder\zdict.c.obj
  [1020/2510] Generating eventpipe/eventpipehelpers.cpp, eventpipe/dotnetruntime.cpp, eventpipe/dotnetruntimerundown.cpp, eventpipe/dotnetruntimeprivate.cpp
  [1021/2510] Building CXX object gc\datadescriptor\CMakeFiles\gc_dll_svr_descriptor_temp.dir\__\__\debug\datadescriptor-shared\datadescriptor.cpp.obj
  [1022/2510] Building CXX object gc\datadescriptor\CMakeFiles\gc_dll_wks_descriptor_temp.dir\__\__\debug\datadescriptor-shared\datadescriptor.cpp.obj
  [1023/2510] Building CXX object gc\datadescriptor\CMakeFiles\gcexp_dll_svr_descriptor_temp.dir\__\__\debug\datadescriptor-shared\datadescriptor.cpp.obj
  [1024/2510] Building CXX object gc\datadescriptor\CMakeFiles\gcexp_dll_wks_descriptor_temp.dir\__\__\debug\datadescriptor-shared\datadescriptor.cpp.obj
  [1025/2510] Linking CXX shared library dlls\mscoree\coreclr\coreclr.dll
  [1026/2510] Building CXX object md\runtime\CMakeFiles\mdruntime_ppdb.dir\cmake_pch.cxx.obj
  [1027/2510] Building CXX object md\compiler\CMakeFiles\mdcompiler_ppdb.dir\cmake_pch.cxx.obj
  [1028/2510] Building CXX object jit\static\CMakeFiles\clrjit_static.dir\cmake_pch.cxx.obj
  [1029/2510] Building CXX object vm\wks\CMakeFiles\cee_wks_mergeable.dir\cmake_pch.cxx.obj
  ninja: build stopped: subcommand failed.
  BUILD: Error: native component build failed. Refer to the build log files for details.
      "C:\repo\runtime\artifacts\log\Debug\CoreCLR_windows__x64__Debug__x64.log"
      "C:\repo\runtime\artifacts\log\Debug\CoreCLR_windows__x64__Debug__x64.wrn"
      "C:\repo\runtime\artifacts\log\Debug\CoreCLR_windows__x64__Debug__x64.err"

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions