pfk-beta opened a new issue #9373: URL: https://github.com/apache/tvm/issues/9373
### Expected behavior build tvm4j with runtime from custom build directory (currently I need to modify assembly.xml inside jvm folder). ### Actual behavior During `make jvmpackage` i'm getting following error ``` [INFO] [INFO] --- maven-assembly-plugin:2.5.5:single (default) @ tvm4j-full-linux-x86_64 --- [INFO] Reading assembly descriptor: src/main/assembly/assembly.xml [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for TVM4J Package - Parent 0.0.1-SNAPSHOT: [INFO] [INFO] TVM4J Package - Parent ............................. SUCCESS [ 1.677 s] [INFO] TVM4J Package - Core ............................... SUCCESS [ 1.577 s] [INFO] TVM4J Package - Native Parent ...................... SUCCESS [ 0.010 s] [INFO] TVM4J Package - Native Linux-x86_64 ................ SUCCESS [ 0.949 s] [INFO] TVM4J Package - Full Parent ........................ SUCCESS [ 0.011 s] [INFO] TVM4J Package - Full Linux-x86_64 .................. FAILURE [ 0.274 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.864 s [INFO] Finished at: 2021-10-26T15:58:32+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5:single (default) on project tvm4j-full-linux-x86_64: Failed to create assembly: Error adding file to archive: /home/piotr/projects/odai/tvm/tvm/jvm/assembly/linux-x86_64/../../../build/libtvm_runtime.so -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :tvm4j-full-linux-x86_64 Makefile:171: recipe for target 'jvminstall' failed make: *** [jvminstall] Error 1 ``` ### Environment ubuntu 18, git e7a0c5cff225632f1c1927b70758bdeb6eb250c5, cmake 3.10.2 ### Steps to reproduce ```shell mkdir build-android cd build-android cp ../cmake/config.cmake . sed -i 's/set(USE_LLVM OFF)/set(USE_LLVM $ANDROID_NDK\/toolchains\/llvm\/prebuilt\/linux-x86_64\/bin\/llvm-config)/g' config.cmake cmake .. \ -DUSE_RPC=OFF \ -DCMAKE_SYSTEM_NAME=Android \ -DCMAKE_SYSTEM_VERSION=28 \ -DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a \ -DCMAKE_ANDROID_NDK=$ANDROID_NDK \ -DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang \ -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake \ -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 TVM_BUILD_PATH=`pwd` make -j4 runtime cd .. TVM_BUILD_PATH=`pwd`/build-android make jvmpkg TVM_BUILD_PATH=`pwd`/build-android make jvminstall ``` Preferably a minimal script to cause the issue to occur. -- 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]
