Skip to content

BUILD : rz-type module build fails in RizinBundled build step #3351

@brightprogrammer

Description

@brightprogrammer

Environment information

  • Operating System: Endeavour OS
  • Cutter version: cutter 2.4.0-dev-38c683b
  • Obtained from:
    • Built from source
    • Downloaded release from Cutter website or GitHub
    • Distribution repository
  • File format: None

Describe the bug
When building cutter from source, build fails in (Rizin Bundled) rz-type module build. Build log for rz-type module build can be found in this paste.

To Reproduce

Steps to reproduce the behavior:

git clone --recurse-submodules [email protected]:rizinorg/cutter.git && cd cutter && cmake -B build && cmake --build build

Expected behavior

Build should work without any errors.

Possible Fix
The problem is fixed when I add tree-sitter as dependency to rz-type module. Currently rz-type only has tree-sitter-c as it's dependency.

tree_sitter_c_dep = dependency('tree-sitter-c')

rz_type_inc = [
  platform_inc,
  'parser',
]

rz_type = library('rz_type', rz_type_sources,
  include_directories: rz_type_inc,
  dependencies: [
    rz_util_dep,
    tree_sitter_c_dep,
    lrt,
+    dependency('tree-sitter')
  ],
  install: true,
  implicit_include_directories: false,
  install_rpath: rpath_lib,
  soversion: rizin_libversion,
  version: rizin_version,
  name_suffix: lib_name_suffix,
  name_prefix: lib_name_prefix,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    rizinNeeds changes into rizin codebase.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions