[bug] statusCodeToString() cannot be linked

Product & Environment

  • Product: MLX-A1
  • Runtime Version: 1.3.2
  • Driver Version: 1.13
  • OS: ubuntu 24.04

Description

mobilint::statusCodeToString() is declared in the public header qbruntime/status_code.h and is documented in the public API reference but the symbol is not present in libqbruntime.so.

Logs & Attachments

#include <qbruntime/status_code.h>

int main() {
  const std::string s = mobilint::statusCodeToString(mobilint::StatusCode::OK);
  return 0;
}
$ g++ main.cpp 
/usr/bin/ld: /tmp/ccaBOjbm.o: in function `main':
main.cpp:(.text+0x29): undefined reference to `mobilint::statusCodeToString[abi:cxx11](mobilint::StatusCode)'
collect2: error: ld returned 1 exit status
1 Like

Thank you for reporting this issue.

We have confirmed the bug where the symbol visibility for the corresponding function was not exposed externally.

This issue will be fixed in the next release.

3 Likes