Skip to content

[Bug] undeclared identifier 'RTLD_DI_LOAD_ADDR' while compiling for Hexagon #14827

@aryamazaheri

Description

@aryamazaheri

While compiling TVM for Hexagon backend, I get the following error:

/home/osboxes/tvm/src/runtime/dso_library.cc:129:32: error: use of undeclared identifier 'RTLD_DI_LOAD_ADDR'
  int rc = dlinfo(lib_handle_, RTLD_DI_LOAD_ADDR, &p);

Environment

OS: Ubuntu 18.04
TVM: 0.13
Hexagon SDK: 5.3.0.0

Steps to reproduce

HEXAGON_SDK_ROOT=$HOME/Hexagon/5.3.0.0; \
DEFAULT_HEXAGON_TOOLS_ROOT=$HEXAGON_SDK_ROOT/tools/HEXAGON_Tools/8.6.06; \
CC=$DEFAULT_HEXAGON_TOOLS_ROOT/Tools/bin/hexagon-clang; \
CXX=$DEFAULT_HEXAGON_TOOLS_ROOT/Tools/bin/hexagon-clang++;\
CXXFLAGS='-stdlib=libc++ -I${HEXAGON_SDK_ROOT}/rtos/qu^C/computev69/include/posix -I${HEXAGON_SDK_ROOT}/rtos/qurt/computev69/include/qurt'; \
cmake .. -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_VERSION=1 -DCMAKE_C_COMPILER=$DEFAULT_HEXAGON_TOOLS_ROOT/Tools/bin/hexagon-clang -DCMAKE_CXX_COMPILER=$DEFAULT_HEXAGON_TOOLS_ROOT/Tools/bin/hexagon-clang++ -DUSE_RPC=OFF -DUSE_LLVM=OFF

Triage

  • vert:hexagon

Metadata

Metadata

Assignees

Labels

needs-triagePRs or issues that need to be investigated by maintainers to find the right assignees to address ittype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions