Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src directory missing when building chaquopy-llvm #1056

Closed
Peter9897 opened this issue Dec 15, 2023 · 1 comment
Closed

src directory missing when building chaquopy-llvm #1056

Peter9897 opened this issue Dec 15, 2023 · 1 comment

Comments

@Peter9897
Copy link

Peter9897 commented Dec 15, 2023

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 mhsmith changed the title src is directory missing src directory missing when building chaquopy-llvm Dec 17, 2023
@mhsmith
Copy link
Member

mhsmith commented Dec 17, 2023

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.

@mhsmith mhsmith closed this as completed Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants