~xvilka

Shanghai, China

https://rizin.re

Reverse engineer, Rizin RE framework core team member, Rustacean and OCamler, foreign languages fanatic.


#31 error: function partial_dependency not found 7 days ago

Comment by ~xvilka on ~lattis/muon

#31 error: function partial_dependency not found 7 days ago

Ticket created by ~xvilka on ~lattis/muon

/home/user/rizin_copy/librz/util/meson.build:114:13: error: function partial_dependency not found
114 |     sdb_dep.partial_dependency(includes: true),
                  ^
/home/user/rizin_copy/librz/util/meson.build:110:15: error: in function declare_dependency
110 | rz_util_dep = declare_dependency(
                    ^

on the following piece of code:

rz_util_dep = declare_dependency(
  link_with: rz_util,
  include_directories: platform_inc,
  dependencies: [
    sdb_dep.partial_dependency(includes: true),
  ]
)
meson.override_dependency('rz_util', rz_util_dep)

See complete file at https://github.com/rizinorg/rizin/blob/dev/librz/util/meson.build

#30 src/platform/run_cmd.c:119:33: warning: ‘pipe_res’ may be used uninitialized in this function [-Wmaybe-uninitialized] 7 days ago

Ticket created by ~xvilka on ~lattis/muon

[i] ℤ ninja -C build                                                                                                                                                                                                              13:10:54 
ninja: Entering directory `build'
[72/90] compiling c muon.p/src/platform/run_cmd.c.o
../src/platform/run_cmd.c: In function ‘run_cmd_collect’:
../src/platform/run_cmd.c:119:33: warning: ‘pipe_res’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  119 |                 while (pipe_res != copy_pipe_result_finished) {
      |                        ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[90/90] linking muon
[i] ℤ gcc --version                                                                                                                                                                                                               
gcc (GCC) 11.2.1 20211203 (Red Hat 11.2.1-7)

#27 subproject default_options error: unable to coerce 'false' into a feature 8 days ago

Comment by ~xvilka on ~lattis/muon

#29 error: expected type string, got array "name_suffix: lib_name_suffix," 8 days ago

Ticket created by ~xvilka on ~lattis/muon

/home/user/rizin_copy/librz/util/meson.build:106:16: error: expected type string, got array
106 |   name_suffix: lib_name_suffix,
                     ^
/home/user/rizin_copy/librz/util/meson.build:97:11: error: in function library
 97 | rz_util = library('rz_util', rz_util_sources,
                ^
/home/user/rizin_copy/librz/meson.build:3:1: error: in function subdir
  3 | subdir('util')
      ^
/home/akochkov/rizin/rizin_copy/meson.build:646:1: error: in function subdir
646 | subdir('librz')
      ^

on the following piece of code:

rz_util = library('rz_util', rz_util_sources,
  include_directories: platform_inc,
  c_args: library_cflags,
  dependencies: rz_util_deps,
  install: true,
  implicit_include_directories: false,
  install_rpath: rpath_lib,
  link_args: library_linkflags,
  soversion: rizin_libversion,
  name_suffix: lib_name_suffix,
  name_prefix: lib_name_prefix,
)

See https://github.com/rizinorg/rizin/blob/dev/librz/util/meson.build

#28 meson.build:119:3: error: invalid kwarg: 'format' 8 days ago

Ticket created by ~xvilka on ~lattis/muon

/home/user/rizin_copy/subprojects/libzip-1.7.3/meson.build:119:3: error: invalid kwarg: 'format'
119 |   format: 'cmake@',
        ^
/home/user/rizin_copy/subprojects/libzip-1.7.3/meson.build:115:12: error: in function configure_file
115 | config_h = configure_file(
                 ^
/home/user/rizin_copy/meson.build:482:17: error: in function subproject
482 |   libzip_proj = subproject('libzip', default_options: [

on the following piece of code:

conf_data.set('CMAKE_PROJECT_NAME', 'libzip')
conf_data.set('CMAKE_PROJECT_VERSION', meson.project_version())

config_h = configure_file(
  input: 'cmake-config.h.in',
  output: 'config.h',
  configuration: conf_data,
  format: 'cmake@',
)

See https://github.com/rizinorg/rizin/blob/dev/subprojects/packagefiles/libzip-1.7.3/meson.build

#27 subproject default_options error: unable to coerce 'false' into a feature 11 days ago

Ticket created by ~xvilka on ~lattis/muon

/home/user/rizin_copy/meson.build:482:55: error: unable to coerce 'false' into a feature
482 |   libzip_proj = subproject('libzip', default_options: [
                                                            ^
/home/user/rizin_copy/meson.build:482:17: error: in function subproject
482 |   libzip_proj = subproject('libzip', default_options: [

On the following piece of code:


libzip_dep = dependency('libzip', required: get_option('use_sys_libzip'), static: is_static_build)
if not libzip_dep.found()
  libzip_proj = subproject('libzip', default_options: [
    'default_library=static',
    'static_runtime=@0@'.format(is_static_build),
    'use_sys_openssl=@0@'.format(get_option('use_sys_libzip_openssl')),
  ])
  libzip_dep = libzip_proj.get_variable('libzip_dep')
endif

See https://github.com/rizinorg/rizin/blob/dev/meson.build#L542

#24 Implement `cmake` module a month ago

Ticket created by ~xvilka on ~lattis/muon

"cmake" module implements better interaction when the project is being used as a part of CMake-based project.

Rizin recently switched to use it to generate CMake files to be able to use it in Cutter or rz-ghidra, both of which are CMake-based much easier.

https://mesonbuild.com/CMake-module.html

#22 "vs_module_defs : 'win32/zlib.def'" = error: invalid kwarg: 'vs_module_defs' a month ago

Ticket created by ~xvilka on ~lattis/muon

/home/user/rizin_copy/subprojects/zlib-1.2.11/meson.build:51:3: error: invalid kwarg: 'vs_module_defs'
 51 |   vs_module_defs : 'win32/zlib.def',
        ^
/home/user/rizin_copy/subprojects/zlib-1.2.11/meson.build:48:8: error: in function library
 48 | zlib = library('z', src,
             ^
/home/user/rizin_copy/meson.build:478:15: error: in function subproject
478 |   zlib_proj = subproject('zlib', default_options: ['default_library=static'])

Here is how code looks like:

zlib = library('z', src,
  c_args : compile_args,
  link_args : link_args,
  vs_module_defs : 'win32/zlib.def',
  install : false)

See the full file at https://github.com/rizinorg/rizin/blob/dev/subprojects/packagefiles/zlib-1.2.11/meson.build

#20 `cc.find_library('rt')` fails on Fedora Linux while it works fine with Meson a month ago

Comment by ~xvilka on ~lattis/muon