在Linux机器下,使用clang22编译有几个编译和链接问题
FAILED: [code=1] app/CMakeFiles/Game.dir/urge_main.cc.o
/home/LuoTat/Desktop/urge/app/urge_main.cc:275:21: error: no member named 'opengl' in 'ui::Widget::InitParams'
275 | widget_params.opengl = profile->driver_backend == "OPENGL";
| ~~~~~~~~~~~~~ ^
FAILED: [code=1] app/Game
/usr/x86_64-pc-linux-gnu/binutils-bin/2.46.0/ld.bfd: binding/mri/libbinding_mri.a(mri_main.cc.o): in function `binding::BindingEngineMri::PreEarlyInitialization(content::ContentProfile*, filesystem::IOService*)':
/home/LuoTat/Desktop/urge/binding/mri/mri_main.cc:165:(.text+0x133): undefined reference to `rb_call_builtin_inits'
这个rb_call_builtin_inits在我的ruby4.0.3里面并没有导出这个符号,而且网上内嵌ruby貌似没有用这个函数的必要
编译启用Release后多了一个问题
FAILED: [code=1] content/CMakeFiles/engine_content.dir/platform/engine_impl.cc.o
/home/LuoTat/Desktop/urge/content/platform/engine_impl.cc:61:3: error: ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result]
61 | std::fgets(in.data(), in.size(), stdin);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
使用Wayland运行有一个运行时错误
Wayland_GLES_MakeCurrent SDL_waylandopengles.c:201
SDL_GL_MakeCurrent_REAL SDL_video.c:5408
SDL_GL_MakeCurrent SDL_dynapi_procs.h:234
renderer::RenderDevice::Create(base::WeakPtr<…>, renderer::DriverType, bool) render_device.cc:117
content::ContentRunner::InitializeComponents(filesystem::IOService *, content::ScopedFontData *, content::I18NProfile *, base::WeakPtr<…>) content_runner.cc:165
content::ContentRunner::Create(content::ContentRunner::InitParams) content_runner.cc:153
main urge_main.cc:316
_this->egl_data->eglSwapInterval(_this->egl_data->egl_display, 0); // see comments on Wayland_GLES_SetSwapInterval.
SIGSEGV (signal SIGSEGV: address not mapped to object (fault address=0xa0))
_this->egl_data是一个空指针
使用X11运行有一个运行时错误
/home/LuoTat/Desktop/urge/cmake-build-debug/app/Game
[info] [App] Current Path: /home/LuoTat/Desktop/urge/Game
[info] [App] Configure File: Game.ini
[info] [i18n] Failed to load XML i18n resource.
[info] [Font] Search Path: Fonts/
[info] [Font] Default Font: Default.ttf
[info] [Font] Default font missing, use internal font for instead.
[info] [Renderer] Enable renderer validation.
[info] [Renderer] Function GLContext:
[error] [Renderer] No current GL context found!
File: /home/LuoTat/Desktop/urge/renderer/device/render_device.cc Line: 79
[info] [Renderer] Function CreateDeviceAndSwapChainGL:
[error] [Renderer] Failed to initialize OpenGL-based render device
File: /home/LuoTat/Desktop/urge/renderer/device/render_device.cc Line: 79
[info] [Renderer] Function GLContext:
[error] [Renderer] No current GL context found!
File: /home/LuoTat/Desktop/urge/renderer/device/render_device.cc Line: 79
[info] [Renderer] Function CreateDeviceAndSwapChainGL:
[error] [Renderer] Failed to initialize OpenGL-based render device
File: /home/LuoTat/Desktop/urge/renderer/device/render_device.cc Line: 79
[info] [Renderer] Available Vulkan instance layers:
VK_LAYER_MESA_device_select 1.4.303
VK_LAYER_MESA_anti_lag 1.4.303
VK_LAYER_MESA_overlay 1.4.303
[info] [Renderer] Supported Vulkan instance extensions:
VK_KHR_device_group_creation 0.0.1
VK_KHR_display 0.0.23
VK_KHR_external_fence_capabilities 0.0.1
VK_KHR_external_memory_capabilities 0.0.1
VK_KHR_external_semaphore_capabilities 0.0.1
VK_KHR_get_display_properties2 0.0.1
VK_KHR_get_physical_device_properties2 0.0.2
VK_KHR_get_surface_capabilities2 0.0.1
VK_KHR_surface 0.0.25
VK_KHR_surface_maintenance1 0.0.1
VK_KHR_surface_protected_capabilities 0.0.1
VK_KHR_wayland_surface 0.0.6
VK_KHR_xcb_surface 0.0.6
VK_KHR_xlib_surface 0.0.6
VK_EXT_acquire_drm_display 0.0.1
VK_EXT_acquire_xlib_display 0.0.1
VK_EXT_debug_report 0.0.10
VK_EXT_debug_utils 0.0.2
VK_EXT_direct_mode_display 0.0.1
VK_EXT_display_surface_counter 0.0.1
VK_EXT_headless_surface 0.0.1
VK_EXT_surface_maintenance1 0.0.1
VK_EXT_swapchain_colorspace 0.0.5
VK_KHR_portability_enumeration 0.0.1
VK_LUNARG_direct_driver_loading 0.0.1
VK_EXT_layer_settings 0.0.2
[warning] [Renderer] Validation layer VK_LAYER_KHRONOS_validation is not available.
[info] [Renderer] Using physical device 'AMD Radeon 780M Graphics (RADV PHOENIX)', API version 1.4.335, Driver version 26.0.5.
[info] [Renderer] Extensions supported by device 'AMD Radeon 780M Graphics (RADV PHOENIX)':
VK_KHR_8bit_storage 0.0.1 VK_KHR_16bit_storage 0.0.1 VK_KHR_acceleration_structure 0.0.13
VK_KHR_bind_memory2 0.0.1 VK_KHR_buffer_device_address 0.0.1 VK_KHR_calibrated_timestamps 0.0.1
VK_KHR_compute_shader_derivatives 0.0.1 VK_KHR_cooperative_matrix 0.0.2 VK_KHR_copy_commands2 0.0.1
VK_KHR_create_renderpass2 0.0.1 VK_KHR_dedicated_allocation 0.0.3 VK_KHR_deferred_host_operations 0.0.4
VK_KHR_depth_clamp_zero_one 0.0.1 VK_KHR_depth_stencil_resolve 0.0.1 VK_KHR_descriptor_update_template 0.0.1
VK_KHR_device_group 0.0.4 VK_KHR_draw_indirect_count 0.0.1 VK_KHR_driver_properties 0.0.1
VK_KHR_dynamic_rendering 0.0.1 VK_KHR_dynamic_rendering_local_read 0.0.1 VK_KHR_external_fence 0.0.1
VK_KHR_external_fence_fd 0.0.1 VK_KHR_external_memory 0.0.1 VK_KHR_external_memory_fd 0.0.1
VK_KHR_external_semaphore 0.0.1 VK_KHR_external_semaphore_fd 0.0.1 VK_KHR_format_feature_flags2 0.0.2
VK_KHR_fragment_shader_barycentric 0.0.1 VK_KHR_fragment_shading_rate 0.0.2 VK_KHR_get_memory_requirements2 0.0.1
VK_KHR_global_priority 0.0.1 VK_KHR_image_format_list 0.0.1 VK_KHR_imageless_framebuffer 0.0.1
VK_KHR_incremental_present 0.0.2 VK_KHR_index_type_uint8 0.0.1 VK_KHR_line_rasterization 0.0.1
VK_KHR_load_store_op_none 0.0.1 VK_KHR_maintenance1 0.0.2 VK_KHR_maintenance2 0.0.1
VK_KHR_maintenance3 0.0.1 VK_KHR_maintenance4 0.0.2 VK_KHR_maintenance5 0.0.1
VK_KHR_maintenance6 0.0.1 VK_KHR_maintenance7 0.0.1 VK_KHR_maintenance8 0.0.1
VK_KHR_maintenance9 0.0.1 VK_KHR_maintenance10 0.0.1 VK_KHR_map_memory2 0.0.1
VK_KHR_multiview 0.0.1 VK_KHR_pipeline_binary 0.0.1 VK_KHR_pipeline_executable_properties 0.0.1
VK_KHR_pipeline_library 0.0.1 VK_KHR_present_id 0.0.1 VK_KHR_present_id2 0.0.1
VK_KHR_present_wait 0.0.1 VK_KHR_present_wait2 0.0.1 VK_KHR_push_descriptor 0.0.2
VK_KHR_ray_query 0.0.1 VK_KHR_ray_tracing_maintenance1 0.0.1 VK_KHR_ray_tracing_pipeline 0.0.1
VK_KHR_ray_tracing_position_fetch 0.0.1 VK_KHR_relaxed_block_layout 0.0.1 VK_KHR_robustness2 0.0.1
VK_KHR_sampler_mirror_clamp_to_edge 0.0.3 VK_KHR_sampler_ycbcr_conversion 0.0.14 VK_KHR_separate_depth_stencil_layouts 0.0.1
VK_KHR_shader_atomic_int64 0.0.1 VK_KHR_shader_clock 0.0.1 VK_KHR_shader_draw_parameters 0.0.1
VK_KHR_shader_expect_assume 0.0.1 VK_KHR_shader_float16_int8 0.0.1 VK_KHR_shader_float_controls 0.0.4
VK_KHR_shader_float_controls2 0.0.1 VK_KHR_shader_integer_dot_product 0.0.1 VK_KHR_shader_maximal_reconvergence 0.0.1
VK_KHR_shader_non_semantic_info 0.0.1 VK_KHR_shader_quad_control 0.0.1 VK_KHR_shader_relaxed_extended_instruction 0.0.1
VK_KHR_shader_subgroup_extended_types 0.0.1 VK_KHR_shader_subgroup_rotate 0.0.2 VK_KHR_shader_subgroup_uniform_control_flow 0.0.1
VK_KHR_shader_terminate_invocation 0.0.1 VK_KHR_shader_untyped_pointers 0.0.1 VK_KHR_spirv_1_4 0.0.1
VK_KHR_storage_buffer_storage_class 0.0.1 VK_KHR_swapchain 0.0.70 VK_KHR_swapchain_maintenance1 0.0.1
VK_KHR_swapchain_mutable_format 0.0.1 VK_KHR_synchronization2 0.0.1 VK_KHR_timeline_semaphore 0.0.2
VK_KHR_unified_image_layouts 0.0.1 VK_KHR_uniform_buffer_standard_layout 0.0.1 VK_KHR_variable_pointers 0.0.1
VK_KHR_vertex_attribute_divisor 0.0.1 VK_KHR_video_decode_av1 0.0.1 VK_KHR_video_decode_h264 0.0.9
VK_KHR_video_decode_h265 0.0.8 VK_KHR_video_decode_queue 0.0.8 VK_KHR_video_decode_vp9 0.0.1
VK_KHR_video_encode_av1 0.0.1 VK_KHR_video_encode_h264 0.0.14 VK_KHR_video_encode_h265 0.0.14
VK_KHR_video_encode_intra_refresh 0.0.1 VK_KHR_video_encode_quantization_map 0.0.2 VK_KHR_video_encode_queue 0.0.12
VK_KHR_video_maintenance1 0.0.1 VK_KHR_video_maintenance2 0.0.1 VK_KHR_video_queue 0.0.8
VK_KHR_vulkan_memory_model 0.0.3 VK_KHR_workgroup_memory_explicit_layout 0.0.1 VK_KHR_zero_initialize_workgroup_memory 0.0.1
VK_EXT_4444_formats 0.0.1 VK_EXT_attachment_feedback_loop_dynamic_state 0.0.1 VK_EXT_attachment_feedback_loop_layout 0.0.2
VK_EXT_border_color_swizzle 0.0.1 VK_EXT_buffer_device_address 0.0.2 VK_EXT_calibrated_timestamps 0.0.2
VK_EXT_color_write_enable 0.0.1 VK_EXT_conditional_rendering 0.0.2 VK_EXT_conservative_rasterization 0.0.1
VK_EXT_custom_border_color 0.0.12 VK_EXT_custom_resolve 0.0.1 VK_EXT_depth_bias_control 0.0.1
VK_EXT_depth_clamp_control 0.0.1 VK_EXT_depth_clamp_zero_one 0.0.1 VK_EXT_depth_clip_control 0.0.1
VK_EXT_depth_clip_enable 0.0.1 VK_EXT_depth_range_unrestricted 0.0.1 VK_EXT_descriptor_buffer 0.0.1
VK_EXT_descriptor_indexing 0.0.2 VK_EXT_device_address_binding_report 0.0.1 VK_EXT_device_fault 0.0.2
VK_EXT_device_generated_commands 0.0.1 VK_EXT_device_memory_report 0.0.2 VK_EXT_discard_rectangles 0.0.2
VK_EXT_display_control 0.0.1 VK_EXT_dynamic_rendering_unused_attachments 0.0.1 VK_EXT_extended_dynamic_state 0.0.1
VK_EXT_extended_dynamic_state2 0.0.1 VK_EXT_extended_dynamic_state3 0.0.2 VK_EXT_external_memory_acquire_unmodified 0.0.1
VK_EXT_external_memory_dma_buf 0.0.1 VK_EXT_external_memory_host 0.0.1 VK_EXT_fragment_shader_interlock 0.0.1
VK_EXT_global_priority 0.0.2 VK_EXT_global_priority_query 0.0.1 VK_EXT_graphics_pipeline_library 0.0.1
VK_EXT_hdr_metadata 0.0.3 VK_EXT_host_query_reset 0.0.1 VK_EXT_image_2d_view_of_3d 0.0.1
VK_EXT_image_compression_control 0.0.1 VK_EXT_image_drm_format_modifier 0.0.2 VK_EXT_image_robustness 0.0.1
VK_EXT_image_sliced_view_of_3d 0.0.1 VK_EXT_image_view_min_lod 0.0.1 VK_EXT_index_type_uint8 0.0.1
VK_EXT_inline_uniform_block 0.0.1 VK_EXT_legacy_vertex_attributes 0.0.1 VK_EXT_line_rasterization 0.0.1
VK_EXT_load_store_op_none 0.0.1 VK_EXT_map_memory_placed 0.0.1 VK_EXT_memory_budget 0.0.1
VK_EXT_memory_priority 0.0.1 VK_EXT_mesh_shader 0.0.1 VK_EXT_multi_draw 0.0.1
VK_EXT_mutable_descriptor_type 0.0.1 VK_EXT_nested_command_buffer 0.0.1 VK_EXT_non_seamless_cube_map 0.0.1
VK_EXT_pci_bus_info 0.0.2 VK_EXT_physical_device_drm 0.0.1 VK_EXT_pipeline_creation_cache_control 0.0.3
VK_EXT_pipeline_creation_feedback 0.0.1 VK_EXT_pipeline_library_group_handles 0.0.1 VK_EXT_pipeline_robustness 0.0.1
VK_EXT_post_depth_coverage 0.0.1 VK_EXT_primitive_topology_list_restart 0.0.1 VK_EXT_primitives_generated_query 0.0.1
VK_EXT_private_data 0.0.1 VK_EXT_provoking_vertex 0.0.1 VK_EXT_queue_family_foreign 0.0.1
VK_EXT_robustness2 0.0.1 VK_EXT_sample_locations 0.0.1 VK_EXT_sampler_filter_minmax 0.0.2
VK_EXT_scalar_block_layout 0.0.1 VK_EXT_separate_stencil_usage 0.0.1 VK_EXT_shader_atomic_float 0.0.1
VK_EXT_shader_atomic_float2 0.0.1 VK_EXT_shader_demote_to_helper_invocation 0.0.1 VK_EXT_shader_image_atomic_int64 0.0.1
VK_EXT_shader_module_identifier 0.0.1 VK_EXT_shader_object 0.0.1 VK_EXT_shader_replicated_composites 0.0.1
VK_EXT_shader_stencil_export 0.0.1 VK_EXT_shader_subgroup_ballot 0.0.1 VK_EXT_shader_subgroup_vote 0.0.1
VK_EXT_shader_uniform_buffer_unsized_array 0.0.1 VK_EXT_shader_viewport_index_layer 0.0.1 VK_EXT_subgroup_size_control 0.0.2
VK_EXT_swapchain_maintenance1 0.0.1 VK_EXT_texel_buffer_alignment 0.0.1 VK_EXT_tooling_info 0.0.1
VK_EXT_transform_feedback 0.0.1 VK_EXT_vertex_attribute_divisor 0.0.3 VK_EXT_vertex_input_dynamic_state 0.0.2
VK_EXT_ycbcr_2plane_444_formats 0.0.1 VK_EXT_ycbcr_image_arrays 0.0.1 VK_EXT_zero_initialize_device_memory 0.0.1
VK_AMD_buffer_marker 0.0.1 VK_AMD_device_coherent_memory 0.0.1 VK_AMD_draw_indirect_count 0.0.2
VK_AMD_gcn_shader 0.0.1 VK_AMD_gpu_shader_half_float 0.0.2 VK_AMD_gpu_shader_int16 0.0.2
VK_AMD_memory_overallocation_behavior 0.0.1 VK_AMD_mixed_attachment_samples 0.0.1 VK_AMD_shader_ballot 0.0.1
VK_AMD_shader_core_properties 0.0.2 VK_AMD_shader_core_properties2 0.0.1 VK_AMD_shader_early_and_late_fragment_tests 0.0.1
VK_AMD_shader_explicit_vertex_parameter 0.0.1 VK_AMD_shader_image_load_store_lod 0.0.1 VK_AMD_shader_trinary_minmax 0.0.1
VK_GOOGLE_decorate_string 0.0.1 VK_GOOGLE_hlsl_functionality1 0.0.1 VK_GOOGLE_user_type 0.0.1
VK_INTEL_shader_integer_functions2 0.0.1 VK_MESA_image_alignment_control 0.0.1 VK_NV_compute_shader_derivatives 0.0.1
VK_VALVE_mutable_descriptor_type 0.0.1 VK_VALVE_video_encode_rgb_conversion 0.0.1
[info] [Renderer] Can not disable SeparablePrograms
[info] [Renderer] GPU dynamic heap created. Total buffer size: 8.00 MB
[info] [Renderer] MemoryManager 'Global resource memory manager': created new device-local page. (16.00 MB, type idx: 0). Current allocated size: 16.00 MB
[info] [Renderer] Requested color buffer format TEX_FORMAT_RGBA8_UNORM is not supported by the surface and will be replaced with TEX_FORMAT_BGRA8_UNORM
[info] [Renderer] Using SURFACE_TRANSFORM_IDENTITY swap chain pretransform
[info] [Renderer] Using VK_PRESENT_MODE_FIFO_RELAXED_KHR swap chain present mode
[info] [Renderer] Desired back buffer count (2) is smaller than the minimal image count supported for this surface (3). Resetting to 3
[info] [Renderer] Created swap chain with 3 images vs 2 requested.
[info] [Renderer] DeviceType: Vulkan (version 1.4)
[info] [Renderer] Adapter: AMD Radeon 780M Graphics (RADV PHOENIX)
[info] [Renderer] MaxTexture Size: 16384
[info] [Renderer] MemoryManager 'Global resource memory manager': created new host-visible page. (16.00 MB, type idx: 2). Current allocated size: 16.00 MB
[info] [Renderer] Allocated new descriptor pool
[info] [Engine] Git Revision: 310fd1d
[info] [Engine] Build Date: 2026-05-01 20:07:05
[info] [Binding] CRuby Interpreter Version: 40000
[info] [Binding] CRuby Interpreter Platform: x86_64-linux
信号: SIGSEGV (signal SIGSEGV: address not mapped to object (fault address=0xe0))
ruby: [BUG] Segmentation fault at 0x00000000000000e0
ruby 4.0.3 (2026-04-21 revision 85ddef263a) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0003 p:---- s:0009 e:000008 l:y b:---- CFUNC :load
c:0002 p:---- s:0006 E:0018a0 l:y b:---- CFUNC :load
c:0001 p:0000 s:0003 E:000c00 l:y b:---- DUMMY [FINISH]
-- Ruby level backtrace information ----------------------------------------
ruby:0:in 'load'
ruby:0:in 'load'
-- Threading information ---------------------------------------------------
Total ractor count: 1
Ruby thread count for this ractor: 1
-- Machine register context ------------------------------------------------
RIP: 0x00007fd530d030b8 RBP: 0x00007ffe9c40b1b0 RSP: 0x00007ffe9c40b1b0
RAX: 0x0000000000000000 RBX: 0x0000000000000004 RCX: 0x00007fd52c97f690
RDX: 0x0000000000000000 RDI: 0x000055604b957820 RSI: 0x0000000000000006
R8: 0x0000000000400004 R9: 0x00007fd52c97f6e0 R10: 0x0000000000000028
R11: 0x00007fd531396420 R12: 0x000055604b957820 R13: 0x0000000000000006
R14: 0x00007fd52c97f6e0 R15: 0x00007fd53116f3c8 EFL: 0x0000000000210202
-- C level backtrace information -------------------------------------------
/usr/lib64/libruby40.so.4.0(0x7fd530ef2bc5) [0x7fd530ef2bc5]
/usr/lib64/libruby40.so.4.0(0x7fd530cfdd88) [0x7fd530cfdd88]
/usr/lib64/libruby40.so.4.0(0x7fd530e3c441) [0x7fd530e3c441]
/usr/lib64/libc.so.6(0x7fd530649c40) [0x7fd530649c40]
/usr/lib64/libruby40.so.4.0(0x7fd530d030b8) [0x7fd530d030b8]
/usr/lib64/libruby40.so.4.0(0x7fd530d09846) [0x7fd530d09846]
/usr/lib64/libruby40.so.4.0(0x7fd530d09a12) [0x7fd530d09a12]
/usr/lib64/libruby40.so.4.0(rb_exc_raise+0x17) [0x7fd530d09a37]
/usr/lib64/libruby40.so.4.0(rb_raise+0xbf) [0x7fd530cff59f]
/usr/lib64/libruby40.so.4.0(0x7fd530d92cf5) [0x7fd530d92cf5]
/usr/lib64/libruby40.so.4.0(0x7fd530d931c1) [0x7fd530d931c1]
/usr/lib64/libruby40.so.4.0(rb_string_value+0x24) [0x7fd530e5d794]
/usr/lib64/libruby40.so.4.0(0x7fd530d0c72c) [0x7fd530d0c72c]
/usr/lib64/libruby40.so.4.0(0x7fd530d69345) [0x7fd530d69345]
/usr/lib64/libruby40.so.4.0(0x7fd530d693e5) [0x7fd530d693e5]
/usr/lib64/libruby40.so.4.0(0x7fd530ee08c4) [0x7fd530ee08c4]
/usr/lib64/libruby40.so.4.0(0x7fd530ee0b9d) [0x7fd530ee0b9d]
/usr/lib64/libruby40.so.4.0(rb_funcallv+0x215) [0x7fd530ee4ca5]
/home/LuoTat/Desktop/urge/cmake-build-debug/app/Game(marshal_load_utf8+0xf5) [0x5560298f0965] /home/LuoTat/Desktop/urge/binding/mri/mri_file.cc:155
/usr/lib64/libruby40.so.4.0(0x7fd530ee08c4) [0x7fd530ee08c4]
/usr/lib64/libruby40.so.4.0(rb_funcallv+0x215) [0x7fd530ee4ca5]
/home/LuoTat/Desktop/urge/cmake-build-debug/app/Game(MriLoadData+0xb9) [0x5560298effd9] /home/LuoTat/Desktop/urge/binding/mri/mri_file.cc:117
/home/LuoTat/Desktop/urge/cmake-build-debug/app/Game(0x556029826ba8) [0x556029826ba8]
/home/LuoTat/Desktop/urge/cmake-build-debug/app/Game(0x556029826994) [0x556029826994]
/home/LuoTat/Desktop/urge/cmake-build-debug/app/Game(0x5560297a0859) [0x5560297a0859]
/home/LuoTat/Desktop/urge/cmake-build-debug/app/Game(main+0x11d4) [0x55602977dfb4] /home/LuoTat/Desktop/urge/app/urge_main.cc:307
运行堆栈如下:
<unknown> 0x00007f94e11030b8
binding::marshal_load_utf8(int, unsigned long *, unsigned long) mri_file.cc:155
binding::MriLoadData(const std::string &, content::ExceptionState &) mri_file.cc:117
binding::BindingEngineMri::LoadPackedScripts(content::ContentProfile *, content::ExceptionState &) mri_main.cc:275
binding::BindingEngineMri::OnMainMessageLoopRun(content::ExecutionContext *, content::EngineBindingBase::ScopedModuleContext *) mri_main.cc:231
content::ContentRunner::RunMainLoop() content_runner.cc:86
main urge_main.cc:307
return rb_funcall2(marshal_klass, rb_intern(kMarshalLoadAlias), 2, v);
SIGSEGV (signal SIGSEGV: address not mapped to object (fault address=0xe0))
看起来应该是cruby接口的问题
在Linux机器下,使用clang22编译有几个编译和链接问题
这个rb_call_builtin_inits在我的ruby4.0.3里面并没有导出这个符号,而且网上内嵌ruby貌似没有用这个函数的必要
编译启用Release后多了一个问题
使用Wayland运行有一个运行时错误
使用X11运行有一个运行时错误
看起来应该是cruby接口的问题