chaquo / chaquopy

Chaquopy: the Python SDK for Android
https://chaquo.com/chaquopy/
MIT License
807 stars 132 forks source link

src directory missing when building chaquopy-llvm #1056

Closed Peter9897 closed 9 months ago

Peter9897 commented 9 months ago

I want to build a wheel for llvmlite, but that requieres chaquopy-llvm to be built. The version i want to use needs a newer version of chaquopy-llvm, so i tried to build that aswell. After hours of adapting the patches to the newer version (why did they have to change all file paths???) the build failed with Unknown triple 'llvm', which was is raised by the build.sh. It tries to get a triple triple=$(basename $AR | sed 's/-ar$//') to determine what to build for. I manually set the triple to "ARM", because i want to build for android abi. However after that the build fails with CMake being unable to find the /src folder, that indeed doesnt exist. All the folders where created before, as i can see in the log output, but then suddenly it doesnt exist anymore. The error message is:

build-wheel: /home/default/Coding/chaquopy/server/pypi/packages/chaquopy-llvm/build.sh
Unknown triple 'llvm'
CMake Error: The source directory "/home/default/Coding/chaquopy/server/pypi/packages/chaquopy-llvm/build/14.0.0/py3-none-android_21_armeabi_v7a/src" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
build-wheel: Error: Command '['/home/default/Coding/chaquopy/server/pypi/packages/chaquopy-llvm/build.sh']' returned non-zero exit status 1.

Why is that, how can i fix that, or will there be newer versions prebuilt available soon?

mhsmith commented 9 months ago

I can't answer this question unless you give the actual error message.

However, by coincidence I tried to build the current version of chaquopy-llvm myself today, and it looks like I got a bit further. See #1057, which requires the current build-wheel version from the master branch. If you make any more progress, please post it there.