pfk-beta commented on issue #10202:
URL: https://github.com/apache/tvm/issues/10202#issuecomment-1035009404


   It is really, really strange imho. When I turn off cross-compilers in cmake 
command, then it work correctly:
   ```
   sudo apt-get install llvm-12\* git
   sudo mkdir -p /tvm
   sudo chown `whoami`:`whoami` /tvm
   git clone --recursive -b main --depth 1 [email protected]:apache/tvm.git /tvm
   virtualenv -p /usr/bin/python3 /tvm/.venv/tvm
   source /tvm/.venv/tvm/bin/activate
   rm -rf /tvm/build-llvm12/*
   mkdir -p /tvm/build-llvm12
   cp /tvm/cmake/config.cmake /tvm/build-llvm12
   cd /tvm/build-llvm12
   sed -i 's/set(USE_LLVM OFF)/set(USE_LLVM 
\/usr\/lib\/llvm-12\/bin\/llvm-config)/g' config.cmake
   sed -i 's/set(USE_RPC OFF)/set(USE_RPC ON)/g' config.cmake
   sed -i 's/set(USE_CPP_RPC OFF)/set(USE_CPP_RPC ON)/g' config.cmake
   cmake .. \
       -DUSE_RPC=ON \
       -DCMAKE_SYSTEM_NAME=Linux \
       -DCMAKE_SYSTEM_VERSION=1 \
       
-DCMAKE_FIND_ROOT_PATH=$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/ \
       -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
       -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
       -DMACHINE_NAME=armv8a-linux-gnu
   make -j4 runtime
   ```


-- 
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]


Reply via email to