You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/04/19 13:44:37 UTC

[GitHub] [tvm] pfk-beta opened a new issue, #11059: [Bug] compile tvm_rpc without hexagon causes missing -lcdsprpc

pfk-beta opened a new issue, #11059:
URL: https://github.com/apache/tvm/issues/11059

   When I run command to compile tvm_rpc, i'm getting error, that linker cannot find -lcdsprpc, which I think is compiled/added during Hexagon module. My compilation command:
   ```
   RUN mkdir -p /workspace/build && \
    cd /workspace/build && \
    cp /workspace/cmake/config.cmake . && \
    sed -i 's/set(USE_LIBBACKTRACE AUTO)/set(USE_LIBBACKTRACE OFF)/g' config.cmake && \
    sed -i 's/set(USE_CPP_RPC OFF)/set(USE_CPP_RPC ON)/g' config.cmake && \
    cmake .. \
     -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake \
     -DCMAKE_C_COMPILER=${ANDROID_NDK_HOME}toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android28-clang \
     -DCMAKE_CXX_COMPILER=${ANDROID_NDK_HOME}toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android28-clang++ \
     -DCMAKE_FIND_ROOT_PATH=${ANDROID_NDK_HOME}toolchains/llvm/prebuilt/linux-x86_64/ \
     -DUSE_LLVM=${ANDROID_NDK_HOME}toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-config \
     -DUSE_SORT=ON \
     -DUSE_RPC=ON \
     -DUSE_OPENCL=/workspace/3rdparty/OpenCL-Headers \
     -DUSE_LIBBACKTRACE=OFF \
     -DUSE_CPP_RPC=ON \
     -DUSE_PROFILER=OFF \
     -DCMAKE_SYSTEM_NAME=Linux \
     -DCMAKE_SYSTEM_VERSION=1 \
     -DCMAKE_HOST=aarch64-linux-android \
     -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
     -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
     && \
    make -j10 tvm_rpc
   ```
   
   Error:
   ```
   e
   #10 30.08 Scanning dependencies of target tvm_rpc
   #10 30.09 [100%] Building CXX object apps/cpp_rpc/CMakeFiles/tvm_rpc.dir/rpc_server.cc.o
   #10 30.09 [100%] Building CXX object apps/cpp_rpc/CMakeFiles/tvm_rpc.dir/main.cc.o
   #10 30.09 [100%] Building CXX object apps/cpp_rpc/CMakeFiles/tvm_rpc.dir/rpc_env.cc.o
   #10 32.43 [100%] Linking CXX executable ../../tvm_rpc
   #10 32.47 /opt/android-sdk-linux/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -lcdsprpc
   #10 32.48 clang++: error: linker command failed with exit code 1 (use -v to see invocation)
   #10 32.49 make[3]: *** [tvm_rpc] Error 1
   #10 32.49 apps/cpp_rpc/CMakeFiles/tvm_rpc.dir/build.make:147: recipe for target 'tvm_rpc' failed
   #10 32.49 make[2]: *** [apps/cpp_rpc/CMakeFiles/tvm_rpc.dir/all] Error 2
   #10 32.49 CMakeFiles/Makefile2:1233: recipe for target 'apps/cpp_rpc/CMakeFiles/tvm_rpc.dir/all' failed
   #10 32.49 make[1]: *** [apps/cpp_rpc/CMakeFiles/tvm_rpc.dir/rule] Error 2
   #10 32.49 CMakeFiles/Makefile2:1245: recipe for target 'apps/cpp_rpc/CMakeFiles/tvm_rpc.dir/rule' failed
   #10 32.49 make: *** [tvm_rpc] Error 2
   #10 32.49 Makefile:630: recipe for target 'tvm_rpc' failed
   
   ```


-- 
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: commits-unsubscribe@tvm.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] kparzysz-quic commented on issue #11059: [Bug] compile tvm_rpc without hexagon causes missing -lcdsprpc

Posted by GitBox <gi...@apache.org>.
kparzysz-quic commented on issue #11059:
URL: https://github.com/apache/tvm/issues/11059#issuecomment-1102803115

   As a workaround, you can add `-DUSE_HEXAGON_SDK=OFF` to your cmake command, or change line 48 in apps/cpp_rpc/CMakeLists.txt from
   ```
   if (BUILD_FOR_ANDROID AND USE_HEXAGON_SDK)
   ```
   to
   ```
   if (BUILD_FOR_ANDROID AND USE_HEXAGON)
   ```


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] masahi closed issue #11059: [Bug] compile tvm_rpc without hexagon causes missing -lcdsprpc

Posted by GitBox <gi...@apache.org>.
masahi closed issue #11059: [Bug] compile tvm_rpc without hexagon causes missing -lcdsprpc
URL: https://github.com/apache/tvm/issues/11059


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] pfk-beta commented on issue #11059: [Bug] compile tvm_rpc without hexagon causes missing -lcdsprpc

Posted by GitBox <gi...@apache.org>.
pfk-beta commented on issue #11059:
URL: https://github.com/apache/tvm/issues/11059#issuecomment-1103716994

   Thanks, argument in cmake command doesn't work. If anyone needs, this is sed command:`sed -i 's/if (BUILD_FOR_ANDROID AND USE_HEXAGON_SDK)/if (BUILD_FOR_ANDROID AND USE_HEXAGON)/g' ../apps/cpp_rpc/CMakeLists.txt`


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org