Unable build venus-protocol on Windows using Msys2 UCRT64
Unable to build venus-protocol on Windows using Msys2:
AMD-RYZEN-PC@AMD-RYZEN-PC UCRT64 /c/Users/AMD-RYZEN-PC/venus-protocol
$ ./utils/update_vk_xml.sh v1.3.248
Using . as the base directory
Using /tmp/tmp.LWM1LdyvIK as the temporary directory
Downloading https://github.com/KhronosGroup/Vulkan-Headers/archive/refs/tags/v1.3.248.tar.gz...
Updating ./include/
Updating ./xmls/vk.xml
Removing /tmp/tmp.LWM1LdyvIK
$ meson build
The Meson build system
Version: 1.1.0
Source dir: C:/Users/AMD-RYZEN-PC/venus-protocol
Build dir: C:/Users/AMD-RYZEN-PC/venus-protocol/build
Build type: native build
Project name: venus-protocol
Project version: 0.1
C compiler for the host machine: cc (gcc 12.2.0 "cc (Rev11, Built by MSYS2 project) 12.2.0")
C linker for the host machine: cc ld.bfd 2.40
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 (mako) found: YES (C:\msys64\ucrt64\bin/python3.EXE) modules: mako
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wno-unused-but-set-parameter: YES
Build targets in project: 4
Found ninja-1.11.1 at C:\msys64\ucrt64\bin/ninja.EXE
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
AMD-RYZEN-PC@AMD-RYZEN-PC UCRT64 /c/Users/AMD-RYZEN-PC/venus-protocol
$ cd build/
AMD-RYZEN-PC@AMD-RYZEN-PC UCRT64 /c/Users/AMD-RYZEN-PC/venus-protocol/build
$ meson compile
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: C:\msys64\ucrt64\bin/ninja.EXE
[2/7] Generating vn_protocol_driver with a custom command
FAILED: vn_protocol_driver.h vn_protocol_driver_cs.h vn_protocol_driver_defines.h vn_protocol_driver_handles.h vn_protocol_driver_info.h vn_protocol_driver_types.h vn_protocol_driver_buffer.h vn_protocol_driver_buffer_view.h vn_protocol_driver_command_buffer.h vn_protocol_driver_command_pool.h vn_protocol_driver_descriptor_pool.h vn_protocol_driver_descriptor_set.h vn_protocol_driver_descriptor_set_layout.h vn_protocol_driver_descriptor_update_template.h vn_protocol_driver_device.h vn_protocol_driver_device_memory.h vn_protocol_driver_event.h vn_protocol_driver_fence.h vn_protocol_driver_framebuffer.h vn_protocol_driver_image.h vn_protocol_driver_image_view.h vn_protocol_driver_instance.h vn_protocol_driver_pipeline.h vn_protocol_driver_pipeline_cache.h vn_protocol_driver_pipeline_layout.h vn_protocol_driver_private_data_slot.h vn_protocol_driver_query_pool.h vn_protocol_driver_queue.h vn_protocol_driver_render_pass.h vn_protocol_driver_sampler.h vn_protocol_driver_sampler_ycbcr_conversion.h vn_protocol_driver_semaphore.h vn_protocol_driver_shader_module.h vn_protocol_driver_transport.h
"C:\msys64\ucrt64\bin/python3.EXE" "../vn_protocol.py" "--outdir" "C:/Users/AMD-RYZEN-PC/venus-protocol/build" "--banner" "C:/Users/AMD-RYZEN-PC/venus-protocol/build/banner"
Traceback (most recent call last):
File "C:\Users\AMD-RYZEN-PC\venus-protocol\vn_protocol.py", line 1670, in <module>
main()
File "C:\Users\AMD-RYZEN-PC\venus-protocol\vn_protocol.py", line 1624, in main
reg = VkRegistry.parse(VN_PROTOCOL_VK_XML, VN_PROTOCOL_PRIVATE_XMLS)
File "C:/Users\AMD-RYZEN-PC\venus-protocol/vkxml.py", line 797, in parse
reg._parse_xml(vk_xml)
File "C:/Users\AMD-RYZEN-PC\venus-protocol/vkxml.py", line 834, in _parse_xml
self._parse_types(child)
File "C:/Users\AMD-RYZEN-PC\venus-protocol/vkxml.py", line 858, in _parse_types
VkType.parse_type(type_elem, self.type_table)
File "C:/Users\AMD-RYZEN-PC\venus-protocol/vkxml.py", line 570, in parse_type
ty.init(name, category)
File "C:/Users\AMD-RYZEN-PC\venus-protocol/vkxml.py", line 202, in init
assert name and self.name is None
AssertionError
[3/7] Generating vn_protocol_renderer with a custom command
FAILED: vn_protocol_renderer.h vn_protocol_renderer_cs.h vn_protocol_renderer_defines.h vn_protocol_renderer_dispatches.h vn_protocol_renderer_handles.h vn_protocol_renderer_info.h vn_protocol_renderer_types.h vn_protocol_renderer_util.h vn_protocol_renderer_buffer.h vn_protocol_renderer_buffer_view.h vn_protocol_renderer_command_buffer.h vn_protocol_renderer_command_pool.h vn_protocol_renderer_descriptor_pool.h vn_protocol_renderer_descriptor_set.h vn_protocol_renderer_descriptor_set_layout.h vn_protocol_renderer_descriptor_update_template.h vn_protocol_renderer_device.h vn_protocol_renderer_device_memory.h vn_protocol_renderer_event.h vn_protocol_renderer_fence.h vn_protocol_renderer_framebuffer.h vn_protocol_renderer_image.h vn_protocol_renderer_image_view.h vn_protocol_renderer_instance.h vn_protocol_renderer_pipeline.h vn_protocol_renderer_pipeline_cache.h vn_protocol_renderer_pipeline_layout.h vn_protocol_renderer_private_data_slot.h vn_protocol_renderer_query_pool.h vn_protocol_renderer_queue.h vn_protocol_renderer_render_pass.h vn_protocol_renderer_sampler.h vn_protocol_renderer_sampler_ycbcr_conversion.h vn_protocol_renderer_semaphore.h vn_protocol_renderer_shader_module.h vn_protocol_renderer_transport.h
"C:\msys64\ucrt64\bin/python3.EXE" "../vn_protocol.py" "--outdir" "C:/Users/AMD-RYZEN-PC/venus-protocol/build" "--banner" "C:/Users/AMD-RYZEN-PC/venus-protocol/build/banner" "--renderer"
Traceback (most recent call last):
File "C:\Users\AMD-RYZEN-PC\venus-protocol\vn_protocol.py", line 1670, in <module>
main()
File "C:\Users\AMD-RYZEN-PC\venus-protocol\vn_protocol.py", line 1624, in main
reg = VkRegistry.parse(VN_PROTOCOL_VK_XML, VN_PROTOCOL_PRIVATE_XMLS)
File "C:/Users\AMD-RYZEN-PC\venus-protocol/vkxml.py", line 797, in parse
reg._parse_xml(vk_xml)
File "C:/Users\AMD-RYZEN-PC\venus-protocol/vkxml.py", line 834, in _parse_xml
self._parse_types(child)
File "C:/Users\AMD-RYZEN-PC\venus-protocol/vkxml.py", line 858, in _parse_types
VkType.parse_type(type_elem, self.type_table)
File "C:/Users\AMD-RYZEN-PC\venus-protocol/vkxml.py", line 570, in parse_type
ty.init(name, category)
File "C:/Users\AMD-RYZEN-PC\venus-protocol/vkxml.py", line 202, in init
assert name and self.name is None
AssertionError
ninja: build stopped: subcommand failed.