ucx icon indicating copy to clipboard operation
ucx copied to clipboard

failed cross compile musl

Open predators46 opened this issue 1 month ago • 0 comments

util/reloc.c:522:8: error: unknown type name 'Dl_serinfo'
  522 | static Dl_serinfo *ucm_dlopen_load_serinfo(const char *module_path)
      |        ^~~~~~~~~~
util/reloc.c: In function 'ucm_dlopen_load_serinfo':
util/reloc.c:524:5: error: unknown type name 'Dl_serinfo'; did you mean 'Dl_info'?
  524 |     Dl_serinfo *serinfo = NULL;
      |     ^~~~~~~~~~
      |     Dl_info
util/reloc.c:525:5: error: unknown type name 'Dl_serinfo'; did you mean 'Dl_info'?
  525 |     Dl_serinfo serinfo_size;
      |     ^~~~~~~~~~
      |     Dl_info
util/reloc.c:536:26: error: 'RTLD_DI_SERINFOSIZE' undeclared (first use in this function)
  536 |     res = dlinfo(module, RTLD_DI_SERINFOSIZE, &serinfo_size);
      |                          ^~~~~~~~~~~~~~~~~~~
util/reloc.c:536:26: note: each undeclared identifier is reported only once for each function it appears in
util/reloc.c:542:34: error: request for member 'dls_size' in something not a structure or union
  542 |     serinfo = malloc(serinfo_size.dls_size);
      |                                  ^
In file included from util/reloc.h:13,
                 from util/reloc.c:11:
util/reloc.c:545:31: error: request for member 'dls_size' in something not a structure or union
  545 |                   serinfo_size.dls_size);
      |                               ^
/sdk/build_dir/target-aarch64_generic_musl/ucx-1.19.1/src/ucm/util/log.h:22:22: note: in definition of macro 'ucm_log'
   22 |                   ## __VA_ARGS__); \
      |                      ^~~~~~~~~~~
util/reloc.c:544:9: note: in expansion of macro 'ucm_error'
  544 |         ucm_error("failed to allocate %zu bytes for Dl_serinfo",
      |         ^~~~~~~~~
util/reloc.c:550:31: error: 'RTLD_DI_SERINFO' undeclared (first use in this function)
  550 |     res      = dlinfo(module, RTLD_DI_SERINFO, serinfo);
      |                               ^~~~~~~~~~~~~~~
util/reloc.c: In function 'ucm_dlopen':
util/reloc.c:566:5: error: unknown type name 'Dl_serinfo'; did you mean 'Dl_info'?
  566 |     Dl_serinfo *serinfo;
      |     ^~~~~~~~~~
      |     Dl_info
util/reloc.c:605:28: error: request for member 'dls_cnt' in something not a structure or union
  605 |     for (i = 0; i < serinfo->dls_cnt; i++) {
      |                            ^~
util/reloc.c:607:32: error: request for member 'dls_serpath' in something not a structure or union
  607 |                         serinfo->dls_serpath[i].dls_name, filename);
      |                                ^~

predators46 avatar Dec 08 '25 18:12 predators46