abhikran-quic commented on issue #14827:
URL: https://github.com/apache/tvm/issues/14827#issuecomment-1556986657
Thanks @aryamazaheri for sharing the details.
1. The problem went away after removing `-DCMAKE_SYSTEM_NAME=Linux` flag and
I was able to reproduce the issue.
2. The issue is seen because a different version of `dlfcn.h` is being
picked up while compilation. Ideally it should be picked up from
`$HEXAGON_SDK_ROOT/ipc/fastrpc/rtld/ship/inc` which contains
`RTLD_DI_LOAD_ADDR` definition. Could you please try with the below mentioned
command?
```
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++;\
cmake .. \
-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_LIBBACKTRACE=OFF -DUSE_LLVM=OFF \
-DCMAKE_CXX_FLAGS="-isystem $HEXAGON_SDK_ROOT/incs \
-isystem $HEXAGON_SDK_ROOT/incs/stddef \
-isystem $HEXAGON_SDK_ROOT/rtos/qurt/computev68/include/posix \
-isystem $HEXAGON_SDK_ROOT/rtos/qurt/computev68/include/qurt \
-isystem $HEXAGON_SDK_ROOT/ipc/fastrpc/rtld/ship/inc \
-stdlib=libc++"
make runtime -j${nproc}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]