Skip to content

Error compiling pistache on windows #1281

@Kreijstal

Description

@Kreijstal

Hello, it's me again, I am trying in another windows machine, (Without admin rights). I can install msys2 tools, so I tried reproducing the same steps, but maybe there is something going around with powershell, this was however on win10 and not in win11

"C:/rtools44/ucrt64/bin/meson" "--internal" "exe" "--unpickle" "C:/rtools44/home/SYSTEM/pistache/bui
ld/meson-private/meson_exe_powershell.exe_603cd33c7e8fa4e3e9a54f8f255f85658890ce9b.dat"
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:/rtools44/ucrt64/bin/meson.exe/__main__.py", line 7, in <module>
  File "C:/rtools44/ucrt64/lib/python3.12/site-packages/mesonbuild/mesonmain.py", line 293, in main
    return run(sys.argv[1:], launcher)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:/rtools44/ucrt64/lib/python3.12/site-packages/mesonbuild/mesonmain.py", line 281, in run
    return run_script_command(args[1], args[2:])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:/rtools44/ucrt64/lib/python3.12/site-packages/mesonbuild/mesonmain.py", line 222, in run_s
cript_command
    return module.run(script_args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:/rtools44/ucrt64/lib/python3.12/site-packages/mesonbuild/scripts/meson_exe.py", line 112,
in run
    return run_exe(exe)
           ^^^^^^^^^^^^
  File "C:/rtools44/ucrt64/lib/python3.12/site-packages/mesonbuild/scripts/meson_exe.py", line 78, i
n run_exe
    print(stderr.decode(encoding=encoding, errors='replace'))
  File "C:/rtools44/ucrt64/lib/python3.12/encodings/cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode character '\ufffd' in position 176: character maps
to <undefined>
while executing ['C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe', '-NoProfile', '-N
onInteractive', '-WindowStyle', 'Hidden', '-NoLogo', '-Command', 'C:/rtools44/home/SYSTEM/pistache/s
rc/winlog/installman.ps1', '-dirinpstlogdll', 'C:/rtools44/home/SYSTEM/pistache/build', '-inpstlogdl
l', 'src/libpistachelog.dll', '-inpstman', '../src/winlog/pist_winlog.man', '-outpstmaninst', 'src/p
ist_winlog_inst_record.txt']
--- stdout ---

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions